[go: up one dir, main page]

CN119543932A - Phase-locked loop circuit, lock detection circuit and method - Google Patents

Phase-locked loop circuit, lock detection circuit and method Download PDF

Info

Publication number
CN119543932A
CN119543932A CN202411637465.8A CN202411637465A CN119543932A CN 119543932 A CN119543932 A CN 119543932A CN 202411637465 A CN202411637465 A CN 202411637465A CN 119543932 A CN119543932 A CN 119543932A
Authority
CN
China
Prior art keywords
phase
output
voltage
locked loop
output end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411637465.8A
Other languages
Chinese (zh)
Inventor
史靖炜
金岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Panchip Microelectronics Co ltd
Original Assignee
Shanghai Panchip Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Panchip Microelectronics Co ltd filed Critical Shanghai Panchip Microelectronics Co ltd
Priority to CN202411637465.8A priority Critical patent/CN119543932A/en
Publication of CN119543932A publication Critical patent/CN119543932A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

本发明提供一种锁相环电路、锁定检测电路和方法,检测锁相环电路中输入鉴频鉴相器的参考时钟信号和反馈时钟信号之间的相位差是否小于预定时间窗,检测锁相环电路中的控制电压是否在预定电压范围内,当相位差小于预定阈值且控制电压在预定电压范围之内时,在参考时钟信号上升沿来临时进行计数值加1操作,且在计数值大于设定值时输出第二标志位表示相位环锁定,当相位差不小于预定阈值和/或控制电压不在预定电压范围内时,计数值清零输出第一标志位表示相位环失锁。简洁明了易操作,可以和状态机联合工作,避免由于温度、电压变化导致的环路失锁问题。

The present invention provides a phase-locked loop circuit, a lock detection circuit and a method, which detect whether the phase difference between the reference clock signal input to the frequency detector and the feedback clock signal in the phase-locked loop circuit is less than a predetermined time window, and detect whether the control voltage in the phase-locked loop circuit is within a predetermined voltage range. When the phase difference is less than a predetermined threshold and the control voltage is within the predetermined voltage range, the count value is added by 1 when the rising edge of the reference clock signal comes, and when the count value is greater than a set value, a second flag is output to indicate that the phase loop is locked, and when the phase difference is not less than a predetermined threshold and/or the control voltage is not within the predetermined voltage range, the count value is cleared and the first flag is output to indicate that the phase loop is unlocked. The circuit is concise, clear and easy to operate, and can work in conjunction with a state machine to avoid the problem of loop unlocking caused by temperature and voltage changes.

Description

