CN107257240A - A kind of digital temperature compensating method of crystal oscillator - Google Patents

A kind of digital temperature compensating method of crystal oscillator Download PDF

Info

Publication number
CN107257240A
CN107257240A CN201710349263.7A CN201710349263A CN107257240A CN 107257240 A CN107257240 A CN 107257240A CN 201710349263 A CN201710349263 A CN 201710349263A CN 107257240 A CN107257240 A CN 107257240A
Authority
CN
China
Prior art keywords
frequency
temperature
compensation
voltage
vcxo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710349263.7A
Other languages
Chinese (zh)
Other versions
CN107257240B (en
Inventor
谭峰
叶芃
邱渡裕
赵勇
蒋俊
黄武煌
杨扩军
唐科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201710349263.7A priority Critical patent/CN107257240B/en
Publication of CN107257240A publication Critical patent/CN107257240A/en
Application granted granted Critical
Publication of CN107257240B publication Critical patent/CN107257240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L1/00Stabilisation of generator output against variations of physical values, e.g. power supply
    • H03L1/02Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
    • H03L1/022Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature

Landscapes

  • Oscillators With Electromechanical Resonators (AREA)

Abstract

本发明公开了一种晶体振荡器的数字温度补偿方法,采用闭环反馈补偿构架。首先,确定目标频率f0对应的二进制编码B0i,并存入微处理器;当温度变化是,微处理器对VCXO的输出频率进行实时测量生成二进制编码B1i,并与目标频率对应的二进制编码进行比对,得到所需补偿信息的二进制编码;最后通过数模转换器转换成补偿电压输入到VCXO的压控调节端,使其输出目标频率,实现温度补偿。本发明与现有晶体振荡器的数字温度补偿方法相比,不需要温度传感器,而是直接将与温度实时相关的频率偏差转换为与之成一一对应关系二进制编码,并将其转换为对应的补偿电压进行温度补偿,克服了现有温度补偿晶体振荡器即TCXO中由于使用温度传感器和晶体谐振器温度变化不同步引起的温度迟滞问题。

The invention discloses a digital temperature compensation method of a crystal oscillator, which adopts a closed-loop feedback compensation framework. First, determine the binary code B 0i corresponding to the target frequency f 0 and store it in the microprocessor; when the temperature changes, the microprocessor will measure the output frequency of the VCXO in real time to generate a binary code B 1i , and perform a binary code corresponding to the target frequency Compare to get the binary code of the required compensation information; finally, convert it into a compensation voltage through a digital-to-analog converter and input it to the voltage control adjustment terminal of the VCXO, so that it can output the target frequency to realize temperature compensation. Compared with the digital temperature compensation method of the existing crystal oscillator, the present invention does not need a temperature sensor, but directly converts the frequency deviation related to the temperature in real time into a binary code with a one-to-one correspondence relationship with it, and converts it into a corresponding The compensation voltage is used for temperature compensation, which overcomes the temperature hysteresis problem caused by the asynchronous temperature change of the temperature sensor and the crystal resonator in the existing temperature compensated crystal oscillator (TCXO).

Description

一种晶体振荡器的数字温度补偿方法A Digital Temperature Compensation Method for Crystal Oscillator

技术领域technical field

本发明属于晶体振荡器技术领域,更为具体地讲,涉及一种。The invention belongs to the technical field of crystal oscillators, and more specifically, relates to a crystal oscillator.

背景技术Background technique

温度补偿晶体振荡器(TCXO,Temperature Compensate Xtal(crystal)Oscillator)是一种能在较宽的温度范围内工作并通过一定的补偿方式而保持晶体振荡器的输出频率在一定的精度范围内(10-6~10-7量级)的晶体振荡器。它具有低功率,开机即能工作,而且具有高稳定性等特点,广泛应用于各种通信、导航、雷达、卫星定位系统、移动通信、程控电话交换机、各类电子测量仪表中。Temperature Compensated Crystal Oscillator (TCXO, Temperature Compensate Xtal (crystal) Oscillator) is a kind of crystal oscillator that can work in a wide temperature range and maintain the output frequency of the crystal oscillator within a certain accuracy range (10 -6 ~ 10 -7 magnitude) crystal oscillator. It has the characteristics of low power, can work immediately after starting up, and has high stability. It is widely used in various communications, navigation, radar, satellite positioning systems, mobile communications, program-controlled telephone exchanges, and various electronic measuring instruments.

现有的温度补偿晶体振荡器,本质上是带有温度补偿网络并由其产生与温度有关的补偿电压的压控晶体振荡器(Voltage Controlled Xtal(crystal)Oscillator,VCXO)。未补偿的压控晶体振荡器中的关键器件是采用AT切石英晶体,其温度特性曲线近似为一个三次曲线,可以表示为:The existing temperature-compensated crystal oscillator is essentially a voltage-controlled crystal oscillator (Voltage Controlled Xtal (crystal) Oscillator, VCXO) with a temperature compensation network that generates a temperature-dependent compensation voltage. The key device in the uncompensated voltage-controlled crystal oscillator is an AT-cut quartz crystal, and its temperature characteristic curve is approximately a cubic curve, which can be expressed as:

f(T)=a3(T-T0)3+a1(T-T0)+a0 (1)f(T)=a 3 (TT 0 ) 3 +a 1 (TT 0 )+a 0 (1)

其中,a3是三次系数项,a1是一次系数项,a0是温度在参考温度T0时的振荡频率。Among them, a 3 is the cubic coefficient term, a 1 is the first-order coefficient term, and a 0 is the oscillation frequency of the temperature at the reference temperature T 0 .

对于现有的压控晶体振荡器的频率线性增益特性可以近似表述如下:For the frequency linear gain characteristic of the existing voltage-controlled crystal oscillator, it can be approximately expressed as follows:

f(VC)=-G(VC-VC0)+f0 (2)f(VC)=-G(VC-VC 0 )+f 0 (2)

其中,G是压控晶体振荡器的增益,VC是压控晶体振荡器的控制电压,VC0是压控晶体振荡器的压控端的输入电压,f0是输入为VC0时的振荡频率。Among them, G is the gain of the voltage-controlled crystal oscillator, VC is the control voltage of the voltage-controlled crystal oscillator, VC 0 is the input voltage of the voltage-controlled terminal of the voltage-controlled crystal oscillator, and f 0 is the oscillation frequency when the input is VC 0 .

那么,作为补偿晶振温度特性的补偿电压VC(T)的方程式可以表述为:Then, the equation of the compensation voltage VC(T) as a compensation crystal oscillator temperature characteristic can be expressed as:

VC(T)=A3(T-T0)3+A1(T-T0)+A0 (3)VC(T)=A 3 (TT 0 ) 3 +A 1 (TT 0 )+A 0 (3)

此时,A3=a3/G,A1=a1/G,A0是温度为T0时的补偿电压。At this time, A 3 =a 3 /G, A 1 =a 1 /G, A 0 is the compensation voltage when the temperature is T 0 .

为了实现方程式(3),需要产生一个温度补偿电压加在压控晶体振荡器上进行温度补偿以抵消此频率温度特性,从而得到在较宽温度范围内的稳定的频率输出,达到温度补偿的目的。In order to realize equation (3), it is necessary to generate a temperature compensation voltage and add it to the voltage-controlled crystal oscillator for temperature compensation to offset the frequency temperature characteristics, so as to obtain a stable frequency output in a wide temperature range and achieve the purpose of temperature compensation .

目前,实现温度补偿晶体振荡器即TCXO的数字式温度补偿主要是由单片机对温度传感器进行数据采集并输出补偿电压,目前主要也分为两种方式:At present, the digital temperature compensation of the temperature compensated crystal oscillator (TCXO) is mainly performed by the microcontroller to collect data from the temperature sensor and output the compensation voltage. At present, there are mainly two methods:

第一种是基于微处理器的温度补偿。图1是基于微处理器的温度补偿方式下的温度补偿晶体振荡器结构图,它是一种开环式的温度补偿构架。如图1所示,它包括温度传感器及调理电路101、微处理器102、补偿网络103以及压控晶体振荡器104。温度T由温度传感器及调理电路101采集并进行调理而获得,然后送入微处理器102中根据温度在温度-补偿电压表进行查找,得到补偿电压值,然后补偿网络103将补偿电压值转换为补偿电压,输入到压控晶体振荡器104压控电压控制端即其中的变容器件,当补偿电压改变,变容器件的电容值随之改变从而改变压控晶体振荡器的输出频率达到控制频率的目的。可见,其是直接在(待补偿的)压控晶体振荡器104的压控电压控制端输入一个与温度相关的补偿电压达到温度补偿的目的。其中,温度-补偿电压表是事先采集压控晶体振荡器104在不同温度下维持频率稳定需要补偿的电压而构建的。详细的描述可参见“刘海霞,杨宇,周渭.新型微机补偿晶体振荡器.仪器仪表学报.2002(S3):135-136.”The first is microprocessor-based temperature compensation. Figure 1 is a structure diagram of a temperature-compensated crystal oscillator based on a microprocessor-based temperature compensation method, which is an open-loop temperature compensation framework. As shown in FIG. 1 , it includes a temperature sensor and conditioning circuit 101 , a microprocessor 102 , a compensation network 103 and a voltage-controlled crystal oscillator 104 . The temperature T is collected and conditioned by the temperature sensor and the conditioning circuit 101, and then sent to the microprocessor 102 to look up the temperature-compensation voltage table according to the temperature to obtain the compensation voltage value, and then the compensation network 103 converts the compensation voltage value into compensation The voltage is input to the voltage-controlled crystal oscillator 104 voltage-controlled voltage control terminal, that is, the varactor device. When the compensation voltage changes, the capacitance value of the varactor device changes accordingly, thereby changing the output frequency of the voltage-controlled crystal oscillator to reach the control frequency. Purpose. It can be seen that it directly inputs a temperature-related compensation voltage to the voltage-controlled voltage control terminal of the voltage-controlled crystal oscillator 104 (to be compensated) to achieve the purpose of temperature compensation. Wherein, the temperature-compensated voltmeter is constructed by collecting in advance the voltage that needs to be compensated to maintain the frequency stability of the voltage-controlled crystal oscillator 104 at different temperatures. For a detailed description, please refer to "Liu Haixia, Yang Yu, Zhou Wei. A New Microcomputer Compensated Crystal Oscillator. Journal of Instrumentation. 2002(S3): 135-136."

第二种是基于混频的温度补偿。图2是基于混频的温度补偿方式下的温度补偿晶体振荡器结构图,它也是一种开环式的温度补偿构架。如图2所示,该温度补偿晶体振荡器通过温度传感器201和补偿频率发生电路202产生一个与需要补偿的石英晶体振荡器204产生的偏移频率绝对值相等符号相反的补偿频率信号,该补偿频率信号经过整波电路203整波后的信号与石英晶体振荡器204输出的未补偿频率信号在混频器205中进行混频并输出,再经过另一滤波器205后得到期望获得的已补偿后频率信号,从而达到温度补偿的目的。其中的补偿频率信号产生电路主要是由温度传感器、ADC、单片机、DAC构成。详细的描述可参见2009年03月18日授权公告的、公告号为CN 100471035B的中国发明专利:一种石英晶体振荡器温度补偿方法,发明人为黄显核、黎敏强、付玮、谭锋,申请号/授权号:CN200410022680.3”。该方式在实现高频温度补偿晶体振荡器即TCXO时在相位噪声特性上有优势,但是构成比较复杂,目前还未被广泛应用。The second is temperature compensation based on frequency mixing. Figure 2 is a structural diagram of a temperature-compensated crystal oscillator based on frequency-mixing temperature compensation, which is also an open-loop temperature compensation framework. As shown in FIG. 2 , the temperature compensated crystal oscillator generates a compensation frequency signal whose absolute value is equal to the offset frequency generated by the quartz crystal oscillator 204 that needs to be compensated, and whose sign is opposite to that of the offset frequency generated by the temperature sensor 201 and the compensation frequency generating circuit 202 . The signal after the frequency signal has been rectified by the rectifying circuit 203 and the uncompensated frequency signal output by the quartz crystal oscillator 204 are mixed in the mixer 205 and output, and then passed through another filter 205 to obtain the desired compensated frequency signal. After the frequency signal, so as to achieve the purpose of temperature compensation. The compensation frequency signal generation circuit is mainly composed of temperature sensor, ADC, single chip microcomputer and DAC. For a detailed description, please refer to the Chinese invention patent with the announcement number CN 100471035B issued on March 18, 2009: a temperature compensation method for a quartz crystal oscillator. The inventors are Huang Xianhe, Li Minqiang, Fu Wei, and Tan Feng. No./authorization number: CN200410022680.3". This method has advantages in phase noise characteristics when realizing high-frequency temperature-compensated crystal oscillators (TCXOs), but the composition is relatively complicated and has not been widely used yet.

综上,现有的晶体振荡器温度补偿方法,都是采用开环式补偿构架,都要用到温度传感器,该温度传感器在电路上尽可能的靠近晶体谐振器,而晶体谐振器的谐振晶片是被单独封装在密闭空间内,这就使得温度传感器与谐振晶片之间不可避免的产生了温度迟滞,导致温度补偿晶体振荡器即TCXO的频率温度特性一直未能取得突破。特别是对于输出信号为高频的晶体振荡器,这种温度迟滞问题更为严重,补偿精度有限。In summary, the existing temperature compensation methods for crystal oscillators all adopt an open-loop compensation framework, and a temperature sensor is used. The temperature sensor is as close as possible to the crystal resonator on the circuit, and the resonator chip of the crystal resonator It is individually packaged in a closed space, which inevitably produces a temperature hysteresis between the temperature sensor and the resonant chip, resulting in a failure to achieve a breakthrough in the frequency-temperature characteristics of the temperature-compensated crystal oscillator, that is, the TCXO. Especially for crystal oscillators whose output signals are high frequency, this temperature hysteresis problem is more serious, and the compensation accuracy is limited.

发明内容Contents of the invention

本发明的目的在于克服现有技术中的不足,提供一种晶体振荡器的数字温度补偿方法,以避免温度传感器引起的温度迟滞效应即传感器采集温度与谐振晶片的实时温度不一致而带来的输出信号频谱误差问题。The purpose of the present invention is to overcome the deficiencies in the prior art and provide a digital temperature compensation method for crystal oscillators to avoid the temperature hysteresis effect caused by the temperature sensor, that is, the output caused by the inconsistency between the temperature collected by the sensor and the real-time temperature of the resonant chip. Signal spectrum error problem.

为实现上述发明目的,本发明晶体振荡器的数字温度补偿方法,其特征在于,包括以下步骤:In order to achieve the above-mentioned purpose of the invention, the digital temperature compensation method of the crystal oscillator of the present invention is characterized in that it comprises the following steps:

(1)、确定目标频率f0对应的二进制编码B0i (1), determine the binary code B 0i corresponding to the target frequency f 0

在常温T0,如25℃下,调整压控晶体振荡器即VCXO压控端的控制电压使其输出目标频率f0,然后通过微处理器进行频率测量,并将目标频率f0的二进制编码B0i保存以便进行比对和运算;At normal temperature T 0 , such as 25°C, adjust the control voltage of the voltage-controlled crystal oscillator, that is, the voltage control terminal of the VCXO Make it output the target frequency f 0 , then measure the frequency through the microprocessor, and save the binary code B 0i of the target frequency f 0 for comparison and operation;

(2)、确定当前时刻频率偏移Δf(T)对应的二进制编码(2) Determine the binary code corresponding to the frequency offset Δf(T) at the current moment

由于温度的变化,压控晶体振荡器即VCXO的输出频率为f(T)=f0±Δf(T),其中,频率f(T)是未补偿而需要补偿的实时输出频率,f0是期望压控晶体振荡器输出的目标频率,Δf(T)是由温度变化引起的频率偏移,它是一个函数,随温度的变化而变化,如果输出频率升高,则f(T)=f0+Δf(T),如果输出频率降低,则f(T)=f0-Δf(T),将压控晶体振荡器即VCXO实时输出的频率为f(T)的信号送入微处理器中进行频率测量并转换为二进制编码B1i,然后将二进制编码B1i与目标频率f0对应的二进制编码B0i进行比对,得到频率偏移Δf(T)对应的二进制编码ΔB1iDue to temperature changes, the output frequency of the voltage-controlled crystal oscillator, namely VCXO, is f(T)=f 0 ±Δf(T), where the frequency f(T) is the uncompensated real-time output frequency that needs to be compensated, and f 0 is It is expected that the target frequency output by the voltage-controlled crystal oscillator, Δf(T) is the frequency offset caused by temperature change, it is a function that changes with the change of temperature, if the output frequency increases, then f(T)=f 0 +Δf(T), if the output frequency decreases, then f(T)=f 0 -Δf(T), the voltage-controlled crystal oscillator, that is, the VCXO real-time output frequency f(T) signal is sent to the microprocessor Perform frequency measurement and convert to binary code B 1i , then compare binary code B 1i with binary code B 0i corresponding to target frequency f 0 to obtain binary code ΔB 1i corresponding to frequency offset Δf(T);

(3)、确定补偿电压VC (3), determine the compensation voltage V C

在步骤(2)的基础上,首先确定补偿电压所对应的二进制编码:若实时输出频率f(T)>f0,则微处理器输出Bout=B0i-ΔB1i;若实时输出频率f(T)<f0,则微处理器输出Bout=B0i+ΔB1i,然后通过数模转换器将微处理器输出Bout转换为对应的补偿电压 On the basis of step (2), first determine the binary code corresponding to the compensation voltage: if the real-time output frequency f(T)>f 0 , then the microprocessor outputs B out = B 0i -ΔB 1i ; if the real-time output frequency f (T)<f 0 , then the microprocessor outputs B out =B 0i +ΔB 1i , and then converts the microprocessor output B out into the corresponding compensation voltage through a digital-to-analog converter

(4)、调理补偿(4), conditioning compensation

将步骤(3)产生的补偿电压经过信号调理电路之后,送到压控晶体振荡器即VCXO的压控电压输入端,最后得到期望获得的已补偿频率f’(T)即目标频率f0The compensation voltage generated by step (3) After passing through the signal conditioning circuit, it is sent to the voltage-controlled voltage input terminal of the voltage-controlled crystal oscillator, that is, VCXO, and finally obtains the expected compensated frequency f'(T), which is the target frequency f 0 ;

(5)、重复步骤(2)-(4)就可以得到另一温度下获得补偿的频率f’(T)信号,依次类推,就可以实现对高频压控晶体振荡器的实时温度补偿。(5), repeating steps (2)-(4) just can obtain the frequency f'(T) signal that obtains compensation under another temperature, and so on, just can realize the real-time temperature compensation to the high-frequency voltage-controlled crystal oscillator.

本发明的目的是这样实现的。The purpose of the present invention is achieved like this.

本发明晶体振荡器的数字温度补偿方法采用闭环反馈补偿构架。首先,确定目标频率f0对应的二进制编码B0i,并存入微处理器;当温度变化是,微处理器对VCXO的输出频率进行实时测量生成二进制编码B1i,并与目标频率对应的二进制编码进行比对,得到所需补偿信息的二进制编码;最后通过数模转换器转换成补偿电压输入到VCXO的压控调节端,使其输出目标频率,实现温度补偿。The digital temperature compensation method of the crystal oscillator of the present invention adopts a closed-loop feedback compensation framework. First, determine the binary code B 0i corresponding to the target frequency f 0 and store it in the microprocessor; when the temperature changes, the microprocessor will measure the output frequency of the VCXO in real time to generate a binary code B 1i , and perform a binary code corresponding to the target frequency Compare to get the binary code of the required compensation information; finally, convert it into a compensation voltage through a digital-to-analog converter and input it to the voltage control adjustment terminal of the VCXO, so that it can output the target frequency to realize temperature compensation.

本发明与现有晶体振荡器的数字温度补偿方法相比,具有以下技术优点:Compared with the digital temperature compensation method of the existing crystal oscillator, the present invention has the following technical advantages:

1)、不需要温度传感器,而是直接将与温度实时相关的频率偏差转换为与之成一一对应关系二进制编码,并将其转换为对应的补偿电压进行温度补偿,该方法能够克服现有温度补偿晶体振荡器即TCXO中由于使用温度传感器和晶体谐振器温度变化不同步引起的温度迟滞问题;1) No temperature sensor is needed, but the frequency deviation related to the real-time temperature is directly converted into a one-to-one correspondence binary code, and converted into the corresponding compensation voltage for temperature compensation. This method can overcome the existing The temperature hysteresis problem caused by the asynchronous temperature change of the temperature sensor and the crystal resonator in the temperature compensated crystal oscillator, that is, TCXO;

2)、本发明采用了闭环补偿构架,更容易实现实时高精度补偿;2), the present invention adopts a closed-loop compensation framework, which makes it easier to realize real-time high-precision compensation;

3)、本发明补偿过程简单,不需要像方法的温度补偿晶体振荡器需要先采集频率温度以及补偿电压的数据,而是直接将需要的补偿信息转换为补偿电压,本发明结构也较为简单,易于集成和批量生产;3), the compensation process of the present invention is simple, does not need to first collect the data of frequency temperature and compensation voltage like the temperature compensation crystal oscillator of the method, but directly converts the required compensation information into compensation voltage, and the structure of the present invention is relatively simple, Easy integration and mass production;

4)、本发明可以良好适用于各种频率的晶体振荡器,尤其是对于采用现有技术补偿效果较差的高频晶体振荡器,其补偿效果也较好。4) The present invention is well applicable to crystal oscillators of various frequencies, especially for high-frequency crystal oscillators with poor compensation effects in the prior art, the compensation effect is also good.

附图说明Description of drawings

图1是现有基于微处理器的温度补偿方式下的温度补偿晶体振荡器结构图;Fig. 1 is the structural diagram of the temperature compensated crystal oscillator under the existing microprocessor-based temperature compensation mode;

图2是现有基于混频的温度补偿方式下的温度补偿晶体振荡器结构图;Fig. 2 is the structural diagram of the temperature compensated crystal oscillator under the existing temperature compensation mode based on frequency mixing;

图3是本发明晶体振荡器的数字温度补偿方法一种具体实施流程图;Fig. 3 is a kind of concrete implementation flowchart of the digital temperature compensation method of crystal oscillator of the present invention;

图4是根据本发明方法构建的硬件原理框图。Fig. 4 is a functional block diagram of hardware constructed according to the method of the present invention.

具体实施方式detailed description

下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.

图3是本发明晶体振荡器的数字温度补偿方法一种具体实施流程图。Fig. 3 is a specific implementation flow chart of the digital temperature compensation method of the crystal oscillator of the present invention.

在本实施例中,如图3所示,本发明晶体振荡器的数字温度补偿方法包括以下步骤:In this embodiment, as shown in FIG. 3, the digital temperature compensation method of the crystal oscillator of the present invention includes the following steps:

步骤S1:确定目标频率f0对应的二进制编码B0i Step S1: Determine the binary code B 0i corresponding to the target frequency f 0

在常温T0,如25℃下,调整压控晶体振荡器即VCXO压控端的控制电压使其输出目标频率f0,然后通过微处理器进行频率测量,并将目标频率f0的二进制编码B0i保存以便进行比对和运算;At normal temperature T 0 , such as 25°C, adjust the control voltage of the voltage-controlled crystal oscillator, that is, the voltage control terminal of the VCXO Make it output the target frequency f 0 , then measure the frequency through the microprocessor, and save the binary code B 0i of the target frequency f 0 for comparison and operation;

步骤S2:确定当前时刻频率偏移Δf(T)对应的二进制编码Step S2: Determine the binary code corresponding to the frequency offset Δf(T) at the current moment

由于温度的变化,当前时刻压控晶体振荡器即VCXO的输出频率为f(T)=f0±Δf(T),其中,频率f(T)是未补偿而需要补偿的实时输出频率,f0是期望压控晶体振荡器输出的目标频率,Δf(T)是由温度变化引起的频率偏移,它是一个函数,随温度的变化而变化;将压控晶体振荡器即VCXO实时输出的频率为f(T)的信号送入微处理器中进行频率测量并转换为二进制编码B1i,然后将二进制编码B1i与目标频率f0对应的二进制编码B0i进行比对,得到频率偏移Δf(T)对应的二进制编码ΔB1iDue to the temperature change, the output frequency of the voltage-controlled crystal oscillator (VCXO) at the current moment is f(T)=f 0 ±Δf(T), where the frequency f(T) is the uncompensated real-time output frequency that needs to be compensated, f 0 is the target frequency expected to be output by the voltage-controlled crystal oscillator, and Δf(T) is the frequency offset caused by temperature changes. It is a function that changes with temperature changes; The signal with frequency f(T) is sent to the microprocessor for frequency measurement and converted into binary code B 1i , and then the binary code B 1i is compared with the binary code B 0i corresponding to the target frequency f 0 to obtain the frequency offset Δf (T) corresponding binary code ΔB 1i ;

步骤S3:确定补偿电压VC Step S3: Determine the compensation voltage V C

在步骤S2的基础上,首先确定补偿电压所对应的二进制编码:若实时输出频率f(T)>f0,则微处理器输出Bout=B0i-ΔB1i;若实时输出频率f(T)<f0,则微处理器输出Bout=B0i+ΔB1i,然后通过数模转换器将Bout转换为对应的补偿电压其中,若实时输出频率f(T)<f0,则补偿电压若实时输出频率f(T)>f0,则补偿电压ΔV(T)为频率偏移Δf(T)对应的电压量;On the basis of step S2, first determine the binary code corresponding to the compensation voltage: if the real-time output frequency f(T)>f 0 , then the microprocessor outputs B out =B 0i -ΔB 1i ; if the real-time output frequency f(T )<f 0 , then the microprocessor outputs B out =B 0i +ΔB 1i , and then converts B out into the corresponding compensation voltage through a digital-to-analog converter Among them, if the real-time output frequency f(T)<f 0 , the compensation voltage If the real-time output frequency f(T)>f 0 , the compensation voltage ΔV(T) is the voltage corresponding to the frequency offset Δf(T);

步骤S4:调理补偿Step S4: Conditioning Compensation

将步骤S3产生的补偿电压经过信号调理电路之后,送到压控晶体振荡器即VCXO的压控电压输入端,最后得到期望获得的已补偿频率f’(T)即目标频率f0The compensation voltage generated in step S3 will be After passing through the signal conditioning circuit, it is sent to the voltage-controlled voltage input terminal of the voltage-controlled crystal oscillator, that is, VCXO, and finally obtains the expected compensated frequency f'(T), which is the target frequency f 0 ;

步骤S5:重复步骤S2-S4就可以得到另一温度下获得补偿的频率f’(T)信号,依次类推,就可以实现对高频压控晶体振荡器的实时温度补偿。Step S5: Repeat steps S2-S4 to obtain a compensated frequency f'(T) signal at another temperature, and so on, to realize real-time temperature compensation of the high-frequency voltage-controlled crystal oscillator.

在本实施例中,依据按照本发明方法组建的硬件原理框图如图4所示,它包括:压控晶体振荡器即VCXO 301、功分器302、微处理器303、数模转换器304、信号调理电路305。压控晶体振荡器即VCXO 301主要由石英谐振器、变容二极管和振荡电路组成,其工作原理是通过控制电压来改变变容二极管的电容,从而“牵引”石英谐振器的频率,以达到频率调制的目的;功分器302是将压控晶体振荡器即VCXO 301的输出信号分为两路,其中一路正常输出,另一路输入至微处理器303;微处理器303对输入信号的信号进行频率测量并对频率对应的二进制编码进行比对与计算,得到输出二进制编码Bout;数模转换器304将二进制Bout转换为补偿电压VC,经过信号调理电路305调整输出输入到压控晶体振荡器301的压控电压控制端进行补偿。In this embodiment, according to the block diagram of the hardware set up according to the method of the present invention as shown in Figure 4, it includes: a voltage-controlled crystal oscillator, namely VCXO 301, a power divider 302, a microprocessor 303, a digital-to-analog converter 304, Signal conditioning circuit 305 . The voltage-controlled crystal oscillator, namely VCXO 301, is mainly composed of a quartz resonator, a varactor diode and an oscillation circuit. Its working principle is to change the capacitance of the varactor diode by controlling the voltage, thereby "pull" the frequency of the quartz resonator to achieve the frequency The purpose of modulation; the power divider 302 is to divide the output signal of the voltage-controlled crystal oscillator, that is, the VCXO 301, into two paths, wherein one path is normally output, and the other path is input to the microprocessor 303; the microprocessor 303 performs signal processing on the input signal Measure the frequency and compare and calculate the binary code corresponding to the frequency to obtain the output binary code B out ; the digital-to-analog converter 304 converts the binary B out into a compensation voltage V C , adjusts the output and inputs it to the voltage-controlled crystal through the signal conditioning circuit 305 The voltage-controlled voltage control terminal of the oscillator 301 performs compensation.

尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above, so that those skilled in the art can understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.

Claims (1)

1. a kind of digital temperature compensating method of crystal oscillator, it is characterised in that comprise the following steps:
(1) target frequency f, is determined0Corresponding binary coding B0i
In normal temperature T0, at 25 DEG C, adjustment VCXO is the control voltage at the voltage-controlled ends of VCXOIt is set to export target Frequency f0, frequency measurement is then carried out by microprocessor, and by target frequency f0Binary coding B0iPreserve to carry out Compare and computing;
(2) the corresponding binary codings of current time frequency shift (FS) Δ f (T), are determined
Due to the change of temperature, VCXO is that VCXO output frequency is f (T)=f0± Δ f (T), wherein, frequency f (T) it is not compensate and need the real-time output frequency of compensation, f0It is the target frequency for expecting VCXO output, Δ f (T) it is the frequency shift (FS) as caused by temperature change, it is a function, variation with temperature and changed, if output frequency liter Height, then f (T)=f0+ Δ f (T), if output frequency is reduced, f (T)=f0- Δ f (T), is VCXO by VCXO The frequency exported in real time is progress frequency measurement in f (T) signal feeding microprocessor and is converted to binary coding B1i, then By binary coding B1iWith target frequency f0Corresponding binary coding B0iIt is compared, obtains frequency shift (FS) Δ f (T) corresponding Binary coding Δ B1i
(3) offset voltage V, is determinedC
On the basis of step (2), it is first determined the binary coding corresponding to offset voltage:If real-time output frequency f (T) > f0, then microprocessor output Bout=B0i-ΔB1i;If real-time output frequency f (T) < f0, then microprocessor output Bout=B0i+Δ B1i, microprocessor is then exported by B by digital analog converteroutBe converted to corresponding offset voltage
(4), conditioning compensation
The offset voltage that step (3) is producedAfter signal conditioning circuit, voltage-controlled crystal (oscillator) vibration is sent to Device is VCXO voltage-controlled voltage input end, finally obtains and it is expected that what is obtained has been compensated for frequency f ' (T) i.e. target frequency f0
(5), repeat step (2)-(4) can be obtained by frequency f ' (T) signal that compensation is obtained at another temperature, the like, The real-time temperature compensation to high frequency VCXO can just be realized.
CN201710349263.7A 2017-05-17 2017-05-17 Digital temperature compensation method of crystal oscillator Active CN107257240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710349263.7A CN107257240B (en) 2017-05-17 2017-05-17 Digital temperature compensation method of crystal oscillator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710349263.7A CN107257240B (en) 2017-05-17 2017-05-17 Digital temperature compensation method of crystal oscillator

Publications (2)

Publication Number Publication Date
CN107257240A true CN107257240A (en) 2017-10-17
CN107257240B CN107257240B (en) 2021-01-26

Family

ID=60027293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710349263.7A Active CN107257240B (en) 2017-05-17 2017-05-17 Digital temperature compensation method of crystal oscillator

Country Status (1)

