In order to be able to lock to a wide and continuous range of frequencies, phase locked loops (PLLs) typically utilize a wide-tuning voltage controlled oscillator (VCO) and/or require multiple dividers in the feedback path. Wide tuning VCOs, however, exhibit high gain by necessity and therefore are susceptible to higher jitter generation.
To reduce the VCO gain, and therefore reduce the jitter generation due to noise on the control voltage, the VCO is often “broken up” into multiple overlapping frequency tuning ranges—the so-called segmented VCO. In the segmented VCO, a tuning mechanism is used to select a VCO “coarse tune” that generates a frequency that most closely matches the input frequency. A “fine tune” mechanism is then typically used to further adjust the VCO frequency until it exactly matches the input frequency and phase. By using multiple overlapping coarse tunes, the gain of the segmented VCO can be reduced and therefore the susceptibility to noise on the control voltage is also reduced.
The use of a segmented VCO having multiple coarse tunes, however, presents several challenges in the design of a phase locked loop. For example, frequency and phase lock should be maintained on the selected coarse tune in an acceptable frequency band over temperature and supply voltage variations. In addition, frequency and phase lock should be achieved on the correct coarse tune (allowing for frequency variation of the VCO over temperature) even under extreme input conditions where the input frequency to the phase locked loop varies at start-up or where the input frequency changes in an unpredictable manner when the input is switched from frequency A to frequency B (as often happens with frequency synthesizer type sources). And finally, frequency and phase lock should be achieved on the correct coarse tune even when the input frequency changes by incrementally small amounts from an initial lock condition—i.e. there should be no frequency “crawl” beyond the allowable frequency range.
Systems and methods for tuning a phase locked loop (PLL) having a segmented voltage controlled oscillator (VCO) to an input frequency are provided. The PLL is reset and its VCO is coarse tuned until the input frequency is within a first predetermined threshold of the VCO center frequency. The input frequency is then compared to a clock reference signal to determine whether the input frequency has stabilized. After the input frequency has stabilized, the input frequency is continuously monitored by comparing it to the clock reference signal to determine whether the input frequency is varying, and if the input frequency is varying by more than a second predetermined threshold, then the PLL is reset.
In the example implementation of a robust tune-controlled PLL discussed herein, if the input frequency to the PLL is within +/−5% of fcenter, or some other predetermined coarse tuning threshold value, then the VCO control is released and allowed to vary so that the PLL can lock to the input frequency. This is referred to as the “lock and track” region and extends to 5% above and below 18 the center frequency fcenter 20. If the input frequency is not within this lock and track region defined by the coarse tuning threshold value, then the system selects another VCO segment and compares that segment's center frequency to the input frequency to determine if the input frequency is within the locking region. The remaining frequency range beyond +/−5% of fcenter up to fmax is referred to as the “midtrack” region, and is provided to cover the temperature and supply variations of the VCO. This region is defined by the frequency band fmax−(fcenter+5%) on either side of the locking and tracking region.
The methodology and implementation of the locking/tuning control circuit 52 is described in more detail below in reference to
The tuning control circuit 52 also provides a solution to several other problems that exist with PLLs having segmented VCOs. Segmentation of the VCO frequencies introduces the problem of handling switchovers from one range to another and ensuring that once a VCO range is selected it can absorb any variations in the VCO characteristic arising from changes in the operating conditions of the circuit, such as supply voltage and temperature variations.
Another challenge associated with employing a multi-range VCO in a PLL relates to frequency tracking of the system before the input frequency 42 has stabilized. There are two aspects to this problem. The first aspect is the transition in the input frequency 42 as it changes from one frequency to another prior to locking of the loop. If this transition is not fast enough, then the tuning control circuitry 52 may coarse tune the VCO 50 before the input frequency has settled to its final value. In this case, the wrong VCO range may be selected and the PLL may not be able to achieve phase or frequency lock.
The second aspect is the subsequent changing of the input frequency after the PLL has locked. Here, when the input frequency 42 changes, the PLL 40 loses lock and enables the coarse tuning operation once again. But if the input frequency 42 starts to change very slowly to a new, and possibly close frequency, so that the PLL 40 does not lose lock, then the coarse tuning mechanism does not take place and the state of the tune control circuitry does not change. In this situation, and depending in part on the amount of change in the input frequency, the existing VCO 50 range may not be able to maintain the lock anymore and the PLL may lose lock altogether. Moreover, even if phase and frequency lock are achieved at the second frequency, the VCO range may not be wide enough to accommodate the variations in the VCO as a result of changes in the operating conditions of the circuitry, such as power supply and temperature.
The tuning control circuitry 52, as functionally described in more detail below, provides a solution to these challenges in employing a segmented VCO 50. The finite state machine of the turning control circuitry 52 provides several logic mechanisms that when used in conjunction with each other allow the PLL 40 to lock to an incoming frequency 42 within an allowable range of the center frequency of the VCO 50 on a given coarse tune. These logic mechanisms are able to detect small changes in input frequency 42, thus preventing the PLL 40 from tracking changes in input frequency beyond the allowable locking range of the VCO 50. This allows the VCO 50 to retain its built-in margin over temperature and power supply variations.
In one embodiment, the tuning control circuit 52 includes a first circuit to compare the center frequency of the VCO 50 (on a given coarse tune) to the input frequency 42. If the input frequency 42 is more than 5% different (the 5% being user selectable) from the VCO center frequency, then the coarse tune and/or divider 48 is incremented or decremented (unidirectional or bi-directional counter) by 1. If the input frequency 42 is less than 5% away from the VCO 50 center frequency, then the VCO 50 is “released” to try and lock to the input frequency by removing the short from the differential loop filter 46.
In this embodiment of the tune control block 52, a second circuit, operating in parallel with the first circuit, is used to detect when the input frequency 42 has stabilized and to determine when the input frequency 42 has changed by a small amount (preferably<1%, but also user selectable). This is accomplished by comparing the input frequency to a stable clock reference, such as a crystal. In so doing, the input frequency 42 is first compared to the crystal frequency. The value of the input frequency 42 is stored. The input frequency 42 is then measured three more times, for example, over a time period specified by the user. If the three consecutive frequency measurements match the original frequency measurement within a tolerance value, then the input frequency is considered to have “settled.”
During the time that these frequency measurements are made on the input clock 42, the PLL 40 is kept in its reset mode, meaning that it is not allowed to phase or frequency lock by forcing the PLL loop filter 46 voltage to the mid-point, and therefore the VCO at mid-frequency (for the selected coarse tune). The VCO is, however, allowed to change coarse tunes during this reset time due to the simultaneous operation of the first circuit described above.
After the second circuit determines that the input frequency 42 has “settled,” the reset to the PLL 40 is deactivated, and the loop is then free to both phase and frequency lock to the input signal 42. During this phase of operation, the second circuit then continuously monitors the input frequency 42 by comparing it to the crystal frequency. If the input frequency 42 differs from the original “settled” input frequency by more than a threshold, such as a programmable threshold, then the circuitry determines that the input frequency 42 has changed and the PLL 40 will be placed back into the reset mode with the locking cycle beginning anew as described above. This continuous monitoring operation ensures that when there is an input frequency change, the PLL 40 will not phase and frequency track the input frequency outside of the normal operating bounds of the given coarse tune of the VCO 50. If these bounds are exceeded, then the operating margin of the PLL/VCO over temperature or supply voltage variations is reduced and the PLL could lose lock.
Having “reset” the PLL, the methodology of
Turning then to the first phase of the methodology shown in
At step 116, a transition count value is established based upon the current frequency of the input signal and also based upon a signal from frequency divider step 106, which takes as inputs a crystal frequency 102 and a count window size 104. The frequency divider step 106 generates a time window based upon the crystal frequency 102 and a user-specified count window size 104. This time window signal from the frequency divider step 106 is then used in step 116 to count the number of transitions of the input frequency.
Having established the current transition count value of the input frequency at step 116, the method then progresses to step 118 where it is determined if the count cycles variable is still set to zero, meaning that this is the first pass through the algorithm. If so, then control passes to /step 120 where a variable count1 is set equal to the transition count value. If this was not the first pass through the algorithm, then control would pass from step 118 directly to step 122, thereby bypassing step 120, in which a variable count2 is set equal to the current transition count value. The variable count1 is initialized to the first measured transition count value, and subsequent passes through the loop 112-130 set the variable count2 to the current transition count value so that count1 and count2 can be compared to determine if the input frequency is settled.
Step 124 compares count1 to count2 and determines the difference between the two count values, referred to as delta count. This differential count value is then compared at step 128 to a predetermined, and possibly user supplied, first count threshold value 126 to determine whether the difference between count1 and count2 is greater than the threshold value. This first count threshold may be set to detect some percentage change in the input frequency, such as 5% for example. Other percentage values could also be detected based upon the desired precision of the tuning control algorithm.
If the difference between count1 and count2 is greater than the threshold 126, then control passes back to step 112 and the count cycles variable is reset to zero and the settling detection loop 112-130 is restarted. If, however, the delta count value is less than the desired percentage change in the input frequency at step 128, then control passes to step 130 where the count cycles variable is incremented by 1 and the loop reverts to step 114 to check whether the algorithm has looped through the detection step S times. If so, then at step 114 the settling algorithm ends and control passes to steps 132 and 136 via the signal frequency settled 156. If not, then the next settling detection loop is executed.
After the input frequency has settled, as determined by step 114 in
The continuous monitoring operation begins at step 138 in which counters are initialized, including the count cycles variable which is set again to zero. In step 140 the method checks whether count cycles is set to a constant S, which is preferably 4, but could be some other value. The value of S determines how many times the loop 140-148 is executed before checking to determine if the input frequency is slowly varying beyond an acceptable limit. Loop 140-148 determines a current transition count value of the input frequency 144 at step 142 using the same count window from the frequency divider step 106 in
At step 150 the methodology calculates consecutive frequency deltas based upon the stored transition count results from step 146. These consecutive frequency deltas provide a measure of the frequency movement of the input frequency 144. In step 152, the frequency deltas are compared against a second count threshold 126 to determine whether the calculated frequency deltas are within acceptable limits, such as 1% of the input frequency. Although 1% is the preferred allowable delta of the input frequency to maintain lock within the “lock and track” region and to prevent movement into the “midtrack” region, other percentages are also possible. If the frequency deltas are acceptable, meaning that the input frequency has not varied by more than the second count threshold 126, then the counters are reset at step 154 and the continuous monitoring loop 140-148 is repeated. If, however, the frequency deltas are beyond the second count threshold 126 at step 152, then control reverts back to the first phase of the algorithm to step 110 where the PLL is put back into the reset mode and the entire two phase method begins anew. In this manner, frequency stability of the PLL is maintained and guaranteed over variations in supply voltage or temperature, for example.
A circuit implementing the method of
If phase lock is achieved during the phase lock time window 208, then no further action is taken, and control passes to step 212, in which the method continuously determines whether phase and frequency lock are being maintained. If, however, phase lock is not achieved after the phase lock time window 208, or if phase lock is lost (phase lock low) after step 210, then it is assumed that the input frequency has changed. The method then resets the PLL in step 214 to the first coarse tune and resets the VCO to the center frequency. The locking cycle then begins again as described with respect to the first circuit above.
Thus, as described herein, systems and methods are provided that ensure that a multi-range PLL (with a multi-coarse tune VCO) can lock onto the correct coarse tune of the VCO regardless of how the input frequency changes. The systems and methods described herein ensure correct locking over any input frequency regardless of how frequency changes, and allow for a maximum minimum temperature margin of the VCO to be maintained even as frequency changes.
The steps and the order of the steps in the methods and flowcharts described herein may be altered, modified and/or augmented and still achieve the desired outcome. Additionally, the methods, flow diagrams and structure block diagrams described herein may be implemented in the example processing devices described herein by program code comprising program instructions that are executable by the device processing subsystem. Other implementations may also be used, however, such as firmware or even appropriately designed hardware configured to carry out the methods and flow diagrams or implement the structure block diagrams described herein. Additionally, the methods, flow diagrams and structure block diagrams that describe particular methods and/or corresponding acts in support of steps and corresponding functions in support of disclosed software structures may also be implemented in software stored in a computer readable medium and equivalents thereof. The software structures may comprise source code, object code, machine code, or any other persistently or temporarily stored code that is operable to cause one or more processing systems to perform the methods described herein or realize the structures described herein.
This written description sets forth the best mode of the invention and provides examples to describe the invention and to enable a person of ordinary skill in the art to make and use the invention. This written description does not limit the invention to the precise terms set forth. Thus, while the invention has been described in detail with reference to the examples set forth above, those of ordinary skill in the art may effect alterations, modifications and variations to the examples without departing from the scope of the invention.
This application claims priority to U.S. Provisional Application Ser. No. 60/755,757, filed on Jan. 3, 2006, and titled “Robust Locking/Tuning in a Multi-Rate, Multi-Range Phase Locked Loop.” The entirety of this prior application is hereby incorporated by reference into this patent application.
Number | Date | Country | |
---|---|---|---|
60755757 | Jan 2006 | US |