The invention relates to a circuit comprising a fractional phase detector and to a method of calibrating such a fractional phase detector.
A digital phase lock loop (DPLL) uses a phase detector to detect a phase difference between a reference signal and a digital controlled oscillator signal. If the edges of digital oscillator (DO) signal are counted the phase of the DO is quantized with accuracy of one DO period. The reference counter accumulates, at every reference clock cycle, a tuning word that express the channel in the units of the reference frequency. In this way the reference counter defines the time points where the DO should be. The phase detector measures the difference between two counters and produced correction signal for the loop.
U.S. Pat. No. 6,429,693 discloses a fractional phase detector that provides for a more refined measurement of phase difference, with an accuracy corresponding to a fraction of the clock period. This may be realized by using a chain of delay circuits to generate successively more delayed versions of the clock signal and sampling these versions at the time of a transition of the reference signal. The delays differ by fractions of the signal periods. From the sampling result the time delay between the clock signal and the reference signal can be determined, expressed in terms of the time delays of the delay circuits. This type of operation is called time to digital conversion (TDC).
Unfortunately, a TDC measures time rather than phase. U.S. Pat. No. 6,429,693 mentions that to convert the measured time into phase, the delay has to be divided by the length of the period of the clock signal, also expressed in terms of the delays of the delay circuits. U.S. Pat. No. 6,429,693 avoids performing this conversion, because it only uses the time measurement as an error signal. However, U.S. Pat. No. 6,429,693 illustrates a phase computation wherein time delays are determined between the transition of the reference signal and both a positive and a negative transition of the clock signal, each in terms of time delays of the delay circuit. The difference between the two time delays represents the time interval between the positive and negative transitions of the clock signal. This difference is used to normalize a time measurement between a transition of the clock signal and the transition of the reference signal. Thus, a phase value is obtained. However, this method may not produce useful result when the period of the reference signal is an integer multiple of the clock signal. Also, different reaction times of the delay line to logical up-down and down-up transitions may affect accuracy.
Among others, it is an object to provide for a calibrated fractional phase measurement.
A circuit comprising a time to digital converter and an oscillator circuit having an oscillator coupled to the time to digital converter, as claimed in claim 1 is provided for. Herein a calibration mode is used, wherein signals with transitions having timing controlled by an oscillator signal to both the input of a delay circuit and a clock input of a sampling register coupled to taps of the delay circuit. A plurality of different transitions of the oscillator signal is selected to control timing of a first active transition at the clock circuit after a transition at the delay circuit input. Resulting data is read from the sampling register for each selection and calibration data for the oscillator signal is determined from the data for the plurality of different transitions. In this way influences of unknown delays may be eliminated. The calibration data may be used for example to control a relative calibration of a less significant part of the phase obtained by the time to digital converter and a more significant part obtained for example by counting periods of the oscillator signal.
In an embodiment the oscillator circuit and the time to digital converter are part of a phase locked loop that also comprises a phase detector that use both the less significant part and the more significant part, calibrated relative to each other to generate a frequency control signal for the oscillator. Thus, jitter due to inaccurate relative calibration may be reduced. In an alternative embodiment a phase demodulation circuit may be realized using such a phase detector, also without a phase locked loop. The calibration data may be programmed programmable translation circuit coupled between the taps and the phase detector. In this way, fast calibration may be realized.
In an embodiment, a polarity selection circuit may be used, configured to select a polarity of a transition in the oscillator signal that controls timing of the first active transition at which the sampling register samples the data from the delay circuit. In this way a fast calibration is made possible.
In an embodiment the feed circuit comprises a pulse suppression circuit, configured to select the transition of the oscillator signal that controls timing sampling after a selectable number of pulses subsequently in the oscillator signal. In this way duty cycle dependence of the calibration may be avoided.
These and other objects and advantageous aspects will become apparent from a description of exemplary embodiments, using the following Figures
In operation the frequency (i.e. phase increment speed) of digital controlled oscillator 10 is controlled in a feed back loop. The phase of the output signal of digital controlled oscillator 10 is compared to a reference and the result of the comparison is used to control adaptation of the frequency of digital controlled oscillator 10. The most significant part of the phase of digital controlled oscillator 10 is defined by accumulated values in accumulator 12.
The reference is represented by first and second reference signals. The first reference signal is applied to the first input of the phase detector 16. The reference signal and the accumulated values may both comprise an integer part representing a count of cycles. Optionally they may contain a fractional part as well. The second reference signal is applied to sampling circuit 19 and to time to digital converter 14. The second reference signal indicates when samples of accumulated values from accumulator 12 must be sampled. The timing of the second reference signal also defines the least significant part of the phase of the reference relative to the output signal of digital controlled oscillator circuit 10. Time to digital converter 14 produces a measurement of the least significant part of the phase difference between the reference and the digital controlled oscillator 10.
Phase detector 16 determines the most significant part of the phase difference from the sample value from the accumulator and the first reference signal and combines it with the least significant part. Phase detector 16 applies the resulting phase difference signal to the frequency control input of digital controlled oscillator 10 via loop filter 18, so that the frequency and phase of digital controlled oscillator 10 is locked to the reference.
Accumulator 12, phase detector 16 and loop filter 18 may be digital signal processing circuits, or they may be implemented using a digital signal processor programmed to perform their respective functions. Similarly, digital controlled oscillator 10 may be partly implemented as a signal processing circuit. These signal processing circuits may operate under control of a clock signal, updating signal values each time at the start of successive clock cycles.
The second reference signal need not be synchronous to this clock signal since the accumulated values from accumulator 12 are sampled under control of the second reference signal sampling circuit 19 which may be constructed to avoid timing problems. In an embodiment, the sampling circuit 19 comprises a synchronous sampling circuit and a clock retimer circuit of a type that is known per se. The clock retimer circuit receives the second reference signal and the output signal of digital controlled oscillator and it is configured to generate signal transitions at time points defined by the output signal of digital controlled oscillator, when enabled by a preceding transition of the second reference signal. The synchronous sampling circuit is coupled between accumulator 12 and phase detector 16, with a clock input coupled to an output of the clock retimer circuit. Thus the synchronous sampling circuit operates in the clock domain of the other signal processing circuits.
Sampling register 24 has data inputs coupled to the taps of delay circuit 22 and a clock input coupled to a second output of feed circuit 20. Sampling register 24 has an output coupled to the output of the time to digital converter via translation circuit 26 and to control circuit 28 (the latter not explicitly shown). Control circuit 28 has control outputs coupled to feed circuit 20 and to translation circuit 26.
Feed circuit 20 comprises a retimer 202, a sampler 204 and a first and second multiplexer 206, 208. Feed circuit has a first and second input 200a, b for a digital clock signal and a reference signal respectively. The first input 200a is coupled to clock inputs of retimer 202 and sampler 204. An output of retimer 202 is coupled to a data input of sampler 204. Sampler 204 has a first and second output for sampled signals and their logical inverse respectively.
First and second multiplexers 206, 208 have an output coupled to the input of delay circuit 22 and the clock input of sampling register 24 respectively. First and second multiplexers 206, 208 have control inputs coupled to control circuit 28. First multiplexer 206 has inputs coupled to first input 200a and to an output of retimer 202. Second multiplexer 208 has inputs coupled to second input 200b and to the outputs of sampler 204. In operation, control circuit 28 switches the time to digital converter between a normal operating mode and a calibration mode. In the normal operating mode control circuit 28 controls multiplexers 206, 208 to pass the signals from first and second inputs 200a, b respectively. As a result the signal from digital controlled oscillator 10, which arrives at first input 200a, is passed to delay circuit 22 and the reference signal, which arrives at second input 200b, is passed to the clock input of sampling register 24. The signal from digital controlled oscillator 10 may be a binary signal. Delay circuit 22 produces variously delayed versions of this signal. Sampling register 24 samples variously delayed versions of the signal from digital controlled oscillator 10 at time points defined by the reference signal. Translation circuit 26 translates the sampled signals into least significant phase difference values, which it applies to phase detector 16. Translation circuit 26 is a programmable circuit, for example a look-up memory, which provides for a programmable translation of sample values into phase difference values.
Control circuit 28 is configured to program the translation based on results obtained in the calibration mode. To obtain these results control circuit 28 may periodically switch the time to digital converter to the calibration mode. In the calibration mode, control circuit 28 controls first multiplexer 206 to pass the signal from retimer 202 to the input of delay circuit 22. Similarly, in the calibration mode control circuit 28 controls second multiplexer 208 to pass a signal from sampler 204 to the clock input of sampling register 24. The calibration modes has two stages that differ in the selection of the output of sampler 204 that is coupled to the clock input of sampling register 24. In the first and second stage second multiplexer 208 couples the clock input of sampling registers 24 to the first and second output of sampler 204 respectively. As a result mutually inverse clock signals will be used in the respective stages.
In the illustrated embodiment the first positive transition in the signals SP, SN from sampler 204 trigger sampling by sampling register 24. The transition that triggers sampling will be termed the first active transition. Of course, the positive transition is an example: instead of being response to a positive clock signal transitions sampling register 24 may be responsive to a negative transition, in which case this will be called the active transition.
Controlled timing of the first active transition dependent on the output signal of digital controlled oscillator 10 is used in calibration. Feed circuit 20 ensures that in the different calibration stages the timing of this first positive transition is controlled by mutually different transitions of the output signal of digital controlled oscillator 10 (different, that is, in their relative position with respect to the last preceding transition of retimed signal RT). In the embodiment of
The first active transition may be generated in various ways. Although
During calibration control circuit 28 receives sampled output signals from sampling register 24. These signals stem from respective taps of delay circuit 22 and indicate whether, at the time of the first rising transition of the output signals SP, SN, the last transition of the retimed signal RT occurred further in the past than the delay associated with the tap. By determining the boundary between the taps for which this is the case and the taps for which this is not the case, the control circuit 28 may obtain quantized estimates of the lengths Tp, Tn of the time intervals between the last transition of the retimed signal RT and the transitions of the output signals SP, SN of sampler 204.
For these lengths the following equations hold:
Tn=Tcvk−To
Tp=Tcvk/2−To
Herein Tcvk is the period of the output signal from digital controlled oscillator 10 and To is an unknown delay due to multiplexers 206, 208, sampler 204, and internal circuits of delay circuit 22 and sampling register 24. From these relations an expression for Tcvk can be derived:
Tcvk=2*(Tn−Tp)
In the calibration mode control circuit 28 sets second multiplexer 208 to pass signals from the first and second output of sampler 204 and reads out signals from sampling register 24, after the different settings. Accordingly, these signals represent the quantized estimates of the lengths Tp, Tn. Subsequently control circuit 28 computes Tcvk from the quantized estimates of the lengths Tp, Tn, consistent with the expression for Tcvk in terms of Tp and Tn. From the computed Tcvk control circuit 128 determines the phase values (time values normalized by Tcvk) associated with the output signals of sampling register 24 that are possible in the normal operating mode, and programs translation circuit 26 to translate these output signals into the phase values that have been determined.
When delay circuit 22 defines equidistant delays, the translation may be programmed using a single calibration factor. When the delays may be unequal, corrected values may be provided in a look-up table for each possible read out. In addition, control circuit 28 may determine the unknown delay To from these measurements and use it to control an offset in the translation of sampled values to phase values.
The use of a pulse suppression circuit has the effect that the measured delay corresponds to
Tn(k)=k*Tcvk−To
Here k is the number of suppressed pulses. Accordingly when two delays Tn(k), Tn(k′) are measured, with different numbers k, k′ of suppressed pulses (one of which may be zero)
Tcvk=(k−k′)*(Tn(k)−Tn(k′))
Control circuit 28 may successively set pulse suppression circuit 40 to suppress different numbers of pulses k, k′ (one of which may be zero) and read out signals from sampling register 24, using these settings. These signals represent the quantized estimates of the lengths Tn(k), Tn(k′). Subsequently control circuit 28 computes Tcvk from the quantized estimates of the lengths Tn(k), Tn(k′), determines the phase values and programs translation circuit 26 to translate the output signals of sampling register 24 into the phase values. In this way it is possible to void duty cycle dependence.
The embodiment of
When the period of digital controlled oscillator 10 is only varied by a small amount the calibration mode need not be performed very often. Basically, a single calibration may suffice for a single frequency. Alternatively periodic calibrations may be performed. In an embodiment, translation circuit 26 may be configured to freeze its output in the calibration mode to a last phase value obtained in the normal operation mode.
Although a specific embodiment has been described it should be understood that other embodiments are possible. For example, instead of using the second reference signal as input for feed circuit 20 in the calibration mode, any other signal may be used, or this signal may be dispensed with by triggering a pulse sequence as shown in
Similarly, instead of using different signals at the clock input of sampling register 24 in the calibration mode, different signals may be applied to the delay circuit 22. Accurate calibration of phase measurements may be performed when the relative delay between the signals at the clock input and sampling register 24 and the input of delay circuit 22 is varied by amounts defined by the period or half period of the output signal of digital controlled oscillator 10.
Control circuit 28 may be implemented using a programmable computer programmed to perform its function. The programmable computer may also be programmed to perform the functions of accumulator 12, phase detector 16, loop filter 18, translation circuit 26 etc.
Instead of using a translation circuit in the time to digital conversion circuit, phase detector 16 may be configured to use information about the oscillator period in terms of delays of delay circuit 22 to control the way in which the more significant part of the phase information is combined with the data obtained by sampling the taps of delay circuit 22. For example, instead of converting time into phase, the information about the oscillator period may be used to convert phase into time. Instead of using the same sampling register both in the calibration mode and the normal operating mode to read delay circuit 22, different sampling registers may be used for this read out in the different modes.
Although an embodiment has been described wherein the time to digital converter is used in a phase locked loop, it should be appreciated that other applications are possible, for example in a digital phase demodulator, wherein the phase difference between digital controlled oscillator 10 and a reference signal is measured without necessarily adapting any frequency, or in a phase locked loop wherein the phase detector is used to control the frequency of a source circuit of the reference signal instead of that of digital controlled oscillator 10.
Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measured cannot be used to advantage. A computer program may be stored/distributed on a suitable medium, such as an optical storage medium or a solid-state medium supplied together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems. Any reference signs in the claims should not be construed as limiting the scope.
Number | Date | Country | Kind |
---|---|---|---|
08159474 | Jul 2008 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2009/058201 | 6/30/2009 | WO | 00 | 3/18/2011 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2010/000746 | 1/7/2010 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
1999707 | Spiegel | Apr 1935 | A |
6429693 | Staszewski et al. | Aug 2002 | B1 |
6754613 | Tabatabaei et al. | Jun 2004 | B2 |
7570182 | Sheba et al. | Aug 2009 | B2 |
7928888 | Chiu et al. | Apr 2011 | B1 |
7932847 | Hsieh et al. | Apr 2011 | B1 |
7978111 | Sun et al. | Jul 2011 | B2 |
8023363 | Huang et al. | Sep 2011 | B2 |
8072631 | Murai et al. | Dec 2011 | B2 |
8106808 | Cohen et al. | Jan 2012 | B1 |
8138958 | Dai et al. | Mar 2012 | B2 |
8164493 | Hsieh | Apr 2012 | B2 |
8174293 | Yoshihara et al. | May 2012 | B2 |
8228219 | Henzler et al. | Jul 2012 | B2 |
20050001656 | Chou | Jan 2005 | A1 |
20060103566 | Vemulapalli et al. | May 2006 | A1 |
20080048791 | Fahim | Feb 2008 | A1 |
Entry |
---|
International Search Report for PCT/EP2009/058201 mailed Oct. 14, 2009. |
Written Opinion for PCT/EP2009/058201 mailed Oct. 14, 2009. |
Number | Date | Country | |
---|---|---|---|
20120019296 A1 | Jan 2012 | US |