WO2011157025A1 - Method and device for controlling crystal oscillator output clock - Google Patents

Method and device for controlling crystal oscillator output clock Download PDF

Info

Publication number
WO2011157025A1
WO2011157025A1 PCT/CN2010/078049 CN2010078049W WO2011157025A1 WO 2011157025 A1 WO2011157025 A1 WO 2011157025A1 CN 2010078049 W CN2010078049 W CN 2010078049W WO 2011157025 A1 WO2011157025 A1 WO 2011157025A1
Authority
WO
WIPO (PCT)
Prior art keywords
crystal oscillator
crystal
voltage
voltage control
data storage
Prior art date
Application number
PCT/CN2010/078049
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 WO2011157025A1 publication Critical patent/WO2011157025A1/en

Links

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/08Details of the phase-locked loop
    • H03L7/14Details of the phase-locked loop for assuring constant frequency when supply or correction voltages fail or are interrupted
    • H03L7/146Details of the phase-locked loop for assuring constant frequency when supply or correction voltages fail or are interrupted by using digital means for generating the oscillator control signal

Landscapes

  • Oscillators With Electromechanical Resonators (AREA)

Abstract

A method and a device for controlling a crystal oscillator output clock are provided, and the method includes: when the crystal oscillator is in a normal control state, the crystal oscillator voltage-controlled voltage for controlling the crystal oscillator is stored; when the external reference clock is lost, the stored crystal oscillator voltage-controlled voltage is used to control the crystal oscillator. Using the present solution, in the case of losing the reference clock of one second output by a Global Positioning System (GPS) receiver, the crystal oscillator can still control the crystal oscillator voltage-controlled voltage, so as to achieve the effect that the clock is output as stably as possible, and the reliability of the system is improved. The method of the present solution is simple and clear, it is easy to be implemented and without additional hardware and software resource requirements, it can be as a general method, which is used by the Oven Controlled Crystal Oscillator (OCXO) and the Temperature Compensate crystal Oscillator (TCXO) having the GPS reference to continue to output the clock stably when the reference is lost, and the method of the present solution is important for a system which is very strict to the clock, such as Worldwide Interoperability for Microwave Access (WIMAX), etc.

Description

一种控制晶振输出时钟的方法及装置  Method and device for controlling crystal oscillator output clock
技术领域 Technical field
本发明涉及时钟控制技术领域, 尤其涉及一种控制晶振输出时钟的方法 及装置。  The present invention relates to the field of clock control technologies, and in particular, to a method and apparatus for controlling a crystal oscillator output clock.
背景技术 Background technique
各类通讯产品和设备中广泛应用晶振振荡器(简称晶振)作为本地的时 钟源。 晶振的作用是为设备提供一个时钟信号源。 在对时钟要求比较严格的 情况下, 例如, 釆用时分复用模式的 Wimax (全球微波互联接入)等协议, 时钟在整个协议中相当重要, 如果网元中时钟不同步, 就无法实现网元同步 和切换基站等功能, 导致用户无法通讯。  A crystal oscillator (referred to as a crystal oscillator) is widely used as a local clock source in various communication products and equipment. The role of the crystal is to provide a clock source for the device. In the case of strict clock requirements, for example, Wimax (Worldwide Interoperability for Microwave Access), which uses time division multiplexing mode, the clock is very important in the whole protocol. If the clocks in the network element are not synchronized, the network cannot be implemented. Features such as meta-synchronization and switching base stations cause users to be unable to communicate.
本地晶振受温度、 老化等的影响, 在短时间内稳定, 长时间运行后会有 偏差, 目前, 可以釆用 GPS (全球卫星定位系统)接收机, 在搜到足够数量 的卫星后进行算法处理, 输出稳定的 Is作为参考时钟, 来对本地时钟进行修 正, 可以使本地时钟尽可能稳定。  The local crystal oscillator is affected by temperature, aging, etc., and is stable in a short time. There will be deviation after long-term operation. At present, GPS (Global Positioning System) receiver can be used to perform algorithm processing after searching for a sufficient number of satellites. The output is stable as a reference clock to correct the local clock to make the local clock as stable as possible.
GPS接收机输出的 Is脉冲是由接收的多颗卫星的原子钟信号合成而成, 具有长时稳定性。 在地球的任何地方, 在天气好的时候一般都可以搜到 8颗 左右的卫星。 卫星釆用原子时钟, 精度极高, GPS接收机内部具有固化的算 法, 进行计算后输出稳定的 Is, 但是, 由于搜星受外部环境如天气、 硬件状 况的影响, 而且 1秒才能收到一次, 不能完全代替本地时钟, 所以釆用本地 时钟计数 10M次作为本地的 Is, 用 GPS接收机发出的 Is, 每 1秒同步一次 本地时钟。  The Is pulse output by the GPS receiver is synthesized from the atomic clock signals of a plurality of satellites received, and has long-term stability. Anywhere around the globe, you can usually find around 8 satellites when the weather is good. The satellite uses an atomic clock with high precision. The GPS receiver has a solidification algorithm inside, and it outputs a stable Is. However, because the search star is affected by the external environment such as weather and hardware conditions, it can be received once in 1 second. It can't completely replace the local clock, so use the local clock to count 10M times as the local Is, and use the Iss sent by the GPS receiver to synchronize the local clock every 1 second.
如图 1所示,现有技术中以 GPS接收机发出的 Is作为标准,用本地晶振 输出的时钟每计数 10M次作为一个本地输出的 1 s , 和标准 1 s进行比较, 每 一个控制周期 (即计算晶振的控制电压变化量并写晶振的数字模拟转换器的 周期)对两个 Is比较得到的偏差, 进行 PID (比例-积分-微分)运算得到晶 振压控电压, 设置一次晶振的模拟数字转换器, 来调节晶振的输出频率, 形 成一个闭环控制, 使得晶振输出的时钟能够不断向 GPS接收机发出的 1S靠 近。 As shown in Fig. 1, in the prior art, the Iss issued by the GPS receiver is used as a standard, and the clock outputted by the local crystal oscillator is counted 10 times per time as a local output of 1 s, and compared with the standard 1 s, each control cycle ( That is, calculate the variation of the control voltage of the crystal oscillator and write the period of the digital-to-analog converter of the crystal oscillator.) The deviation obtained by comparing the two Is, perform the PID (proportional-integral-derivative) operation to obtain the crystal voltage control voltage, and set the analog value of the primary crystal. Converter to adjust the output frequency of the crystal, In a closed-loop control, the crystal output clock can continuously approach the 1S sent by the GPS receiver.
中国专利申请公开说明书 CN200720069790.4公开了一种 GPS/NTP双输 入同步时钟, 包括 GPS接收单元、 时间基准单元、 时间保持单元 OCXO振荡 器、 实时时钟、总线、至少一个输出卡和显示卡板, GPS接收单元一端与 GPS 天线连接, 另一端与基准单元连接, 基准单元分别与时间保持单元 OCXO振 荡器和实时时钟连接, 同时通过总线与至少一个输出卡和显示卡板连接, 其 特征在于,基准单元和总线分别与 NTP输入卡板连接, NTP输入卡板与 RG45 线缆连接。  The Chinese Patent Application Publication No. CN200720069790.4 discloses a GPS/NTP dual input synchronous clock, which comprises a GPS receiving unit, a time reference unit, a time keeping unit OCXO oscillator, a real time clock, a bus, at least one output card and a display card board. One end of the GPS receiving unit is connected to the GPS antenna, and the other end is connected to the reference unit. The reference unit is respectively connected to the time keeping unit OCXO oscillator and the real-time clock, and is connected to at least one output card and the display card through the bus, and is characterized in that the reference is The unit and the bus are respectively connected to the NTP input card board, and the NTP input card board is connected to the RG45 cable.
中国专利申请公开说明书 CN200510055360公开了一种射频拉远模块中 时钟信号的数字锁相方法, 涉及宽带码分多址(WCDMA ) 系统的射频拉远 模块中时钟信号的数字锁相方法,该方法以时钟信号的数字锁相技术为核心, 利用现场可编程门阵列(FPGA )实现数字锁相, 其中以 GPS接收机产生的 1 周期 /秒( Is )方波信号或光传输物理接口模块提取的基站时钟 30.7MHz方波 信号分频后产生的 1周期 /秒信号做基准, 通过数字锁相技术动态调整 OCXO 输出频率, 以获得长期稳定的高精度时钟信号, 从而为射频拉远模块中的其 他单板提供高精度的同步时钟。  The Chinese Patent Application Publication No. CN200510055360 discloses a digital phase locking method for a clock signal in a radio remote module, and relates to a digital phase locking method for a clock signal in a radio remote module of a wideband code division multiple access (WCDMA) system, the method The digital phase-locking technology of the clock signal is the core, and the digital phase-locking is realized by the field programmable gate array (FPGA), wherein the base station extracted by the GPS receiver is a 1-cycle/second ( Is ) square wave signal or an optical transmission physical interface module. The 1 cycle/second signal generated by the 30.7MHz square wave signal is used as a reference. The OCXO output frequency is dynamically adjusted by digital phase-locking technology to obtain a long-term stable high-precision clock signal, which is the other single in the RF remote module. The board provides a high precision synchronous clock.
综上所述, 现有方法都是将 GPS接收机输出的 Is作为外部参考时钟来 校准本地时钟, 但是, 在失去 GPS参考的情况下, 本地时钟将处于不可控状 态, 长时间运行后会出现偏差。  In summary, the existing method uses the Is output of the GPS receiver as an external reference clock to calibrate the local clock. However, in the case of losing the GPS reference, the local clock will be in an uncontrollable state and will appear after a long time of operation. deviation.
发明内容 Summary of the invention
本发明提供一种控制晶振输出时钟的方法及装置, 实现在失去外部参考 时钟的情况下, 晶振仍能输出稳定的时钟。  The invention provides a method and a device for controlling a crystal oscillator output clock, which can realize a stable clock when the external reference clock is lost.
为解决上述技术问题, 本发明的一种控制晶振输出时钟的方法, 包括: 在晶振处于正常的控制状态时, 保存对晶振进行控制的晶振压控电压; 以及  In order to solve the above technical problem, a method for controlling a crystal oscillator output clock of the present invention includes: saving a crystal voltage control voltage for controlling a crystal oscillator when a crystal oscillator is in a normal control state;
在失去外部参考时钟时, 釆用所保存的晶振压控电压对晶振进行控制。 釆用所保存的晶振压控电压对晶振进行控制的步骤可以为: 对所保存的 晶振压控电压中的多个求平均, 将得到的平均值作为失去外部参考时钟时的 晶振压控电压对晶振进行控制; 或者, 从所保存的晶振压控电压中选择晶振 压控电压作为失去外部参考时钟时的晶振压控电压对晶振进行控制。 When the external reference clock is lost, the crystal is controlled by the saved crystal voltage control voltage. The step of controlling the crystal oscillator by using the saved crystal voltage control voltage may be: averaging a plurality of saved crystal voltage control voltages, and using the average value as a crystal voltage control voltage pair when the external reference clock is lost. The crystal oscillator is controlled; or, the crystal oscillator voltage control voltage is selected from the saved crystal voltage control voltage as the crystal oscillator voltage control voltage when the external reference clock is lost, and the crystal oscillator is controlled.
该方法还可包括: 设置一数据存储标识; 完成在晶振处于正常的控制状 态时对晶振进行控制的晶振压控电压的保存后, 将数据存储标识设置为标记 数据存储完成; 该方法在釆用所保存的晶振压控电压对晶振进行控制的步骤 之前还可包括: 在失去外部参考时钟时, 根据数据存储标识将晶振切换到保 持 ( holdover )状态。  The method may further include: setting a data storage identifier; completing the saving of the crystal voltage control voltage for controlling the crystal oscillator when the crystal oscillator is in a normal control state, setting the data storage identifier to the mark data storage completion; The step of controlling the crystal oscillator voltage control voltage to control the crystal oscillator may further include: when the external reference clock is lost, switching the crystal oscillator to a holdover state according to the data storage identifier.
保存对晶振进行控制的晶振压控电压的步骤中, 可以每个控制周期保存 一次晶振压控电压; 其中, 若该控制周期中产生多个晶振压控电压, 则可对 该多个晶振压控电压求均值, 对该均值进行保存。  In the step of storing the crystal voltage control voltage for controlling the crystal oscillator, the crystal voltage control voltage may be saved once every control period; wherein, if a plurality of crystal voltage control voltages are generated in the control period, the plurality of crystal oscillators may be voltage-controlled The voltage is averaged and the average is saved.
该方法还可包括: 若未保存在晶振处于正常的控制状态时对晶振进行控 制的晶振压控电压, 将数据存储标识设置为标记数据存储未完成; 以及, 在 失去外部参考时钟时, 根据数据存储标识将晶振切换到自由振荡状态。  The method may further include: if the crystal voltage control voltage that controls the crystal oscillator when the crystal oscillator is in a normal control state is not saved, setting the data storage identifier to the flag data storage is not completed; and, when the external reference clock is lost, according to the data The memory flag switches the crystal to a free-running state.
晶振可以为恒温控制晶体振荡器 (OCXO ) ; 该方法在釆用所保存的晶 振压控电压对晶振进行控制的步骤之后还可包括: 釆用所保存的晶振压控电 压计算对该 OCXO进行老化补偿的去老化系数, 将该去老化系数与上一次的 在失去外部参考时钟时对该 OCXO进行控制的晶振压控电压进行累加, 利用 累加结果对 OCXO进行控制。计算对该 OCXO进行老化补偿的去老化系数的 步骤可包括: 从所保存的晶振压控电压中读取出两组数据 xj ]和 x2[ ], 分别对 该两组数据求均值 , 计算 第二子系数 , / 2
Figure imgf000005_0001
; 计算 第一保持系数 ^= ^ / ,计算第二保持系数 = , ^算 Μ= - ^ , 计算去老化系数 Δν , Δν = ^ - ^ - ; 其中, Α为固定系数, B > 0。
The crystal oscillator may be a thermostatically controlled crystal oscillator (OCXO); the method may further comprise: after consuming the saved crystal oscillator voltage control voltage to control the crystal oscillator: aging the OCXO by using the saved crystal oscillator voltage control voltage calculation The de-aging coefficient of the compensation, the de-aging coefficient is accumulated with the last crystal voltage control voltage that controls the OCXO when the external reference clock is lost, and the OCXO is controlled by the accumulation result. The step of calculating the de-aging coefficient for aging compensation of the OCXO may include: reading two sets of data xj ] and x 2 [ ] from the saved crystal voltage control voltage, and respectively averaging the two sets of data, and calculating the first Two sub-coefficient, / 2
Figure imgf000005_0001
Calculate the first holding coefficient ^= ^ / , calculate the second holding coefficient = , ^ calculate Μ = - ^ , calculate the de-aging coefficient Δν , Δν = ^ - ^ - ; where Α is a fixed coefficient, B > 0.
本发明还提供一种控制晶振输出时钟的装置, 包括: 相互连接的数据存 储模块和晶振控制模块; 其中,  The present invention also provides an apparatus for controlling a crystal oscillator output clock, comprising: an interconnected data storage module and a crystal oscillator control module;
数据存储模块设置成在晶振处于正常的控制状态时, 保存对晶振进行控 制的晶振压控电压; 晶振控制模块设置成在失去外部参考时钟时, 从数据存储模块读取所保 存的晶振压控电压, 釆用所读取的晶振压控电压对晶振进行控制。 The data storage module is configured to save the crystal voltage control voltage for controlling the crystal oscillator when the crystal oscillator is in a normal control state; The crystal control module is configured to read the saved crystal voltage control voltage from the data storage module when the external reference clock is lost, and to control the crystal oscillator by using the read crystal voltage control voltage.
晶振控制模块可设置成通过如下方式釆用所读取的晶振压控电压对晶振 进行控制: 对所读取的多个晶振压控电压求平均, 将得到的平均值作为失去 外部参考时钟时的晶振压控电压对晶振进行控制; 或者, 从所读取的晶振压 控电压中选择晶振压控电压作为失去外部参考时钟时的晶振压控电压对晶振 进行控制。  The crystal control module can be configured to control the crystal oscillator by using the read crystal voltage control voltage by: averaging the read voltages of the plurality of crystal oscillators, and using the average value as the external reference clock is lost. The crystal oscillator voltage control voltage controls the crystal oscillator; or, the crystal oscillator voltage control voltage is selected from the read crystal oscillator voltage control voltage as the crystal oscillator voltage control voltage when the external reference clock is lost, and the crystal oscillator is controlled.
该装置还可包括标识设置模块; 数据存储模块还可设置成在完成在晶振 处于正常的控制状态时对晶振进行控制的晶振压控电压的保存后, 通知标识 设置模块数据保存完成; 标识设置模块可设置成根据数据存储模块的通知, 设置一数据存储标识为标记数据存储完成; 晶振控制模块可设置成在失去外 部参考时钟时, 根据数据存储标识将晶振切换到保持(holdover )状态后, 才 釆用所保存的晶振压控电压对晶振进行控制。  The device may further include an identifier setting module; the data storage module may be further configured to notify the identifier setting module that the data storage is completed after the crystal voltage control voltage for controlling the crystal oscillator is completed when the crystal oscillator is in a normal control state; It may be set to set a data storage identifier to be marked data storage completion according to the notification of the data storage module; the crystal vibration control module may be configured to switch the crystal oscillator to a holdover state according to the data storage identifier when the external reference clock is lost.对 Control the crystal with the saved crystal voltage control voltage.
综上所述, 本发明使得晶振在失去 GPS接收机输出的 1秒参考时钟的情 况下, 仍然能对晶振压控电压进行控制, 从而达到尽可能稳定输出时钟的效 果, 提高了系统的可靠性。 本发明给出的方法简捷清晰, 易于实现且无额外 软硬件资源需求, 可以作为具有 GPS参考的恒温控制晶体振荡器 ( OCXO ) 、 温度补偿晶体振荡器 (TCXO ) 晶振在失去参考时继续稳定输出时钟下的一 个通用方法, 对于 wimax等对时钟要求非常严格的系统, 具有重要意义。  In summary, the present invention enables the crystal oscillator to control the crystal voltage control voltage in the case of losing the 1-second reference clock output from the GPS receiver, thereby achieving the effect of stabilizing the output clock as much as possible, and improving the reliability of the system. . The method provided by the invention is simple and clear, easy to implement and has no additional hardware and software resource requirements, and can be used as a GPS reference thermostat controlled crystal oscillator (OCXO), temperature compensated crystal oscillator (TCXO) crystal oscillator to continue stable output when the reference is lost. A general method under the clock is important for systems such as wimax that have very strict clock requirements.
附图概述 BRIEF abstract
图 1为现有技术中釆用 GPS接收机输出的 Is时钟作为参考对晶振进行控 制的原理图;  1 is a schematic diagram of controlling a crystal oscillator by using an Is clock outputted by a GPS receiver as a reference in the prior art;
图 2为本实施方式实现控制晶振输出时钟的方法的流程图;  2 is a flowchart of a method for controlling a crystal oscillator output clock according to an embodiment of the present invention;
图 3为本实施方式对 OCXO晶振进行控制的方法的流程图;  3 is a flow chart of a method for controlling an OCXO crystal oscillator according to an embodiment of the present invention;
图 4为本实施方式实现控制晶振输出时钟的装置的架构图。  FIG. 4 is a structural diagram of an apparatus for controlling a crystal oscillator output clock according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
本实施方式是在失去 GPS接收机输出的 Is作为参考时钟的情况下, 保 证晶振继续稳定地输出时钟, 以克服在失去参考时钟的情况下, 无法对晶振 进行控制而对设备造成的影响, 可以增加设备的可靠性。 In the embodiment, when the Is output of the GPS receiver is lost as the reference clock, The crystal oscillator continues to output the clock steadily to overcome the influence of the crystal oscillator when the reference clock is lost, which can increase the reliability of the device.
目前釆用 GPS接收机输出的 Is作为参考时钟时, 晶振所处的状态可以 分为: 预热、 粗调、 精调 1、 精调 2和自由振荡。  At present, when the Is output of the GPS receiver is used as the reference clock, the state of the crystal oscillator can be divided into: preheating, coarse tuning, fine tuning 1, fine tuning 2, and free oscillation.
预热是指: 单板开始上电时, GPS接收机与单板的 CPU进行电文应答的 准备过程, 该过程不进行晶振的鉴相和电压控制等。  Preheating means: When the board starts to power on, the GPS receiver and the CPU of the board perform the preparation process of the message response. This process does not perform phase discrimination and voltage control of the crystal oscillator.
在 GPS接收机完成初始化、接收卫星电文正常、 连续 10s状态为 3D FIX 或 TIME模式和 Is无错误的情况下, 结束晶振预热阶段, 如果具有外部的参 考时钟, 晶振可控, 晶振可能进入的状态为: 粗调、 精调 1和精调 2。  In the case that the GPS receiver completes initialization, receives satellite signal normal, continuous 10s state is 3D FIX or TIME mode, and Is error-free, the crystal preheating phase is terminated. If there is an external reference clock, the crystal oscillator is controllable, and the crystal oscillator may enter. The status is: coarse, fine 1 and fine 2.
粗调是指 GPS接收机完成初始化之后, 进入正常的晶振控制流程所处的 第一个阶段。 在晶振控制进入粗调状态之后, 晶振在不断的调节本地的 Is, 向 GPS的标准 Is不断靠拢。根据一个控制周期得到的晶振压控电压均值所处 的范围, 以及多次比较相邻控制周期之间变化趋势, 晶振状态相应地在粗调、 精调 1和精调 2三种状态之间切换, 其中精调 2的时钟精确度最高。  Coarse adjustment refers to the first stage of the normal crystal oscillator control process after the GPS receiver has completed initialization. After the crystal control enters the coarse adjustment state, the crystal oscillator constantly adjusts the local Is, and constantly moves closer to the GPS standard Is. According to the range of the crystal voltage control voltage average obtained in one control cycle, and the change trend between adjacent control cycles, the crystal state is switched between coarse adjustment, fine adjustment 1 and fine adjustment 2 correspondingly. , Fine tuning 2 has the highest clock accuracy.
自由振荡是指无法控制晶振, 晶振自由运行, 此刻晶振输出的时钟不可 用, 对于 wimax基站而言, 此刻终端全部脱网, 接入、 切换全部失败。 现有 技术中在失去外部参考时钟的情况下晶振进入自由振荡状态。  Free oscillation means that the crystal oscillator cannot be controlled, and the crystal oscillator is free to run. At this moment, the clock output of the crystal oscillator is unusable. For the wimax base station, all the terminals are off-grid at the moment, and all access and handover fail. In the prior art, the crystal oscillator enters a free oscillation state in the event that the external reference clock is lost.
在晶振失去外部参考时钟的情况下, 如果要使时钟尽可能维持稳定, 就 需要继续控制晶振压控电压, 且晶振压控电压要尽可能靠近晶振正常控制时 的电压数据, 从 Is状态来看, 就是在失去外部参考时钟时, 晶振仍然尽量不 偏离 Is, 保持时钟的稳定性。  In the case that the crystal oscillator loses the external reference clock, if the clock is to be kept as stable as possible, it is necessary to continue to control the crystal voltage control voltage, and the crystal voltage control voltage should be as close as possible to the voltage data of the crystal oscillator during normal control, from the Is state. That is, when the external reference clock is lost, the crystal oscillator still tries not to deviate from Is to maintain the stability of the clock.
因此, 本实施方式考虑对晶振增加一种状态: holdover (保持)状态, holdover状态是指晶振失去参考时钟时仍然能够稳定输出时钟的状态, 能够 对晶振的老化进行补偿, 使晶振稳定输出时钟。  Therefore, this embodiment considers adding a state to the crystal oscillator: the holdover state, which is a state in which the crystal oscillator can stably output the clock when the crystal oscillator loses the reference clock, and can compensate for the aging of the crystal oscillator to stabilize the output clock of the crystal oscillator.
要使得晶振能够进入 holdover状态, 前提条件是在有 GPS外部参考, 晶 振处于精调 2状态时, 存储晶振压控电压数据, 该数据称为 holdover数据。 在不具备 GPS接收机输出的 Is作为外部参考时,如果存储了所需的 holdover 数据, 则进入 holdover状态; 若未存储, 则进入自由振荡状态。 下面结合附图对本实施方式进行详细说明。 In order to enable the crystal to enter the holdover state, the precondition is that when there is a GPS external reference and the crystal oscillator is in the fine adjustment 2 state, the crystal voltage control voltage data is stored, and the data is called holdover data. When Is without the GPS receiver output is used as an external reference, if the required holdover data is stored, it enters the holdover state; if it is not stored, it enters the free-running state. The present embodiment will be described in detail below with reference to the accompanying drawings.
图 2为本实施方式控制晶振输出时钟的方法, 包括:  2 is a method for controlling a crystal oscillator output clock according to an embodiment of the present invention, including:
201 : 在晶振处于正常控制状态 (如精调 2 ) 时, 存储 holdover数据; 在 GPS接收机稳定输出 Is的情况下, 根据 GPS输出的 Is和本地 Is鉴 相的结果, 根据 PID (比例-积分-微分)算法在每个控制周期计算晶振压控电 压, 将计算得到的晶振压控电压发送给晶振的数模转换器, 通过该数模转换 器调节晶振的输出频率, 以控制晶振的输出时钟。 在晶振处于状态精调 2时, 晶振已处于稳定输出时钟的状态, 因此, 将精调 2 时的晶振压控电压作为 holdover数据进行存储。  201 : Stores the holdover data when the crystal oscillator is in a normal control state (such as fine tuning 2); in the case of the GPS receiver stable output Is, according to the result of the GPS output Is and the local Is phase, according to the PID (proportional-integral The -differential algorithm calculates the crystal voltage control voltage in each control cycle, and sends the calculated crystal voltage control voltage to the digital-to-analog converter of the crystal oscillator, and the output frequency of the crystal oscillator is adjusted by the digital-to-analog converter to control the output clock of the crystal oscillator . When the crystal is in fine state 2, the crystal oscillator is in the state of stable output clock. Therefore, the crystal voltage control voltage at fine tuning 2 is stored as holdover data.
可以每个控制周期存储一次 holdover数据, 每个控制周期中的每一秒钟 都在鉴相, 如控制周期为 5秒则产生 5个晶振压控电压, 求出这 5个电压的 均值, 作为一个 holdover数据, 作为 holdover数据的晶振压控电压可以存储 到内存的一个数组中。  The holdover data can be stored once per control cycle, and each second of each control cycle is phase-detected. If the control period is 5 seconds, five crystal voltage-controlled voltages are generated, and the average of the five voltages is obtained. A holdover data, the crystal voltage control voltage as holdover data can be stored in an array of memory.
202: 当完成数据存储后, 设置一数据存储标识, 标记 holdover数据存储 完成;  202: After completing the data storage, setting a data storage identifier, marking the holdover data storage is completed;
203: 在晶振失去外部参考时钟时, 根据数据存储标识判断 holdover数据 是否存储完成, 如果已存储所需的 holdover数据, 则将晶振切换到 holdover 状态;  203: When the crystal oscillator loses the external reference clock, judge whether the holdover data is stored according to the data storage identifier, and if the required holdover data has been stored, switch the crystal oscillator to the holdover state;
在 GPS接收机受外界影响, 搜星不足 4颗或天馈异常等情况发生时, 可 能导致 GPS接收机输出的 Is消失, 也就是失去外部参考时钟。  When the GPS receiver is affected by the outside world, if there are less than 4 search stars or abnormal antenna feeds, it may cause the Is output of the GPS receiver to disappear, that is, the external reference clock is lost.
可以在失去外部参考时钟达到某一指定时间, 如 10秒左右时, 将晶振切 换到 holdover状态, 维持本地时钟不中断, 维护时钟的正常输出。  The crystal can be switched to the holdover state when the external reference clock is lost for a specified period of time, such as 10 seconds, to maintain the local clock without interruption, and maintain the normal output of the clock.
如果未存储所需的 holdover数据, 则将晶振切换到自由振荡状态。  If the required holdover data is not stored, the crystal oscillator is switched to the free-running state.
204: 釆用所存储的 holdover数据, 对晶振进行控制。  204: Use the stored holdover data to control the crystal.
本实施方式中可以对所存储的 holdover数据中的多个求平均, 将求得的 平均值作为晶振压控电压, 对晶振进行控制, 也可以从所存储的 holdover数 据中选择数据作为晶振压控电压, 对晶振进行控制。  In this embodiment, a plurality of stored holdover data may be averaged, and the obtained average value is used as a crystal oscillator voltage control voltage to control the crystal oscillator, and data may be selected from the stored holdover data as crystal oscillator voltage control. Voltage, control of the crystal.
目前的指标是可以保证在 1小时内, 本地 Is的偏差在 800ns之内, 使得 网元时钟可以保持同步。 The current indicator is that within 1 hour, the local Is deviation is within 800ns, making The NE clock can be kept in sync.
应用示例 1 :  Application example 1 :
下面以对 OCXO晶振进行控制为例说明本实施例的方法。  The method of this embodiment will be described below by taking an example of controlling the OCXO crystal.
OCXO晶振体积较大, 内部具有温度补偿电路, 可以作为时钟模块的源 头。 OCXO作为高精密的频率源, 应用于各种设备的时钟参考和基站的保持 模式。 如 GSM、 CDMA2000, TD-SCDMA和 WCDMA等各种标准的基站、 时间服务器、 高精密检测仪器和军事通信设备等。  The OCXO crystal oscillator is large in size and has a temperature compensation circuit inside, which can be used as the source of the clock module. As a high-precision frequency source, OCXO is applied to the clock reference of various devices and the hold mode of the base station. Base stations, time servers, high-precision instrumentation, and military communication equipment such as GSM, CDMA2000, TD-SCDMA, and WCDMA.
根据晶振的特性, 计算出的晶振压控电压, 可以最大程度满足晶振输出 时钟与标准 Is的偏离不大于 1575ns, 在晶振失去参考后, 仍然可以在较长一 段时间内锁定, 保证时钟稳定可靠的输出。  According to the characteristics of the crystal oscillator, the crystal voltage control voltage can be calculated to the maximum extent that the crystal oscillator output clock deviates from the standard Is by no more than 1575 ns. After the crystal oscillator loses the reference, it can still be locked for a long period of time, ensuring stable and reliable clock. Output.
OCXO晶振的特点是在不同时间段的变化曲线不一样, 但是老化的趋势 始终一致, 在 holdover状态要做的是对老化趋势进行补偿, 将老化补偿回来。 根据实验研究的结果, 存储 442个 holdover数据, 可以计算得出对晶振的老 化进行补偿的晶振压控电压, 使得晶振能够得到最精准的控制, 从而仍然可 以输出稳定的时钟。 存储 442个 holdover数据, 在控制周期为 10秒时, 需要 4420秒能够存够所需的 holdover数据。 如果存满则从最低的空间开始重新存 储, 为 OCXO晶振进入 holdover状态后的应用做准备。  The OCXO crystal oscillator is characterized by different curves at different time periods, but the aging trend is always the same. In the holdover state, the aging trend is compensated and the aging compensation is returned. According to the results of the experimental study, by storing 442 holdover data, the crystal voltage control voltage that compensates for the aging of the crystal oscillator can be calculated, so that the crystal oscillator can be controlled with the most precise control, so that a stable clock can still be output. 442 holdover data is stored. When the control period is 10 seconds, it takes 4420 seconds to store the required holdover data. If it is full, it will be re-stored from the lowest space to prepare for the application after the OCXO crystal enters the holdover state.
对于 OCXO晶振, 在失去参考时钟进入 holdover状态后, 可以启动一个 计时器, 每 1秒加 1 , 便于对 holdover数据分阶段操作, 如图 3所示, 控制晶 振输出时钟的方法包括:  For the OCXO crystal oscillator, after losing the reference clock and entering the holdover state, a timer can be started, which is incremented every 1 second to facilitate the phased operation of the holdover data. As shown in Figure 3, the method for controlling the crystal output clock includes:
301 : 从进入 holdover状态前存储的 holdover数据中, 读取多个 holdover 数据 (比如 10个)存入 holdover数组 1中;  301: Read multiple holdover data (such as 10) from the holdover data stored before entering the holdover state, and store them in the holdover array 1;
读取出的 holdover数据最好是最新存储的数据。  The readover data read is preferably the most recently stored data.
302:从进入 holdover状态前存储的 holdover数据中,再读取出与 holdover 数组 1中相同数量且不重复的 holdover数据, 存放到 holdover数组 2中; 302: From the holdover data stored before entering the holdover state, the same amount of holdover data that is not repeated in the holdover array 1 is read and stored in the holdover array 2;
303: 分别求出 holdover数组 1和 holdover数组 2中数据的累加和;303: Find the accumulated sum of the data in the holdover array 1 and the holdover array 2, respectively;
304 : 对求出的两个累加和分别除以数组中存储的数据的个数, 得到 holdover均值 1 ( χλ )和 holdover均值 2 ( x2 ) ; 305: 启用一个计数器, 初始计数值为 0, 将 holdover数组 1的第 1个数 据减去 , 得到差值 1, 将计数器的值减去固定系数 A (例如 108.5)得到差 值 2, 求差值 1与差值 2的乘积, 累加到第一子系数( ^ ) 中 ( 的初始值为 0); 釆用同样的方法对 holdover数组 2求第二子系数( ); 将计数值减去 固定系数 A, 对差值求平方, 将结果累加到母系数( ^ )上( ^的初始值为 0) , 并对计数器加 1, 重复执行上述操作; 304 : For the two accumulated sums divided by the number of data stored in the array, the holdover mean 1 ( χ λ ) and the holdover mean 2 ( x 2 ) are obtained; 305: Enable a counter, the initial count value is 0, subtract the first data of the holdover array 1 to obtain the difference 1, and subtract the fixed coefficient A (for example, 108.5) from the counter value to obtain the difference 2, and obtain the difference. 1 is the product of the difference 2, added to the first sub-coefficient ( ^ ) (the initial value is 0); 求 Use the same method to find the second sub-coefficient ( ) for the holdover array 2; subtract the fixed coefficient from the count value A, square the difference, add the result to the parent coefficient ( ^ ) (the initial value of ^ is 0), and add 1 to the counter, repeat the above operation;
例如, 将 442个 holdover数据分为两组 [221]和 x2 [221], 其中 χ2 [221]为近 期的数据, 釆用 Β表示重复执行的次数, Β>0, 本示例中 Β=117。 For example, divide 442 holdover data into two groups [221] and x 2 [221], where χ 2 [221] is the most recent data, and Β is used to indicate the number of repeated executions, Β>0, in this example Β= 117.
步骤 304可表示为:
Figure imgf000010_0001
Step 304 can be expressed as:
Figure imgf000010_0001
步骤 305可表示为:  Step 305 can be expressed as:
^ =∑(X [i]-^)(i -108.5)  ^ =∑(X [i]-^)(i -108.5)
i=0  i=0
k2=∑(x2[i]-Y2)(i-\0S.5) k 2 =∑(x 2 [i]-Y 2 )(i-\0S.5)
i=0 i=0  i=0 i=0
306: 对所存储的所有 holdover数据中的最新的多个数据, 求出均值, 四 舍五入后得到晶振压控电压 V, 写一次晶振的数字模拟控制器, 控制一次晶 振;  306: Calculate the mean value of the latest plurality of data in all the retained data, and obtain the crystal voltage control voltage V after rounding off, write a digital analog controller of the crystal oscillator to control the primary crystal;
例如, 该操作可以在 160秒等时刻执行, 釆用的多个数据可以是所存储 的所有 holdover数据中的最新的 36个数据。  For example, the operation can be performed at a time of 160 seconds, etc., and the plurality of data used can be the latest 36 data of all the stored holdover data.
307: 用 除以 ^, 得到第一 holdover系数( ) , 用 除以 得到第 二 holdover系数( ) , 用 减去 , 得到 M;  307: Divide by ^ to obtain the first holdover coefficient ( ), divide by to obtain the second holdover coefficient ( ), and subtract to obtain M;
步骤 307可以表示为:  Step 307 can be expressed as:
= I ^m^i = k21 km,/k = k2-kx , = I ^m^i = k 2 1 k m , /k = k 2 -k x ,
308: 将 得到去老化系数 Δν, 将 Δν与上一次的晶振压控电压 V 进行累加, 四舍五入后, 作为晶振压控电压写一次晶振的数字模拟控制器, 控制晶振。  308: The de-aging coefficient Δν will be obtained, and Δν will be accumulated with the previous crystal voltage control voltage V. After rounding off, the digital analog controller will be used to write the crystal oscillator as the crystal voltage control voltage to control the crystal oscillator.
步骤 308可以在 4400秒时进行。 应用示例 2: Step 308 can be performed at 4400 seconds. Application example 2:
TCXO是通过附加温度补偿电路, 使环境温度变化产生的振荡频率变化 量削减, 以达到在宽温温度范围内满足稳定度要求的晶振振荡器。 TCXO具 有稳定度高、 尺寸小, 功耗低等优点, 主要应用于无线小基站、 导航设备和 无线终端等产品。  The TCXO uses an additional temperature compensation circuit to reduce the amount of oscillation frequency variation caused by ambient temperature changes to achieve a crystal oscillator that satisfies the stability requirements over a wide temperature range. TCXO has the advantages of high stability, small size, low power consumption, etc. It is mainly used in wireless small base stations, navigation equipment and wireless terminals.
对于 TCXO晶振存储 60个数据, 可以计算得出对晶振的老化进行补偿 的晶振压控电压,若控制周期为 5秒,则需要 300秒能够存够所需的 holdover 数据。  For 60 data stored in the TCXO crystal, the crystal voltage control voltage that compensates for the aging of the crystal can be calculated. If the control period is 5 seconds, it takes 300 seconds to store the required holdover data.
由于 TCXO晶振只能保证在较短一段时间内稳定, 晶振调节后老化趋势 不固定, 因此, 在失去参考进入 holdover状态后, 只需要对存储的 holdover 数据求均值,将求得的均值四舍五入后,作为晶振压控电压写入晶振的 DAC, 控制一次晶振, 根据实测结果, 釆用 60个数据的均值即可保持在 1 小时内 Is的偏差在 800ns之内, 若需要对保持的时间进行控制, 可根据需要选择求 均值的 holdover数据的数量。  Since the TCXO crystal oscillator can only be stabilized for a short period of time, the aging tendency of the crystal oscillator is not fixed. Therefore, after losing the reference to enter the holdover state, only the average value of the stored holdover data needs to be averaged, and the obtained mean value is rounded off. As the crystal oscillator voltage-controlled voltage is written into the crystal oscillator DAC, the primary crystal oscillator is controlled. According to the measured results, the average value of 60 data can be kept within 1 Hz within one hour. If the holding time is controlled, The number of holdover data for which the mean is averaged can be selected as needed.
如图 4所示, 本实施方式还公开了一种控制晶振输出时钟的装置, 包括: 相互连接的数据存储模块、 晶振控制模块和标识设置模块;  As shown in FIG. 4, the embodiment further discloses an apparatus for controlling a crystal oscillator output clock, comprising: a data storage module connected to each other, a crystal oscillator control module, and an identifier setting module;
数据存储模块设置成在晶振处于正常的控制状态时, 保存对晶振进行控 制的晶振压控电压; 在完成对晶振压控电压的保存后, 通知标识设置模块数 据保存完成。  The data storage module is configured to save the crystal voltage control voltage for controlling the crystal oscillator when the crystal oscillator is in a normal control state; after the storage of the crystal oscillator voltage control voltage is completed, the notification flag setting module data is saved.
标识设置模块设置成根据数据存储模块的通知, 设置一数据存储标识为 标记数据存储完成。  The identification setting module is configured to set a data storage identifier to mark data storage completion according to the notification of the data storage module.
晶振控制模块设置成在失去外部参考时钟时, 根据数据存储标识, 将晶 振切换到 holdover状态, 从数据存储模块读取所保存的晶振压控电压, 釆用 所读取的晶振压控电压对晶振进行控制。 晶振控制模块釆用所读取的晶振压 控电压对晶振进行控制的方法为: 对所读取的多个晶振压控电压求平均, 将 得到的平均值作为失去外部参考时钟时的晶振压控电压对晶振进行控制; 或 从所读取的晶振压控电压中选择晶振压控电压作为失去外部参考时钟时的晶 振压控电压对晶振进行控制。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 The crystal oscillator control module is configured to switch the crystal oscillator to the holdover state according to the data storage identifier when the external reference clock is lost, read the saved crystal oscillator voltage control voltage from the data storage module, and use the read crystal oscillator voltage control voltage to the crystal oscillator. Take control. The crystal control module uses the read crystal oscillator voltage control voltage to control the crystal oscillator by: averaging the read voltage voltages of the plurality of crystal oscillators, and using the average value as the crystal oscillator voltage control when the external reference clock is lost. The voltage controls the crystal oscillator; or selects the crystal voltage control voltage from the read crystal voltage control voltage as the crystal oscillator voltage control voltage when the external reference clock is lost. One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 Industrial applicability
与现有技术相比, 本发明使得晶振在失去 GPS接收机输出的 1秒参考时 钟的情况下, 仍然能对晶振压控电压进行控制, 从而达到尽可能稳定输出时 钟的效果, 提高了系统的可靠性。  Compared with the prior art, the invention enables the crystal oscillator to control the crystal voltage control voltage in the case of losing the 1-second reference clock outputted by the GPS receiver, thereby achieving the effect of stabilizing the output clock as much as possible, and improving the system. reliability.

Claims

权 利 要 求 书 Claim
1、 一种控制晶振输出时钟的方法, 包括: 1. A method of controlling a crystal oscillator output clock, comprising:
在晶振处于正常的控制状态时, 保存对所述晶振进行控制的晶振压控电 压; 以及  Saving a crystal pressure control voltage that controls the crystal oscillator while the crystal oscillator is in a normal control state;
在失去外部参考时钟时, 釆用所保存的晶振压控电压对所述晶振进行控 制。  When the external reference clock is lost, the crystal is controlled by the saved crystal voltage control voltage.
2、 如权利要求 1所述的方法, 其中, 釆用所保存的晶振压控电压对所述 晶振进行控制的步骤包括: 2. The method of claim 1, wherein the step of controlling the crystal with the saved crystal voltage control voltage comprises:
对所保存的晶振压控电压中的多个求平均, 将得到的平均值作为失去外 部参考时钟时的晶振压控电压对所述晶振进行控制; 或者  A plurality of saved crystal voltage control voltages are averaged, and the obtained average value is controlled as a crystal voltage control voltage when the external reference clock is lost; or
从所保存的晶振压控电压中选择晶振压控电压作为失去外部参考时钟时 的晶振压控电压对所述晶振进行控制。  The crystal oscillator is controlled by selecting a crystal voltage control voltage from the stored crystal voltage control voltage as a crystal voltage control voltage when the external reference clock is lost.
3、 如权利要求 1或 2所述的方法, 还包括: 设置数据存储标识; 完成在晶振处于正常的控制状态时对所述晶振进行控制的晶振压控电压 的保存后, 将所述数据存储标识设置为标记数据存储完成; 3. The method according to claim 1 or 2, further comprising: setting a data storage identifier; completing the saving of the crystal voltage control voltage for controlling the crystal oscillator when the crystal oscillator is in a normal control state, storing the data The identity is set to mark the data storage completion;
所述方法在釆用所保存的晶振压控电压对所述晶振进行控制的步骤之前 还包括: 在失去外部参考时钟时, 根据所述数据存储标识将所述晶振切换到 保持 holdover状态。  The method further includes: before the step of controlling the crystal oscillator by using the saved crystal oscillator voltage control voltage, when the external reference clock is lost, switching the crystal oscillator to a hold holdover state according to the data storage identifier.
4、 如权利要求 1或 2所述的方法, 其中, 4. The method according to claim 1 or 2, wherein
保存对所述晶振进行控制的晶振压控电压的步骤中, 每个控制周期保存 一次晶振压控电压; 其中, 若该控制周期中产生多个晶振压控电压, 则对该 多个晶振压控电压求均值, 对求得的均值进行保存。  In the step of storing the crystal voltage control voltage for controlling the crystal oscillator, the crystal voltage control voltage is saved once for each control period; wherein, if a plurality of crystal voltage control voltages are generated in the control period, the plurality of crystal oscillators are voltage-controlled The voltage is averaged and the average value obtained is saved.
5、 如权利要求 3所述的方法, 还包括: 5. The method of claim 3, further comprising:
若未保存在晶振处于正常的控制状态时对所述晶振进行控制的晶振压控 电压, 将所述数据存储标识设置为标记数据存储未完成; 在失去外部参考时钟时, 根据所述数据存储标识将所述晶振切换到自由 振荡状态。 If the crystal oscillator voltage control voltage for controlling the crystal oscillator is not saved when the crystal oscillator is in a normal control state, setting the data storage identifier to the mark data storage is not completed; When the external reference clock is lost, the crystal oscillator is switched to a free oscillation state according to the data storage identifier.
6、 如权利要求 2所述的方法, 其中, 6. The method of claim 2, wherein
所述晶振为恒温控制晶体振荡器 OCXO;  The crystal oscillator is a thermostatically controlled crystal oscillator OCXO;
所述方法在釆用所保存的晶振压控电压对所述晶振进行控制的步骤之后 还包括: 釆用所保存的晶振压控电压计算对该 OCXO进行老化补偿的去老化 系数, 将该去老化系数与上一次的在失去外部参考时钟时对所述 OCXO进行 控制的晶振压控电压进行累加, 利用累加的结果对所述 OCXO进行控制。  After the step of controlling the crystal oscillator by using the saved crystal oscillator voltage control voltage, the method further includes: calculating a de-aging coefficient for aging compensation of the OCXO by using the saved crystal oscillator voltage control voltage, and de-aging the OCXO The coefficient is summed with the last crystal voltage control voltage that controls the OCXO when the external reference clock is lost, and the OCXO is controlled by the accumulated result.
7、 如权利要求 6所述的方法, 其中, 计算对该 OCXO进行老化补偿的 去老化系数的步骤包括: 7. The method of claim 6, wherein the step of calculating a de-aging coefficient for aging compensation of the OCXO comprises:
从所保存的晶振压控电压中读取出两组数据 xj ]和 χ2[ ] ,分别对该两组数 据求均值^和 ^, 计算第一子系数 ^ =∑(^[ ] -^)( -^ , 计算第二子系 数^ , Λ2
Figure imgf000014_0001
)2 计算第一保持系数 , I^k k^ 计算第二保持系数 =k2 ikm , 计
Figure imgf000014_0002
Two sets of data xj ] and χ 2 [ ] are read from the saved crystal voltage control voltage, and the two sets of data are respectively averaged ^ and ^, and the first sub-coefficient is calculated ^ = ∑(^[ ] -^) ( -^ , calculate the second sub-coefficient ^ , Λ 2
Figure imgf000014_0001
2 ) Calculate the first holding coefficient, I^kk^ calculate the second holding coefficient = k 2 ik m ,
Figure imgf000014_0002
其中, Α为固定系数, B > 0。  Where Α is a fixed coefficient and B > 0.
8、 一种控制晶振输出时钟的装置, 包括: 相互连接的数据存储模块和晶 振控制模块; 其中,  8. A device for controlling a crystal oscillator output clock, comprising: an interconnected data storage module and a crystal control module; wherein
所述数据存储模块设置成在晶振处于正常的控制状态时, 保存对所述晶 振进行控制的晶振压控电压;  The data storage module is configured to save a crystal voltage control voltage for controlling the crystal when the crystal oscillator is in a normal control state;
所述晶振控制模块设置成在失去外部参考时钟时, 从所述数据存储模块 读取所保存的晶振压控电压, 釆用所读取的晶振压控电压对所述晶振进行控 制。  The crystal oscillator control module is configured to read the saved crystal oscillator voltage control voltage from the data storage module when the external reference clock is lost, and to control the crystal oscillator by using the read crystal oscillator voltage control voltage.
9、 如权利要求 8所述的装置, 其中, 所述晶振控制模块设置成通过以下 方式釆用所读取的晶振压控电压对所述晶振进行控制: 9. The apparatus of claim 8, wherein the crystal oscillator control module is configured to control the crystal oscillator by using the read crystal oscillator voltage control voltage in the following manner:
对所读取的多个晶振压控电压求平均, 将得到的平均值作为失去外部参 考时钟时的晶振压控电压对所述晶振进行控制; 或者 Average the voltage control voltages of the multiple crystals read, and take the average value as the loss of the external reference The crystal oscillator is controlled by the crystal voltage control voltage when the clock is tested; or
从所读取的晶振压控电压中选择晶振压控电压作为失去外部参考时钟时 的晶振压控电压对所述晶振进行控制。  The crystal oscillator is controlled by selecting a crystal voltage control voltage from the read crystal voltage control voltage as a crystal voltage control voltage when the external reference clock is lost.
10、 如权利要求 8或 9所述的装置, 还包括标识设置模块; 10. The apparatus of claim 8 or 9, further comprising an identification setting module;
所述数据存储模块还设置成完成在晶振处于正常的控制状态时对所述晶 振进行控制的晶振压控电压的保存后,通知所述标识设置模块数据保存完成; 所述标识设置模块设置成根据所述数据存储模块的通知, 设置一数据存 储标识为标记数据存储完成;  The data storage module is further configured to: after saving the crystal oscillator voltage control voltage that controls the crystal oscillator when the crystal oscillator is in a normal control state, notify the identifier setting module that data storage is completed; and the identifier setting module is configured to be configured according to The notification of the data storage module sets a data storage identifier to be completed for marking data storage;
所述晶振控制模块是设置成在失去外部参考时钟时, 根据所述数据存储 标识将所述晶振切换到保持 holdover状态后, 才釆用所保存的晶振压控电压 对所述晶振进行控制。  The crystal oscillator control module is configured to control the crystal oscillator by using the saved crystal oscillator voltage control voltage after switching the crystal oscillator to a hold holdover state according to the data storage identifier when the external reference clock is lost.
PCT/CN2010/078049 2010-06-17 2010-10-25 Method and device for controlling crystal oscillator output clock WO2011157025A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102019057A CN102291122A (en) 2010-06-17 2010-06-17 Method and device for controlling crystal oscillator to output clock
CN201010201905.7 2010-06-17

