Method and apparatus for automatic loop control

Abstract: An automatic loop control can be done in two ways: The first solution, used for instance in PLL applications, is a loop control signal issued from an edges sensitive phase comparator with tri-state output levels. At each cycle of the reference frequency the phase comparator output goes to high or low level during a time which is proportional to the phase difference between measuring reference input. Within the loop control an external capacitor is charged or discharged via a resistor yielding an integrator function. When the phase comparator output has a high impedance the respective control voltage is memorised in this capacitor. If the phase comparison is done not continuously, the response time must be very long for stability reasons. But then the response to a phase step is worse. The second solution provides a control signal proportional to a measured error. In case of digital error measurement, a digital to analog conversion function is required. The drawback of such a solution is the lack of the integrator function. Consequently a static phase error exists for a PLL. According to the invention a digitally measured error (ε d ) is evaluated and smoothed with an analog integrator function (EF) which is controlled by a tri-state buffer switched with PDM rate, wherein a twisted bus can be used in the PDM function to increase the pulse frequency und to shorten the time constant of the integrator function.

Description: The present invention relates to a method and to an apparatus for automatic loop control. Background An automatic loop control can be done in two ways: The first solution, used for instance in PLL (Phase Locked Loop) applications, is a loop control signal issued from an edges sensitive phase comparator with tri-state output levels. This kind of phase comparator works according to the principle shown in Fig. 1. At each cycle of the reference frequency 12 and 22 the phase comparator output 13 and 23 goes to high level 15 or low level 25 (depending on the sign of the phase difference) during a time which is proportional to the phase difference between measuring input 11 and 21 and reference input. In Fig. 1a the measuring input is in advance versus the reference input and in Fig. 1b vice versa. Within the loop control an external capacitor is charged or discharged via a resistor yielding a low pass filter. When the phase comparator output is High-Z (high-impedance) the respective control voltage is memorised in this capacitor. This is equivalent to an integrator function because the static phase error is equal to zero. The behaviour of such a system is good when the phase comparator works continuously. If the phase comparison is done e.g. only once per video line, the response time must be very long for stability reasons. But then the response to a phase step is worse. The second solution provides a control signal proportional to a measured error. In case of digital error measurement, a digital to analog conversion function is required. This can be achieved by using for instance a DAC (D/A Converter) or a PWM (Pulse Width Modulation) or a PDM (Pulse Density Modulation). The drawback of such a solution is the lack of the integrator function. Consequently a static phase error exists for a PLL. Invention It is one object of the invention to disclose a method for improved automatic loop control which combines advantages of the known methods. This object is reached by the inventive method disclosed in claim 1. The invention combines a tri-state buffer with levels switched at PDM rate providing a smooth loop control signal. If the phase difference is less than a given value called dead-zone value, the buffer stays in a high-impedance state. The static error issued from a digital error measurement is zero. Therefore the DC loop gain can be infinite. The invention provides in case of a PLL the same loop behaviour as the first above mentioned solution when used with a phase comparator providing a digital control word representing the phase error ε d (digital). A non-linearity of the error measurement can be compensated or created by the PDM function. In principle the inventive method consists in an automatic loop control, wherein an input signal (301) is corrected by correction means (AD) and an error between the respective output signal (303) and a reference (304) is evaluated to control via local signal generator means (LSG) said correction means, wherein said error (ε d ) is measured in digital form and used to control buffer means (TB) the output of which can be switched to a high impedance and is passed through integrating means (EF) to said local signal generator means, wherein said switching is caused by a PDM function. Advantageous additional embodiments of the inventive method are resulting from the respective dependent claims. It is a further object of the invention to disclose an apparatus which utilizes the inventive method. This object is reached by the inventive apparatus disclosed in claim 9. In principle the inventive apparatus comprises correction means (AD) for an input signal (301) and error measurement means (EM) for measuring an error between the respective output signal (303) of said correction means and a reference (304), wherein said error (ε d ) is measured in digital form and used to control buffer means (TB) the output of which can be switched to a high impedance and is passed through integrating means (EF) to local signal generator means (LSG) which control said correction means, wherein said switching is caused by PDM means (PDM). Advantageous additional embodiments of the inventive apparatus are resulting from the respective dependent claim. Drawings Preferred embodiments of the invention are described with reference to the accompanying drawings, in which: Fig. 1 shows the principle of known phase comparators; Fig. 2 shows an automatically controlled loop with the inventive smooth loop control; Fig. 3 depicts how a loop control signal is received from a digital error measurement; Fig. 4 shows a first PDM implementation; Fig. 5 shows a second PDM implementation. Preferred embodiments In Fig. 2 an input signal 301, e.g. a transmitted TV signal, is fed to an input signal correction circuit AD which may also comprise an A/D converter for the input signal and which delivers the output signal 303. From this output signal and from a reference 304 an error measurement circuit EM forms digital error words ε d . The reference 304 may comprise e.g. a reference voltage, a reference frequency and/or the input signal 301 and/or the output signal 303, if the reference is contained in this signal 303, as is the case e.g. for a PLL in a MAC TV system. The digital error words are converted in a loop control circuit SLC to respective analog error values ε a which load an RC filter EF (externally connected to a respective pin of an IC). The loop control circuit SLC works as described for Fig. 3. A local signal generator LSG receives the filtered analog error values and controls correction circuit AD accordingly. In case of a PLL the local signal generator LSG is a VCO or VCXO providing the sampling clock of an A/D converter AD. The error measurement is the result of a phase comparator. In Fig. 3 digital error words ε d are fed to an absolute value circuit ABS which outputs sign and absolute value of the error. The sign 42 of error ε can be inverted by means of a polarity flag 41 in an exclusive OR gate XOR and is used as data input for a tri-state buffer TB. Thus control can be easily inverted depending on loop characteristics. The absolute value of error ε is evaluated in a pulse density modulation circuit PDM which controls with its output signal 44 tri-state buffer TB. If e.g. signal 44 is zero, buffer TB has a high output impedance which allows to keep for a certain time, e.g. during the active period of a TV line, the analog value stored in filter EF. A dead-zone value (DZV) 43 fed to pulse density modulation circuit PDM allows to loosen up the loop reaction on error ε to a certain amount, i.e. to introduce a hysteresis. When DZV equals zero, only the PDM converted error ε is acting on output signal 44. PDM (pulse density modulation) is a PWM (pulse width modulation) with an inverted bus from a counter to a comparator yielding regularly spaced pulses over the whole counting period. The counter clock must be higher in frequency than ε d updates in such a way that at least one whole counter cycle can be performed between each ε d update. Fig. 4 and Fig. 5 show two different embodiments for the pulse density modulation circuit PDM of Fig. 3. In Fig. 4 a clock CL is counted with a n bit counter C, e.g. starting at the beginning of a TV line. The n bits cnt 0 ...cnt n-1 of the counter output are twisted with respect to the n bit input A 0 ...A n-1 of a comparator 51. Advantageously this results in a higher pulse frequency and the time constant of the integrator function can be shortened, if all 2 n output values of counter C are scanned during each counter cycle. The second n bit input B of comparator 51 receives the absolute value of error ε which is also fed to input A of a second n bit comparator 52. An error of n LSB will provide n pulses during one counter cycle in a linear way. Input B of comparator 52 receives the dead-zone value DZV. Counter C and comparator 51 represent a PDM function. The dead-zone value and the PDM signals are mixed in an AND gate providing the impedance control signal 44 for the tri-state buffer TB. If |ε| is equal or less than DZV, the buffer output is switched to high impedance. If |ε| is greater than DZV, the buffer output is switching at PDM rate between sign of error (or inverted if polarity 41 = '1') and high impedance; the number of pulses is equal to |ε|. In Fig. 5, also, a clock CL is counted with a n bit counter C. The n bits of the counter output are twisted accordingly with respect to the n bit input A of a comparator 61. The second n bit input B of an adder 61 receives the dead-zone value DZV. The output of this adder is limited in a clipping circuit CP in case of overflow of the n bit range. The output of this clipping circuit and error ε are compared in a comparator 62. Only an error of DZV+n LSB will provide n output pulses 63 during one counter cycle. The reaction speed of the loop can be easily modulated versus amplitude of error ε due to a digitally encoded error value. This modulation can be modified by adding a look-up table or any other feature such that the PDM function has an offset or a non-unity gain or a non-linear function or a combination of these characteristics. This function must be chosen in order to fulfil stability criteria knowing that the RC filter in combination with the buffer's high impedance level is equivalent to an integrator. Almost the whole process is purely digital. A D/A converter function is performed by the PDM, the pulses are filtered by the RC filter which behaves as memory when the output of buffer TB is switched to high impedance. This means that the invention can be used for automatic loop control with infinite DC loop gain (static error is equal to zero). The automatic loop control can be easily integrated in a purely digital IC. The invention can be applied for any automatic controlled loop having a digital error measurement result. e.g.: clamp (DC level regeneration); AGC (automatic gain control); PLL (clock regeneration). The invention can be used in receivers using TV signals or other equipment for e.g.: digitally transmitted TV, advanced TV standards; MAC family including HDMAC, MUSE; HDTV; PAL, SECAM, NTSC with digital features.

Claims: Method for automatic loop control, wherein an input signal (301) is corrected by correction means (AD) and an error (ε d ) between the respective output signal (303) and a reference (304) is evaluated to control via local signal generator means (LSG) said correction means, characterized in that said error (ε d ) is measured in digital form and used to control buffer means (TB), the output of which can be switched to a high impedance and is passed through integrating means (EF) to said local signal generator means, wherein said switching is caused by Pulse Density Modulation means (PDM). Method according to claim 1, characterized in that in said PDM means (PDM) a twisted bus is used. Method according to claim 1 or 2, characterized in that said integrating means (EF) comprise one or more resistors and capacitors. Method according to any of claims 1 to 3, characterized in that the sign of said error (ε d , 42) is an input signal for said buffer means (TB). Method according to claim 4, characterized in that the polarity of said input signal can be inverted using a flag (41). Method according to any of claims 1 to 5, characterized in that a dead-zone value (DZV) is logically combined within said PDM means (PDM) for controlling said switching. Method according to any of claims 1 to 6, characterized in that said input signal consists of TV lines and that said error (ε d ) is measured once per TV line. Method according to any of claims 1 to 7, characterized in that said PDM means (PDM) include an offset or a non-unity gain or a non-linear function or a combination of these characteristics. Apparatus for a method according to any of claims 1 to 8, comprising correction means (AD) for an input signal (301) and error measurement means (EM) for measuring an error between the respective output signal (303) of said correction means and a reference (304), wherein said error (ε d ) is measured in digital form and used to control buffer means (TB) the output of which can be switched to a high impedance and is passed through integrating means (EF) to local signal generator means (LSG) which control said correction means, wherein said switching is caused by PDM means (PDM). Apparatus according to claim 9, characterized in that said PDM means (PDM) comprise a counter (C) which is connected via a twisted bus to a comparator (51, 61).

Inventors: GUNTZBURGER PHILIPPE, MORAILLON JEAN-YVES, RAMBAULT CLAUDE, GUNTZBURGER, PHILIPPE, MORAILLON, JEAN-YVES, RAMBAULT, CLAUDE
Applicants: THOMSON MULTIMEDIA SA, THOMSON MULTIMEDIA
Application year: 1993
Main classification: H03L7
IPC codes: H03L7, H04N5