Phase-locked loop circuit, lock detection circuit and method
Technical Field
The present invention relates to the field of phase-locked loop locking detection technology, and in particular, to a phase-locked loop circuit, a locking detection circuit and a method.
Background
For the phase-locked loop, when the output frequency fout of the voltage-controlled oscillator works at a set target frequency, the frequencies of the feedback clock and the reference clock which are divided by the N-bit frequency divider are equal, the phases are aligned, so that the up current and the down current of the input charge pump are conducted together and are also turned off together, the loop filter is not charged or discharged, the control voltage of the output of the filter is kept unchanged, and at the moment, the phase-locked loop is locked. Thus, it is possible to determine whether the phase locked loop is locked by monitoring whether the control voltage is at a dc level. In practical applications, when the ambient temperature (T in fig. 1) or the power supply voltage (V in fig. 1) is changed, the inductance and capacitance in the vco will also change slightly, which will shift the control voltage-output frequency curve in fig. 1 up or down as a whole. Further, since the set target frequency is not changed, the locked control voltage Vctrl voltage is changed from V1 to V2 or V3. Such a control voltage Vctrl is very disadvantageous for the charge pump, in which the current tube has entered the linear region, the current is severely mismatched, and even the current mirror has not operated properly, resulting in loss of lock of the loop. The above situation will be more serious for application scenarios where the voltage controlled oscillator gain is small.
In the prior art, whether a loop is locked or not is judged by testing the voltage value of the control voltage Vctrl, and the Vctrl needs to be pulled from inside to outside of the chip for voltage testing, which occupies a precious input/output port. And after each time the target lock frequency point is switched, whether the loop is locked or not needs to be judged in a test mode. The conventional method does not monitor the voltage value of Vctrl in real time when in use, so Vctrl may be changed to an unfavorable voltage value due to temperature or power supply voltage, resulting in the loss of lock of the phase-locked loop.
Disclosure of Invention
Based on the above problems, the invention provides a phase-locked loop circuit, a lock detection circuit and a method, which only solve the technical problems of low reliability and the like in the prior art of detecting the locking of the phase-locked loop.
A lock detection circuit for a phase locked loop circuit, comprising:
The phase difference detection module is used for detecting whether the phase difference between a reference clock signal and a feedback clock signal input into the phase-locked loop circuit is smaller than a preset time window or not, so as to obtain a first detection result;
The voltage detection module is used for detecting whether the control voltage in the phase-locked loop circuit is in a preset voltage range or not to obtain a second detection result;
The judging module is respectively connected with the phase difference detection module and the voltage detection module and is used for generating an accumulated control signal when the first detection result is that the phase difference is smaller than a preset time window and the second detection result is that the control voltage is within a preset voltage range;
the counter module is connected with the judging module and is used for:
When receiving a zero clearing control signal, performing count value zero clearing operation and outputting a first flag bit;
And outputting a second flag bit when the count value is greater than the set value.
Further, the phase difference detection module includes:
The two input ends of the NOR gate respectively receive a first output signal and a second output signal of the phase frequency detector;
The D input end of the first trigger is connected with the output end of the NOR gate;
the input end of the first inverter is connected with the output end of the NOR gate;
The D input end of the second trigger is input with a high level, and the clock input end of the second trigger is connected with the output end of the first inverter;
The input end of the delay line is connected with the Q output end of the second trigger, the output end of the delay line is connected with the reset end of the second trigger, and the size of the preset time window is determined by the delay line;
The input end of the second inverter is connected with the Q output end of the second trigger;
the clock input end of the first trigger is connected with the output end of the second inverter;
The Q output end of the first trigger is used as the output end of the phase difference detection module and outputs a first detection result to the arbitration module.
Further, the voltage detection module includes:
the positive input end of the first comparator inputs a first reference voltage, and the negative input end of the first comparator inputs a control voltage;
the positive input end of the second comparator inputs the control voltage, and the negative input end of the second comparator inputs the second reference voltage;
The first input end of the first AND gate is connected with the output end of the first comparator, and the second input end of the first AND gate is connected with the output end of the second comparator;
the output end of the first AND gate is used as the output end of the voltage detection module, and outputs a second detection result to the arbitration module;
Wherein the first reference voltage is greater than the second reference voltage.
Further, the arbitration module is a second AND gate;
the first input end of the second AND gate is connected with the output end of the phase difference detection module, and the second input end of the second AND gate is connected with the output end of the voltage detection module;
the output end of the second AND gate is used as the output end of the arbitration module and is connected with the counter module.
Further, the delay line is a 2-bit programmable delay line.
A phase locked loop circuit comprising:
a lock detection circuit for a phase locked loop circuit as described above;
The phase frequency detector is used for generating a first output signal and a second output signal according to the reference clock signal and the feedback clock signal;
the input end of the charge pump is connected with the output end of the phase frequency detector and is used for generating control voltage according to the first output signal and the second output signal;
The input end of the loop filter is connected with the output end of the charge pump and is used for filtering the control voltage generated by the charge pump;
The input end of the voltage control oscillator is connected with the output end of the loop filter and is used for generating output frequency according to the filtered control voltage;
the input end of the frequency dividing module is connected with the output end of the voltage control oscillator, and the output end of the frequency dividing module is connected with the feedback input end of the phase frequency detector and is used for carrying out frequency dividing processing on the output frequency to generate a feedback clock signal to the phase frequency detector;
the input end of the phase difference detection module in the locking detection circuit is connected with the output end of the phase frequency detector;
The input end of the voltage detection module in the locking detection circuit is connected with the output end of the loop filter.
Further, the frequency dividing module includes:
The N-bit frequency divider is used for dividing the output frequency to obtain a feedback clock signal;
The input end of the Sigma-delta modulator is connected with the output end of the N-bit frequency divider, and the output end of the Sigma-delta modulator is connected with the N-bit frequency divider and is used for modulating signals during frequency division processing of the N-bit frequency divider.
A lock detection method for a phase locked loop circuit, using a lock detection circuit for a phase locked loop circuit as described above, comprising:
Step A1, detecting whether the phase difference between a reference clock signal and a feedback clock signal input into a phase frequency detector in a phase-locked loop circuit is smaller than a preset time window, and detecting whether a control voltage in the phase-locked loop circuit is within a preset voltage range:
When the phase difference is not smaller than the preset time window and/or the control voltage is not in the preset voltage range, executing the step A2;
When the phase difference is smaller than the preset time window and the control voltage is within the preset voltage range, executing the step A3;
a2, performing count value zero clearing operation and outputting a first flag bit;
step A3, performing a count value incrementing by 1 when the rising edge of the reference clock signal comes, and then performing step A4:
step A4, judging whether the count value is larger than a preset value:
if yes, executing the step A5;
if not, returning to the step A1;
and step A5, outputting a second flag bit.
The invention has the beneficial technical effects that by arranging the locking detection circuit, the phase difference of the reference clock signal and the feedback clock signal is detected for a long period, the control voltage Vctrl is detected in real time, and the final detection result is output in the form of the flag bit, so that the invention is simple and clear and easy to operate, can work in combination with a state machine, and can avoid the problem of loop unlocking caused by temperature and voltage changes.
Drawings
FIG. 1 is a graph of output frequency versus control voltage in a prior art VCO;
FIG. 2 is a block diagram of a lock detection circuit according to the present invention;
FIG. 3 is a circuit block diagram of the lock detection circuit of the present invention;
FIG. 4 is a circuit timing diagram of the lock detection circuit of the present invention;
FIG. 5 is a circuit block diagram of a phase locked loop circuit of the present invention;
Fig. 6 is a flow chart illustrating steps of a lock detection method for a pll circuit according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
Referring to fig. 2, the present invention provides a lock detection circuit for a phase locked loop circuit, comprising:
The phase difference detection module (11) is used for detecting whether the phase difference between a reference clock signal and a feedback clock signal input into the phase-locked loop circuit is smaller than a preset time window or not to obtain a first detection result;
The voltage detection module (12) is used for detecting whether the control voltage in the phase-locked loop circuit is in a preset voltage range or not to obtain a second detection result;
The judging module (13) is respectively connected with the phase difference detecting module (11) and the voltage detecting module (12) and is used for generating an accumulated control signal when the first detection result is that the phase difference is smaller than a preset time window and the second detection result is that the control voltage is within a preset voltage range;
a counter module (14) connected with the arbitration module (13) and used for:
When receiving a zero clearing control signal, performing count value zero clearing operation and outputting a first flag bit;
And outputting a second flag bit when the count value is greater than the set value.
And the phase-locked loop is subjected to locking detection in a mode of combining a time window with a counter, and whether the loop is locked or not is judged only by outputting a flag bit. The control voltage Vctrl is ensured to have a voltage value within a reasonable interval when the phase-locked loop is locked. If the control voltage Vctrl is not in the reasonable interval after locking, the first flag bit is locked and output to be 0, the state machine re-triggers the automatic frequency calibration flow of the voltage control oscillator, and a proper programmable capacitor is re-selected to ensure that the voltage value of the control voltage Vctrl is in a proper position, so that the reliability of the phase-locked loop in practical application is improved. The specific second flag bit is 1, which indicates that the phase-locked loop is locked.
By arranging the locking detection circuit, the phase difference of the reference clock signal and the feedback clock signal is detected for a long period, the control voltage Vctrl is detected in real time, and the final detection result is output in the form of a flag bit, so that the method is simple and clear and easy to operate, can work in combination with a state machine, and can avoid the problem of loop unlocking caused by temperature and voltage changes.
Referring to fig. 3, further, the phase difference detection module (11) includes:
A NOR gate (NOR) having two input terminals for receiving the first output signal and the second output signal of the phase frequency detector, respectively;
the input end of the first trigger (D1) is connected with the output end of the NOR gate;
The input end of the first inverter (INV 1) is connected with the output end of the NOR gate;
The clock input end of the second trigger (D2) is connected with the output end of the first inverter (INV 1);
The input end of the delay line (delay) is connected with the Q output end of the second trigger (D2), the output end of the delay line (delay) is connected with the reset end of the second trigger (D2), and the size of the preset time window is determined by the delay line (delay);
The input end of the second inverter (INV 2) is connected with the Q output end of the second trigger (D2);
the clock input end of the first trigger (D1) is connected with the output end of the second inverter (INV 2);
The Q output end of the first trigger (D1) is used as the output end of the phase difference detection module (11) and outputs a first detection result to the arbitration module (13).
The inverse of the phase difference between the reference clock signal fref and the feedback clock signal ffb is available at point a through a NOR gate (NOR). The pulse width includes a narrow pulse that is generated to overcome the "dead zone" problem of the phase frequency detector.
Specifically, the first output signal of the phase frequency detector is an up signal, and the second output signal is a down signal.
If the up signal and the down signal have the output level of one high and one low, the output result of the nor gate has the low level, namely the point a is 0, and the point C of the Q output end of the first flip-flop D1 outputs the low level, namely the logic level is 0, when the rising edge of the point b is detected, indicating that the phase difference occurs between the reference clock signal and the feedback clock signal.
If the Q output terminal C of the first flip-flop D1 outputs a high level, i.e., a logic level of 1, it indicates that the reference clock signal and the feedback clock signal have no phase difference.
Further, the voltage detection module (12) includes:
A first comparator (COM 1), wherein a positive input end of the first comparator (COM 1) inputs a first reference voltage Vref1, and a negative input end of the first comparator (COM 1) inputs a control voltage Vctrl;
a second comparator (COM 2), wherein the positive input end of the second comparator (COM 2) inputs the control voltage Vctrl, and the negative input end of the second comparator (COM 2) inputs the second reference voltage Vref2;
A first AND gate (AND 1), a first input end of the first AND gate (AND 1) is connected with an output end of the first comparator (COM 1), AND a second input end of the first AND gate (AND 1) is connected with an output end of the second comparator (COM 2);
the output end of the first AND gate (AND 1) is used as the output end of the voltage detection module (12) AND outputs a second detection result to the arbitration module (13);
Wherein the first reference voltage is greater than the second reference voltage.
If the control voltage is between the first reference voltage and the second reference voltage, the first AND gate outputs a high level indicating that the control voltage is within a predetermined voltage range formed by the first reference voltage and the second reference voltage.
Further, the arbitration module (13) is a second AND gate (AND 2);
the first input end of the second AND gate (AND 2) is connected with the output end of the phase difference detection module (11), AND the second input end of the second AND gate (AND 2) is connected with the output end of the voltage detection module (12);
The output of the second AND gate (AND 2) is connected to a counter block (14) as output of the arbitration block (13).
Further, the delay line (delay) is a 2-bit programmable delay line.
Specifically, the Delay line (Delay) is a 2bit programmable Delay line, that is, the predetermined time window of the present invention is also programmable, and is controlled by a 2bit binary number delay_ctrl <1:0>, and the predetermined time window may be 1ns, 2ns, 4ns, and 8ns, respectively.
Specifically, the Counter module of the present invention may be a programmable Counter (Counter), which is a 14-bit wide Counter with counter_bit <13:0 >. When the programmable counter_bit <13:0> is all 1 and the time window is 1ns, the minimum frequency difference that can be identified is 62.5Hz for a 32MHz reference clock signal and 9.375KHz for a voltage controlled oscillator operating at 4.8 GHz.
Referring to fig. 3 and 4, the detection principle of the lock detection circuit of the present invention is as follows:
The second flag bit is required to satisfy 3 conditions simultaneously if the lock flag bit is to be 1. The method comprises the steps of firstly, setting a phase difference between two input signals of a phase frequency detector to be smaller than a set time window, namely a preset time window, secondly, setting a control voltage Vctrl to fall in a proper interval, namely Vref2< Vctrl < Vref1, starting a 14-bit programmable counter when the former conditions are met, adding 1 to the counter every time the rising edge of a reference clock signal fref temporarily, and outputting a first flag bit when the locking flag bit is output to be 1 until the count value is larger than a written set value. If one of the first and second conditions is not satisfied during the process of accumulating the counter, the counter is cleared, and the counter stops counting until both the first and second conditions are satisfied.
By performing a nor operation on the two output signals up and down of the phase detector, a reverse signal of the phase difference between the input reference clock signal fref and the feedback clock signal ffb can be obtained at the point a in the figure, and the pulse width includes a narrow pulse generated to overcome the "dead zone" problem of the phase detector, and the signal at the point a is input as the D end of the first trigger D1. The inverted signal Ab of the inverted signal at the a point of the first inverter is used as the clock input (Clk input) of the second flip-flop D2, the input signal at the D input end of the second flip-flop D2 is always 1 (the logic level is always high), and the output signal at the Q output end is passed through a 2bit programmable delay line, which resets the second flip-flop, and the delay line determines the size of the predetermined time window. Therefore, if the phase difference pulse is smaller than the predetermined time window and the phase difference pulse is inverted by the second inverter, the phase difference inverted signal is changed to 1 after the phase difference pulse signal is already passed by the rising edge of the B-point clock, so that the C-point output is 1, that is, the phase difference pulse falls within the predetermined time window. Conversely, if the phase difference pulse is greater than the time window, then point C will output 0. It is noted that the path delays of the signals at the point a and the point B are different, the delay at the point B is far greater than that at the point a, the delay of the point B more than that at the point a is 2×tinv+tdff+trst, where Tinv represents the delay of the primary inverter, tdff is the path delay from the second flip-flop D2 to the Q output, and Trst is the path delay from the reset end reset to the Q output of the second flip-flop. And the delay of point B being greater than point a is close to the narrow pulse time to overcome the "dead zone". The predetermined time window generated by the delay line can be compared directly with the phase difference approximately in consideration of the above non-ideal factors. When the control voltage Vctrl meets Vref2< Vctrl < Vref1, the D point output is 1, otherwise, the D point output is 0. When C, D are both 1, point E is 1 and as input to the programmable counter, the counter module is triggered to count. If E is 0, the trigger counter is cleared. The Counter module is generated through digital synthesis, the input end comprises an input reference clock signal fref and a 14-bit counting control word counter_bit <13:0>, and the f point is the corresponding flag bit of the output.
Referring to fig. 4, the waveforms at the up, down, A, ab, B, bb, C, D, E, F nodes in fig. 4 are from top to bottom, respectively, where the waveforms are ideal waveforms, and no path delay is considered. The reference clock is 32MHz, the corresponding period T1 is 31.25ns, the reference clock signal fref and the feedback clock signal ffb are in the same frequency and phase, vref 1=0.9V, vref2=0.3V and Vctrl always fall between the two, and the D node is 1, after the set counter_bit <13:0> reference period, the F node is pulled high to output a second flag bit 1, so that the loop is locked. In the Tn period, the phase of the reference clock signal fref (ffb effect is similar to that of the reference clock signal fref) is suddenly advanced, the phase difference between fref and ffb is Terror, and the pulse width corresponding to Terror is larger than the pulse width corresponding to a preset time window, so that the sampling result of the point B to the point A is 0, the node C is 0, the node E is 0, the counter is cleared, the node F is 0, and the loss of lock of the loop is indicated. At any time, if Vctrl falls outside Vref1 and Vref2, point D becomes 0, point e becomes 0, and the counter is also cleared. When the Tn period is passed, the reference clock signal fref is restored to be in phase with ffb identical frequency, and the F node is pulled up and the loop is locked after the set counter_bit is less than 13:0. It is noted that during this process, it is necessary to ensure that fref and ffb always have a phase difference less than the predetermined time window, and Vctrl always falls within Vref1 and Vref 2.
In practical application, the flag bit output by the point F can be used to indicate the working state of the phase-locked loop. If the loop is out of lock, the system state machine may restart the automatic frequency calibration process according to the flag bit as the first flag bit, so that the loop is locked again.
Referring to fig. 5, the present invention further provides a phase locked loop circuit, including:
a lock detection circuit (1) for a phase locked loop circuit as described above;
a phase frequency detector (2) for generating a first output signal and a second output signal from a reference clock signal and a feedback clock signal;
The input end of the charge pump (3) is connected with the output end of the phase frequency detector (2) and is used for generating control voltage according to the first output signal and the second output signal;
the input end of the loop filter (4) is connected with the output end of the charge pump (3) and is used for filtering the control voltage generated by the charge pump;
the input end of the voltage control oscillator (5) is connected with the output end of the loop filter (4) and is used for generating output frequency according to the filtered control voltage;
The input end of the frequency dividing module (6) is connected with the output end of the voltage control oscillator (5), and the output end of the frequency dividing module is connected with the feedback input end of the phase frequency detector (2) and is used for carrying out frequency dividing processing on the output frequency to generate a feedback clock signal to the phase frequency detector (2);
The input end of a phase difference detection module (11) in the lock detection circuit (1) is connected with the output end of the phase frequency detector (2);
The input end of a voltage detection module (12) in the lock detection circuit (1) is connected with the output end of the loop filter (4).
Further, the frequency dividing module (6) includes:
An N-bit frequency divider (61) for dividing the output frequency to obtain a feedback clock signal;
And the input end of the Sigma-delta modulator is connected with the output end of the N-bit frequency divider, and the output end of the Sigma-delta modulator is connected with the N-bit frequency divider and is used for modulating signals when the N-bit frequency divider divides the frequency.
Referring to fig. 6, the present invention also provides a lock detection method for a phase locked loop circuit, using a lock detection circuit for a phase locked loop circuit as described above, comprising:
Step A1, detecting whether the phase difference between a reference clock signal and a feedback clock signal input into a phase frequency detector in a phase-locked loop circuit is smaller than a preset time window, and detecting whether a control voltage in the phase-locked loop circuit is within a preset voltage range:
When the phase difference is not smaller than the preset time window and/or the control voltage is not in the preset voltage range, executing the step A2;
When the phase difference is smaller than the preset time window and the control voltage is within the preset voltage range, executing the step A3;
a2, performing count value zero clearing operation and outputting a first flag bit;
step A3, performing a count value incrementing by 1 when the rising edge of the reference clock signal comes, and then performing step A4:
step A4, judging whether the count value is larger than a preset value:
if yes, executing the step A5;
if not, returning to the step A1;
and step A5, outputting a second flag bit.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not intended to limit the embodiments and scope of the present invention, and it should be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included in the scope of the present invention.

