WO2017148240A1 - Loss-of-lock detection system and method for phase-locked loop - Google Patents

Loss-of-lock detection system and method for phase-locked loop Download PDF

Info

Publication number
WO2017148240A1
WO2017148240A1 PCT/CN2017/072902 CN2017072902W WO2017148240A1 WO 2017148240 A1 WO2017148240 A1 WO 2017148240A1 CN 2017072902 W CN2017072902 W CN 2017072902W WO 2017148240 A1 WO2017148240 A1 WO 2017148240A1
Authority
WO
WIPO (PCT)
Prior art keywords
locked loop
output
frequency divider
phase
clock
Prior art date
Application number
PCT/CN2017/072902
Other languages
French (fr)
Chinese (zh)
Inventor
顾春杰
陈永铭
王仁巧
杨硕
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017148240A1 publication Critical patent/WO2017148240A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • H03L7/18Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop
    • H03L7/183Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop a time difference being used for locking the loop, the counter counting between fixed numbers or the frequency divider dividing by a fixed number
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/0805Details of the phase-locked loop the loop being adapted to provide an additional control signal for use outside the loop

Definitions

  • the present disclosure relates to the field of phase locked loops, for example, to a detection system and a detection method for a phase locked loop loss of lock.
  • phase-locked loop loss detection methods Two types are usually used: the first is to directly use the lock-lock signal reported by the phase-locked loop chip, and the second is to count the phase-locked loop input clock and the phase-locked loop output clock in the logic unit. Detection, each phase-locked loop input clock cycle counts with the phase-locked loop output clock, and detects whether the count value is equal to the ratio of the phase-locked loop output clock to the input clock frequency.
  • the disadvantage of the first method is that the reference source is interfered by the line or the internal locking standard of the phase-locked loop chip is too strict, so that the phase-locked loop chip often reports the loss-of-lock alarm that the system does not care about, and the detection is too strict;
  • the disadvantage of the second method is that There is an error in the count value, and each count cycle counter is cleared to recalculation, no phase accumulation, resulting in failure to detect even if the phase locked loop is lost, and the detection is too loose.
  • the present disclosure provides a detection system and a detection method for a phase locked loop loss lock, and flexibly sets a lockout detection standard for a phase locked loop.
  • the present disclosure provides a detection system for a phase locked loop loss of lock, the input clock frequency of the phase locked loop is less than the output clock frequency of the phase locked loop; the system includes:
  • the frequency divider uses the output clock of the phase locked loop as a clock signal, and the output end is connected to the data end of the flip-flop;
  • the flip-flop takes an input clock of the phase-locked loop as a sampling clock, and an output terminal is respectively connected to a clear end of the frequency divider and a clear end of the counter;
  • the counter uses the input clock of the phase locked loop as a counting clock, and the output terminal outputs an indication signal indicating locking or loss of lock.
  • the frequency divider is configured to divide an output signal of the phase locked loop, generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop, and output.
  • the flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, when the frequency divider outputs a positive pulse and the sampling value is low. Normally, an output signal indicating a clear operation is generated, or when the frequency divider outputs a negative pulse and the sample value is a high level, an output signal indicating a clear operation is generated;
  • the frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
  • the counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
  • the counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock.
  • the periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared.
  • the present disclosure also provides a method for detecting a phase locked loop loss of lock, the method comprising:
  • the frequency divider uses the output clock of the phase locked loop as a clock signal, and sends the output signal to the data end of the trigger;
  • the flip-flop uses an input clock of the phase-locked loop as a sampling clock, and sends an output signal to a clear end of the frequency divider and a clear end of the counter;
  • the counter uses the input clock of the phase locked loop as a count clock, and outputs an indication signal indicating lock or loss of lock.
  • the method further includes:
  • the frequency divider divides the output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and outputs the same.
  • the method further includes:
  • the flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, and generates a representation when the frequency divider outputs a positive pulse and the sampling value is a low level. Clearing the output signal of the operation, or when the frequency divider outputs a negative pulse and the sample value is high level, generating an output signal indicating a clear operation;
  • the frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
  • the counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
  • the method further includes:
  • the counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock.
  • the periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared.
  • the above solution can set different frequency divider output pulse width according to different scenarios, different phase-locked loops, select different counter overflow values, and realize adjustable phase-locked loop loss detection.
  • the above technical solution can not only avoid the interference of the reference source signal or the unnecessary lockout alarm caused by the strict internal locking standard of the phase locked loop chip, but also avoid the false lock indication caused by the traditional counting detection being too loose.
  • FIG. 1 is a schematic structural view of a detection system for a phase locked loop loss lock in the first embodiment
  • FIG. 2 is a first schematic diagram of a detection system for a phase locked loop loss lock in the second embodiment
  • FIG. 3 is a second schematic diagram of a detection system for phase-locked loop loss of lock in the second embodiment
  • FIG. 4 is a schematic diagram of a detection system for phase-locked loop loss of lock in the third embodiment
  • FIG. 5 is a flow chart of a method for detecting a loss of a phase locked loop in the fourth embodiment.
  • the embodiment provides a detection system for a phase locked loop loss lock.
  • the input clock frequency of the phase locked loop is smaller than the output clock frequency of the phase locked loop.
  • the system includes:
  • the frequency divider 11 uses the output clock of the phase locked loop as a clock signal, and the output end is connected to the data end of the flip-flop 12.
  • the flip-flop 12 uses the input clock of the phase-locked loop as a sampling clock, and the output terminal is respectively connected to the clearing end of the frequency divider 11 and the clearing end of the counter 13.
  • the counter 13 uses the input clock of the phase locked loop as a count clock, and the output terminal outputs an indication signal indicating lock or loss of lock.
  • the frequency divider 11 is configured to divide an output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and output the same.
  • the flip-flop 12 samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, when the frequency divider outputs a positive pulse and the sampling value is low. At the level, an output signal indicating a clear operation is generated, or when the frequency divider outputs a negative pulse and the sample value is a high level, an output signal indicating a clear operation is generated;
  • the frequency divider 11 is cleared and generates a half-width pulse output when the clear terminal receives the output signal indicating the clear operation;
  • the counter 13 is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
  • the counter 13 counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock .
  • the periodic pulse signal generated by the frequency divider 11 is a positive pulse or a negative pulse; and the frequency divider 11 and the counter 12 are synchronously cleared or asynchronously cleared.
  • the external reference source is connected to a logic unit (such as a logic circuit) including a frequency divider, a flip-flop, and a counter.
  • the external reference can be directly outputted inside the logic unit, or can be output to the lower stage after being divided.
  • the phase-locked loop, the external reference source can also be directly output to the phase-locked loop outside the logic unit.
  • the phase-locked loop locks the external reference source and generates a clock output to the logic unit for phase-lock detection.
  • the phase-locked loop output is connected to a frequency divider, and the appropriate frequency division number can be set.
  • the divided clock frequency is equal to the clock frequency of the phase-locked loop input.
  • the clock output from the divider is a periodic pulse signal.
  • the polarity and width of the pulse are adjustable. When the divider is cleared, a half-width pulse output is generated.
  • the divider output is connected to the data terminal of the flip-flop.
  • the trigger uses the phase-locked loop input clock sampling, and the trigger data output terminal is connected to the clearing end of the frequency divider and the counter.
  • the flip-flop samples the periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop.
  • the frequency divider When the divider outputs a positive pulse and the sample value is high, no output signal indicating a clear operation is generated. Alternatively, when the frequency divider outputs a negative pulse and the sample value is low level, an output signal indicating a clear operation is not generated. If an output signal indicating a clear operation is not generated, the frequency divider outputs a periodic pulse in accordance with the frequency division number while the counter is accumulated until overflow.
  • the counter uses the phase-locked loop input clock as the count clock. When the counter is cleared, the count value is cleared. When the counter is not cleared, the count value period is accumulated. When the count value overflows, the lock indication signal is no longer accumulated and output.
  • the count overflow value is adjustable. The count overflow value cannot be set too small. If the setting is too small, when the phase-locked loop loses lock, when the counter is not cleared, the counter overflow value will be generated and a false lock indication will be generated. The count overflow value cannot be set too large. If the setting is too large, the lock will be delayed after the phase locked loop is normally locked.
  • the phase-locked loop input clock is 8 kHz, and the phase-locked loop output clock is 50 MHz.
  • This scenario allows the reference source to have a phase jump of 1 us without generating a lock-out alarm.
  • the phase-locked loop input clock and the phase-locked loop output clock can be set as needed, which is not limited in this disclosure.
  • the input clock of the frequency divider is 50MHz
  • the output clock frequency of the frequency divider is 8KHz
  • the positive pulse width is 2us, that is, the phase-locked loop input clock has a phase jump redundancy of about 1us.
  • the frequency offset between the input clock and the output clock of the phase-locked loop is 1ppm.
  • the divider is cleared, and the divider output is 1us.
  • a positive pulse of width, the counter is cleared, and the lockout indication 0 is output.
  • the flip-flop is sampled once every 125us, the sampling value is high level, the frequency divider is normally divided by the clearing operation, and the counter is added in sequence but not overflowing still outputs the loss of lock indication 0. After 8000 consecutive samples are high, the frequency is divided.
  • the frequency divider output clock is relative to the phase-locked loop input clock. The accumulated phase drifts 1us to the left or 1us to the right. The next trigger sampling will sample low.
  • the dotted line in the output of the divider shows the output of the divider when it is not cleared.
  • the trigger is sampled low, the divider is cleared, and the divider outputs a positive pulse of 1us width. Cleared and outputs the lockout indication 0.
  • the divider and counter are cleared once every 8000 samples. If the counter overflow value is set to 9000, the counter will never overflow and the output loss lock indication will be maintained.
  • the frequency synchronization between the input clock and the output clock of the phase-locked loop is achieved.
  • the phase difference between the phase-locked loop input clock and the divider output clock is stable at 1us, and 9000 consecutive samples are used. If it is high, the divider and counter do not clear operation, and the counter overflows. The count value is stable at 9000, no longer accumulate, and the output lock indication is 1. Even if the reference source is disturbed and the phase jumps, the output lock indication 1 is stabilized within ⁇ 1us.
  • the phase-locked loop input clock that is, the sampling clock frequency of the flip-flop is F KHz, then when the phase-locked loop loses lock After the sampling is required N times, the frequency divider and the counter generate a clear operation.
  • the counter overflow value is slightly larger than 8000, for example, 9000.
  • different phase-locked loop chips set different pulse widths of the frequency divider output, can prevent unnecessary loss of lock alarm under the allowed interference conditions, and can prevent the system from being caused by the reference source interference.
  • the fault of the phase-locked loop lost lock has not occurred yet.
  • different phase-locked loop chips set the counter overflow value of the counter, and the overflow value cannot be too small, and when the phase-locked loop loses lock, the counter has reached the overflow value and is incorrectly locked when the counter is not cleared. Indicates that the overflow value cannot be too large to prevent the lock from being displayed after the normal lock is prevented.
  • the phase-locked loop input clock frequency is less than the phase-locked loop output clock frequency.
  • the phase-locked loop input clock frequency is less than 10 times and above the phase-locked loop output clock frequency.
  • the technical solution of the embodiment of the present disclosure does not limit whether the sampling clock of the frequency divider, the flip-flop, and the counter in the logic unit adopts a rising edge or a falling edge, and does not limit whether the frequency divider and the counter adopt synchronous clearing or asynchronous clearing.
  • the embodiment provides a method for detecting a phase-locked loop loss lock, which is applied to the phase-locked loop loss-of-lock detection system according to any one of embodiments 1 to 3.
  • step 110 the frequency divider sends the output signal to the data end of the flip-flop with the output clock of the phase-locked loop as a clock signal.
  • step 120 the flip-flop uses the input clock of the phase-locked loop as a sampling clock, and sends an output signal to the clearing end of the frequency divider and the clearing end of the counter.
  • step 130 the counter uses the input clock of the phase locked loop as a count clock, and outputs an indication signal indicating lock or loss of lock.
  • the method further includes:
  • the frequency divider divides the output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and outputs the same.
  • the method further includes:
  • the flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, and generates a representation when the frequency divider outputs a positive pulse and the sampling value is a low level. Clearing the output signal of the operation, or when the divider outputs a negative pulse and the sample value is high Generating an output signal indicative of a clearing operation;
  • the frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
  • the counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
  • the method further includes:
  • the counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock.
  • the periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared.
  • the detection system and the detection method of the phase locked loop loss lock provided by the embodiment of the present disclosure flexibly adjust the lockout detection of the phase locked loop, and avoid the unnecessary loss caused by the interference of the reference source signal or the strict internal locking standard of the phase locked loop chip.
  • the lock alarm can also avoid the mis-locking indication caused by the traditional counting detection being too loose.

Landscapes

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

Abstract

A loss-of-lock detection system for a phase-locked loop. An input clock frequency of the phase-locked loop is smaller than an output clock frequency of the phase-locked loop. The system comprises a frequency divider, a trigger, and a counter. The frequency divider uses an output clock of the phase-locked loop as a clock signal, and an output end of the frequency divider is connected to a data end of the trigger. The trigger uses an input clock of the phase-locked loop as a sampling clock, and an output end of the trigger is separately connected to a reset end of the frequency divider and a reset end of the counter. The counter uses the input clock of the phase-locked loop as a counting clock, and an output end of the counter outputs an indication signal indicating lock or loss of lock.

Description

锁相环失锁的检测系统及检测方法Detection system and detection method for phase locked loop loss of lock 技术领域Technical field
本公开涉及锁相环领域,例如涉及一种锁相环失锁的检测系统及检测方法。The present disclosure relates to the field of phase locked loops, for example, to a detection system and a detection method for a phase locked loop loss of lock.
背景技术Background technique
通常使用两种锁相环失锁检测方法:第一种是直接使用锁相环芯片上报的失锁信号,第二种是将锁相环输入时钟和锁相环输出时钟在逻辑单元内进行计数检测,每一个锁相环输入时钟周期内用锁相环输出时钟进行计数,检测计数值是否等于锁相环输出时钟与输入时钟频率比值。Two types of phase-locked loop loss detection methods are usually used: the first is to directly use the lock-lock signal reported by the phase-locked loop chip, and the second is to count the phase-locked loop input clock and the phase-locked loop output clock in the logic unit. Detection, each phase-locked loop input clock cycle counts with the phase-locked loop output clock, and detects whether the count value is equal to the ratio of the phase-locked loop output clock to the input clock frequency.
第一种方法的缺点是基准源受到线路干扰或者锁相环芯片内部锁定标准过于严格,导致锁相环芯片经常上报系统并不关心的失锁告警,检测太严格;第二种方法的缺点是存在一个计数值的误差,且每个计数周期计数器都会清零重计,没有相位累积,导致即便锁相环失锁也不能检测到,检测太松。The disadvantage of the first method is that the reference source is interfered by the line or the internal locking standard of the phase-locked loop chip is too strict, so that the phase-locked loop chip often reports the loss-of-lock alarm that the system does not care about, and the detection is too strict; the disadvantage of the second method is that There is an error in the count value, and each count cycle counter is cleared to recalculation, no phase accumulation, resulting in failure to detect even if the phase locked loop is lost, and the detection is too loose.
发明内容Summary of the invention
本公开提供一种锁相环失锁的检测系统及检测方法,灵活设置锁相环失锁检测标准。The present disclosure provides a detection system and a detection method for a phase locked loop loss lock, and flexibly sets a lockout detection standard for a phase locked loop.
本公开提供一种锁相环失锁的检测系统,所述锁相环的输入时钟频率小于锁相环的输出时钟频率;所述系统包括:The present disclosure provides a detection system for a phase locked loop loss of lock, the input clock frequency of the phase locked loop is less than the output clock frequency of the phase locked loop; the system includes:
分频器、触发器和计数器;Frequency dividers, flip-flops and counters;
所述分频器以所述锁相环的输出时钟作为时钟信号,输出端连接所述触发器的数据端;The frequency divider uses the output clock of the phase locked loop as a clock signal, and the output end is connected to the data end of the flip-flop;
所述触发器以所述锁相环的输入时钟作为采样时钟,输出端分别连接所述分频器的清零端和所述计数器的清零端;以及The flip-flop takes an input clock of the phase-locked loop as a sampling clock, and an output terminal is respectively connected to a clear end of the frequency divider and a clear end of the counter;
所述计数器以所述锁相环的输入时钟作为计数时钟,输出端输出表示锁定或失锁的指示信号。The counter uses the input clock of the phase locked loop as a counting clock, and the output terminal outputs an indication signal indicating locking or loss of lock.
可选地,所述分频器设置为将所述锁相环的输出信号进行分频,产生和锁相环的输入时钟同频的周期脉冲信号并输出。 Optionally, the frequency divider is configured to divide an output signal of the phase locked loop, generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop, and output.
可选地,所述触发器在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号,当所述分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号,或者,当所述分频器输出负脉冲并且采样值为高电平时,产生表示清零操作的输出信号;Optionally, the flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, when the frequency divider outputs a positive pulse and the sampling value is low. Normally, an output signal indicating a clear operation is generated, or when the frequency divider outputs a negative pulse and the sample value is a high level, an output signal indicating a clear operation is generated;
所述分频器当清零端收到所述表示清零操作的输出信号时清零并产生半宽脉冲输出;以及The frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
所述计数器当清零端收到所述表示清零操作的输出信号时清零,输出表示失锁的指示信号。The counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
可选地,所述计数器在锁相环的输入时钟的每个上升沿或每个下降沿进行计数;以及当计数值达到预定的计数溢出值时不再累加,并输出表示锁定的指示信号。Optionally, the counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock.
可选地,所述分频器产生的周期脉冲信号为正脉冲或负脉冲;以及所述分频器和计数器采用同步清零或异步清零。Optionally, the periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared.
本公开还提供一种锁相环失锁的检测方法,所述方法包括:The present disclosure also provides a method for detecting a phase locked loop loss of lock, the method comprising:
分频器以所述锁相环的输出时钟作为时钟信号,将输出信号发送给触发器的数据端;The frequency divider uses the output clock of the phase locked loop as a clock signal, and sends the output signal to the data end of the trigger;
所述触发器以所述锁相环的输入时钟作为采样时钟,将输出信号发送给所述分频器的清零端和计数器的清零端;以及The flip-flop uses an input clock of the phase-locked loop as a sampling clock, and sends an output signal to a clear end of the frequency divider and a clear end of the counter;
所述计数器以所述锁相环的输入时钟作为计数时钟,输出表示锁定或失锁的指示信号。The counter uses the input clock of the phase locked loop as a count clock, and outputs an indication signal indicating lock or loss of lock.
可选地,所述方法还包括:Optionally, the method further includes:
所述分频器将锁相环的输出信号进行分频,产生和所述锁相环的输入时钟同频的周期脉冲信号并输出。The frequency divider divides the output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and outputs the same.
可选地,所述方法还包括:Optionally, the method further includes:
所述触发器在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号,当所述分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号,或者,当所述分频器输出负脉冲并且采样值为高电平时,产生表示清零操作的输出信号; The flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, and generates a representation when the frequency divider outputs a positive pulse and the sampling value is a low level. Clearing the output signal of the operation, or when the frequency divider outputs a negative pulse and the sample value is high level, generating an output signal indicating a clear operation;
所述分频器当清零端收到所述表示清零操作的输出信号时清零并产生半宽脉冲输出;以及The frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
所述计数器当清零端收到所述表示清零操作的输出信号时清零,输出表示失锁的指示信号。The counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
可选地,所述方法还包括:Optionally, the method further includes:
所述计数器在锁相环的输入时钟的每个上升沿或每个下降沿进行计数;以及当计数值达到预定的计数溢出值时不再累加,并输出表示锁定的指示信号。The counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock.
可选地,所述分频器产生的周期脉冲信号为正脉冲或负脉冲;以及所述分频器和计数器采用同步清零或异步清零。上述方案可以根据不同的场景,不同的锁相环,设置不同的分频器输出脉宽,选择不同的计数器溢出值,实现了可调的锁相环失锁检测。上述技术方案不仅可以规避基准源信号受到干扰或者锁相环芯片内部锁定标准过于严格导致的不必要的失锁告警,同时还可以规避传统计数检测太松导致的误锁定指示。Optionally, the periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared. The above solution can set different frequency divider output pulse width according to different scenarios, different phase-locked loops, select different counter overflow values, and realize adjustable phase-locked loop loss detection. The above technical solution can not only avoid the interference of the reference source signal or the unnecessary lockout alarm caused by the strict internal locking standard of the phase locked loop chip, but also avoid the false lock indication caused by the traditional counting detection being too loose.
附图说明DRAWINGS
图1为实施例一中锁相环失锁的检测系统的结构示意图;1 is a schematic structural view of a detection system for a phase locked loop loss lock in the first embodiment;
图2为实施例二中锁相环失锁的检测系统的第一种示意图;2 is a first schematic diagram of a detection system for a phase locked loop loss lock in the second embodiment;
图3为实施例二中锁相环失锁的检测系统的第二种示意图;3 is a second schematic diagram of a detection system for phase-locked loop loss of lock in the second embodiment;
图4为实施例三中锁相环失锁的检测系统的示意图;以及4 is a schematic diagram of a detection system for phase-locked loop loss of lock in the third embodiment;
图5为实施例四中锁相环失锁的检测方法的流程图。FIG. 5 is a flow chart of a method for detecting a loss of a phase locked loop in the fourth embodiment.
具体实施方式detailed description
为使本申请技术方案更加清楚,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the technical solutions of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例一Embodiment 1
如图1所示,本实施例提供了一种锁相环失锁的检测系统,所述锁相环的输入时钟频率小于锁相环的输出时钟频率。所述系统包括: As shown in FIG. 1 , the embodiment provides a detection system for a phase locked loop loss lock. The input clock frequency of the phase locked loop is smaller than the output clock frequency of the phase locked loop. The system includes:
分频器11、触发器12和计数器13。Frequency divider 11, flip-flop 12 and counter 13.
所述分频器11以所述锁相环的输出时钟作为时钟信号,输出端连接所述触发器12的数据端。The frequency divider 11 uses the output clock of the phase locked loop as a clock signal, and the output end is connected to the data end of the flip-flop 12.
所述触发器12以所述锁相环的输入时钟作为采样时钟,输出端分别连接所述分频器11的清零端和所述计数器13的清零端。The flip-flop 12 uses the input clock of the phase-locked loop as a sampling clock, and the output terminal is respectively connected to the clearing end of the frequency divider 11 and the clearing end of the counter 13.
所述计数器13以所述锁相环的输入时钟作为计数时钟,输出端输出表示锁定或失锁的指示信号。The counter 13 uses the input clock of the phase locked loop as a count clock, and the output terminal outputs an indication signal indicating lock or loss of lock.
可选地,所述分频器11设置为将所述锁相环的输出信号进行分频,产生和锁相环的输入时钟同频的周期脉冲信号并输出。Optionally, the frequency divider 11 is configured to divide an output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and output the same.
可选地,所述触发器12在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号,当所述分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号,或者,当所述分频器输出负脉冲并且采样值为高电平时,产生表示清零操作的输出信号;Optionally, the flip-flop 12 samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, when the frequency divider outputs a positive pulse and the sampling value is low. At the level, an output signal indicating a clear operation is generated, or when the frequency divider outputs a negative pulse and the sample value is a high level, an output signal indicating a clear operation is generated;
所述分频器11当清零端收到所述表示清零操作的输出信号时清零并产生半宽脉冲输出;以及The frequency divider 11 is cleared and generates a half-width pulse output when the clear terminal receives the output signal indicating the clear operation;
所述计数器13当清零端收到所述表示清零操作的输出信号时清零,输出表示失锁的指示信号。The counter 13 is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
可选地,所述计数器13在锁相环的输入时钟的每个上升沿或每个下降沿进行计数;以及当计数值达到预定的计数溢出值时不再累加,并输出表示锁定的指示信号。Optionally, the counter 13 counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock .
可选地,所述分频器11产生的周期脉冲信号为正脉冲或负脉冲;以及所述分频器11和计数器12采用同步清零或异步清零。Optionally, the periodic pulse signal generated by the frequency divider 11 is a positive pulse or a negative pulse; and the frequency divider 11 and the counter 12 are synchronously cleared or asynchronously cleared.
实施例二Embodiment 2
如图2所示,外部基准源接入包括分频器、触发器和计数器的逻辑单元(例如逻辑电路),外部基准可以在逻辑单元内部直接输出,也可以经过分频处理后再输出给下级锁相环,外部基准源还可以在逻辑单元外直接分一路输出给锁相环,锁相环锁定此外部基准源并产生时钟输出至逻辑单元进行锁相检测。As shown in Figure 2, the external reference source is connected to a logic unit (such as a logic circuit) including a frequency divider, a flip-flop, and a counter. The external reference can be directly outputted inside the logic unit, or can be output to the lower stage after being divided. The phase-locked loop, the external reference source can also be directly output to the phase-locked loop outside the logic unit. The phase-locked loop locks the external reference source and generates a clock output to the logic unit for phase-lock detection.
如图3所示,锁相环输出接入一个分频器,可以设置合适的分频数,使得 分频后输出的时钟频率等于锁相环输入的时钟频率。分频器输出的时钟为周期脉冲信号,脉冲极性和宽度均是可调的,分频器清零时产生半宽脉冲输出。As shown in Figure 3, the phase-locked loop output is connected to a frequency divider, and the appropriate frequency division number can be set. The divided clock frequency is equal to the clock frequency of the phase-locked loop input. The clock output from the divider is a periodic pulse signal. The polarity and width of the pulse are adjustable. When the divider is cleared, a half-width pulse output is generated.
分频器输出接入触发器的数据端,触发器使用锁相环输入时钟采样,触发器数据输出端接入分频器和计数器的清零端。The divider output is connected to the data terminal of the flip-flop. The trigger uses the phase-locked loop input clock sampling, and the trigger data output terminal is connected to the clearing end of the frequency divider and the counter.
触发器在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号。The flip-flop samples the periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop.
当分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号。或者,当所述分频器输出负脉冲并且采样值为高电平时,产生表示清零操作的输出信号。如果产生表示清零操作的输出信号,则进行清零操作,也就是分频器清零并产生半宽脉冲,同时计数器清零。When the frequency divider outputs a positive pulse and the sample value is low, an output signal indicating a clear operation is generated. Alternatively, when the frequency divider outputs a negative pulse and the sample value is high, an output signal indicating a clear operation is generated. If an output signal indicating a clear operation is generated, a clear operation is performed, that is, the divider is cleared and a half-width pulse is generated, and the counter is cleared.
当分频器输出正脉冲并且采样值为高电平时,不产生表示清零操作的输出信号。或者,当所述分频器输出负脉冲并且采样值为低电平时,不产生表示清零操作的输出信号。如果不产生表示清零操作的输出信号,则分频器按照分频数输出周期脉冲,同时计数器累加直至溢出。When the divider outputs a positive pulse and the sample value is high, no output signal indicating a clear operation is generated. Alternatively, when the frequency divider outputs a negative pulse and the sample value is low level, an output signal indicating a clear operation is not generated. If an output signal indicating a clear operation is not generated, the frequency divider outputs a periodic pulse in accordance with the frequency division number while the counter is accumulated until overflow.
计数器采用锁相环输入时钟作为计数时钟,计数器清零时计数值清零,计数器不清零时,计数值周期累加,直至计数值溢出时则不再累加并输出锁定指示信号。在本实施例中,计数溢出值是可调的。计数溢出值不能设置太小,如果设置太小,则锁相环失锁时,计数器在未清零时,已达计数溢出值就会产生误锁定指示。计数溢出值也不能设置太大,如果设置太大,则锁相环正常锁定后就会迟迟不能显示锁定。The counter uses the phase-locked loop input clock as the count clock. When the counter is cleared, the count value is cleared. When the counter is not cleared, the count value period is accumulated. When the count value overflows, the lock indication signal is no longer accumulated and output. In this embodiment, the count overflow value is adjustable. The count overflow value cannot be set too small. If the setting is too small, when the phase-locked loop loses lock, when the counter is not cleared, the counter overflow value will be generated and a false lock indication will be generated. The count overflow value cannot be set too large. If the setting is too large, the lock will be delayed after the phase locked loop is normally locked.
实施例三Embodiment 3
在本实施例三中的场景下,锁相环输入时钟为8KHz,锁相环输出时钟为50MHz,该场景允许基准源有1us的相位跳变,而不会产生失锁告警。其中,锁相环输入时钟以及锁相环输出时钟可以根据需要进行设置,本公开对此不进行限定。In the scenario of the third embodiment, the phase-locked loop input clock is 8 kHz, and the phase-locked loop output clock is 50 MHz. This scenario allows the reference source to have a phase jump of 1 us without generating a lock-out alarm. The phase-locked loop input clock and the phase-locked loop output clock can be set as needed, which is not limited in this disclosure.
分频器输入时钟为50MHz,分频器输出时钟频率为8KHz,正脉冲宽度为2us,即锁相环输入时钟上升沿左右分别有1us相位跳变冗余。分频器清零时计数值清为50,分频器输出置为高电平1;计数至100时,分频器输出置为低电平0,计数至6250时,计数值自动清为0,同时分频器输出置为高电平1。 The input clock of the frequency divider is 50MHz, the output clock frequency of the frequency divider is 8KHz, and the positive pulse width is 2us, that is, the phase-locked loop input clock has a phase jump redundancy of about 1us. When the divider is cleared, the count value is cleared to 50, and the divider output is set to high level 1. When the count reaches 100, the divider output is set to low level 0. When the count is up to 6250, the count value is automatically cleared to 0. At the same time, the divider output is set to a high level of 1.
假设锁相环失锁时,锁相环输入时钟和输出时钟之间频偏为1ppm,当触发器采样到分频器输出时钟为低电平时,分频器清零,同时分频器输出1us宽度的正脉冲,计数器清零,并输出失锁指示0。触发器每125us进行一次采样,采样值为高电平,分频器正常分频无清零操作,计数器依次累加但未溢出仍然输出失锁指示0,经过连续8000次采样为高后,分频器输出时钟相对锁相环输入时钟累计相位漂移为125us*8000*10-6=1us。分频器输出时钟相对锁相环输入时钟累计相位不管是往左漂移1us还是往右漂移1us,下次触发器采样时均会采样为低电平。Assume that the phase-locked loop loses lock, the frequency offset between the input clock and the output clock of the phase-locked loop is 1ppm. When the trigger is sampled to the output clock of the divider, the divider is cleared, and the divider output is 1us. A positive pulse of width, the counter is cleared, and the lockout indication 0 is output. The flip-flop is sampled once every 125us, the sampling value is high level, the frequency divider is normally divided by the clearing operation, and the counter is added in sequence but not overflowing still outputs the loss of lock indication 0. After 8000 consecutive samples are high, the frequency is divided. The cumulative phase drift of the output clock relative to the phase-locked loop input clock is 125us*8000*10 -6 =1us. The frequency divider output clock is relative to the phase-locked loop input clock. The accumulated phase drifts 1us to the left or 1us to the right. The next trigger sampling will sample low.
如图4所示,分频器输出中虚线所示为未清零时分频器输出,触发器采样为低电平,分频器清零,同时分频器输出1us宽度的正脉冲,计数器清零,并输出失锁指示0。分频器和计数器每8000次采样执行一次清零,设置计数器溢出值为9000,则计数器永远不会溢出,维持输出失锁指示0。As shown in Figure 4, the dotted line in the output of the divider shows the output of the divider when it is not cleared. The trigger is sampled low, the divider is cleared, and the divider outputs a positive pulse of 1us width. Cleared and outputs the lockout indication 0. The divider and counter are cleared once every 8000 samples. If the counter overflow value is set to 9000, the counter will never overflow and the output loss lock indication will be maintained.
当锁相环锁定时,锁相环输入时钟和输出时钟之间达到频率同步,初次执行清零操作后,锁相环输入时钟和分频器输出时钟相位差稳定在1us,连续9000次采样均为高,分频器和计数器未发生清零操作,同时计数器溢出,计数值稳定在9000,不再累加,同时输出锁定指示1。即便基准源受到干扰导致相位跳变,但是在±1us范围内,仍然会稳定输出锁定指示1。When the phase-locked loop is locked, the frequency synchronization between the input clock and the output clock of the phase-locked loop is achieved. After the initial clear operation, the phase difference between the phase-locked loop input clock and the divider output clock is stable at 1us, and 9000 consecutive samples are used. If it is high, the divider and counter do not clear operation, and the counter overflows. The count value is stable at 9000, no longer accumulate, and the output lock indication is 1. Even if the reference source is disturbed and the phase jumps, the output lock indication 1 is stabilized within ±1us.
需要说明的是,在本公开实施例中,可以根据所选择的锁相环和应用场景来设定计数溢出值。例如所选择的锁相环在该场景下允许的相位跳变为Xus,则可以设定分频器产生的正负脉冲的宽度为2Xus(左右分别1Xus),假设该锁相环失锁时,锁相环输入时钟和输出时钟之间的频偏为Yppm(1ppm=10-6),该锁相环输入时钟,即触发器的采样时钟频率为F KHz,那么当发生锁相环失锁时,需要采样N次后,分频器和计数器产生清零操作。It should be noted that, in the embodiment of the present disclosure, the count overflow value may be set according to the selected phase locked loop and the application scenario. For example, if the selected phase-locked loop is allowed to change to Xus in this scenario, the width of the positive and negative pulses generated by the divider can be set to 2Xus (1Xus respectively), and if the phase-locked loop loses lock, The frequency offset between the input clock and the output clock of the phase-locked loop is Yppm (1ppm=10 -6 ). The phase-locked loop input clock, that is, the sampling clock frequency of the flip-flop is F KHz, then when the phase-locked loop loses lock After the sampling is required N times, the frequency divider and the counter generate a clear operation.
Figure PCTCN2017072902-appb-000001
Figure PCTCN2017072902-appb-000001
以本实施例三为例,F=8,X=1,Y=1,Taking the third embodiment as an example, F=8, X=1, Y=1,
此时计算得出
Figure PCTCN2017072902-appb-000002
也就是所取的计数器溢出值略大于 8000就可以,例如9000。
Calculated at this time
Figure PCTCN2017072902-appb-000002
That is to say, the counter overflow value is slightly larger than 8000, for example, 9000.
上述技术方案根据不同应用场景,不同锁相环芯片设置不同的分频器输出的脉冲宽度,可以防止在允许的干扰条件下,产生不必要的失锁告警,还可以防止当基准源干扰引起系统故障时却还没出现锁相环失锁告警。此外上述技术方案根据不同应用场景,不同锁相环芯片设置计数器的计数溢出值,溢出值不能太小,防止锁相环失锁时,计数器在未清零时,已达溢出值而产生误锁定指示,溢出值不能太大,防止正常锁定后,迟迟不能显示锁定。The above technical solution according to different application scenarios, different phase-locked loop chips set different pulse widths of the frequency divider output, can prevent unnecessary loss of lock alarm under the allowed interference conditions, and can prevent the system from being caused by the reference source interference. The fault of the phase-locked loop lost lock has not occurred yet. In addition, according to different application scenarios, different phase-locked loop chips set the counter overflow value of the counter, and the overflow value cannot be too small, and when the phase-locked loop loses lock, the counter has reached the overflow value and is incorrectly locked when the counter is not cleared. Indicates that the overflow value cannot be too large to prevent the lock from being displayed after the normal lock is prevented.
本公开实施例中锁相环输入时钟频率小于锁相环输出时钟频率,可选地,锁相环输入时钟频率小于锁相环输出时钟频率至少10倍及以上。In the embodiment of the present disclosure, the phase-locked loop input clock frequency is less than the phase-locked loop output clock frequency. Optionally, the phase-locked loop input clock frequency is less than 10 times and above the phase-locked loop output clock frequency.
同时,本公开实施例的技术方案不限定逻辑单元中分频器、触发器以及计数器的采样时钟采用上升沿还是下降沿,也不限定分频器和计数器采用同步清零还是异步清零。Meanwhile, the technical solution of the embodiment of the present disclosure does not limit whether the sampling clock of the frequency divider, the flip-flop, and the counter in the logic unit adopts a rising edge or a falling edge, and does not limit whether the frequency divider and the counter adopt synchronous clearing or asynchronous clearing.
实施例四Embodiment 4
如图5所示,本实施例提供一种锁相环失锁的检测方法,应用于实施例一至三中任一所述的锁相环失锁的检测系统。As shown in FIG. 5, the embodiment provides a method for detecting a phase-locked loop loss lock, which is applied to the phase-locked loop loss-of-lock detection system according to any one of embodiments 1 to 3.
在步骤110中,分频器以所述锁相环的输出时钟作为时钟信号,将输出信号发送给触发器的数据端。In step 110, the frequency divider sends the output signal to the data end of the flip-flop with the output clock of the phase-locked loop as a clock signal.
在步骤120中,所述触发器以所述锁相环的输入时钟作为采样时钟,将输出信号发送给所述分频器的清零端和计数器的清零端。In step 120, the flip-flop uses the input clock of the phase-locked loop as a sampling clock, and sends an output signal to the clearing end of the frequency divider and the clearing end of the counter.
在步骤130中,所述计数器以所述锁相环的输入时钟作为计数时钟,输出表示锁定或失锁的指示信号。In step 130, the counter uses the input clock of the phase locked loop as a count clock, and outputs an indication signal indicating lock or loss of lock.
可选地,所述方法还包括:Optionally, the method further includes:
所述分频器将锁相环的输出信号进行分频,产生和所述锁相环的输入时钟同频的周期脉冲信号并输出。The frequency divider divides the output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and outputs the same.
所述方法还包括:The method further includes:
所述触发器在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号,当所述分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号,或者,当所述分频器输出负脉冲并且采样值为高电平 时,产生表示清零操作的输出信号;The flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, and generates a representation when the frequency divider outputs a positive pulse and the sampling value is a low level. Clearing the output signal of the operation, or when the divider outputs a negative pulse and the sample value is high Generating an output signal indicative of a clearing operation;
所述分频器当清零端收到所述表示清零操作的输出信号时清零并产生半宽脉冲输出;以及The frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
所述计数器当清零端收到所述表示清零操作的输出信号时清零,输出表示失锁的指示信号。The counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
可选地,所述方法还包括:Optionally, the method further includes:
所述计数器在锁相环的输入时钟的每个上升沿或每个下降沿进行计数;以及当计数值达到预定的计数溢出值时不再累加,并输出表示锁定的指示信号。可选地,所述分频器产生的周期脉冲信号为正脉冲或负脉冲;以及所述分频器和计数器采用同步清零或异步清零。以上所述仅为本公开的可选实施例。本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的模块可以采用硬件的形式实现,可以采用软件功能模块的形式实现,也可以采用软件和硬件结合的方式实现。The counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock. Optionally, the periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared. The above description is only an alternative embodiment of the present disclosure. One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits. Accordingly, the modules in the foregoing embodiments may be implemented in the form of hardware, and may be implemented in the form of software functional modules. It can be implemented in a combination of software and hardware.
工业实用性Industrial applicability
本公开实施例提供的锁相环失锁的检测系统及检测方法,灵活调整锁相环失锁检测,规避了基准源信号受到干扰或者锁相环芯片内部锁定标准过于严格导致的不必要的失锁告警,同时还可以规避传统计数检测太松导致的误锁定指示。 The detection system and the detection method of the phase locked loop loss lock provided by the embodiment of the present disclosure flexibly adjust the lockout detection of the phase locked loop, and avoid the unnecessary loss caused by the interference of the reference source signal or the strict internal locking standard of the phase locked loop chip. The lock alarm can also avoid the mis-locking indication caused by the traditional counting detection being too loose.

Claims (10)

  1. 一种锁相环失锁的检测系统,所述锁相环的输入时钟频率小于锁相环的输出时钟频率;所述系统包括:A detection system for locking a phase locked loop, wherein an input clock frequency of the phase locked loop is smaller than an output clock frequency of the phase locked loop; the system includes:
    分频器、触发器和计数器;其中,Frequency dividers, flip-flops, and counters; among them,
    所述分频器以所述锁相环的输出时钟作为时钟信号,输出端连接所述触发器的数据端;The frequency divider uses the output clock of the phase locked loop as a clock signal, and the output end is connected to the data end of the flip-flop;
    所述触发器以所述锁相环的输入时钟作为采样时钟,输出端分别连接所述分频器的清零端和所述计数器的清零端;以及The flip-flop takes an input clock of the phase-locked loop as a sampling clock, and an output terminal is respectively connected to a clear end of the frequency divider and a clear end of the counter;
    所述计数器以所述锁相环的输入时钟作为计数时钟,输出端输出表示锁定或失锁的指示信号。The counter uses the input clock of the phase locked loop as a counting clock, and the output terminal outputs an indication signal indicating locking or loss of lock.
  2. 如权利要求1所述的系统,其中:The system of claim 1 wherein:
    所述分频器设置为将所述锁相环的输出信号进行分频,产生和锁相环的输入时钟同频的周期脉冲信号并输出。The frequency divider is configured to divide an output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and output the same.
  3. 如权利要求1所述的系统,其中:The system of claim 1 wherein:
    所述触发器在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号,当所述分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号,或者,当所述分频器输出负脉冲并且采样值为高电平时,产生表示清零操作的输出信号;The flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, and generates a representation when the frequency divider outputs a positive pulse and the sampling value is a low level. Clearing the output signal of the operation, or when the frequency divider outputs a negative pulse and the sample value is high level, generating an output signal indicating a clear operation;
    所述分频器当清零端收到所述表示清零操作的输出信号时清零并产生半宽脉冲输出;以及The frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
    所述计数器当清零端收到所述表示清零操作的输出信号时清零,输出表示失锁的指示信号。The counter is cleared when the clear terminal receives the output signal indicating the clear operation, and outputs an indication signal indicating that the lock is lost.
  4. 如权利要求3所述的系统,其中:The system of claim 3 wherein:
    所述计数器在锁相环的输入时钟的每个上升沿或每个下降沿进行计数;以 及当计数值达到预定的计数溢出值时不再累加,并输出表示锁定的指示信号。The counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; And when the count value reaches the predetermined count overflow value, it is no longer accumulated, and an indication signal indicating the lock is output.
  5. 如权利要求1所述的系统,其中:The system of claim 1 wherein:
    所述分频器产生的周期脉冲信号为正脉冲或负脉冲;以及所述分频器和计数器采用同步清零或异步清零。The periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared.
  6. 一种锁相环失锁的检测方法,应用于如权利要求1至5任一所述的锁相环失锁的检测系统,所述方法包括:A method for detecting a lockout of a phase locked loop, the method for detecting a phase locked loop loss of lock according to any one of claims 1 to 5, the method comprising:
    分频器以所述锁相环的输出时钟作为时钟信号,将输出信号发送给触发器的数据端;The frequency divider uses the output clock of the phase locked loop as a clock signal, and sends the output signal to the data end of the trigger;
    所述触发器以所述锁相环的输入时钟作为采样时钟,将输出信号发送给所述分频器的清零端和计数器的清零端;以及The flip-flop uses an input clock of the phase-locked loop as a sampling clock, and sends an output signal to a clear end of the frequency divider and a clear end of the counter;
    所述计数器以所述锁相环的输入时钟作为计数时钟,输出表示锁定或失锁的指示信号。The counter uses the input clock of the phase locked loop as a count clock, and outputs an indication signal indicating lock or loss of lock.
  7. 如权利要求6所述的方法,其所述方法还包括:The method of claim 6 wherein said method further comprises:
    所述分频器将锁相环的输出信号进行分频,产生和所述锁相环的输入时钟同频的周期脉冲信号并输出。The frequency divider divides the output signal of the phase locked loop to generate a periodic pulse signal of the same frequency as the input clock of the phase locked loop and outputs the same.
  8. 如权利要求6所述的方法,所述方法还包括:The method of claim 6 further comprising:
    所述触发器在锁相环的输入时钟的每个上升沿或每个下降沿采样分频器输出的周期脉冲信号,当所述分频器输出正脉冲并且采样值为低电平时,产生表示清零操作的输出信号,或者,当所述分频器输出负脉冲并且采样值为高电平时,产生表示清零操作的输出信号;The flip-flop samples a periodic pulse signal output by the frequency divider on each rising edge or every falling edge of the input clock of the phase locked loop, and generates a representation when the frequency divider outputs a positive pulse and the sampling value is a low level. Clearing the output signal of the operation, or when the frequency divider outputs a negative pulse and the sample value is high level, generating an output signal indicating a clear operation;
    所述分频器当清零端收到所述表示清零操作的输出信号时清零并产生半宽脉冲输出;以及The frequency divider is cleared when the clear terminal receives the output signal indicating the clear operation and generates a half-width pulse output;
    所述计数器当清零端收到所述表示清零操作的输出信号时清零,输出表示 失锁的指示信号。The counter is cleared when the clear terminal receives the output signal indicating the clear operation, and the output indicates Loss of lock indication signal.
  9. 如权利要求8所述的方法,所述方法还包括:The method of claim 8 further comprising:
    所述计数器在锁相环的输入时钟的每个上升沿或每个下降沿进行计数;以及当计数值达到预定的计数溢出值时不再累加,并输出表示锁定的指示信号。The counter counts on each rising edge or each falling edge of the input clock of the phase locked loop; and no longer accumulates when the count value reaches a predetermined count overflow value, and outputs an indication signal indicating the lock.
  10. 如权利要求6所述的方法,其中:The method of claim 6 wherein:
    所述分频器产生的周期脉冲信号为正脉冲或负脉冲;以及所述分频器和计数器采用同步清零或异步清零。 The periodic pulse signal generated by the frequency divider is a positive pulse or a negative pulse; and the frequency divider and the counter are synchronously cleared or asynchronously cleared.