Publications (1)

Publication Number Publication Date
WO2011157025A1 true WO2011157025A1 (en) 2011-12-22

Family

ID=45337267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078049 WO2011157025A1 (en) 2010-06-17 2010-10-25 Method and device for controlling crystal oscillator output clock

Country Status (2)

Country Link
CN (1) CN102291122A (en)
WO (1) WO2011157025A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611516A (en) * 2012-01-17 2012-07-25 成都府河电力自动化成套设备有限责任公司 Method and device for generating high-precision synchronous clock
AT512743A1 (en) * 2012-04-11 2013-10-15 Fts Computertechnik Gmbh Method and master clock for creating fail-silent synchronization messages
CN102769905B (en) * 2012-05-02 2014-10-08 黄林果 Dynamic synchronous method of heterogeneous network system
CN103501178B (en) * 2013-09-27 2017-05-24 中国电子科技集团公司第四十一研究所 High-stability time base oscillator automatic calibration circuit and method
JP2017194789A (en) * 2016-04-19 2017-10-26 ローム株式会社 Clock generation device, electronic circuit, integrated circuit, and electrical appliance
CN106411263B (en) * 2016-09-30 2019-07-02 河北远东通信系统工程有限公司 A kind of method of constant-temperature crystal oscillator aging real-time compensation
CN106374915B (en) * 2016-09-30 2019-01-11 河北远东通信系统工程有限公司 Temperature-compensation method of the constant-temperature crystal oscillator in entire voltage-controlled voltage range
CN108400861B (en) * 2018-02-11 2021-08-24 京信网络系统股份有限公司 Crystal oscillator initial frequency adjusting method and device and clock synchronization system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090167443A1 (en) * 2007-12-31 2009-07-02 Xin Liu Digitally compensated highly stable holdover clock generation techniques using adaptive filtering
CN101645718A (en) * 2008-08-07 2010-02-10 中兴通讯股份有限公司 Method and device for holding clock

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6714160B2 (en) * 2002-02-19 2004-03-30 Eride, Inc. Real time clock for GPS receivers
CN100535824C (en) * 2004-09-23 2009-09-02 华为技术有限公司 Method of improving satellite time synchronuos pulse holding performance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090167443A1 (en) * 2007-12-31 2009-07-02 Xin Liu Digitally compensated highly stable holdover clock generation techniques using adaptive filtering
CN101645718A (en) * 2008-08-07 2010-02-10 中兴通讯股份有限公司 Method and device for holding clock

