Phase locked loops (PLL) are control systems that generate signals having a fixed relation to the phase of a reference signal. Typically, a phase-locked loop circuit responds to both the frequency and the phase of input signals, raising or lowering the frequency of a controlled oscillator until an oscillator signal is matched with a reference signal in both frequency and phase. Phase-locked loops are widely used in radio, telecommunications, computers, and other electronic applications.
The use of “all-digital phase locked loops” or ADPLLs has become popular. An ADPLL may include the advantages of digital circuits, such as lower power consumption, flexibility, better noise immunity, capability of digital signal processing, so on. A typical ADPLL may include a phase detector, a loop filter, and a digitally controlled oscillator (DCO). In addition, an ADPLL may also include a feedback path from the DCO to the phase detector. The feedback path enables the ADPLL to determine errors in the phase of a generated signal, and to correct such errors. The DCO produces the generated signal with a variable frequency in response to a digital tuning word.
Generally, in the feedback path, the generated (or variable) signal may be converted into a phase signal or a variable phase, for error determination. The variable phase signal is compared to the reference phase signal. The variable phase signal and the reference phase signal should both be in the same clock domain; however, since the frequency of the reference signal and the frequency of the generated signal may not be equal, two clock domains may exist, and in particular, a reference frequency domain and a variable frequency domain.
In order to compare the phases of the variable phase signal and the reference phase signal, the signals may be synchronized. If the signals are not synchronized, the phase of the reference frequency signal may be extracted before it is compared to the phase of the generated signal. To this end, the reference phase signal may be over-sampled by the higher rate variable clock. The resulting retimed reference signal, which is in a third clock domain, is used as a clock for the entire ADPLL.
The reference frequency signal and the variable frequency signal may be converted into phase signals using a frequency to phase converter. A phase error signal may be obtained by subtracting the two signals (i.e., reference phase signal and variable phase signal) using a phase detector. The phase error signal may then be filtered by a loop filter, normalized to make it independent of the DCO gain (and process, voltage, and temperature or “PVT”), and sent to the DCO.
Since three different clock domains (i.e., the reference clock, the variable clock, and the retimed reference clock) are used to compare the two phases, the present phase of the output signal is not exactly known. Since the retimed reference signal has variable shifts, side spurs may appear in the output spectrum. Side spurs may be generated, because the ADPLL operates with a retimed reference clock that is used for the frequency to phase conversion in the feedback path. The retimed reference clock is a delayed version of the reference clock, such that one retimed reference period is an integer multiple of a variable period.
Operating the ADPLL with the retimed reference clock is similar to using a non-uniform sampling frequency, which introduces side spurs. In order to generate a frequency that is a fractional multiple, for example 150¼, of the reference frequency, the retimed reference clock exhibits in one retimed reference cycle 151 variable periods, and in each of the consequent 3 retimed reference cycles, 150 variable periods. On average the ratio will be 150¼.
An issue may be that reference spurs and side spurs may be introduced by injection pulling phenomena. Since an oscillator (i.e., DCO) is not entirely separated from the digital part on the die, the noise of the digital circuit affects the oscillation of the DCO. The digital noise “pulls” the oscillation frequency at rate of the non-uniform retimed reference clock, which introduces besides the reference spurs at multiples of the reference frequency additional spurs, called side spurs.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The same numbers are used throughout the drawings to reference like features and components.
This disclosure is directed towards techniques and methods for converting frequency signals into phase signals using a uniform sampling frequency for an “all-digital phase locked loop” or ADPLL. The ADPLL may be implemented in wireless communication systems, Bluetooth devices, ultra wideband devices, and so on.
The ADPLL may include a phase detector, a loop filter, a digitally controlled oscillator (DCO), and a feedback path with a frequency to phase converter with uniform sampling, where a reference signal includes constant clock periods. The phase detector compares phases of a reference phase signal with a variable feedback phase signal, and generates an error phase signal. The loop filter stabilizes the loop and filters the phase error signal of the phase detector. The DCO may generate a range of frequencies from a fixed time base signal. The DCO generates a variable frequency signal dependent on the error phase signal and the ratio between the variable frequency and the reference frequency may be a fractional number. The variable frequency signal is fed back to the phase detector through the feedback path.
The frequency to phase converter may be implemented in the feedback path of the ADPLL to convert the generated frequency signal back into a phase signal in order for its phase to be compared with the reference phase signal.
The uniform frequency to phase converter may convert frequency signals into phase signals synchronously with use of two clock domains. The phase of the variable frequency signal is extracted with each reference cycle. Thus, the entire ADPLL may be operated with the reference frequency which is uniform instead of the non-uniform retimed reference clock. In other words, a constant or uniform clock period is used. Since the ADPLL avoids re-timing (i.e., non-uniform clock period) of the reference signal (i.e., uniform clock period), side spurs may be eliminated.
In an implementation, the uniform frequency to phase converter separates, and converts, the variable phase signal into an integer variable phase and a fractional variable phase part. The integer phase signal may be derived by first accumulating digital “one” values (i.e., “1”) at the variable frequency signal rate and then re-sampling the accumulated signal with the reference signal. Accumulating “one” values at the generated frequency signal converts the analog frequency signal into a digital phase signal. The digital phase signal, which is denoted as the integer variable phase, is then re-sampled at the reference signal frequency for synchronization. The accumulated number in each reference cycle corresponds to the number of complete cycles of variable periods plus one.
The fractional phase signal may be obtained by first comparing the reference signal and the generated signal using a time to digital converter (TDC). The TDC determines the difference between the phases of the signals and generates a digital output. The digital output may be used to calculate the fractional phase signal. In specific, the TDC output is normalized to one period of variable frequency signal. The normalization is required, because the integer phase is intrinsically similarly normalized.
It is to be appreciated that the order in which the block diagram of
The system 100 may be a communication receiver. To this end, the exemplary system 100 includes an antenna 102, one or more low noise amplifiers (LNA) 104, one or more mixers 106 along with an ADPLL with uniform sampling or ADPLL 108, one or more filters 110, amplifiers 112, and a demodulator 114. In certain implementations, such as “two point modulation”, the mixers 106 may not be used.
The antenna 102 may receive an analog audio signal or a digital signal. The received signal may be in the radio frequency or RF band. The received RF signal is amplified using LNA 104. In an implementation, the LNA 104 amplifies weak signals captured by the antenna 102. The LNA 104 may be placed at the front-end of the system 100. The LNA 104 reduces the noise of the subsequent stages, but inherent noise of the LNA 104 may be added directly into the signal received by the antenna 102. Therefore, it may be necessary for the LNA 104 to boost the desired signal power while adding as little noise and distortion as possible, such that the retrieval of the signal is possible in the following stages of the system 100.
The low noise amplified signal from the LNA 104 is received by mixer 106. The mixer 106 may be a non-linear circuit or device that accepts two different frequencies, and having an output that is a mixture of signals at several frequencies. The mixer 106 may be used in the system 100 in order to convert the RF input signal into an intermediate frequency (IF) signal. An input to the mixer 106 is the input RF signal, while another input is the output of the ADPLL 108. The ADPLL 108 provides precise and controlled frequency signals using a uniform sampling frequency to phase converter (i.e., uniform/constant clock period). The operation of the ADPLL 108 is described in detail with reference to
The mixer 106 produces a summation signal, a difference signal, and the actual (i.e., data) signals. The filter 110 filters out other signals and passes the difference IF signal (i.e., provides a filtered signal). The filter 110 may be an analog filter or a digital filter, depending on design/use of the system 100.
The filtered signal is amplified using the amplifier 112 and sent to the demodulator 114. Depending on the modulation technique used to modulate the filtered signal, a corresponding demodulator 114 may be implemented in the receiver 100. For example, in case of a GSM modulated signal, the demodulator 114 may be an I/Q demodulator. Furthermore, the system 100 may include other devices, such as analog to digital converters, digital to analog converters, loudspeakers, digital signal processors, and other devices, that do not limit the operation of the system 100.
In an implementation with uniform sampling frequency fref with time index n, the reference phase signal φr[n] 202, along with a phase feedback signal φv[n] 212, is received by the phase detector 204. The phase feedback signal φv[n] 212 is obtained by converting a frequency signal fv 214 generated by the DCO 208, into a digital phase signal using the FPC with uniform sampling 210. The phase detector 204 may be digital logic that generates an error phase signal φe[n] 216, which represents the difference in phase between the digital reference phase signal φr[n] 202 and the digital feedback phase signal φv[n] 212.
The loop filter 206 is placed after the phase detector 204 in order to filter the error phase signal φe[n] 216. The loop filter 206 is a digital filter that converts the error phase signal φe[n] 216 into a low-pass filtered digital output Nv[n]. Since the loop filter 206 is digital, its parameters are digital. Therefore, the parameters of loop filter 206 may be easily changed. Furthermore, the loop filter 206 is not expected to suffer from thermal noise, aging, and/or drift. The loop filter 206 may be formed using counters (i.e., up/down counters, N-before-M counters, K-counters, etc.).
The generated frequency signal fv 214 is converted into the digital feedback phase signal φv[n] 212, which is then compared with the phase of the digital reference signal φr[n] 202. The FPC 210 is employed to do the conversion. The FPC 210 is a uniform sampling converter that avoids retiming of the reference clock, which allows the entire system to be clocked with a uniform sampling frequency, or in other words, constant or uniform clock periods. The operation of the FPC 210 is discussed in further detail below in reference to
The reference frequency to phase conversion may be performed in a relatively easier manner, because a reference frequency fref 300 is assumed to be exact, while the information on the variable phase φv 212 is extracted from its physical oscillation in the complex mixed signal feedback path. The reference phase φr[n] 202 may be calculated by accumulating Nr 302 at the rate of the reference frequency, where Nr 302 is the frequency command word that corresponds to the ratio between variable and reference frequency, or in other words, to the desired number of variable periods within one reference period. It is to be noted that Nr 302 may be a fractional number.
The conversion in the feedback path 210 is carried out at a uniform rate that may be similar to the rate of the reference frequency fref 300. The FPC 210 may convert and separate the generated frequency signal fv 214 into an integer phase signal φvint[n] 304 and a fractional phase signal φvfrac[n] 306. The signals φvint[n] 304 and φvfrac[n] 306 are added up to produce φv[n] 212, which is then sent to phase detector 204 for subtraction. In the described implementation the integer part φvint[n] 304 is measured by accumulating “1” value 314 at the rate of the variable frequency fv 214 and sampled with the reference clock fref 300. The fractional part φvfrac[n] 306 (described in more detail below) may be measured with the aid of a time to digital converter, a multiplier, a flip-flop. However, other implementations of equivalent behavior are feasible. The TDC 322 may be implemented in different forms, for example, an implementation is to use an array of inverters with one inverter delay as quantization step.
The signal input to the ADPLL 108 in
fvSS=frefNr (1)
An accumulator 308 converts the frequency command word Nr 302 into the reference phase signal φr[n] 202. The reference phase signal φr[n] 202 is fed to the phase detector 204, where the reference phase signal φr[n] 202 is compared with the variable phase signal φv[n] 212.
The output of the phase detector 204 is the error phase signal φe[n] 216. The error phase signal φe[n] 216 represents the variation in the feedback signal φv[n] 212 in comparison with the reference phase signal φr[n] 202. In other words, the slope of both ramp (i.e., phase) signals must be equal to achieve a constant phase error φe[n] 216, and consequently lock or stabilized. The phase error signal φe[n] 216 may be filtered by the loop filter 206.
The filtered error phase signal is fed to a loop normalization block or circuit 310. The loop normalization block or circuit 310 multiplies the filtered error phase signal with the reference signal fref 300, because an integer change of the input Nr should correspond to a change of fref 300 in the variable frequency fv 214, and normalizes the resultant signal by an estimate of the DCO 208 gain to make it ideally independent of PVT effects; however, since the DCO 208 may suffer from changes in the environment, the DCO 208 gain estimate may be updated from time to time.
The signal obtained after loop normalization and gain normalization is a digital word signal d[n] 312. The DCO 208 generates the frequency signal fv 214 corresponding to the digital word signal d[n] 312. The DCO 208 converts the digital input word d[n] 312 that corresponds to the error phase signal φe[n] 216, into an analog frequency signal fv 214. A part of the generated signal fv 214 is fed back to the phase detector 204 in order to compare the phase of this signal with the digital reference signal φr[n] 202. It is to be noted, that the digital nature of the ADPLL 108 allows various realizations with equivalent behavior.
The DCO 208 generated frequency signal fv 214 is sent to the FPC 210. The FPC 210 converts the variable frequency signal fv 214 into a variable phase signal φv[n] that is separated into the integer phase signal φvint[n] 304 and the fractional phase signal φvfrac[n] 306. The integer phase signal φvint[n] 304 is calculated by accumulating digital value one or “1” 314 at the rate of the generated frequency signal fv 214 in an accumulator 316, and converting the analog generated frequency signal fv 214 into a digital phase signal φvint[i], where i corresponds to the variable frequency fv 214. In an implementation, the output of the accumulator 316 is re-sampled at flip-flop 320-1 by the reference signal fref 300 to produce φvint[n] 304.
Since the frequency command word Nr 302 may be a fractional number, integer accuracy is not sufficient for communication systems. The reference signal fref 300 and the generated frequency signal fv 214 may have different frequencies and their rising edges may not be synchronized. The fractional part of the feedback signal φvfrac[n] 306 is obtained differently from the integer part φvint[n] 304. In an implementation, the generated frequency signal fv 214 is fed to a time to digital converter or TDC 322 along with the reference signal fref 300.
The TDC 322 calculates the time from the rising edge of the generated frequency signal fv 214 until the rising edge of the reference signal fref 300. The TDC 322 converts the calculated time into a digital signal. The digital signal is sent to a second flip-flop 320-2. The digital signal is sampled using the reference signal fref 300. The sampled digital signal is fed to a multiplier 324. At the multiplier 324, the sampled digital signal is normalized by the period of the variable frequency signal fv 214, since integer part of the variable phase φvint[n] 304 calculates the phase with respect to variable periods. The signal ξ[n] 326 equals the fractional phase signal φvfrac[n] 306 of the feedback phase signal φv[n] 212.
The obtained integer part φvint[n] 304 and fractional part φvfrac[n] 306 of the feedback phase signal 212 are added up to produce φv[n] 212, where subtraction is performed by the phase detector 204. In an implementation, the signal φv[n] 212 is the output of the uniform frequency to phase converter 210 and is then fed to the phase detector 204. In other words, at the phase detector 204, φv[n] 212 is subtracted from the reference phase signal φr[n] 202 to obtain the error phase signal φe[n] 216. In certain implementations, the phase detector 204 may be a part of the FPC 210.
Therefore, without the need for oversampling the reference frequency fref 300 by the variable frequency signal fv 214, the variable frequency signal fv 214 is converted into the feedback phase signal φv[n] 212. Since the reference signal fref 300 retiming is not carried out, the generation of side spurs may be eliminated in a uniformly sampled ADPLL 108.
In each reference cycle the frequency to phase converter increases by a value of Nv[n]. The digital signal Nv[n] corresponds to the actual relation between the generated signal fv 214 and reference signal fref 300 of the previous clock cycle. In steady state, the digital signal Nv[n] may converge in steady-state to Nr. Accordingly, the variable phase φv[n] 212 is theoretically given by accumulating Nv[n], as represented by the following equation:
The digital signal Nv[n] may be split into an integer part Nintv[n] 404 and a fractional part Nfracv[n], as represented by the following equation:
N
v
[n]=N
v
int
[n]+N
v
frac
[n] (3)
Substituting equation (3) into equation (2) results in the following equation:
As discussed above, in the feedback loop, the FPC 210 separates and converts the generated signal fv 214 into the integer phase signal φvint[n] 304 and the fractional phase signal φvfrac[n] 306. The integer part φvint[n] 304 is calculated by accumulating digital “ones” or “1” at the generated signal fv 214 rate and resampled by the reference signal fref 300, as represented by the following equation:
Counting the rising edges in each reference cycle is equal to the number of full variable periods plus one period, as shown in the right term of equation (5). Calculation of the fractional part Nfracv[n] is different as compared to the integer part, since the generated signal fv 214 and the reference signal fref 300 have no common domain.
N
frac
v
[n]=ε[n]+ξ[n] (6)
It is noted that ξ[n] 326 is the time from the rising edge of the generated signal fv 214 until the rising edge of the reference signal fref 300 normalized by Tv. The initial phase ε[n] 402 is the time from the rising edge of the reference signal fref 300 until the next rising edge of the generated signal fv 214 normalized by Tv. In an implementation, if Nv[n] is equal to Nv[n−1] for the particular moment, the value of the initial phase ε[n] may be defined by the following equation:
ε[n]=1−ξ[n−1] (7)
Even if Nv[n]≠Nv[n−1], the relation in equation (7) will be approximately correct. The time signal ξ[n] 326 may be measured by the TDC 322. Substituting equation (7) into equation (6) and accumulating Nfracv[n] provides the following equation:
Substituting equation (7) into equation (8), it is determined that the accumulation cancels the difference, assuming that ξ[−1]=0. It is contemplated, that in practice any deviation is a constant error and compensated by the feedback of the ADPLL, as defined by the following equation:
The variable phase is defined as the sum of φvint[n] 304 is defined by equation (5) and φvfrac[n] 306 is defined by equation (9), and resulting in the following equation:
φv[n]=φvint[n]+φvfrac[n] (10)
The generated frequency signal fv 214 is illustrated along with a reference phase 502. The reference phase 502 is a digital signal that increments with every clock cycle. The reference signal fref 300 is also a digital clock signal.
The normalized signal ξ[n] 326 is the time between the rising edges of the generated signal fv 214 until the rising edges of the reference signal fref 300. This signal is measured by the TDC 322 in order to obtain the fractional part φvfrac[n] 306 of the feedback signal φv[n] 212. As timing diagram 500 shows in the first instance, ξ[n] 326 is ¾ of the generated signal fv 214. In the second instance that ξ[n] 326 is measured, ξ[n] 326 is ¼ of the generated signal fv 214, and so on.
The next value in
The integer phase signal φvint[n] 304 of the feedback signal φv[n] 212 is described. The integer phase signal φvint[n] 304 is the number of complete cycles of the generated signal fv 214 before the next rising edge of the reference signal fref 300. The integer phase signal φvint[n] 304 in the first instance is a value of 1. In the second instance, the integer phase signal φvint[n] 304 is a value of 3, in the third instance it is a value of 4, and so on.
Therefore, the total phase of the feedback signal φv[n] 212 is, 1.5, 3, 4.5, 6, etc. Since with the reference signal fref 300 the command word 202 Nr=1.5 is accumulated, the reference phase φr[n] 202 is 1.5, 3, 4.5, 6, etc.
The error phase signal φe[n] 216 is the difference between the phase of the digital reference phase signal φr[n] 202 and the phase of the feedback signal φv[n] 212. In this example, the phase error signal φe[n] 216 is constantly −¼.
At block 602, receiving a frequency feedback signal is performed, using a constant clock period reference signal. This may be performed by the exemplary ADPLL devices and systems as discussed above. The receiving may include receiving the frequency feedback signal corresponding to an error signal of a previous cycle.
At block 604, converting the frequency feedback signal into a digital phase signal is performed. This is particularly performed by uniformly sampling the frequency feedback signal with a uniform reference signal, where the reference signal is a constant clock period reference signal. Furthermore, the frequency feedback signal may be separated into an integer phase signal and a fractional phase signal. The integer phase signal may be obtained by converting the frequency feedback signal into a digital signal and uniformly sampling the digital signal with the uniform reference signal. In an implementation, the fractional phase signal may be obtained by measuring a time difference between rising edges of the frequency feedback signal and the uniform reference frequency signal; converting the time difference into a digital signal; sampling the digital signal with the uniform reference frequency signal; normalizing the sampled digital signal; comparing the normalized digital signal with a time delayed version of the normalized digital signal; and accumulating the compared signal to obtain the fractional phase signal. The uniform sampling may be a synchronous clocking mechanism.
At block 606, sending the fractional phase signal and integer phase signal to a phase detector is performed.
At block 608, comparing the digital phase signal with a reference phase signal is performed to generate an error phase signal. The reference phase signal may be obtained by multiplying the uniform frequency signal with a frequency command word and converting the multiplied signal into a phase signal.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as preferred forms of implementing the claims. For example, the systems described could be configured as monitoring circuits and incorporated into various feedback and control loops.