PCT/CN2017/072902 2016-03-03 2017-02-04 Loss-of-lock detection system and method for phase-locked loop WO2017148240A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610120447.1A CN107154800B (en) 2016-03-03 2016-03-03 Detection system and detection method for phase-locked loop losing lock
CN201610120447.1 2016-03-03

Publications (1)

Publication Number Publication Date
WO2017148240A1 true WO2017148240A1 (en) 2017-09-08

Family

ID=59743457

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072902 WO2017148240A1 (en) 2016-03-03 2017-02-04 Loss-of-lock detection system and method for phase-locked loop

Country Status (2)

Country Link
CN (1) CN107154800B (en)
WO (1) WO2017148240A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110504968B (en) * 2018-05-17 2023-03-24 四川锦江电子医疗器械科技股份有限公司 Double-asynchronous signal sampling counting device and method
CN112332835B (en) * 2020-10-30 2022-04-12 西南电子技术研究所(中国电子科技集团公司第十研究所) Real-time detection digital phased array time-frequency signal fault and recovery processing method thereof
CN115580294A (en) * 2021-06-21 2023-01-06 中兴通讯股份有限公司 Clock circuit, control method thereof and communication equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6762631B1 (en) * 2001-11-06 2004-07-13 National Semiconductor Corporation Lock detection circuit for a phase locked loop circuit
CN1801623A (en) * 2005-01-06 2006-07-12 华为技术有限公司 Phase-locked loop abatement detecting method
CN101399541A (en) * 2007-09-25 2009-04-01 立积电子股份有限公司 Adjustable digital lock detector

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4724402A (en) * 1987-04-23 1988-02-09 Rockwell International Corporation Phase-locked loop apparatus using an embedded oscillator as a lock detection means
CA2130871C (en) * 1993-11-05 1999-09-28 John M. Alder Method and apparatus for a phase-locked loop circuit with holdover mode
DE60302440T2 (en) * 2002-02-01 2006-08-03 Koninklijke Philips Electronics N.V. VIBRATION LIVE LOOP LOOP
CN101640536B (en) * 2009-08-31 2012-04-18 豪威国际控股有限公司 Locking detector of phase-locked loop (PLL) and detection method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6762631B1 (en) * 2001-11-06 2004-07-13 National Semiconductor Corporation Lock detection circuit for a phase locked loop circuit
CN1801623A (en) * 2005-01-06 2006-07-12 华为技术有限公司 Phase-locked loop abatement detecting method
CN101399541A (en) * 2007-09-25 2009-04-01 立积电子股份有限公司 Adjustable digital lock detector

