PLL circuit

Abstract: An oscillating signal of a VCO (7), after being divided by a divider (2), is input by a phase comparator (3). The phase difference between the divider (2) and a reference signal is detected by the phase comparator (3), and phase error is smoothed by a loop filter (4) to yield a phase error signal. The oscillating signal of the VCO 7 is also input by a frequency detector (9) and is detected to determine whether it is equal to a predetermined value or in a predetermined range. On the basis of this detection result, a frequency error signal is output. The frequency error signal and the phase error signal, after being added together, are input by the VCO (7) as a control signal so that the oscillation frequency is controlled.

Description: Background of the Invention 1. Field of the Invention The present invention relates to a PLL circuit used as a circuit for regenerating a clock synchronized to a digital signal, such as a baseband signal for digital television. 2. Description of the Related Art New techniques for transmission and reception with digital data have been developed in recent years for wireless broadcasting, such as for television and radio, and digital television broadcasting via satellites, and in some parts of the country, ground wave digital television broadcasting have been put to practical use. When demodulating the digital data for digital television, it is necessary to perform the demodulation according to a clock that is synchronized to the digital data. Thus, a clock regeneration circuit for regenerating the clock included in the digital data is provided in the digital demodulation circuit. In general, this clock regeneration circuit is configured as a PLL circuit, which uses digital data as a reference signal, as shown in Fig. 3. Demodulating with a regenerated clock is not limited to digital television signals and is applicable to digital demodulation in general. First, in Fig. 3, a VCXO (voltage-controlled crystal oscillator) l, in which an oscillation frequency is controlled on the basis of a control voltage, generates an oscillating signal, and the oscillating signal is divided by a divider 2. Thereafter, a phase comparator 3 detects a phase difference between the reference signal and the divided output of the VCXO 1 and outputs a digital signal in accordance with the phase difference. The output data of the phase comparator 3 is smoothed by a loop filter 4, then fed to a PWM (pulse width modulation) circuit 5. The PWM circuit 5 generates a PWM pulse in accordance with the output data of the loop filter 4. The PWM circuit 5 outputs a pulse having a "H" or "L" level ratio on the basis of the output data of the loop filter 4. The PWM pulse, which has a fixed frequency, has a ratio of the "H" level width and "L" level width, namely, the duty ratio, that changes in accordance with the input data. For example, if the output data of the loop filter 4 is large, the "H" level width of the PWM pulse widens and the duty ratio increases. Conversely, if the output data of the loop filter 4 is small, the "L" level width of the PWM pulse widens and the duty ratio decreases. The PWM pulse is fed to a LPF (low-pass filter) 6, and the LPF 6 performs digital to analog conversion by removing the high-frequency components and smoothing the PWM pulse. When the duty ratio of the PWM pulse is high, the output level of the LPF 6 rises, and when the duty ratio of the PWM pulse is low, the output level of the LPF 6 lowers. The output signal of the LPF 6 is supplied to the VCXO 1, and the oscillation frequency of the VCXO 1 is controlled in accordance with the output signal of the LPF 6. In the circuit of Fig. 3, the VCXO 1 is controlled on the basis of a phase error between the reference signal and the output of the VCXO 1 at the phase comparator 3. Thus, the PLL circuit is controlled so that the oscillation frequency of the VCXO 1 substantially matches the frequency of the reference signal. Since the oscillation frequency is set a high precision, the VCXO is used for the oscillator in the PLL circuit of Fig. 3. Since the VCXO requires a crystal oscillating element or a varicap diode, it was not desirable to integrate the circuit of Fig. 3. Furthermore, in satellite digital television, for example, since the transmission speed of the baseband differs according to country or region, it was necessary to change the oscillating element for every destination for the VXCO, for which the variable frequency range is narrow. To solve the aforementioned shortcomings, it is possible to use a VCO (voltage-controlled oscillator) having a wide variable frequency range and to have this single VCO adapt to all destinations. However, the lockup time of the PLL increases since the variable frequency range of the VCO is wide, and the oscillation frequency of the VCO itself deviates due to the variations in the manufacturing process, resulting in a problem where lockup of the PLL becomes impossible. EP-A-0402113 describes a Phase Lock Loop circuit as defined by the preamble of claim 1. Summary of the Invention According to a first aspect of the present invention, there is provided a PLL circuit as defined in claim 1. Therefore, an error of an oscillation frequency is detected, and the oscillation frequency is adjusted in accordance with the detected error. As a result, when the oscillation frequency is large, this permits rapid adjustments compared to adjustments based on phase differences. Furthermore, by controlling the oscillation of a voltage-controlled oscillator through the addition of a signal based on phase error and a signal based on frequency error, both control systems can be easily combined. Additionally, an appropriate control can be performed by adjusting the weight of these control systems. Brief Description of the Drawings Fig. 1 is a block diagram showing an embodiment of the present invention. Fig. 2 is a block diagram showing an actual example of the frequency detector 9 of Fig. 1. Fig. 3 is a block diagram showing a conventional example. Detailed Description of the Preferred Embodiments Fig. 1 shows an embodiment of the present invention comprising a VCO 7 for controlling an oscillation frequency on the basis of a control signal, a reference signal generator 8 for generating a reference signal of a fixed frequency, a frequency detector 9 for detecting the error of the oscillation frequency of the VCO 7 with a desired frequency on the basis of the reference signal and an oscillating signal of the VCO 7, a CPU 10 for outputting coefficients α and β and a frequency to be a target when an error frequency is detected by the frequency detector 9, a first multiplier 11 for attenuating the output data of the loop filter 4 in accordance with coefficient α, a second multiplier 12 for attenuating the output data of the frequency detector 9 in accordance with coefficient β, and an adder 13 for adding together the output data of the first and second multipliers 11 and 12. Circuits in Fig. 1 that are identical with those of the conventional example in Fig. 3 have the same reference numerals and their explanations are omitted. The PLL circuit of Fig. 1 comprises a phase loop via the phase comparator 3 and a frequency loop via the frequency detector 9. The output data of the loop filter 4, which is a phase error signal of the phase loop, and the output data of the frequency detector 9, which is a frequency error signal of the frequency loop, are added together by the adder 13. The output data of the adder 13 is applied to the PWM circuit 5, and a PWM pulse that has been set with a duty ratio in accordance with the magnitude of the output data is output. The PWM pulse is converted to an analog control signal at the LPF 6 and the oscillation frequency of VCO 7 is adjusted in accordance with the control signal. The oscillating signal of the VCO 7, after being divided by the divider 2, is input by the phase comparator 3. The phase difference between the divider 2 and the reference signal is detected at the phase comparator 3, and the phase error is smoothed by the loop filter 4 to yield the phase error signal. Thus, in the phase loop, the oscillation frequency of the VCO 7 is controlled so that the phase of the oscillating signal of the VCO 7 matches that of the reference signal. The oscillating signal of the VCO 7 is also input by the frequency detector 9. At the frequency detector 9, the oscillation frequency of the VCO 7 is measured using the reference signal of the reference signal generator 8 as reference, and it is determined whether the measured oscillation frequency is at a predetermined value or in a predetermined range set by the CPU 10. If the measured oscillation frequency is not at the predetermined value or in the predetermined range, digital data is output from the frequency detector 9 to control the VCO 7 so that the oscillation frequency of the VCO 7 is at the predetermined value or in the predetermined range. As the frequency error signal, the digital data is updated until the oscillation frequency of the VCO 7 is at the predetermined value or in the predetermined range. Thereafter, when the oscillation frequency of the VCO 7 is at the predetermined value or in the predetermined range, the frequency detector 9 sets the digital data at that time to a fixed value. Thus, in the frequency loop, the VCO 7 is controlled so that the oscillation frequency of the VCO 7 is at the predetermined value or in the predetermined range. As described above, the oscillation frequency of the VCO 7 is finely adjusted in the phase loop, and the oscillation frequency of the VCO 7 is coarsely adjusted in the frequency loop. Since the oscillation frequency of the VCO 7 is coarsely adjusted in the frequency loop, it is possible for the PLL to lock up in a short time. Furthermore, since the frequency error signal is fixed when the oscillation frequency of the VCO 7 is at the predetermined value or in the predetermined range, the PLL thereafter is controlled in the phase loop to enable stable lockup of the PLL to be achieved as well as jitter to be reduced. Attenuating the error signals for the phase loop and frequency loop to appropriate levels at the first and second multipliers 11 and 12 enables the PLL to be set to desired characteristics. Furthermore, coefficient α and β are set by the CPU 10 so it is possible to easily modify the characteristics of the PLL. For example, if a is increased, the coarse adjustment based on the frequency loop quickens, and if β is increased, the fine adjustment based on the phase loop quickens. Furthermore, it is possible to increase α when the frequency error is greater than or equal to the predetermined value, and to increase β when the error falls within the predetermined range. For example, it is preferable to have α+β=1, α≤1, and β≤1. Furthermore, it is possible to set α=0 and β=1 when the frequency error is greater than or equal to the predetermined value, and to set α=1 and β=0 when the error is within the predetermined range. Fig. 2 shows an actual example of the frequency detector 9 of Fig. 1 comprising a programmable divider 21 for dividing an oscillation frequency fvco of the VCO 7 in accordance with a divisor value n that is set by the CPU 10, and a first counter 22, which has an enable terminal for inputting the output of the programmable divider 21, for counting an enable period reference signal fck as a clock. When the oscillation frequency fvco is high, the enable period shortens and a count value CNT1 of the first counter 22 decreases. Conversely, when the oscillation frequency fvco is low, the count value CNT1 increases. Thus, the oscillation frequency fvco can be determined to be high or low by the count value CNT1. A first comparator 23 compares the count value CNT1 of the first counter 22 with a predetermined range, which is determined from a target value TGT and a frequency range RNG1 that are input from the CPU 10, with the lower limit set to TGT-RNG1 and the upper limit set to TGT+RNG1. An up-down counter 24 counts up or down in accordance with the comparison result of the first comparator 23 and outputs the count value as the frequency error signal. The up-down counter 24 counts down when the count value CNT1 is greater than the upper limit, counts up when the count value CNT1 is less than the lower limit, and maintains the count value when the count value CNT1 is within the range from the lower limit to the upper limit. Therefore, when the oscillation frequency fvco is high, the frequency error signal is updated in an increasing direction and the oscillation frequency fvco of the VCO 7 is controlled in a lowering direction, and when the oscillation frequency fvco is low, the frequency error signal is updated in a decreasing direction and the oscillation frequency fvco of the VCO 7 is controlled in a rising direction. When the oscillation frequency fvco enters the predetermined range, the frequency error signal is fixed, thereby completing the frequency control in the frequency loop of the PLL circuit of Fig. 1. In Fig. 2, the frequency range RNG1 can be set arbitrarily. Setting the frequency range RNG1 to a small range enables the oscillation frequency of the VCO 7 to converge in a narrow range through the frequency loop. This makes it possible to shorten the lockup time of the PLL. Furthermore, even if the oscillation frequency of the VCO 7 fluctuates due to fluctuations in supply voltage or temperature or to aging, the oscillation frequency of the VCO 7 can be corrected by the frequency detector 9. The count value CNT1 of the first counter 22 is equivalent to the number of reference signals fck per period 1/(fvco/n) and equal to the ratio of the number of reference signals per second. This relationship is shown in the following formula. Formula 1 CNT1:1/(fvco/n) = fck:1 sec fvco/n = fok/CNTl Furthermore, formula 1 is rewritten to solve for the count value CNT1 as shown next. Formula 2 CNT1 = fck·n/fvco If the divisor value n and the frequency of the reference signal are fixed at certain values, the count value CNT1 is obtained for the case where a desired oscillation frequency fvco is to be obtained. The target TNT and the frequency range RNG1 are set on the basis of the count value CNT1. Formula 1 can be rewritten to solve for the oscillation frequency fvco as shown next. fvco = fck·n/CNT1 Since the target value TGT is set on the basis of the count value CNT1 as described above, the oscillation frequency fvco can be arbitrarily set by changing the reference signal frequency fck, target value TGT, and divisor value n. Thus, it is possible to use an ordinary VCO. Furthermore, even if the reference frequency fck is fixed, the oscillation frequency fvco can be changed arbitrarily by the divisor value n and the target value TGT, thereby allowing an ordinary oscillating element to be used in the reference signal generator 8 of Fig. 1 and an oscillating element that is used in another block to be used for this circuit. Fig. 2 shows a circuit for detecting the locked state of the PLL circuit of Fig. 1. The PLL of Fig. 1 is not necessarily in a locked state even if the oscillation frequency of the VCO 7 is controlled by the frequency loop. The locked state is detected by utilizing the fact that the oscillation frequency of the VCO 7 is in an extremely narrow range for at least a predetermined time when the PLL locks. In Fig. 2, a second comparator 25 compares the count value CNT1 of the first counter 22 with a predetermined range, which is determined from a target value TGT and a frequency range RNG2 that are input from the CPU 10, with the lower limit set to TGT-RNG2 and the upper limit set to TGT+RNG2. When the count value CNT1 enters the range of TGT±RNG2, an enable signal is output from the second comparator 25. A second counter 26 counts the period reference signal fck for the enable signal of the second comparator 25, and a third comparator 27 outputs a lock detect signal when the count value CNT2 of the second counter 26 is greater than or equal to a threshold. The above-mentioned circuit can detect whether the oscillation frequency of the VCO 7 is an extremely narrow range for at least a predetermined time. It should be noted that the first and second counters 22 and 26 are automatically reset when input of the enable signal during counting is interrupted. According to the present embodiment, the phase loop and the frequency loop are provided, and the oscillation frequency of the VCO is finely adjusted in the phase loop, and the oscillation frequency of the VCO is coarsely adjusted in the frequency loop. Thus, it becomes possible to lock up the PLL in a short time and in a stable manner.

Claims: A PLL circuit for obtaining an oscillation frequency signal that is synchronized with an input signal, comprising: a voltage-controlled oscillator (7) for oscillating at the oscillation frequency in accordance with a VCO control signal; a phase difference detector (3) for detecting a phase difference between the input signal and the output signal from the voltage-controlled oscillator (7) ; a loop filter (4) for outputting a phase error control signal on the basis of an output signal of the phase difference detector (3); a frequency error detector (9) for outputting a frequency error control signal by comparing the output signal of said voltage-controlled oscillator (7) with a reference signal; said phase error control signal is corrected in accordance with the frequency error control signal of said frequency error detector (9) and supplied as said VCO control signal to said voltage-controlled oscillator (7); characterised by a first multiplier (11) for multiplying the phase error control signal from said loop filter (4) with a first coefficient (α) and a second multiplier (12) for multiplying the frequency error control signal of said frequency detector (9) with a second coefficient (β); and an adder (13) for adding an output of the first multiplier (11) and an output of the second multiplier (12). A PLL circuit according to claim 1, further comprising: a first counter (22) for counting the frequency of the output signal of said voltage-controlled oscillator (7); a comparator (23) for detecting whether a count value of the first counter (22) is within a predetermined range; and a lock detection circuit (27) for detecting a locked state of the PLL circuit on the basis of a detection result of the comparator (23). A PLL circuit according to claims 1 or 2, wherein said frequency error detector comprises: the first counter (22) for counting the frequency of the output signal of the voltage-controlled oscillator (7); and the comparator (23) for comparing the count value of the first counter (22) with a predetermined set value; the frequency error control signal is output in accordance with a comparison result of the comparator (23). A PLL circuit according to claim 3 wherein: said comparator (23) of said frequency error detector (9) judges whether the count value of the first counter (22) is in a predetermined range centering on said set value; a count-up signal is output if said count value is larger than said predetermined range, and a count-down signal is output if said count value is smaller than said predetermined range; an up-down counter (24) counts the count-up signal or count-down signal, and the up-down counter outputs said frequency error control signal.

Inventors: YOSHIE KAZUAKI, YOSHIE, KAZUAKI
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO., LTD.
Application year: 2000
Main classification: H03L7
IPC codes: H03L7