Country Link
CN (1) CN107257240B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108649902A (en) * 2018-05-14 2018-10-12 成都聚利中宇科技有限公司 A kind of temperature-compensating voltage controlled oscillator and compensation method
CN109921760A (en) * 2019-03-05 2019-06-21 广东合微集成电路技术有限公司 The temperature-compensation method and device of MEMS resonator, MEMS oscillator
CN110034757A (en) * 2017-12-04 2019-07-19 意法半导体(格勒诺布尔2)公司 The control of frequency of quartz tuning array
CN110829999A (en) * 2019-11-29 2020-02-21 成都天奥电子股份有限公司 Active digital crystal oscillator anti-vibration compensation device and method
CN110868211A (en) * 2019-11-29 2020-03-06 电子科技大学 A device and method for anti-vibration compensation of crystal oscillator based on binary coding
CN111010089A (en) * 2019-11-29 2020-04-14 电子科技大学 An anti-vibration crystal oscillator
CN111669126A (en) * 2020-05-20 2020-09-15 成都恒晶科技有限公司 Test method for improving stability of temperature compensation crystal oscillator

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082548A (en) * 2010-11-12 2011-06-01 成都天奥电子股份有限公司 High-accuracy microcomputer-compensated surface-mounted temperature compensation crystal oscillator
CN102195562A (en) * 2010-03-01 2011-09-21 精工爱普生株式会社 Oscillation circuit and frequency-correcting oscillation circuit
CN103001583A (en) * 2012-12-17 2013-03-27 华为技术有限公司 Temperature compensation method and crystal oscillator
CN103746655A (en) * 2013-12-31 2014-04-23 北京机械设备研究所 Real-time frequency compensation method for internal oscillator of singlechip microcomputer
US20160006440A1 (en) * 2002-10-15 2016-01-07 Marvell World Trade Ltd. Systems and methods for configuring a semiconductor device
CN106253893A (en) * 2016-07-19 2016-12-21 电子科技大学 A kind of High Accuracy Microcomputer compensated crystal oscillator
CN106301224A (en) * 2016-08-15 2017-01-04 成都菁汇科技有限公司 A kind of crystal oscillator automatic temperature compensation system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160006440A1 (en) * 2002-10-15 2016-01-07 Marvell World Trade Ltd. Systems and methods for configuring a semiconductor device
CN102195562A (en) * 2010-03-01 2011-09-21 精工爱普生株式会社 Oscillation circuit and frequency-correcting oscillation circuit
CN102082548A (en) * 2010-11-12 2011-06-01 成都天奥电子股份有限公司 High-accuracy microcomputer-compensated surface-mounted temperature compensation crystal oscillator
CN103001583A (en) * 2012-12-17 2013-03-27 华为技术有限公司 Temperature compensation method and crystal oscillator
CN103746655A (en) * 2013-12-31 2014-04-23 北京机械设备研究所 Real-time frequency compensation method for internal oscillator of singlechip microcomputer
CN106253893A (en) * 2016-07-19 2016-12-21 电子科技大学 A kind of High Accuracy Microcomputer compensated crystal oscillator
CN106301224A (en) * 2016-08-15 2017-01-04 成都菁汇科技有限公司 A kind of crystal oscillator automatic temperature compensation system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110034757A (en) * 2017-12-04 2019-07-19 意法半导体(格勒诺布尔2)公司 The control of frequency of quartz tuning array
CN110034757B (en) * 2017-12-04 2023-11-24 意法半导体(格勒诺布尔2)公司 Control of quartz crystal oscillator frequency tuning array
CN108649902A (en) * 2018-05-14 2018-10-12 成都聚利中宇科技有限公司 A kind of temperature-compensating voltage controlled oscillator and compensation method
CN108649902B (en) * 2018-05-14 2024-01-23 成都中宇微芯科技有限公司 Temperature compensation voltage-controlled oscillator and compensation method
CN109921760A (en) * 2019-03-05 2019-06-21 广东合微集成电路技术有限公司 The temperature-compensation method and device of MEMS resonator, MEMS oscillator
CN110829999A (en) * 2019-11-29 2020-02-21 成都天奥电子股份有限公司 Active digital crystal oscillator anti-vibration compensation device and method
CN110868211A (en) * 2019-11-29 2020-03-06 电子科技大学 A device and method for anti-vibration compensation of crystal oscillator based on binary coding
CN111010089A (en) * 2019-11-29 2020-04-14 电子科技大学 An anti-vibration crystal oscillator
CN110868211B (en) * 2019-11-29 2022-05-24 电子科技大学 A device and method for anti-vibration compensation of crystal oscillator based on binary coding
CN111669126A (en) * 2020-05-20 2020-09-15 成都恒晶科技有限公司 Test method for improving stability of temperature compensation crystal oscillator

Also Published As

Publication number Publication date
CN107257240B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN107257240A (en) A kind of digital temperature compensating method of crystal oscillator
US10367451B2 (en) Temperature-compensated crystal oscillator based on digital circuit
US8237482B2 (en) Circuit and method for generating a clock signal
CN107257239B (en) A Temperature Compensated High Frequency Crystal Oscillator Based on Analog Compensation
CN103701461B (en) Oscillation device
US20180013384A1 (en) Temperature-compensated crystal oscillator based on analog circuit
CN107276581A (en) A kind of stepping temperature compensation of crystal oscillator
CN104467816A (en) Temperature compensation system of crystal oscillator
Tan et al. New method for 100-MHz high-frequency temperature-compensated crystal oscillator
CN107733369B (en) Temperature compensated crystal oscillator
TW201914215A (en) Method of controlling digitally controlled oscillator
CN201409125Y (en) Constant temperature phase locked crystal oscillator
CN106603068A (en) Temperature compensating system of temperature compensated crystal oscillator
CN201869161U (en) High frequency and high stability phase-locked constant temperature crystal oscillator
Zhou et al. Comparison among precision temperature compensated crystal oscillators
CN204517793U (en) A kind of device improving crystal oscillator long-term stability
CN115051648A (en) Crystal oscillator automatic temperature compensation voltage acquisition device and method
CN111010089B (en) Anti-vibration crystal oscillator
CN115065323A (en) Automatic temperature compensation system and compensation method for crystal oscillator
CN110868211B (en) A device and method for anti-vibration compensation of crystal oscillator based on binary coding
Huang et al. High-frequency overtone TCXO based on mixing of dual crystal oscillators
RU150424U1 (en) THERMAL COMPENSATED QUARTZ GENERATOR FOR SYNCHRONIZATION OF RADIO COMMUNICATION SYSTEMS
CN110829999A (en) Active digital crystal oscillator anti-vibration compensation device and method
Hu et al. A novel design of voltage controlled temperature compensated crystal oscillator
Chen et al. Study of oscillation characteristics for quartz crystal oscillators based on equivalent multi‐physics model

Legal Events

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