The invention is related to phase-locked loops, and in particular, to a phase-locked loop circuit with a wide capture range that aligns the leading edge of the feedback signal with the center of the reference clock pulse.
Phase-locked loop (PLL) circuits are useful in many electronic systems. For example, PLL circuits may be used for master clock generation for a microprocessor system, clock generation for a sampling clock in an analog-to-digital conversion system, clock generation for data recovery in a low-voltage differential signal (LVDS) driver/receiver system, cathode ray tube (CRT) displays, as well as numerous other applications.
PLL applications typically provide an output clock signal by comparing the output clock signal to a reference clock signal. A phase-frequency detector (PFD) circuit is often employed to provide a raw control signal to a loop filter. The phase-frequency detector circuit provides the raw control signal in response to comparing the phase and frequency of the output clock signal to the reference clock signal. The loop filter often is a low-pass filter (LPF) that is arranged to provide a smoothed or averaged control signal in response to raw control signal. Typically, a voltage-controlled oscillator (VCO) is arranged to receive the control signal from the loop filter. The VCO produces the clock signal in response to the control signal such that the frequency of the clock is varied until the phase and frequency of the clock signal are matched to the reference clock signal.
A PLL circuit may include a PFD circuit that provides UP and DOWN signals in response to the comparison between the output clock signal and the reference clock signal. The UP and DOWN signals are dependent on both the phase and frequency of the output and reference clock signals. The UP signal is active when the frequency of the output clock signal is lower than the reference signal, while the DOWN signal is active when the frequency of the output clock signal is determined to be higher than the reference signal. Similarly, the UP signal is active when the phase of the output clock is lagging behind the phase of the reference clock, and the DOWN signal is active when the phase of the output clock is leading the phase of the reference clock.
Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following drawings, in which:
Various embodiments of the present invention will be described in detail with reference to the drawings, where like reference numerals represent like parts and assemblies throughout the several views. Reference to various embodiments does not limit the scope of the invention, which is limited only by the scope of the claims attached hereto. Additionally, any examples set forth in this specification are not intended to be limiting and merely set forth some of the many possible embodiments for the claimed invention.
Throughout the specification and claims, the following terms take at least the meanings explicitly associated herein, unless the context clearly dictates otherwise. The meanings identified below are not intended to limit the terms, but merely provide illustrative examples for the terms. The meaning of “a,” “an,” and “the” includes plural reference, and the meaning of “in” includes “in” and “on.” The phrase “in one embodiment,” as used herein does not necessarily refer to the same embodiment, although it may. The term “coupled” means at least either a direct electrical connection between the items connected, or an indirect connection through one or more passive or active intermediary devices. The term “circuit” means at least either a single component or a multiplicity of components, either active and/or passive, that are coupled together to provide a desired function. The term “signal” means at least one current, voltage, charge, temperature, data, or other signal.
Briefly stated, the invention is related to a PLL circuit is arranged to provide a wide capture range, and to lock the leading edge of the feedback signal with the center of the reference clock pulse. The PLL circuit includes a charge pump circuit, a loop filter circuit, a VCO circuit, a PFD circuit, a phase detector circuit, a multiplexer circuit, and a frequency comparator circuit. The frequency comparator circuit is configured to compare the frequency of the reference clock with the frequency of the feedback signal, and to provide a status signal based on the comparison. The comparison is a determination of whether the frequencies of the reference clock and the feedback signal are within a tolerance window. Further, the multiplexer circuit selects either the PFD output or the phase detector output based on the comparison. The PFD is employed to bring the frequencies of the feedback signal and the reference clock signal within the tolerance window.
Once the frequencies are within the tolerance window, the status signal changes logic levels. This causes the multiplexer to select the phase detector output instead of the PFD output. The charge pump circuit is arranged to receive the output of the multiplexer circuit.
Phase detector circuit 150 is arranged to provide phase detection output signal Pout in response to input clock signal Sync and feedback signal FB. Input clock signal Sync may be a reference clock signal. Also, phase detector circuit 150 may be configured to provide signal Pout such that, if signal Pout is received by charge pump circuit CP100, and signals Sync and FB are within a capture range of phase detector circuit 150, the operation of PLL circuit 100 adjusts signal FB toward causing a constant phase difference between signals Sync and FB.
Additionally, PFD circuit 140 is arranged to provide phase-frequency detection output signal PFout in response to signals Sync and FB. PFD circuit 140 may be configured to provide signal PFout such that, if signal PFout is receive by charge pump circuit CP100, the operation of PLL circuit 100 adjusts signal FB towards causing the phase and frequency of signals Sync and FB to become substantially the same.
Frequency comparator circuit 180 may be arranged to provide signal Status such that signal Status corresponds to a first logic level if a frequency that is associated with signal Sync and a frequency that is associated with signal FB are within a tolerance window, and such that signal Status corresponds to a second logic level if the frequency that is associated with signal Sync and the frequency that is associated with signal FB are outside of the tolerance window. Further, multiplexer circuit MX100 is arranged to provide signal MXout such that signal PFout is selected as signal MXout if signal Status corresponds to the first logic level, and such that signal Pout is selected as signal MXout if signal Status corresponds to the second logic level.
Also, charge pump circuit CP100 is configured to provide charge pump current Icp responsive to signal MXout. Loop filter circuit 160 is arranged to provide error signal Verr in response to current Icp. VCO circuit 170 is arranged to provide an oscillator output signal from signal Verr. In one embodiment, the oscillator output signal is signal FB. In one embodiment, signal FB is based, in part, on the oscillator output signal.
In one embodiment, PLL circuit 200 is employed for horizontal deflection for a CRT display. In other embodiments, PLL circuit 200 may be employed for other applications.
PFD circuit 240 is arranged to provide a phase-frequency detection output signal that includes signals UP1 and DOWN1. Phase detector circuit 250 is arranged to provide a phase detection output signal that includes signals UP2 and DOWN2. Phase detector circuit 250 is arranged to provide signal UP2 such that signal UP2 corresponds to an active logic level if signal FB corresponds to the second logic level and the input clock signal corresponds to the second logic level, and corresponds to an inactive logic level otherwise. Further, phase detector circuit 250 is arranged to provide signal DOWN2 such that signal DOWN2 corresponds to the active logic level if signal FB corresponds to the second logic level and the input clock signal corresponds to the first logic level, and corresponds to the inactive logic level otherwise.
Additionally, multiplexer MX201 is arranged to multiplex signals UP1 and UP2 responsive to signal Status, and multiplexer MX202 is arranged to multiplex signals DOWN1 and DOWN2 responsive to signal Status. More specifically, signal UP2 is selected as signal UP by multiplexer MX201 if signal Status corresponds to the first logic level, and signal UP1 is selected as signal UP by multiplexer MX201 if signal Status corresponds to the second logic level. Similarly, signal DOWN2 is selected as signal DOWN by multiplexer MX202 if signal Status corresponds to the first logic level, and signal DOWN1 is selected as signal DOWN by multiplexer MX201 if signal Status corresponds to the second logic level.
Current source 1201 is arranged to provide a source current as current Icp if signal UP corresponds to an active logic level, and to provide substantially no current if signal UP corresponds to an inactive logic level. Similarly, current sink 1202 is arranged to provide a sink current as current Icp if signal DOWN corresponds to an active logic level, and to provide substantially no current if signal DOWN corresponds to an inactive logic level.
Also, VCO circuit 270 is arranged to provide oscillator output signal VCO—out from signal Verr such that a frequency that is associated with signal VCO—out is associated with a voltage that is associated with signal Verr. Further, 1/N clock divider circuit 285 is arranged to provide signal CD—out by dividing a frequency that is associated with signal VCO—out. In one embodiment, 1/N clock divider circuit 285 includes a counter. Additionally, sawtooth waveform generator circuit 290 may be arranged to provide sawtooth current Isawtooth from signal CD—out. Current Isawtooth has a slow rise time and a fast fall time. In one embodiment, at least a portion of current Isawtooth is provided to a deflection yoke of a CRT display for horizontal deflection of the CRT display. Also, in one embodiment, at least a portion of current Isawtooth is provided to flyback pulse generator circuit 295. Flyback pulse generator circuit 295 may be arranged to provide signal FB from the at least the portion of current Isawtooth that is received by flyback pulse generator circuit 295. Signal FB may be substantially similar to signal CD—out, except that signal FB has a low duty cycle, and has a temperature-dependent propagation delay relative to signal CD—OUT.
During the operation of PLL circuit 200, if the frequencies associated with signals Sync and FB are not within the tolerance window, signals UP1 and DOWN1 are selected as signals UP and DOWN. Accordingly, the feedback operation of PLL circuit 200 causes the phase and frequency of signals FB to come closer to the phase and frequency of signal Sync, until the frequencies of signals FB and Sync are within the tolerance window. When the frequencies of signals FB and Sync are within the tolerance window, signals UP2 and DOWN2 are selected as signals UP and DOWN. Accordingly, the feedback operation of PLL circuit 200 may cause the center of an active (i.e. high) pulse signal FB to lock to the leading edge of signal Sync. In one embodiment, signal Sync is a reference clock signal that is derived from a horizontal synchronization signal.
In one embodiment, by aligning the center of the pulse of signal FB to the leading edge of signal Sync, the sawtooth current is properly aligned. In this embodiment, the center of the fall time of the sawtooth current corresponds to the center of the picture provided on the CRT display. Accordingly, in this embodiment, the picture provided by the CRT display appears in the center of the sweep, regardless of temperature variations. Also, in this embodiment, the center frequency of VCO circuit 270 need not be adjusted when the frequency associated with signal Sync changes.
In operation, frequency detector circuit 520 is configured to provide first reset signal RSTA and second reset signal RSTB from signals Sync and FB.
In one embodiment, frequency detector circuit 520 is configured to provide signals RSTA and RSTB as follows. If fIN1>fIN2, signal RSTA has a first parameter that is related to fIN1−fIN2, where fIN1 and fIN2 are the frequencies that are associated with signals Sync and FB, respectively. Alternatively, if fIN1<fIN2, signal RSTB has a second parameter that is related to fIN2−fIN1.
In one embodiment, if fIN1≧fIN2, fRSTB is substantially zero, where fRSTB is the frequency that is associated with signal RSTB. In one embodiment, if fIN1≦fIN2, fRSTA is substantially zero, where fRSTA is the frequency that is associated with signal RSTA.
In one embodiment, at least if 2*fIN2>fIN1>fIN2, fRSTA is substantially equal to fIN1−fIN2. In one embodiment, at least if 2*fIN1<fIN2<fIN1, fRSTB is substantially equal to fIN2−fIN1. The difference between fIN1 and fIN2 is the beat frequency of signals Sync and FB.
Tolerance circuit 530 is configured to provide a status signal (Status) from signals IN1, IN2, RSTA, and RSTB. Further, tolerance circuit 530 is configured to provide signal Status such that signal Status corresponds to a first logic level if the difference between the fIN1 and fIN2 are within a tolerance window, and to a second logic level otherwise. In one embodiment, tolerance circuit 530 is arranged to provide signal Status as follows.
Counter circuit 510 is arranged to receive signal Sync at a clock input of counter circuit 510, and counter circuit 511 is arranged to receive signal FB at a clock input of circuit 511. Further, counter circuit 510 is arranged to increment a first count value when a positive edge occurs in signal Sync. Similarly, counter circuit 511 is arranged to increment a second count value when a positive edge occurs in signal Sync. Although a positive edge triggered condition is described, in other embodiments, counter circuits 510 and 511 may be triggered by a negative edge, level-triggered, and the like.
Additionally, counter circuit 510 is arranged to reset the first count value (e.g. to zero) if signal RSTA is asserted. Similarly, counter circuit 511 is arranged to reset the second count value (e.g. to zero) if signal RSTB is asserted.
Further, counter circuit 510 is configured to provide a first overflow signal (OF—A) at an overflow output such that signal OF—A is asserted if counter circuit 510 overflows. Similarly, counter circuit 511 is configured to provide a second overflow signal (OF—B) at an overflow output of counter circuit 511 such that signal OF—B is asserted if counter circuit 511 overflows.
In one embodiment, counter circuit 510 overflows if fIN1<fIN2+tol1, and counter circuit 511 overflows if fIN2<fIN1+tol2. Accordingly, in this embodiment, counter circuits 510 and 511 both overflow if fIN1−fIN2<tol1 and fiN2−fIN1<tol2. Also, AND gate A1 is arranged to provide signal Status by performing an AND function on signals OF—A and OF—B. Accordingly, signal Status has a high logic level if fIN1 and fIN2 are within the tolerance window of each other, and has a low logic level otherwise. In other embodiments, AND gate A1 may be replaced with another circuit that is configured to provide signal Status using the same truth table as an AND gate, and the like. In one embodiment, tol1 is substantially given by fIN1/(M1*[fIN1−fN2]), where M1 is the maximum count value of counter circuit 510. Similarly, in one embodiment, tol2 is substantially given by fIN2/(M2*[fIN2−fIN1]), where M2 is the maximum count value of counter circuit 511.
In one embodiment, tol1 and tol2 provide the tolerance window, where tol1 is an upper tolerance value for fIN1, and tol2 is a lower tolerance value for fIN1.
The clear logic circuit may be arranged to activate a clear signal (CLR) if signal Q601 and signal RSTA correspond to a first logic level, and arranged to deactivate signal CLEAR if at least one of signal Q601 and signal RSTA corresponds to a second logic level. FF601 may be arranged to set signal Q601 to the first logic level in response to signal Sync if signal CLEAR is deactivated, and arranged to reset signal Q601 to the second logic level if signal CLEAR is activated. FF602 may be arranged to set signal RSTA to the first logic level in response to signal FB if signal CLEAR is deactivated, and arranged to reset signal RSTA to the second logic level if signal CLEAR is activated. FF603 may be arranged to activate signal RSTA in response to signal Sync if signal Q601 corresponds to the first logic level, such that signal RSTA is activated if signal Sync pulses twice before signal CLEAR is activated. FF604 may be arranged to activate signal RSTB in response to signal FB if signal RSTA corresponds to the first logic level, such that signal RSTB is activated if signal FB pulses twice before signal CLEAR is activated.
Frequency detector circuit 620 is arranged such that signals RSTA and RSTB are dependent on fIN1 and fIN2, and such that signals RSTA and RSTB are substantially independent of the phases of signals Sync and FB.
If fNI1≧fIN2, fRSTB is substantially zero. Similarly, if fIN1≦fIN2, fRSTA is substantially zero.
If 2*fIN2>fIN1>fIN2, then FRSTA is substantially given by fIN1−fIN2, and the duty cycle of signal RSTA is substantially 50%. If fIN1>2*fIN2, signal RSTA behaves in a similar manner, except that, occasionally, a pulse of signal RSTA has a pulse duration of 2/fIN1 instead of 1/fIN1. If fiN1>>fN2, fRSTA is substantially the same as fIN2, and the duty cycle of signal RSTA is substantially given by (fIN1−fIN2)/fIN1.
Similarly, if 2*fIN1>fIN2>fIN1, then fRSTB is substantially given by fIN2−fIN1, and the duty cycle of signal RSTB is substantially 50%. If fiN2>2*fIN1, RSTB behaves in a similar manner, except that, occasionally, a pulse of signal fRSTB has a pulse duration of 2/fIN2 instead of 1/FIN2. If fIN1<<fIN2, fRSTB is substantially the same as fIN1, and the duty cycle of signal RSTB is substantially given by (fIN2−fIN1)/fIN2.
Referring back to
If 2*fIN2>fIN1>fIN2, in order for a pulse to occur in signal RSTA for a duration of (N−1) pulses of signal FB, at least N pulses must occur in signal Sync. The Nth pulse of signal Sync must happen sooner than the (N−1)th pulse of signal FB in order to propagate a logic 1 at signal RSTA (i.e. two consecutive pulses of signal Sync with no pulse of signal FB in between).
Accordingly, N*TA<(N−1)*TB, where TA and TB are the periods of signal Sync and signal FB respectively.
=>TB<N*TB−N*TA
=>TB/(TB−TA)<N
=>(1/fIN2)/(1/fN2−1/fIN1)<N
=>fIN1/(fIN1−fIN2)<N
=>(fIN1−fIN2)/fIN1>1/N, for generating a pulse at signal RSTA during the (N)th pulse of signal Sync, i.e. (fIN1−fIN2)/fIN1≦1/N, for no pulse to be generated at signal RSTA during the (N)th pulse of signal Sync.
For example, if C is 5, 32 pulses of signal Sync can overflow the counter. However, if there is one pulse of signal RSTA before 32 consecutive pulses of signal Sync occur, counter 110 does not overflow. If fIN1>2*fIN2, signal Sync does not remain low long enough for counter 110 to overflow. Accordingly, if (fIN1−fIN2)/fIN1≦1/32, counter circuit 110 overflows.
Similarly, if (fIN2−fIN1)/fIN2≦1/32, counter circuit 111 overflows. If counter circuits 110 and 111 both overflow, fIN2 and fIN1 are similar, within ±1/32 tolerance. If counter circuits 110 and 111 both overflow, signal Status corresponds to logic 1.
The time duration, TRSTA, between two single pulses of signal RSTA if fIN1 and fIN2 are close and fIN1>fIN2, is given by
TRSTA/TA−TRSTA/TB=1
=>TRSTA*fIN1−TRSTB*fIN2=1
=>TRSTA=1/(fIN1−fIN2)
=>fRSTA=(fIN1−fIN2)
Delay circuit DL4 is configured to provide signal IN1D from signal Sync. FF1–FF5 are arranged as a register that is configured to store the first count value. Additionally, the register is arranged to be clocked by signal IN1D. HA1–HA5 and INV2 are arranged as a look-ahead logic circuit. Also, OR gate circuit O1 is configured to provide signal Reset from signal POR and signal RSTA.
FF6 and MX2 are arranged to operate as follows. MX2 is arranged to provide signal D6 from signal Q6 such that, when FF6 is clocked, signal D6 has the same logic level as signal Q6 if signal carryA is low, and such that signal D6 is high if signal carryA is high. Signal carryA is high only if counter 710 overflows. Additionally, Q6 is reset to low if signal Reset is high. Accordingly, Q6 is set high only when counter circuit 710 overflows, and only remains high until signal Reset is high.
FF7 is arranged to store the overflow condition. Also, OR gate O2 is arranged to provide signal OF—A such that signal OF—A is high if either Q6 or Q7 are high. If the overflow condition occurs, carryA changes to high, which in turn causes Q6 to change to high, as previously described. Since Q6 is high, OF—A is high. Next, when signal Reset changes to high, Q6 is changed to low, and Q7 is changed to high. At this point, OF—A remains high, since Q7 is high. Q7 remains high until the next leading edge of signal Reset, which causes Q7 to change back to low.
As discussed, FF7 and OR gate O2 are used to temporarily store the overflow condition. If fIN1 is greater than fIN2, even if signal fIN1 is very close to fIN2, signal RSTA still has an occasional pulse. FF7 and OR gate O2 are arranged to prevent Status from immediately changing to low if this happens.
Although one embodiment of counter circuit 710 is described above for illustrative purposes, other embodiments of counter circuit 710 are within the scope of the invention.
The above specification, examples and data provide a description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention also resides in the claims hereinafter appended.
Number | Name | Date | Kind |
---|---|---|---|
4940952 | Kegasa | Jul 1990 | A |
5950115 | Momtaz et al. | Sep 1999 | A |
6307413 | Dalmia et al. | Oct 2001 | B1 |
6566967 | Anumula et al. | May 2003 | B1 |
6642747 | Chiu | Nov 2003 | B1 |
6683930 | Dalmia | Jan 2004 | B1 |