Also Published As

Publication number Publication date
CN107154800A (en) 2017-09-12
CN107154800B (en) 2020-02-28

Similar Documents

Publication Publication Date Title
US6320469B1 (en) Lock detector for phase-locked loop
US6466058B1 (en) PLL lock detection using a cycle slip detector with clock presence detection
US6297702B1 (en) Phase lock loop system and method
US7595672B2 (en) Adjustable digital lock detector
CN110247656B (en) Damaged clock detection circuit for phase-locked loop
WO2017148240A1 (en) Loss-of-lock detection system and method for phase-locked loop
US7676014B2 (en) Digital lock detector for phase-locked loop
US9417655B2 (en) Frequency division clock alignment
KR20150120941A (en) Phase lock loop indicator
WO2006044123A1 (en) Reducing metastable-induced errors from a frequency detector that is used in a phase-locked loop
US7015727B2 (en) Generating a lock signal indicating whether an output clock signal generated by a PLL is in lock with an input reference signal
CN110635800B (en) Locking indication circuit and method applied to phase-locked loop and based on frequency comparison
EP1123580A1 (en) Charge pump phase locked loop circuit
KR100630342B1 (en) Phase lock loop circuit having phase lock detecting function and method for detecting phase lock thereof
US20030112915A1 (en) Lock detector circuit for dejitter phase lock loop (PLL)
KR100709518B1 (en) Phase-locked loop circuit
US9455823B2 (en) Four-phase clock generator with timing sequence self-detection
US9548745B2 (en) Phase-detector circuit and clock-data recovery circuit
US20120110365A1 (en) Method for locking frequency of usb device and usb frequency locking device
JP2013197692A (en) Pll clock generation circuit
CN110971238B (en) External synchronization device for continuous equal-gap sampling of sigma-delta type AD
US7023944B2 (en) Method and circuit for glitch-free changing of clocks having different phases
JP6863373B2 (en) Detection device and detection method
JPH04306930A (en) Clock fault detector
KR20080077515A (en) Method of detecting locking of a phase and phase locked loop circuit for performing the same

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17759091

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17759091

Country of ref document: EP

Kind code of ref document: A1