Background of the Invention
1. Field of the Invention
The present invention relates in general to a phase locked loop (PLL) circuit, and more particularly to a PLL circuit in which a locked operation is performed at a high speed.
2. Description of the Prior Art
Generally, a PLL circuit is a closed circuit which generates a signal synchronized in phase and frequency with an input signal, and used in various forms in many types of equipment such as a communication radar, a computer, a frequency control instrumentation device, etc.
FIG. 1 is a block diagram of a conventional PLL circuit. As shown in this drawing, the conventional PLL circuit comprises an R counter 101 for dividing an input reference frequency F.sub.Ref by R, an N counter 102 for dividing an output of the PLL circuit fed back thereto by N. A phase detector 103 compares the phases of outputs F.sub.R and F.sub.N from the R and N counters 101 and 102, respectively, and outputs the resultant difference. A low pass filter (LPF) 104 is provided to low pass filter the output of the phase detector 103. A voltage controlled oscillator (VCO) 105 is provided for generating a frequency signal proportioned to a voltage value from the LPF 104.
Such a conventional PLL circuit remains in its locked state when the outputs F.sub.R and F.sub.N from the R and N counters 101 and 102, respectively, are synchronized with each other in phase and frequency. The R and N counters 101 and 102 may have the dividing factors R and N fixed or set by externally loaded values as needed. Time is required for a transition from an initial unlocked state to a locked state. If the outputs F.sub.R and F.sub.N from the R and N counters 101 and 102 have the same frequency but are out of phase during the transition from the initial unlocked state to the locked state, the VCO 105 changes the frequency and readjusts it when the signals are in phase, so that the PLL circuit becomes locked.
The above-mentioned conventional PLL circuit has a disadvantage in that the phase detector compares the signals F.sub.R and F.sub.N obtained by dividing the input frequencies with each other, resulting in an increase in the time required for the transition from the unlocked state to the locked state. For this reason, most types of equipment employing the PLL circuit have a response characteristic which is retarded due to the long locking time required.
Summary of the Invention
The present investigation has been made in view of the above problem. An object of the present invention is to provide a PLL circuit which is locked at a high speed to enhance a response characteristic of the equipment to which it is applied.
In accordance with the present invention, the above and other objects can be accomplished by a provision of a phase locked loop circuit comprising a first counter for dividing a reference frequency at a division ratio predetermined or determined by input means; a second counter for dividing a frequency of an output signal from the phase locked loop circuit at a division ratio predetermined or determined by different input means; phase detection means for inputting output signals from said first and second counters and generating a voltage based on a phase difference between the inputted signals; a low pass filter for low pass filtering an output signal from said phase detection means; and a voltage controlled oscillator for generating a frequency signal proportioned to an output voltage from said low pass filter. The circuit further includes an unlock detection means for generating a control signal for synchronization of one of said first and second counters with an earlier phase in response to an unlocked signal from said phase detector.
Brief Description of the Drawings
The above and other objects, features and advantages of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a block diagram of a conventional PLL circuit;
FIG. 2 is a block diagram of a PLL circuit of the present invention;
FIG. 3 is a timing diagram illustrating operations of a phase detector and an unlock detector in FIG. 2 when a signal F.sub.R is earlier in phase than a signal F.sub.N ;
FIG. 4 is a timing diagram illustrating operations of the phase detector and unlock detector in FIG. 2 when the signal F.sub.N is earlier in phase than the signal F.sub.R ;
FIG. 5 is a detailed circuit diagram of the phase detector in FIG. 2;
FIG. 6 is a detailed block diagram of the unlock detector in FIG. 2; and
FIG. 7 is a detailed circuit diagram of a low edge detector in FIG. 6.
Detailed Description of the Preferred Embodiment
Referring to FIG. 2, there is shown a block diagram of a PLL circuit of the present invention. This PLL circuit is adapted to look at an unlocked range of an output signal from a phase detector and restart an R counter or an N counter in accordance with the result to arrange a phase synchronized loop.
As shown in FIG. 2, the PLL circuit comprises two feedback loops, first feedback loop consisting of a phase detector 203, a low pass filter (LPF) 204, a voltage controlled oscillator (VCO) 205 and an N counter 202. The second feedback loop includes an R counter 201, the phase detector 203 and an unlock detector 206. The use of the two feedback loops allows the PLL circuit to have very short locking time.
A possible source of the second feedback loop is self-characteristics of the counters.
In the PLL circuit, the R counter 201 and the N counter 202 are generally programmable counters, which allow divided clocks to have very small duty cycles due to variable division ratios.
The operation of the PLL circuit with the above-mentioned construction in accordance with the present invention will hereinafter be described in detail with reference to FIGS. 3 and 4, which are timing diagrams illustrating operations of the phase detector 203 and the unlock detector 206 based on an output signal F.sub.R from the R counter 201 and an output signal F.sub.N from the N counter 202.
During a high interval, the signal F.sub.R or F.sub.N is applied as a signal for reloading the counter division ratio. Because the duty cycle of the divided clock of the program counter is varied according to the division ratio, the digital phase detector typically acts as an edge comparator. In this case, the phase detector performs the edge comparison in response to the program counter load signal.
In the case where the signal F.sub.R is earlier in phase than the signal F.sub.N as shown in FIG. 3, the phase detector 203 generates an unlocked signal corresponding to a phase difference between positive edges of the signals F.sub.R and F.sub.N.
In accordance with the present invention, the PLL circuit is adapted to detect a low edge of the unlocked signal from the phase detector 203 and restart the program counter according to the resultant load signal to perform the phase synchronization. In this case, a phase difference from the phase detector 203 to the LPF 204 is not influenced by the second loop. Namely, the phase difference from the phase detector 203 is directly applied to the LPF 204 because the load signal is again generated at the low edge of the unlocked signal.
Because the signal F.sub.R is earlier in phase than the signal F.sub.N in FIG. 3, it will be synchronized to the signal F.sub.N. Namely, the unlock detector 206 generates an R counter restart signal to reset the R counter 201.
In the case where the signal F.sub.N is earlier in phase than the signal F.sub.R as shown in FIG. 4, the phase detector 203 generates an unlocked signal corresponding to a phase difference between positive edges of the signals F.sub.N and F.sub.R. The unlock detector 206 detects a low edge of the unlocked signal from the phase detector 203 and outputs the resultant restart signal to restart the N counter 202.
Referring to FIG. 5, there is shown a detailed circuit diagram of the phase detector 203 in FIG. 2. As shown in this drawing, the phase detector 203 includes a D flip-flop 501 having a data input terminal for inputting a power source voltage V.sub.DD and a clock input terminal for inputting the output signal F.sub.R from the R counter 201, a D flip-flop 502 having a data input terminal for inputting the power source voltage V.sub.DD and a clock input terminal for inputting the output signal F.sub.N from the N counter 202, a NOR gate 503 for resetting the D flip-flops 501 and 502 in response to inverted output signals from the D flip-flops 501 and 502, and a charge pump 509 for inputting non-inverted output signals U and D from the D flip-flops 501 and 502.
The charge pump 509 includes an inverter 504 for inverting the non-inverted output signal U from the D flip-flop 501, a P-type transistor 505 having a gate for inputting an output signal from the inverter 504 and a source for inputting the power source voltage V.sub.DD. The charge pump 509 further includes an inverter 506 for inverting the non-inverted output signal D from the D flip-flop 502, an inverter 507 for inverting an output signal from the inverter 506, and an N-type transistor 508 having a gate for inputting an output signal from the inverter 507. The drain of N-Type transistor 508 is connected to a drain of the P-type transistor 505. The source of N-type transistor 508 is connected to a ground.
The unlocked signal is generated at a signal output terminal of one of the D flip-flops 501 and 502 which is first triggered positively. If the signal F.sub.R is earlier in phase than the signal F.sub.N, the positive output signal U from the D flip-flop 501 remains at its high state during an interval corresponding to a phase difference between the positive edges of the signals F.sub.R and F.sub.N, whereas the positive output signal D from the D flip-flop 502 remains at its low state. If the signal F.sub.N is earlier in phase than the signal F.sub.R, then the positive output signal D from the D flip-flop 502 remains at its high state during an interval corresponding to a phase difference between the positive edges of the signals F.sub.N and F.sub.R, whereas the positive output signal U from the D flip-flop 501 remains at its low state.
The positive output signals U and D from the D flip-flops 501 and 502 are passed through the charge pump 509 before reaching the LPF 204, so that the input voltage to the VCO 205 is increased or decreased.
The positive output signals U and D from the D flip-flops 501 and 502 are also applied to the unlock detector 206 to produce the signals for restarting the R counter and the N counter.
Referring to FIG. 6, there is shown a detailed block diagram of the unlock detector 206 in FIG. 2. As shown in this drawing, the unlock detector 206 includes a pair of low edge detectors 602 and 603 for generating the R and N counter restart signals in response to the unlocked signals U and D from the phase detector 203, respectively. Each of the low edge detectors 602 and 603 is adapted to generate the restart signal by detecting the low edge of the corresponding unlocked signal, as shown in FIG. 7.
Referring to FIG. 7, there is shown a detailed circuit diagram of the low edge detectors 602 and 603 in FIG. 6. As shown in this drawing, each low edge detector includes an AND gate 701 for inputting an external initialization signal Clr and the restart signal from the low edge detector delayed through a delay 702, an inverter 703 for inverting the unlocked signal from the phase detector 203, an RS flip-flop 704 having a reset terminal for inputting an output signal from the AND gate 701 and a set terminal for inputting an output signal from the inverter 703, and a latch 705 having a preset terminal for inputting the output signal from the AND gate 701, a clock input terminal for inputting the output signal from the inverter 703 and a data input terminal for inputting an output signal from the RS flip-flop 704. The initialization signal Clr initializes the edge detector to generate the restart signal for a period delayed from the low edge of the unlocked signal.
As apparent from the above description, according to the present invention, the PLL circuit has the very short locking time as compared with the conventional PLL circuit. This has the effect of enhancing a response characteristic of equipment to which the PLL circuit is applied.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims.