This application claims the priority under 35 U.S.C. § 119 of European Patent application no. 16174626.8, filed on Jun. 15, 2016, the contents of which are incorporated by reference herein.
The present disclosure relates to a method of detecting lock and/or unlock in a phase locked loop, and a phase locked loop comprising a lock/unlock detector.
Phase locked loops (or PLLs) are used to generate an output signal with a defined phase and frequency relationship to an input reference signal. The output signal is matched to the phase of the input reference signal by a feedback loop in which the phase difference between the input reference signal and the output signal is determined by a phase detector. In a digital phase locked loop, the phase detector outputs a digital signal. The output from the phase detector (indicating phase error) is received by a loop filter. The loop filter in turn provides an output signal to a frequency controlled oscillator. In an all-digital phase locked loop, the phase detector may output a digital signal, the loop filter may be a digital loop filter, and the frequency controlled oscillator may be a digitally controlled oscillator.
Phase locked loops may operate in a linear mode, in which the phase detector provides a signal that varies in a linear relationship with the phase error. A phase locked loop may also operate in a “bang-bang” mode, in which the phase detector provides a binary signal, indicating only that the phase error is positive or negative.
It is often desirable to know whether a PLL has achieved phase lock. For instance, in the context of a PLL being used to generate a local oscillator (LO) signal for a tuner, it is desirable to know if and when the PLL reaches a locked state after a tuning action. It is further desirable to know when the system is out of lock, for example, due to temperature drift or an unsuccessful tuning action.
According to a first aspect, there is provided a phase locked loop comprising:
a phase detector, operable in a bang-bang mode to provide a binary phase error signal indicating whether there is a positive or negative phase difference between a reference signal and a feedback signal;
a loop filter configured to provide a control signal derived from the binary phase error signal;
a frequency controlled oscillator configured to receive the control signal and provide an output signal with a frequency that varies according to the control signal; and
a lock/unlock detector configured to determine a lock/unlock state of the phase locked loop, the lock/unlock state derived from a duty cycle and/or spectral content of the binary phase error signal.
The lock detector may comprise a high pass filter configured to receive the phase error signal, and to pass frequencies that correspond with a phase locked state of the phase locked loop.
The lock detector may comprise a rectifier for rectifying the output from the high pass filter to produce a rectified signal.
The lock detector may comprise a low pass filter arranged to receive a signal derived from the rectified signal.
The lock detector may comprise a programmable gain element arranged to receive the rectified signal, and to provide a modified rectified signal to the low pass filter.
The low pass filter and/or high pass filter may be configured such that a filter parameter of the low pass filter and/or the high pass filter can be varied using a control signal.
The low pass filter may be configured to be reset in response to a signal indicating an unlock condition.
The lock detector may comprise an input enable device, configured not to pass the binary phase error signal when a signal indicating an unlock condition is present.
The signal indicating an unlock condition may comprise at least one of: an indication that the phase locked loop is not in bang-bang mode, and an indication that the phase error signal has exceeded a predetermined threshold.
The lock detector may further comprise a comparator configured to compare an output signal from the low pass filter with at least one threshold value, and to output a signal, derived from the comparison, that indicates a criterion for phase lock is met (or that criteria are met).
The lock detector may comprise a timer, the timer configured to output a signal indicative of phase lock only when a signal, indicating a criterion for phase lock is met, has been in a predetermined state for a predetermined period.
The lock detector may comprise a latch that is set by the signal from the timer, and reset by a signal that indicates an unlock condition.
The lock detector may comprise an edge detector, configured to detect edges of the phase error signal.
The lock detector may comprise a low pass filter configured to receive a signal derived from the output of the edge detector.
According to a second aspect, there is provided a receiver comprising the phase locked loop of any preceding claim.
According to a third aspect, there is provided the lock detector of the first aspect.
According to a fourth aspect, there is provided a method of detecting phase lock in a phase locked loop operating in bang-bang mode, comprising determining at least one of duty cycle or a spectral content of a phase error signal.
Each feature of each aspect may be combined with the features of each other aspect, as appropriate. For instance, the lock detector of the fourth aspect may include any of the optional features of the lock detector described with respect to the first aspect.
These and other aspects of the invention will be apparent from, and elucidated with reference to, the embodiments described hereinafter.
Embodiments will be described, by way of example only, with reference to the drawings, in which
It should be noted that the figures are diagrammatic and not drawn to scale. Relative dimensions and proportions of parts of these figures have been shown exaggerated or reduced in size, for the sake of clarity and convenience in the drawings. The same reference signs are generally used to refer to corresponding or similar feature in modified and different embodiments.
In some applications (such as tuners) it is important to know the quality of a local oscillator (LO) signal produced by a phase locked loop (PLL). For example, it may be important to understand if a phase locked loop reaches a lock state after a tuning action, or if the system is out of lock (e.g. due to unsuccessful tuning or a temperature drift). If a tuner comprises a phase locked loop that generates a local oscillator signal, it may be important to minimise the tuning time (i.e. the time for the local oscillator signal to lock onto a new desired frequency and/or phase).
In case of analogue reception like AM/FM the audio is typically muted during a tuning action or background scanning. If the muting interval gets too long it gets audible. Improved lock detection means that reception could start earlier and provide some additional time for background scanning of more channels or for data reception.
In the case of digital reception schemes such as DAB (digital audio broadcasting), a locked state of a PLL generating a LO signal may be determined by identifying that the phase error is below a threshold that is sufficient to avoid lost symbols and date re-synchronization.
The clock 103 is an optional part of the ADPLL 100, and provides a reference frequency signal 123 (e.g. 46.65 MHz). In other embodiments the reference frequency 123 may simply be provided to the ADPLL 100 (e.g. by an external clock).
The reference phase generator 110 comprises an adder 101 and register 102, arranged to integrate an input frequency control word FCW, and thereby provide a reference phase ramp φref.
A phase detector 104 compares the reference phase ramp φref with a feedback ramp φfb derived from the output 127 of the DCO 109, and outputs a phase error signal Δφ. The feedback ramp φv is determined by combining (e.g. by fixed point concatenation) the output from the feedback register 112 and the TDC 107. The phase detector 104 is operable in a “bang-bang” mode, in which the output phase error signal Δφ is binary, either indicating a negative phase error or a positive phase error (e.g. −0.5 and +0.5 as normalised values respectively). The phase detector 104 may also be operable in a linear mode, in which the phase error signal Δφ is proportional to the phase error.
The loop filter 108 receives the phase error signal Δφ, and performs a filtering operation. The loop filter 108 in this example is controlled by a control block 105, which may vary the configuration of the loop filter 108 (e.g. depending on the set FCW, and the loop state). The control block 105 may for example provide proportional gain kp and integral gain parameters ki to the loop filter 108 when in tracking mode.
The loop filter 108 provides three output signals for controlling the DCO 109, these being a process voltage temperature control signal PVT, an acquisition control signal ACQ, and a tracking signal TR. Each of these control signals may control a different switched capacitor bank of the DCO 109, so as to vary the output frequency of the DCO 109. In alternative arrangements a frequency controlled oscillator may be used comprising a digital to analog converter and a varactor.
The output from the DCO 109 is received by the feedback divider 111 and the TDC 107. The TDC 107 measures and quantizes the timing difference between transitions of the reference frequency 123 and the transitions of the ADPLL output signal 127. The feedback register 112 accumulates a count of the transitions in the frequency divided output of the ADPLL in each reference period. The output φf from the TDC 107 is combined with the output φi from the feedback register 112, for instance by concatenation.
As an illustrative example, the output from the DCO 109 may have a frequency of around 4.5 GHz (e.g. 4.665 GHz). The PVT capacitor bank of the DCO 109 may have a tuning resolution of around 10 MHz, the ACQ capacitor bank may have a tuning resolution of around 0.5 to 1 MHz, and the TR capacitor bank may have a tuning resolution on the order of 10 to 50 kHz. The TR mode may be able to handle a 1 MHz frequency offset.
When a new frequency control word FCW is input to the ADPLL 100, the control block 105 sequentially applies the correct loop filter parameters (e.g. ki and kp) to the loop filter 108 so that first the PVT output, then the ACQ output, and finally the TR output can settle. The lock sequence starts with a PVT mode in which the loop filter 108 generates the PVT control signal, with the ACQ and TR control signals set to a neutral value (e.g. 0, where the ACQ and TR signals can be positive and negative).
When the PVT phase is accomplished, the PVT control signal is frozen, and the loop continues in ACQ mode. When the ACQ mode is accomplished, the ACQ word is frozen and the loop enters TR mode. In PVT and ACQ mode, the phase detector 104 may operate in a linear mode. When the loop enters TR mode, the phase detector 104 switches to a bang-bang mode of operation (as described above).
When the phase detector 104 is operating in bang-bang mode, the loop filter 108 may be configured (e.g. in response to a control signal from the control block 105) to change the TR output by a small and constant increment (positive or negative) for each clock cycle that there is a (positive or negative) phase error. A settling period (e.g. with some ringing) may occur when the loop filter 108 is switched to bang-bang mode. In bang-bang mode the ADPLL is not tuning between two states of the phase detector 104 (as in linear mode), but instead around a state (i.e. zero phase error). This means that the phase modulation is smaller than in linear mode, and hence the in-band phase noise performance is considerably better in bang-bang mode than in linear mode.
The phase locked loop 100 further comprises a lock detector 150, configured to determine when the ADPLL 100 is locked and unlocked.
The lock detector 150 is shown in more detail in
The input enable switch 151 passes through the phase error 125 to the rest of the lock detector 150, unless the logic gate 152 indicates that the ADPLL is not in bang-bang mode, in which case a null signal ‘0’ is provided. In the present example, the logic gate 152 receives a
The detector core 200 receives the output from the input enable switch 151 and determines whether the spectral characteristics and/or duty cycle of the phase error is indicative of phase lock. When the ADPLL is in phase lock in bang-bang mode, the phase error will comprise a high frequency signal with a duty cycle of approximately 50%. Either or both of these criteria may be detected by the detector core 200 to indicate phase lock in bang-bang mode.
An example embodiment of a detector core 200 is shown in
The HP filter 220 passes high frequency content (e.g. at the expected frequency with which the bang-bang phase error will switch between +/−0.5 in phase lock) and attenuates lower frequencies (associated with a settling phase).
An example of a suitable architecture for the HP filter 220 is shown in
Returning to
An example architecture for the LP filter 230 is shown in
Returning to
The LP filtered signal 214 from the LP filter 230 is provided to a comparator 205 that determines whether the LP filtered signal 214 has met a predetermined threshold condition (indicative of lock). In the present example, the comparator 205 provides an output signal that indicates when the filtered signal (lp) is within an envelope defined by a low threshold (lock_det_threshold_l) and a high threshold (lock_det_threshold_h), i.e.
Ip>lock_det_threshold_l AND Ip<lock_det_threshold_h
In this example, when this condition is true the comparator output signal 164 indicates this (e.g. by going high). In other embodiments a single threshold may be used, and an output provided when this is exceeded. The present example has a low threshold of around 0.2, and a high threshold of around 0.4 (normalised values compared with 0.25 for a bang-bang ADPLL in which the phase error is varying between −0.5 and +0.5 with a duty cycle of 50%).
The output 164 from the detector core 200 is a signal that indicates that the spectral content and/or duty cycle of the phase error 125 meets a criterion (or criteria) indicative of phase lock in bang-bang mode.
Other arrangements and variations for the detector core 200 are possible. For example, the HP filter 201 may, in some embodiments, be replaced by an edge detector. In other embodiments, the detector core 200 may comprise counters that detect and count high and low events of the phase error 125. The count of high and low within an interval can be compared and if they are sufficiently similar, that may indicate phase lock. The count results may be filtered to avoid false detection of phase lock. One advantage of the embodiment of
The timer 154 and latch 155 are optional features of the lock detector 150 that improve the reliability of lock indication, helping to prevent false indications of lock. The timer 154 is configured to provide an output that indicates whether the detector core 200 output signal 164 has indicated lock for a predetermined threshold period. The latch 155 is set by the timer output signal 165, and reset in response to: the detector core 200 criterion (or criteria) not being met (indicated by the output from the inverter 156); a
The output 166 from the latch 156 is the lock detection signal, and reliably indicates whether lock has been achieved. Furthermore, it will may also rapidly indicate that when unlock occurs.
From t=0 ms to around t=0.09 ms, the ADPLL goes through PVT and ACQ mode, finally entering TR mode just before t=0.1 ms. During PVT and ACQ mode the input enable switch 151 prevents the lock detector 150 receiving any phase error signals, so there is no potential for a false lock indication during this period. When the ADPLL enters TR mode, there is some ringing of the loop filter 108 before it settles. During this ringing period, the amplitude of the phase error 125 is generally greater than 0.5, so the input enable switch 151 does not generally pass any signal to the detector core 200. The ringing of the loop filter 108 generates some non-zero output values from the high pass filter 201 (as it crosses zero), but these are of very short duration, and subsequently do not result in a significant change in the low pass filter output signal 214.
At around t=0.3, the phase error has largely settled to within the bang-bang limits of +/−0.5, but comprises largely low frequency spectral content, which does not result in a consistent response from the HP filter 201. When the ADPLL enters bang-bang mode, at around t=0.45 ms, the phase error starts to vary between −0.5 and +0.5 with a duty cycle of approximately 50%, at high frequency, and this phase error signal 125 is passed through the HP filter 201 and the rectifier 202. The LP filter 204 consequently receives a signal with a DC component, resulting in significant change in the LP filter output signal 214. At t˜0.47 ms, the LP output signal 214 is within the envelope criteria of the comparator 205. The comparator output signal 164 consequently goes high, to indicate that the lock criteria are currently met. This high signal triggers the timer 154, which latches the lock detector output 126 after the output signal 126 has indicated that the lock criteria 251, 252 have been met for a predetermined period, at t˜0.55 ms. The timer can be reset by logic 157 if conditions indicating unlock occur.
One application for a PLL according to the invention may be a communications device, such as a satellite or AM/FM radio receiver. A further application may be a radar chirp generator, e.g. for use in a vehicle proximity detector.
From reading the present disclosure, other variations and modifications will be apparent to the skilled person. Such variations and modifications may involve equivalent and other features which are already known in the art of phase locked loops, and which may be used instead of, or in addition to, features already described herein.
Although the appended claims are directed to particular combinations of features, it should be understood that the scope of the disclosure of the present invention also includes any novel feature or any novel combination of features disclosed herein either explicitly or implicitly or any generalisation thereof, whether or not it relates to the same invention as presently claimed in any claim and whether or not it mitigates any or all of the same technical problems as does the present invention.
Features which are described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, various features which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable sub-combination. The applicant gives notice that new claims may be formulated to such features and/or combinations of such features during the prosecution of the present application or of any further application derived therefrom.
For the sake of completeness it is also stated that the term “comprising” does not exclude other elements or steps, the term “a” or “an” does not exclude a plurality, and reference signs in the claims shall not be construed as limiting the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
16174626 | Jun 2016 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
4423390 | Waters | Dec 1983 | A |
7397881 | Yamazaki | Jul 2008 | B2 |
9614536 | Moehlmann | Apr 2017 | B2 |
20050123087 | Yamazaki | Jun 2005 | A1 |
20080231324 | Liu | Sep 2008 | A1 |
20140354262 | Chen et al. | Dec 2014 | A1 |
Number | Date | Country |
---|---|---|
102009012440 | Sep 2010 | DE |
1 885 067 | Feb 2008 | EP |
Number | Date | Country | |
---|---|---|---|
20170366192 A1 | Dec 2017 | US |