Feedback control for accurate signal generation
11152947 · 2021-10-19
Assignee
Inventors
Cpc classification
H03L7/07
ELECTRICITY
H03L7/107
ELECTRICITY
H03L7/146
ELECTRICITY
H03L2207/08
ELECTRICITY
H03L7/143
ELECTRICITY
H04J3/0688
ELECTRICITY
International classification
H03L7/00
ELECTRICITY
H03L7/107
ELECTRICITY
H03L7/14
ELECTRICITY
H03L7/07
ELECTRICITY
Abstract
A phase-locked loop (PLL) performs hitless switching from a first reference clock (ref1) to a second reference clock (ref2) by entering holdover mode (418), and aligning the feedback clock (fbclk) to the second reference clock while in holdover mode. The alignment is performed by adjusting a divisor input (D) for the multi-mode divider (128) that divides the output clock frequency (PLLout) to generate the feedback clock. Other features are also provided.
Claims
1. A method for operating a phase-locked loop (PLL), the method comprising: (1) operating the PLL from a first reference clock; and then (2) switching the PLL from the first reference clock to a second reference clock; and (3) operating the PLL from the second reference clock; wherein operating the PLL from a reference clock which is either one of the first and second reference clocks, comprises generating a PLL output signal and generating a feedback signal from the PLL output signal, wherein generating the PLL output signal comprises; generating, by a first circuit, a first error signal, wherein: in operation (1), the first error signal is indicative of an alignment between the first reference clock and the feedback signal; in operation (3), the first error signal is indicative of an alignment between the second reference clock and the feedback signal; and generating the PLL output signal responsively to the first error signal; wherein switching the PLL from the first reference clock to the second reference clock comprises: placing the PLL in holdover mode, in which the PLL output signal is generated independently from the first and second reference clocks; while in the holdover mode, controlling generation of the feedback signal from the PLL output signal responsively to a second error signal indicative of an alignment between the second reference clock and the feedback signal, the second error signal being generated by a second circuit.
2. The method of claim 1, wherein the feedback signal is obtained using a frequency divider circuit responsive to a divisor signal; and said controlling the generation of the feedback signal comprises controlling the divisor signal responsively to the alignment between the second reference clock and the feedback signal.
3. The method of claim 1 wherein: the PLL comprises a first feedback loop for generating the PLL output signal responsively to an alignment between the feedback signal and the reference clock from which the PLL is being operated; the PLL comprises a second feedback loop for generating a divisor signal responsively to the alignment between the feedback signal and the second reference clock; wherein when the PLL is operated from the first or second reference clock, the first feedback loop is closed, and the second feedback loop is open to generate the divisor signal independently of the feedback signal; wherein in the holdover mode, the first feedback loop is open to generate the PLL output signal independently of the first and second reference clocks, and the second feedback loop is closed to generate the divisor signal responsively to an alignment between the feedback signal and the second reference clock.
4. The method of claim 1 wherein the first and second reference clocks have different frequencies.
5. A phase-locked loop (PLL) comprising: a first feedback loop for generating a PLL output signal responsively to a first error signal indicative of an alignment between a feedback signal and any selected first one of a plurality of reference clocks, wherein the feedback signal is to be generated by the PLL from the PLL output signal and a divisor signal controlling a frequency of the feedback signal based on a frequency of the PLL output signal, the first feedback loop comprising a first circuit configured to generate the first error signal; a second feedback loop for generating the divisor signal responsively to a second error signal indicative of an alignment between the feedback signal and any second one of the plurality of the reference clocks when the PLL is in holdover mode, the second feedback loop comprising a second circuit configured to generate the second error signal; wherein in normal mode, the first feedback loop is closed and the second feedback loop is open; wherein in the holdover mode, the first feedback loop is open and the second feedback loop is closed.
6. The PLL of claim 5, wherein in the normal mode, the divisor signal is independent of the feedback signal.
7. The PLL of claim 5, wherein the alignment between the feedback signal and each one of the first and second reference clocks is an alignment between rising edges of the feedback signal and said each one of the first and second reference clocks.
8. The PLL of claim 5 wherein: the first circuit is analog, the first error signal being an analog; and the second circuit is digital, the second error signal being a digital signal.
9. The PLL of claim 5 wherein the first circuit comprises a phase/frequency detector, and the second circuit comprises a time-to-digital converter.
10. The PLL of claim 5, further comprising a control circuit configured to receive a command for switching from the first one of the plurality of the reference clocks to the second one of the plurality of the reference clocks, and in response to the command to: select the second one of the plurality of the reference clocks; cause the PLL to enter the holdover mode for generating the divisor signal responsively to an amount and sign of misalignment between the feedback signal and the second one of the plurality of the reference clocks; and then exit the holdover mode.
11. The method of claim 1, wherein: the first second is analog, the first error signal being an analog signal; the second circuit is digital, the second error signal being a digital signal.
12. The method of claim 11, wherein the first circuit comprises a phase/frequency detector, and the second circuit comprises a time-to-digital converter.
13. The method of claim 1, wherein: in normal mode in which the PLL is operated from the reference clock, the PLL output signal is generated by a forward path comprising the first circuit, the forward path receiving the feedback signal and the reference clock and generating the PLL output signal; and the second circuit is not part of the forward path.
14. The method of claim 13, wherein the feedback signal is obtained, in the normal and holdover modes, using a frequency divider circuit responsive to a divisor signal; in the holdover mode, the divisor signal is generated responsively to the second error signal without using the forward path.
15. A phase-locked loop (PLL) configured to operate according to the method of claim 1, the PLL comprising the first and second circuits.
16. The PLL of claim 15, wherein: the first circuit is analog, the first error signal being an analog signal; the second circuit is digital, the second error signal being a digital signal.
17. The PLL of claim 16, wherein the first circuit comprises a phase/frequency detector, and the second circuit comprises a time-to-digital converter.
18. The PLL of claim 15, wherein the PLL comprises a forward path comprising the first circuit, the forward path receiving the feedback signal and the reference clock and generating the PLL output signal; and the second circuit is not part of the forward path.
19. The PLL of claim 15, further comprising a frequency divider circuit responsive to a divisor signal; and said controlling the generation of the feedback signal in the holdover mode comprises controlling the divisor signal responsively to the second error signal.
20. The PLL of claim 18, further comprising a frequency divider circuit responsive to a divisor signal to generate the feedback signal in normal mode in which the PLL is operated from the reference clock, and in the holdover mode; wherein in the holdover mode, the divisor signal is generated responsively to the second error signal without using the forward path.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DESCRIPTION OF SOME EMBODIMENTS
(8) The embodiments described in this section illustrate but do not limit the invention. The invention is defined by the appended claims.
(9)
(10) PLL 300 includes two feedback loops: 304 and 308. These loops share a multi-mode divider (MMD) 128. In loop 308, divisor circuit 320 provides a digital divisor output (D) to MMD 128. In normal operation, loop 308 is open, and the divisor D can be generated as a fixed value N, as in
(11) In holdover mode, loop 304 is open, and loop 308 is closed to control the divisor D to align the fbclk clock with refclk. But refclk is switched to a new reference clock, so fbclk is in fact aligned with the new reference clock in holdover. The PLL output PLL.sub.out is maintained at a constant frequency, and is isolated from the refclk input in holdover mode; the PLL.sub.out isolation from refclk can be performed as in prior art or in some other way; see for example U.S. Pat. No. 5,726,607, issued Mar. 10, 1998, incorporated herein by reference; and U.S. Pre-Grant Patent Publications US 2010/0123496 A1, US 2015/0180409 A1, and US 2019/0007055 A1, all incorporated herein by reference.
(12) Each of loops 304, 308 can be analog, digital, or hybrid (mix of analog and digital circuits). For illustration purposes, in some examples described below, loop 304 is analog and loop 308 is digital.
(13) PLL 300 is placed in holdover mode by asserting a holdover-enable signal H_en generated by PLL controller 350. In normal operation (step 410 in
(14) At step 414, controller 350 receives a command (“CMD”) to switch the reference clock from ref1 to ref2 or vice versa. The command can be triggered by malfunction of the current reference (e.g. ref1), or manually, or in some other way.
(15) In response (step 418), controller 350 asserts the signal H_en to place the PLL in holdover mode. Loop 304 is broken to cause the PLL output PLL.sub.out to be independent of refclk. Loop 308 is closed.
(16) Also, oscillator select signal 214 is changed to select the new reference ref2. MUX 210 provides the new reference as refclk.
(17) While in holdover (step 422), loop 308 operates to align the feedback clock fbclk with the new reference, now provided as refclk. Specifically, divisor circuit 320 compares refclk with fbclk, and outputs a divisor D to reduce misalignment between refclk and fbclk.
(18) When the alignment has been achieved (possibly as determined by divisor circuit 320), controller 350 deasserts the signal H_en to exit the holdover mode (step 426). The clock generator returns to normal operation (step 410) with the new reference clock being selected.
(19)
(20) In some embodiments, divisor circuit 320 determines D2 as follows. Let Tr and f.sub.r denote, respectively, the period and frequency of the reference clock refclk (i.e. the new reference; of note, ref1 and ref2 may or may not have the same frequency). Then:
t2=t1+Tr=t1+1/f.sub.r (1)
(21) Let T1 denote the fbclk period at time t1, and T2 denote the fbclk period after time t1, and in particular at time t2. Then in order for the refclk and fbclk rising edges to be aligned at the time t2, the following relation is needed:
t2=t1+ΔT+T2 (2)
(22) Equations (1) and (2) mean that:
T2=Tr−ΔT (3)
(23) Let f.sub.out denote the frequency of PLL output PLL.sub.out. Due to MMD 128, the fbclk period T2 at time t2 should be D2/f.sub.out:
T2=D2/f.sub.out
(24) Combining this with equation (3), we obtain:
D2=f.sub.out*(Tr−ΔT) (4)
(25) In some embodiments, divisor circuit 320 measures ΔT at time t1+ΔT or shortly thereafter, and immediately sets the divisor D output to D2 per equation (4).
(26) In some embodiments, in holdover, the PLL output frequency four is maintained at the same value as immediately before the holdover, i.e.
f.sub.out=1/Tr.sub.0*N (5)
(27) where Tr.sub.0 is the refclk period before the holdover. Also, in some embodiments, ref1 and ref2 have the same frequency, i.e. Tr=Tr.sub.0. In such cases, equation (5) implies that f.sub.out*Tr=N, so equation (4) can be re-written as:
D2=N−f.sub.out*ΔT (6)
(28) In such cases, divisor circuit 320 determines D2 per equation (6).
(29) The above equations assume that refclk leads fbclk. But if, at any time, fbclk leads refclk, then equation (4) can be replaced by:
D2=f.sub.out*(Tr+ΔT) (4′)
(30) where ΔT is the time from the rising edge of fbclk to the rising edge of refclk. Similarly, equation (6) can be replaced by:
D2=N+f.sub.out*ΔT (6′)
(31) In some embodiments, divisor circuit 320 measures the times ΔT between every two consecutive rising edges of refclk and fbclk. For each two consecutive ΔT values, circuit 320 determines the smallest value. If the smallest ΔT value is from the rising edge of refclk to the rising edge of fbclk, then circuit 320 uses equation (4) or (6); otherwise equation (4′) or (6′) is used.
(32) Other techniques can also be used to determine the D value, including programmable-integral-differential control or other types of techniques.
(33) In some embodiments, circuit 320 uses a microprocessor to calculate the divisor D2 using any techniques described above.
(34)
(35) Digital low-pass filter (DLPF) 618 removes high-frequency components from the DSM output to improve the D signal stability. Adder 622 adds the N value to the DSM output per equation (6) or (6′). The adder output is coupled by multiplexer 650 to the D output; MUX 650 selects the adder 622 output when H_en is asserted. The D output is connected to MMD 128. In some embodiments, TDC 610, DSM 615, DLPF 618, and adder 622 are conventional circuits.
(36) When H_en is deasserted (normal mode), multiplexer 650 provides the N value to the D output. In some embodiments, the N value is different depending on which of the ref1 and ref2 clocks is selected by MUX 210.
(37)
(38)
(39) The other comparator input 820i2 is connected to the input of VCO 150 through a switch 842 controlled by H_en and closed in holdover mode, i.e. when H_en is asserted. The input 820i2 is also connected to the output of DAC 830, whose input is connected to the output of increment/decrement logic 840 through switch 844 controlled by H_en to be closed in normal mode (when H_en is deasserted). Logic 840 is clocked by refclk.
(40) In normal mode, the forward path 310 and MMD 128 (
(41) In holdover mode, the DAC is disconnected from logic 840 by switch 844; the DAC's output is latched by the DAC and provided to the input of VCO 150 through switch 842. The VCO is isolated from LPF 154 by switch 810. The VCO output maintains the PLL.sub.out frequency corresponding to the DAC output voltage.
(42) This forward path implementation is exemplary and not limiting.
(43)
(44) In
(45) In some embodiments more than two oscillators 110 are provided, with more than two reference clocks.
(46) Some embodiments of the invention are defined by the following clauses.
(47) Clause 1 defines a method for operating a phase-locked loop (PLL), the method comprising:
(48) operating the PLL from a first reference clock (e.g. at step 410); and then
(49) switching the PLL from a first reference clock to a second reference clock (e.g. steps 414 to 426); and
(50) operating the PLL from the second reference clock;
(51) wherein operating the PLL from a reference clock which is either one of the first and second reference clocks, comprises generating a PLL output signal from the reference clock and generating a feedback signal from the PLL output signal;
(52) wherein switching the PLL from the first reference clock to the second reference clock comprises:
(53) placing the PLL in holdover mode, in which the PLL output signal is generated independently from the first and second reference clocks;
(54) while in the holdover mode, controlling generation of the feedback signal from the PLL output signal responsively to an alignment between the second reference clock and the feedback signal.
(55) 2. The method of clause 1, wherein the feedback signal is obtained using a frequency divider circuit responsive to a divisor signal; and
(56) said controlling the generation of the feedback signal comprises controlling the divisor signal responsively to the alignment between the second reference clock and the feedback signal (e.g. alignment between fbclk and ref2 or refclk).
(57) 3. The method of clause 1 or 2 wherein the alignment between the second reference clock and the feedback signal is an alignment between rising edges of the second reference clock and the feedback signal.
(58) 4. The method of any preceding clause wherein the PLL comprises a reference input to receive the reference clock from which the PLL is operated; and
(59) the alignment between the second reference clock and the feedback signal is an alignment between rising edges of the reference clock at the reference input and the feedback signal.
(60) 5. The method of any preceding clause, wherein:
(61) the PLL comprises a first feedback loop for generating the PLL output signal responsively to an alignment between the feedback signal and the reference clock from which the PLL is being operated;
(62) the PLL comprises a second feedback loop for generating the divisor signal responsively to the alignment between the feedback signal and the second reference clock;
(63) wherein when the PLL is operated from the first or second reference clock, the first feedback loop is closed, and the second feedback loop is open to generate the divisor signal independently of the feedback signal;
(64) wherein in holdover mode, the first feedback loop is open to generate the PLL output signal independently of the first and second reference clocks, and the second feedback loop is closed to generate the divisor signal responsively to an alignment between the feedback signal and the second reference signal.
(65) 6. The method of any preceding clause, wherein the first and second reference clocks have the same frequency.
(66) 7. The method of any one of clauses 1 through 5, wherein the first and second reference clocks have different frequencies.
(67) 8. A phase-locked loop (PLL) comprising:
(68) a first feedback loop for generating a PLL output signal responsively to an alignment between a feedback signal and a selected one of a plurality of reference clocks, wherein the feedback signal is to be generated by the PLL from the PLL output signal and a divisor signal controlling a frequency of the feedback signal based on a frequency of the PLL output signal;
(69) a second feedback loop for generating the divisor signal responsively to an alignment between the feedback signal and one of the reference clocks when the PLL is in holdover mode;
(70) wherein in normal mode, the first feedback loop is closed and the second feedback loop is open;
(71) wherein in holdover mode, the first feedback loop is open and the second feedback loop is closed.
(72) 9. The PLL of clause 8, wherein in normal mode, the divisor signal is independent of the feedback signal.
(73) 10. The PLL of clause 8 or 9, wherein the alignment between the feedback signal and one of the reference clocks is an alignment between rising edges of the feedback signal and said one of the reference clocks.
(74) 11. The PLL of clause 8, 9, or 10, wherein the first and second reference clocks have the same frequency.
(75) 12. The PLL of clause 8, 9, or 10 wherein the first and second reference clocks have different frequencies.
(76) 13. The PLL of any one of clauses 8 through 12, further comprising a control circuit configured to receive a command for switching from one of the reference clocks to another one of the reference clocks, and in response to the command to:
(77) select said other one of the reference clocks;
(78) cause the PLL to enter holdover mode for generating the divisor signal responsively to an alignment between the feedback signal and said other one of the reference clocks; and then
(79) exit holdover mode.
(80) 14. A clock generator comprising:
(81) a plurality of inputs for receiving a plurality of reference clocks;
(82) a reference clock selector for selecting one of the reference clocks;
(83) an oscillator for generating an output clock;
(84) a first circuit for controlling the oscillator based on the reference clock selected by the selector;
(85) a multi-mode divider for generating a feedback signal in response to the output clock and a divisor signal;
(86) wherein in normal mode, the first circuit is responsive to the feedback signal in controlling the oscillator to improve an alignment between the feedback signal and the selected reference clock, but in holdover mode the output clock is independent of the alignment between the feedback signal and the selected reference clock;
(87) wherein the clock generator further comprises a divisor circuit for generating the divisor signal;
(88) wherein in holdover mode, the divisor circuit is responsive to the selected reference clock to generate the divisor to improve the alignment between the feedback signal and the selected reference clock, but in normal mode the divisor signal is independent of the alignment between the feedback signal and the selected reference clock.
(89) 15. The clock generator of clause 14 wherein all the reference clocks have the same frequency.
(90) 16. The clock generator of clause 14 wherein at least two of the reference clocks have different frequencies.
(91) 17. The clock generator of any one of clauses 14 through 16, further comprising a control circuit configured to receive a command for switching from one of the reference clocks to another one of the reference clocks, and in response to the command to:
(92) select said other one of the reference clocks;
(93) cause the clock generator to enter holdover mode to improve the alignment between the feedback signal and said other one of the reference clocks; and then
(94) exit the holdover mode.
(95) The invention is not limited to the embodiments described above. Other embodiments and variations are within the scope of the invention, as defined by the appended claims.