Calibration method for phase-locked loops and related circuit
12088310 ยท 2024-09-10
Assignee
Inventors
- Davide Nicolo Fortunato (Catania, IT)
- Antonino Calcagno (Messina, IT)
- Marco Vinciguerra (Catania, IT)
- Angelo Scuderi (Catania, IT)
- Gaetano COSENTINO (Catania, IT)
Cpc classification
H03L7/099
ELECTRICITY
H03L7/087
ELECTRICITY
H03L2207/06
ELECTRICITY
International classification
H03L7/099
ELECTRICITY
H03L7/087
ELECTRICITY
H03L7/10
ELECTRICITY
Abstract
A voltage-controlled oscillator in a phase-locked loop circuit is calibrated via a dichotomous search in a set of candidate frequency bands via a sequence of subsequent halving steps that produce reduced subsets of the set of candidate frequency bands. The reduced subsets have respective upper bound values and lower bound values, as well as central values. The central value of the subset resulting from the halving step of index i in the sequence is a function of the average of the upper bound value and the lower bound value of the subset resulting from the halving step of index i?1 in the sequence.
Claims
1. A method of calibrating a voltage-controlled oscillator (VCO) in a phase-locked loop circuit, the method comprising a dichotomous search in a set of candidate frequency bands via a sequence of subsequent halving steps with index i=1, . . . , N that produce reduced subsets of the set of candidate frequency bands, the reduced subsets having respective upper bound values, lower bound values, and central values, a central value of a subset resulting from the halving step of the index i in the sequence being a function of an average of an upper bound value and a lower bound value of a subset resulting from the halving step of index i?1 in the sequence, the method comprising: identifying a desired calibration frequency for the VCO, f_des_cycle, as a number of cycles counted in a reference clock signal; reading a current frequency value, read_freq, which is a function of a current operation frequency of the VCO; performing the dichotomous search by: storing a stored frequency value store_read_freq[i]=read_freq for i=1; and calculating a first modulus value, |f_des_cycle?store_read_freq[i]| and a second modulus value, |f_des_cycle?store_read_freq[i?1]|; checking whether the first modulus value, |f_des_cycle?store_read_freq[i]| is lower than the second modulus value|f_des_cycle?store_read_freq[i?1]|; in response to the checking yielding a positive outcome, performing a further halving step in the dichotomous search with the index i increased by one; or in response to the checking yielding a negative outcome: reducing by one the respective upper bound and lower bound of a current subset in the dichotomous search prior to resuming the dichotomous search in response to read_freq being higher than f_des_cycle plus a tolerance value; or increasing by one the respective upper bound and lower bound of the current subset in the dichotomous search prior to resuming the dichotomous search in response to read_freq being lower than f_des_cycle minus the tolerance value; and calibrating the VCO to a frequency resulting from the dichotomous search.
2. The method of claim 1, comprising starting the dichotomous search by setting a first value for store_read_freq[O]=read_freq without comparisons made.
3. The method of claim 1, wherein the central value of the subset resulting from the i-th halving step in the sequence of subsequent halving steps in the dichotomous search is a nearest integer to the average of the upper bound value and the lower bound value of the subset resulting from the (i?1)-th halving step in the sequence.
4. The method of claim 3, wherein the central value of the subset resulting from the i-th halving step in the sequence of subsequent halving steps in the dichotomous search is a lower nearest integer to the average of the upper bound value and the lower bound value of the subset resulting from the (i?1)-th halving step in the sequence.
5. The method of claim 1, wherein the sequence of subsequent halving steps in the dichotomous search comprises: a first, coarse search section performed with a first value for the tolerance value; and a second, fine search section performed with a second value for the tolerance value, the second value being smaller than the first value.
6. The method of claim 5, wherein the first value and the second value for the tolerance value are six and unity.
7. The method of claim 1, wherein calibrating the VCO includes selectively activating and de-activating capacitors in a set of 2N capacitors in a capacitor bank according to a binary code.
8. The method of claim 7, wherein the dichotomous search includes up to N subsequent halving steps.
9. The method of claim 1, further comprising: setting at least one threshold value for a number of subsequent halving steps in the dichotomous search, and issuing a calibration error message in response to the number of subsequent halving steps in the dichotomous search reaching the threshold value.
10. The method of claim 5, further comprising: setting a first threshold value for a number of subsequent halving steps in the first, coarse search section in the dichotomous search, and issuing a first calibration error message in response to the number of subsequent halving steps in the first, coarse search section in the dichotomous search reaching the first threshold value, and setting a second threshold value for the number of subsequent halving steps in the second, fine search section in the dichotomous search, and issuing a second calibration error message in response to the number of subsequent halving steps in the second, fine search section in the dichotomous search reaching the second threshold value.
11. The method of claim 1, further comprising performing the dichotomous search in an open-loop condition of the phase-locked loop circuit.
12. A phase-locked loop circuit comprising: a voltage-controlled oscillator (VCO); a counter configured to read a current frequency value, which is a function of a current operation frequency of the VCO; and a finite state machine configured to: identifying a desired calibration frequency for the VCO, f_des_cycle, as a number of cycles counted in a reference clock signal; receive from the counter the current frequency value; perform a dichotomous search in a set of candidate frequency bands via a sequence of subsequent halving steps with index i=1, . . . , N that produce reduced subsets of the set of candidate frequency bands, the reduced subsets having respective upper bound values, lower bound values, and central values, a central value of a subset resulting from the halving step of the index i in the sequence being a function of an average of an upper bound value and a lower bound value of a subset resulting from the halving step of index i?1 in the sequence, the dichotomous search comprising the finite state machine configured to: store a stored frequency value store_read_freq[i]=read_freq for i=1; and calculate a first modulus value, |f_des_cycle?store_read_freq[i]| and a second modulus value, |f_des_cycle?store_read_freq[i?1]|; check whether the first modulus value, |f_des_cycle?store_read_freq[i]| is lower than the second modulus value|f_des_cycle?store_read_freq[i?1]|; in response to the check yielding a positive outcome, perform a further halving step in the dichotomous search with the index i increased by one; or in response to the check yielding a negative outcome: reduce by one the respective upper bound and lower bound of a current subset in the dichotomous search prior to resuming the dichotomous search in response to read_freq being higher than f_des_cycle plus a tolerance value; or increase by one the respective upper bound and lower bound of the current subset in the dichotomous search prior to resuming the dichotomous search in response to read_freq being lower than f_des_cycle minus the tolerance value and apply calibration signals to the VCO to calibrate the voltage-controlled oscillator in accordance with a frequency resulting from the dichotomous search.
13. The phase-locked loop circuit of claim 12, wherein the finite state machine is configured to start the dichotomous search by setting a first value for store_read_freq[O]=read_freq without comparisons made.
14. The phase-locked loop circuit of claim 12, wherein the central value of the subset resulting from the i-th halving step in the sequence of subsequent halving steps in the dichotomous search is a nearest integer to the average of the upper bound value and the lower bound value of the subset resulting from the (i?1)-th halving step in the sequence.
15. The phase-locked loop circuit of claim 14, wherein the central value of the subset resulting from the i-th halving step in the sequence of subsequent halving steps in the dichotomous search is a lower nearest integer to the average of the upper bound value and the lower bound value of the subset resulting from the (i?1)-th halving step in the sequence.
16. The phase-locked loop circuit of claim 12, wherein the sequence of subsequent halving steps in the dichotomous search comprises: a first, coarse search section performed with a first value for the tolerance value; and a second, fine search section performed with a second value for the tolerance value, the second value being smaller than the first value.
17. The phase-locked loop circuit of claim 12, wherein the finite state machine configured to calibrate the VCO includes the finite state machine configured to selectively activate and de-activate capacitors in a set of 2N capacitors in a capacitor bank according to a binary code.
18. The phase-locked loop circuit of claim 17, wherein the dichotomous search includes up to N subsequent halving steps.
19. The phase-locked loop circuit of claim 12, wherein the finite state machine is configured to: set at least one threshold value for a number of subsequent halving steps in the dichotomous search, and issue a calibration error message in response to the number of subsequent halving steps in the dichotomous search reaching the threshold value.
20. The phase-locked loop circuit of claim 12, wherein the finite state machine is configured to perform the dichotomous search in an open-loop condition of the phase-locked loop circuit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) One or more embodiments will now be described, by way of example only, with reference to the annexed figures, wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10) Corresponding numerals and symbols in the different figures generally refer to corresponding parts unless otherwise indicated.
(11) The figures are drawn to clearly illustrate the relevant aspects of the embodiments and are not necessarily drawn to scale.
(12) The edges of features drawn in the figures do not necessarily indicate the termination of the extent of the feature.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(13) In the ensuing description, various specific details are illustrated in order to provide an in-depth understanding of various examples of embodiments according to the description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that various aspects of the embodiments will not be obscured.
(14) Reference to an embodiment or one embodiment in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as in an embodiment, in one embodiment, or the like, that may be present in various points of the present description do not necessarily refer exactly to one and the same embodiment. Furthermore, particular configurations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
(15) The headings/references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
(16)
(17) In
(18) The output signal from the PFD 12 is applied to a charge pump (CP) 14 whose output is in turn applied to a (e.g., low-pass) loop filter (LF) 16 to control a voltage-controlled oscillator (VCO) 18.
(19) The VCO outputs an output signal at an oscillation frequency f.sub.out that is proportional to an input voltage applied thereto and phase-locked (hence the designation of the circuit) to the input signal f.sub.ref.
(20) The output signal from the VCO 18 is used to close the loop on the PFD 12 via a 1/N frequency divider 20 that produces the comparison signal at a frequency f.sub.div.
(21) Adequate locking of the PLL is facilitated by the VCO 18 being operated in an analog tuning range capable of synthesizing the frequency f.sub.out of interest.
(22) To that effect, the VCO 18 can be calibrated by opening the loop at a switch S1 upstream of the VCO 18 that is coupled to a reference signal v.sub.ref via a second switch S2 (this is open, that is non-conductive, in normal operation).
(23) Under these conditions, a n-bit (e.g., n=4) automatic frequency control (AFC) code is applied to the VCO 18. As illustrated in
(24) As illustrated in
(25) Architecture and operation of a PLL circuit as discussed so far are conventional in the art, which makes it unnecessary to provide a more detailed description herein.
(26) Architecture and operation of a PLL circuit as discussed herein are otherwise exemplary of a wide variety of PLL architectures where the same issues discussed in the following may arise.
(27) As a consequence, the examples presented herein shall not be construed, even indirectly, as limited to the exemplary architecture of a PLL circuit 10 as discussed herein.
(28) Whatever the specific implementation, a problem (encountered primarily with high-frequency VCOs) in finding an adequate analog tuning range lies that the digital capacitance used to calibrate the VCO 18 exhibits a non-monotonous characteristic. This is related to parasitic connections that cannot be easily balanced for a resonator with many bits.
(29) To summarize: adequate locking of a PLL circuit is facilitated by the VCO therein being in an analog tuning range capable of synthesizing the frequency of interest; PLL performance (primarily low-noise performance) involves a trade-off with the VCO analog tuning range: circuits with a narrow analog tuning range exhibit better phase noise performance; in order to compensate process variation in the synthesized operating frequency, a capacitor bank (e.g., with capacitors suited to individually activated/de-activated) is associated to the VCO 18 controlled by digital switching bits such as, e.g., b.sub.0, b.sub.1, b.sub.2, b.sub.3. For instance (these quantitative figures are merely exemplary) an analog VCO tuning range TR=150 MHz facilitates achieving a total tuning range TR=1.5 GHz (including switching capacitors); and a problem likely to arise in finding a correct analog tuning range lies in that such a digital capacitance provides non-monotonous characteristics, due to parasitic connections that cannot be easily balanced for a resonator with many bits.
(30) Examples discussed herein thus address the problem of automatically finding an analog tuning range at circuit start-up also in the presence of case of a (digital) capacitor bank providing non-monotonous VCO characteristics.
(31)
(32) Unless otherwise indicated, corresponding numerals and symbols in the figures generally refer to corresponding parts: a detailed description will not be repeated for each figure for brevity, being otherwise understood that certain parts or elements being indicated with a same reference in plural figures does not imply that these parts or elements shall be implemented in the same manner.
(33) A PLL circuit 10 as illustrated in
(34) Reference 26 denotes is a counter that counts the divided output frequency NDIV (e.g., 50 MHz=9.6 GHz/192) from the divider 20 and also receives the reference clock signal RefClk that is applied to the PFD 12.
(35) The counter 26 outputs a frequency read_freq towards a finite state machine (FSM) 122. The FSM 122 facilitates calibrating (automatically) the VCO 18 based on the frequency read by the counter 26 via control information (signals) for the VCO 18 designated VCOBAND (coarse calibration) and VCODAC (fine calibration). Calibration of the VCO 18 via the FSM 122 takes place in an open-loop operation, with a switch OL controlled by a signal CPStop from the FSM 122, switched open, that is, made non-conductive (see also the switches S1 and S2 in
(36) The signals VCOBAND (coarse calibration) and VCODAC (fine calibration) facilitate selecting an adequate value for the digital capacitance (e.g., the AFC code comprised of the bit word b.sub.0, b.sub.1, b.sub.2, b.sub.3, . . . , b.sub.n) to achieve a desired frequency of operation of the VCO 18.
(37) As discussed in the following, the FSM 122 is also configured to report end of calibration, as well as error in case of calibration failure.
(38)
(39) The meaning of the blocks in the flow chart of
(40) As noted, from the output of either of blocks 1019 and 1021, or the negative output of block 1020, the procedure evolves towards the idle state of block 1009.
(41) To summarize, the procedure exemplified by the flow chart of
(42) At the end of the count (outcome YES of block 1003), in blocks 1005 and 1007 the frequency read (read_freq) resulting from the VCOBAND coarse calibration (block 1004) is compared in terms of clock cycle number with a parametrized range [f_des_cycle?tol; f_des_cycle+tol] expressed in cycles counted, including a tolerance value tol (e.g., tol=6 for a coarse calibration).
(43) At this point, new extremes and a new center are set in blocks 1006 and 1008 for a new half-range depending on the read_freq value.
(44) If read_freq is higher than f_des_cycle+tol (positive outcome YES of block 1005) a new maximum value (new_max) is set in block 1006 equal to the old one (old_max) with a new center value set to (old_max+old_min)/2 with a new minimum value (new_min) set to the old one (old_min).
(45) If read_freq is lower than f_des_cycle?tol (positive outcome Y of block 1007) new_max is set in block 1008 to the old one (old_max) with a new center value set to (old_max+old_min)/2 with a new minimum value (new_min) set to the old center value (old center).
(46) If read_freq is included in the range [f_des_cycle?tol; f_des_cycle+tol], in response to negative outcomes from both blocks 1005 and 1007, the last value for new_center is chosen as a VCOBAND control value and the count is restarted (block 1010).
(47) This point marks the end of a VCOBAND search (coarse calibration, e.g., tol=6), and the FSM 122 starts a VCODAC search (fine calibration) following steps 1011 to 1021 similar to the steps 1003 to 1008 discussed above, but using a lower tolerance value (e.g., tol=+/?1).
(48) It is otherwise noted that the coarse calibration procedure and the fine calibration may include interval re-assignment options that are mutually complementary (inverted).
(49) The FSM 122 can be configured to perform a dichotomous search as discussed previously based on five (5) states: an INIT state, for initialization and first count; an IDLE state, for halving and for counts; a CAL_VCOBAND state, for read frequency comparison and re-assignment of range extremes for VCOBAND (coarse) calibration; a CAL_VCODAC state, for frequency reading comparison and re-assignment of range extremes for VCODAC (fine) calibration; and an EO_CAL state, for calibration end.
(50) A recovery feature can be envisaged if calibration fails, in order to avoid an infinite bouncing around a certain.
(51) For instance: for VCOBAND (coarse) calibration one can select a 5-bit vector for VCOBAND, with a maximum of 5 internal steps foreseen for calibration (plus 2 of tolerance); for VCODAC (fine) calibration one can select a 9-bit vector for VCODAC with a maximum of 9 internal steps foreseen for calibration (plus 2 of tolerance).
(52) Consequently, a maximum of, e.g., M=7 steps for VCOBAND calibration and of, e.g., M=11 steps for VCODAC calibration can be selected. When the number of steps reaches the relative threshold, an error signal report the failure.
(53) This mode of operation can be implemented in the FSM 122 as exemplified in the flow-chart of
(54) By way of further explanation,
(55) This representation assumes that, at the end of open-loop calibration, the FSM 122 has set, e.g., VCOBAND=14, VCODAC=255 with Vtune=0.5V (these values are, of course, merely exemplary).
(56)
(57) It is again recalled that a four-bit digital capacitor bank based on bits b.sub.0, b.sub.1, b.sub.2, and b.sub.3 (makes it possible to produce 24=16 (sixteen) VCO bands. Referring to a four-bit digital capacitor bank is of course merely exemplary: for instance, five bits and nine bits can be used for coarse tuning (VCOBAND) and fine tuning (VCODAC), respectively.
(58) Whatever the number of bits, since there is a correspondence between the VCO band selected and the capacitors in the bank, a capacitor swap leads to a VCO characteristic swap, that is, to a VCO band being finally implemented which differs from the VCO band selected.
(59)
(60) This issue can be addressed taking advantage of the fact that the read frequency can be expressed in terms of clock cycles of the signal RefClk counted by the counter 26.
(61) For instance (see
(62) Corresponding operation may be based on the procedure exemplified in
(63) Such a procedure can be regarded as an improvement suited to be applied to the procedure exemplified by blocks 1004 to 1012 (coarse calibration) and 1012 to 1021 (fine calibration) in the flow-chart of
(64) The procedure involves defining an entity store_read_freq as an array of N elements, where N is the exponent for which 2{circumflex over ()}N equals the number of capacitors in the digital capacitance (for instance N=2 for a four-bit capacitance b.sub.0, b.sub.1, b.sub.2, b.sub.3), with N representing the max halves number in a dichotomous search procedure.
(65) The procedure also involves the value read_freq for the actual value of frequency read and defining an index i=index from 1 to N.
(66) By referring to the flow-chart of
(67) In the step 3000a (step i=1) a first value is (pre) set for store_read_freq[0]=read_freq without comparisons made.
(68) The step 3000b corresponds to an increase of i by one (i++).
(69) That is, in the step 3000a the first value for store_read_freq[0] is set without making comparisons.
(70) In the step 3000b the value for store_read_freq[1] is set and the first comparison is made, and the procedure goes on with block 3000, where binary search halving is started where store_read_freq[i] is set equal to read_freq (as read from the counter 262 in the block 26).
(71) At block 3001a check is made as to whether
|f_des_cycle?store_read_freq[i]|<|f_des_cycle?store_read_freq[i?1]| with VCOBAND=store_read_freq[i].
(72) In response to the check at block 3001 yielding a positive outcome (YES) the binary search halving index is increased by one (#i+1) at block 3002 and the procedure returns to block 3000.
(73) In response to the check at block 3001 yielding a negative outcome (NO) a check is made in a block 3003 comparing read_freq with f_des plus or minus a tolerance value tol.
(74) If the check of block 3003 indicates (outcome I) that
read_freq<f_des_cycle?tol then, in block 3004: a new minimum value new_min is set equal to the previous minimum value old_min increased by one, namely
new_min=old_min+1 a new maximum value new_max is set equal to the previous maximum value old_max increased by one, namely
new_max=old_max+1.
(75) Conversely, if the check of block 3003 indicates (outcome II) that
read_freq>f_des_cycle+tol then, in block 3005: a new minimum value new_min is set equal to the previous minimum value old_min decreased by one, namely
new_min=old_min?1 a new maximum value new_max is set equal to the previous maximum value old_max decreased by one, namely
new_max=old_max?1
(76) The binary search then proceeds back to block 3000 until the index i reaches the threshold value N.
(77) The diagrams of
(78) The representation of
(79) As discussed, during VCO calibration, the FSM 122 operates in open-loop condition, with a constant Vtune voltage (e.g., 0.5V), with the capability of facilitating PLL lock-in even in conditions of non-monotonicity of the VCO characteristic.
(80) The representation of
(81) As represented in
center=int[(max+min)/2]
where int[.] denotes the (lower) nearest integer value.
(82) As represented in
(83) It will be appreciated that the steps down to the step leading to the central frequency being selected as int [(max+min)/2]=14 involve halving the frequency gamut by cutting at its lower end.
(84) Conversely, the step leading to the central frequency being selected as int [(max+min)/2]=13 marks an inversion with the halved frequency gamut moved leftwards (first extended at its lower end from 13 to 12 and cut at its upper end from 15 to 14 and then further cut at its upper end from 14 to 13 to finally converge to int [(max+min)/2]=12.
(85) Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only without departing from the extent of protection.
(86) The extent of protection is determined by the annexed claims.