Also Published As

Publication number Publication date
CN102291122A (en) 2011-12-21

Similar Documents

Publication Publication Date Title
WO2011157025A1 (en) Method and device for controlling crystal oscillator output clock
US6356156B2 (en) Method and system for managing reference signals for network clock synchronization
RU2758838C1 (en) Time synchronization device, electronic device, time synchronization system and time synchronization method
US20120146701A1 (en) Clock system and method for compensating timing information of clock system
JP2017118371A5 (en) Timing signal generating apparatus and electronic device
JP2004328751A (en) Satellite clock synchronizing system for base station device and satellite clock synchronizing method for base station system utilizing the same
CN107547161B (en) A kind of clock synchronizing method and device
US9979406B2 (en) High-reliability holdover method and topologies
JP2015082815A (en) Oscillator
CN113872597A (en) Method for generating independent clock signals from the same oscillator
KR20090026146A (en) Oscillation frequency control circuit
JP2011155367A (en) Reference frequency generating apparatus
JP2012242190A (en) Reference signal generation device and reference signal generating method
JP5556412B2 (en) Timing synchronization apparatus and timing synchronization method
JP2002217722A (en) Reference frequency generator
JP2010068065A (en) Reference signal generating apparatus
CN102082658B (en) Method and device for enhancing frequency stability of target clock
EP3975431A1 (en) Apparatus, system and method for generating an output oscillator signal, transceiver, mobile device and base station
US8031010B1 (en) Ruggedized chip scale atomic clock
US20110304402A1 (en) Device and method for locking and calibrating frequency
JP2012129879A (en) Synchronization signal generation device and synchronization signal generation method
JP2009232112A (en) Information processor and timing synchronization method
CN102868365B (en) Crystal oscillator circuit
JP2001215283A (en) Seismometer
JP2000040958A (en) Reference frequency/timing generating device

Legal Events

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

Ref document number: 10853133

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10853133

Country of ref document: EP

Kind code of ref document: A1