Claims (8)

1.一种用于锁相环电路的锁定检测电路,其特征在于,包括:1. A lock detection circuit for a phase-locked loop circuit, comprising: 相位差检测模块,用于检测锁相环电路中输入鉴频鉴相器的参考时钟信号和反馈时钟信号之间的相位差是否小于预定时间窗,得到第一检测结果;A phase difference detection module, used to detect whether the phase difference between the reference clock signal input to the phase frequency detector and the feedback clock signal in the phase-locked loop circuit is less than a predetermined time window, and obtain a first detection result; 电压检测模块,用于检测所述锁相环电路中的控制电压是否在预定电压范围内,得到第二检测结果;A voltage detection module, used to detect whether the control voltage in the phase-locked loop circuit is within a predetermined voltage range, and obtain a second detection result; 裁决模块,分别连接所述相位差检测模块和所述电压检测模块,用于:当所述第一检测结果为所述相位差小于所述预定时间窗,且所述第二检测结果为所述控制电压在所述预定电压范围之内时,产生累加控制信号;当所述第一检测结果为所述相位差不小于所述预定时间窗和/或第二检测结果为所述控制电压不在所述预定电压范围内时,产生清零控制信号;A decision module, connected to the phase difference detection module and the voltage detection module, respectively, for: generating an accumulation control signal when the first detection result is that the phase difference is less than the predetermined time window, and the second detection result is that the control voltage is within the predetermined voltage range; generating a clearing control signal when the first detection result is that the phase difference is not less than the predetermined time window and/or the second detection result is that the control voltage is not within the predetermined voltage range; 计数器模块,连接所述裁决模块,用于:A counter module, connected to the decision module, is used to: 在接收到所述清零控制信号时进行计数值清零操作并输出第一标志位;When receiving the clear control signal, performing a count value clear operation and outputting a first flag bit; 在接收到所述累加控制信号后在所述参考时钟信号上升沿来临时进行计数值加1操作;且在所述计数值大于设定值时输出第二标志位。After receiving the accumulation control signal, the count value is incremented by 1 when the rising edge of the reference clock signal comes; and a second flag is output when the count value is greater than a set value. 2.如权利要求1所述的一种用于锁相环电路的锁定检测电路,其特征在于,所述相位差检测模块包括:2. A lock detection circuit for a phase-locked loop circuit according to claim 1, characterized in that the phase difference detection module comprises: 或非门,所述或非门的两个输入端分别接收所述鉴频鉴相器的第一输出信号和第二输出信号;A NOR gate, wherein two input terminals of the NOR gate receive the first output signal and the second output signal of the frequency and phase detector respectively; 第一触发器,所述第一触发器的D输入端连接所述或非门的输出端;A first trigger, wherein a D input terminal of the first trigger is connected to an output terminal of the NOR gate; 第一反相器,所述第一反相器的输入端连接所述或非门的输出端;A first inverter, wherein an input terminal of the first inverter is connected to an output terminal of the NOR gate; 第二触发器,所述第二触发器的D输入端输入高电平,所述第二触发器的时钟输入端连接所述第一反相器的输出端;A second trigger, a D input terminal of the second trigger inputting a high level, and a clock input terminal of the second trigger connected to an output terminal of the first inverter; 延迟线,所述延迟线的输入端连接所述第二触发器的Q输出端,所述延迟线的输出端连接所述第二触发器的复位端,由所述延迟线决定所述预定时间窗的大小;A delay line, wherein an input end of the delay line is connected to a Q output end of the second flip-flop, an output end of the delay line is connected to a reset end of the second flip-flop, and a size of the predetermined time window is determined by the delay line; 第二反相器,所述第二反相器的输入端连接所述第二触发器的Q输出端;A second inverter, an input end of the second inverter being connected to a Q output end of the second trigger; 所述第一触发器的时钟输入端连接所述第二反相器的输出端;A clock input terminal of the first trigger is connected to an output terminal of the second inverter; 所述第一触发器的Q输出端作为所述相位差检测模块的输出端,输出所述第一检测结果至所述裁决模块。The Q output terminal of the first trigger serves as the output terminal of the phase difference detection module, and outputs the first detection result to the decision module. 3.如权利要求1所述的一种用于锁相环电路的锁定检测电路,其特征在于,所述电压检测模块包括:3. A lock detection circuit for a phase-locked loop circuit according to claim 1, characterized in that the voltage detection module comprises: 第一比较器,所述第一比较器的正输入端输入第一参考电压,所述第一比较器的负输入端输入所述控制电压;A first comparator, wherein a first reference voltage is input to a positive input terminal of the first comparator, and the control voltage is input to a negative input terminal of the first comparator; 第二比较器,所述第二比较器的正输入端输入所述控制电压,所述第二比较器的负输入端输入第二参考电压;a second comparator, wherein the control voltage is input to a positive input terminal of the second comparator, and a second reference voltage is input to a negative input terminal of the second comparator; 第一与门,所述第一与门的第一输入端连接所述第一比较器的输出端,所述第一与门的第二输入端连接所述第二比较器的输出端;a first AND gate, wherein a first input terminal of the first AND gate is connected to an output terminal of the first comparator, and a second input terminal of the first AND gate is connected to an output terminal of the second comparator; 所述第一与门的输出端作为所述电压检测模块的输出端,输出所述第二检测结果至所述裁决模块;The output end of the first AND gate serves as the output end of the voltage detection module, and outputs the second detection result to the decision module; 其中,所述第一参考电压大于所述第二参考电压。Wherein, the first reference voltage is greater than the second reference voltage. 4.如权利要求1所述的一种用于锁相环电路的锁定检测电路,其特征在于,所述裁决模块为第二与门;4. A lock detection circuit for a phase-locked loop circuit as claimed in claim 1, characterized in that the arbitration module is a second AND gate; 所述第二与门的第一输入端连接所述相位差检测模块的输出端,所述第二与门的第二输入端连接所述电压检测模块的输出端;The first input end of the second AND gate is connected to the output end of the phase difference detection module, and the second input end of the second AND gate is connected to the output end of the voltage detection module; 所述第二与门的输出端作为所述裁决模块的输出端连接所述计数器模块。The output end of the second AND gate is connected to the counter module as the output end of the decision module. 5.如权利要求2所述的一种用于锁相环电路的锁定检测电路,其特征在于,所述延迟线为2比特可编程延迟线。5. A lock detection circuit for a phase-locked loop circuit as claimed in claim 2, characterized in that the delay line is a 2-bit programmable delay line. 6.一种锁相环电路,其特征在于,包括:6. A phase-locked loop circuit, comprising: 如权利要求1-5任意一项所述的一种用于锁相环电路的锁定检测电路;A lock detection circuit for a phase-locked loop circuit as claimed in any one of claims 1 to 5; 鉴频鉴相器,用于根据参考时钟信号和反馈时钟信号产生第一输出信号和第二输出信号;A frequency detector and a phase detector, for generating a first output signal and a second output signal according to a reference clock signal and a feedback clock signal; 电荷泵,输入端连接所述鉴频鉴相器的输出端,用于根据所述第一输出信号和第二输出信号产生控制电压;A charge pump, whose input end is connected to the output end of the frequency detector and phase detector, and is used to generate a control voltage according to the first output signal and the second output signal; 环路滤波器,输入端连接所述电荷泵的输出端,用于对所述电荷泵产生的控制电压进行滤波处理;A loop filter, the input end of which is connected to the output end of the charge pump, and is used to filter the control voltage generated by the charge pump; 电压控制振荡器,输入端连接所述环路滤波器的输出端,用于根据滤波后的所述控制电压产生输出频率;A voltage controlled oscillator, whose input end is connected to the output end of the loop filter and is used to generate an output frequency according to the filtered control voltage; 分频模块,输入端连接所述电压控制振荡器的输出端,所述分频模块的输出端连接所述鉴频鉴相器的反馈输入端,用于对所述输出频率进行分频处理产生所述反馈时钟信号给所述鉴频鉴相器;A frequency division module, whose input end is connected to the output end of the voltage controlled oscillator, whose output end is connected to the feedback input end of the frequency detector, and is used to perform frequency division processing on the output frequency to generate the feedback clock signal to the frequency detector; 所述锁定检测电路中的所述相位差检测模块的输入端连接所述鉴频鉴相器的输出端;The input end of the phase difference detection module in the lock detection circuit is connected to the output end of the frequency and phase detector; 所述锁定检测电路中电压检测模块的输入端连接所述环路滤波器的输出端。The input end of the voltage detection module in the lock detection circuit is connected to the output end of the loop filter. 7.如权利要求6所述的一种锁相环电路,其特征在于,所述分频模块包括:7. A phase-locked loop circuit according to claim 6, characterized in that the frequency division module comprises: N位分频器,用于将所述输出频率进行分频处理得到所述反馈时钟信号;An N-bit frequency divider, used for dividing the output frequency to obtain the feedback clock signal; Sigma-delta调制器,所述Sigma-delta调制器的输入端连接所述N位分频器的输出端,所述Sigma-delta调制器的输出端连接所述N位分频器,用于对所述N位分频器分频处理时进行信号调制。A Sigma-delta modulator, wherein the input end of the Sigma-delta modulator is connected to the output end of the N-bit frequency divider, and the output end of the Sigma-delta modulator is connected to the N-bit frequency divider, for performing signal modulation during frequency division processing of the N-bit frequency divider. 8.一种用于锁相环电路的锁定检测方法,其特征在于,使用如权利要求1-5任意一项所述的一种用于锁相环电路的锁定检测电路,其特征在于,包括:8. A lock detection method for a phase-locked loop circuit, characterized by using a lock detection circuit for a phase-locked loop circuit as claimed in any one of claims 1 to 5, characterized by comprising: 步骤A1,检测锁相环电路中输入所述鉴频鉴相器的参考时钟信号和反馈时钟信号之间的相位差是否小于预定时间窗,且检测所述锁相环电路中的控制电压是否在预定电压范围内:Step A1, detecting whether the phase difference between the reference clock signal input to the phase frequency detector and the feedback clock signal in the phase-locked loop circuit is less than a predetermined time window, and detecting whether the control voltage in the phase-locked loop circuit is within a predetermined voltage range: 当所述相位差不小于所述预定时间窗和/或所述控制电压不在所述预定电压范围内时,执行步骤A2;When the phase difference is not less than the predetermined time window and/or the control voltage is not within the predetermined voltage range, executing step A2; 当所述相位差小于所述预定时间窗,且所述控制电压在所述预定电压范围之内时,执行步骤A3;When the phase difference is less than the predetermined time window and the control voltage is within the predetermined voltage range, executing step A3; 步骤A2,进行计数值清零操作并输出第一标志位;Step A2, performing a count value clearing operation and outputting a first flag bit; 步骤A3,在所述参考时钟信号上升沿来临时进行计数值加1操作,之后进行步骤A4:Step A3, when the rising edge of the reference clock signal comes, the count value is incremented by 1, and then step A4 is performed: 步骤A4,判断所述计数值是否大于预设值:Step A4, determining whether the count value is greater than a preset value: 若是,执行步骤A5;If yes, go to step A5; 若否,返回步骤A1;If not, return to step A1; 步骤A5,输出第二标志位。Step A5, output the second flag bit.
CN202411637465.8A 2024-11-15 2024-11-15 Phase-locked loop circuit, lock detection circuit and method Pending CN119543932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411637465.8A CN119543932A (en) 2024-11-15 2024-11-15 Phase-locked loop circuit, lock detection circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411637465.8A CN119543932A (en) 2024-11-15 2024-11-15 Phase-locked loop circuit, lock detection circuit and method

Publications (1)

Publication Number Publication Date
CN119543932A true CN119543932A (en) 2025-02-28

Family

ID=94694504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411637465.8A Pending CN119543932A (en) 2024-11-15 2024-11-15 Phase-locked loop circuit, lock detection circuit and method

Country Status (1)

Country Link
CN (1) CN119543932A (en)

Similar Documents

Publication Publication Date Title
CN111869106B (en) Time-to-digital converter, delay measurement method and digital phase-locked loop
US7304510B2 (en) Digital phase detector improving phase detection resolution thereof
US6765444B2 (en) Cross clocked lock detector circuit for phase locked loop
US6879195B2 (en) PLL lock detection circuit using edge detection
CN109639271B (en) Lock indication circuit and phase-locked loop formed by same
US7595672B2 (en) Adjustable digital lock detector
US10819355B1 (en) Phase to digital converter
TWI412234B (en) Phase locked loop and voltage controlled oscillator thereof
US7015727B2 (en) Generating a lock signal indicating whether an output clock signal generated by a PLL is in lock with an input reference signal
US20020051510A1 (en) Phase/frequency comparator
US8686768B2 (en) Phase locked loop
US6670834B1 (en) Digital lock detect for dithering phase lock loops
US6744838B1 (en) PLL lock detector
JP2917892B2 (en) Semiconductor integrated circuit
CN110832777B (en) Delay Locked Loop (DLL) employing pulse-to-digital converter (PDC) for calibration
US7598816B2 (en) Phase lock loop circuit with delaying phase frequency comparson output signals
CN100417024C (en) Phase-locked loop with low steady-state error and correction circuit thereof
US7109806B2 (en) Device and method for detecting phase difference and PLL using the same
JP3617456B2 (en) PLL circuit and optical communication receiver
US20070285082A1 (en) Lock Detecting Circuit, Lock Detecting Method
CN115765728B (en) Phase frequency detector and phase-locked loop
CN119543932A (en) Phase-locked loop circuit, lock detection circuit and method
WO2017195615A1 (en) Detection device and detection method
WO2024133334A1 (en) Phase lock detector
CN116073978A (en) Clock recovery circuit, corresponding device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination