A crystal oscillator automatic temperature compensation system and compensation method
By using components such as high and low temperature test chambers, external high-stable reference crystal oscillator and frequency division circuits in the automatic temperature compensation system of the crystal oscillator, the temperature compensation voltage is obtained and the data table is established, and the compensation time and low accuracy in the existing technology is solved. The problem of this achieves efficient and accurate temperature compensation.
Patent Information
- Application Number
- CN202210782134.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-07-05
AI Technical Summary
The existing crystal oscillator automatic temperature compensation system has too long compensation time and low accuracy, which cannot effectively offset the frequency drift caused by temperature.
Using high and low temperature test chambers, external high-stable reference crystal oscillator, first frequency division circuit, second frequency division circuit, phase comparison circuit, first low-pass filter, high-precision voltmeter and upper computer, through frequency division and comparison signals To obtain the temperature compensation voltage and establish a temperature-compensation voltage data sheet to achieve automatic temperature compensation.
It improves the efficiency and accuracy of automatic temperature compensation of crystal oscillator, reduces frequent adjustments to programmable DC voltage-regulated power supplies, and enhances the efficiency and accuracy of the compensation system.
Smart Images

Figure CN115065323B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of crystal oscillators, and in particular to an automatic temperature compensation system and compensation method for a crystal oscillator. Background Art
[0002] Temperature compensated crystal oscillator (TCXO) has the characteristics of low power consumption, working as soon as it is turned on, and easy miniaturization. It is widely used in related electronic fields such as communications, electronic instruments, aerospace, national defense and military industries, and plays the role of "heart" in electronic systems.
[0003] In fact, the temperature-compensated crystal oscillator is composed of a temperature-dependent compensation voltage generator and a voltage-controlled crystal oscillator (VCXO). In actual applications, the voltage-controlled crystal oscillator is easily affected by the ambient temperature, causing its output frequency to drift. Figure 1 The temperature-frequency characteristic curve shown in the figure shows the relationship between temperature and frequency. Usually, the temperature-frequency characteristic of the voltage-controlled crystal oscillator can be approximated as a high-order curve, expressed as:
[0004] f(T)=a5(T-T0) 5 +a3(T-T0) 3 +a1(T-T0)+a0
[0005] Among them, a5 is the quintic coefficient term, a3 is the cubic coefficient term, a1 is the linear coefficient term, a0 is the oscillation frequency at T0, and T0 is the reference temperature.
[0006] For a voltage-controlled crystal oscillator, its output frequency can change within a certain range as the voltage at the voltage-controlled input terminal changes. It is expressed by the frequency-voltage control characteristic. The linear gain of the voltage-controlled characteristic can be approximately expressed as follows:
[0007] f(VG)=-G(VC-VC0)+f0
[0008] Where G is the voltage-control-frequency gain of the VCXO, VC is the control input voltage of the VCXO, VC0 is the center voltage-control voltage of the voltage-control terminal of the VCXO, and f0 is the target oscillation frequency when the input is VC0.
[0009] Therefore, the equation for the voltage VC(T) that compensates for the crystal temperature characteristic can be expressed as:
[0010] VC(T)=A5(T-T0) 5 +A3(T-T0) 3 +A1(T-T0)+A0
[0011] At this time, A5=a5 / G, A3=a3 / G, A1=a1 / G, and A0 is the compensation voltage when the temperature is T0.
[0012] In order to reduce the output frequency drift of the crystal oscillator caused by temperature, it is necessary to generate a temperature compensation voltage and load it to the voltage-controlled end of the voltage-controlled crystal oscillator for temperature compensation to offset this frequency-temperature characteristic, thereby obtaining a stable frequency output within a wider temperature range and achieving the purpose of temperature compensation.
[0013] For example, the Chinese invention patent document with publication number CN106301224B discloses a crystal oscillator temperature compensation system, and its system structure diagram is as follows: Figure 2 As shown, the compensation system uses a host computer to control a high and low temperature test chamber, a frequency meter and a programmable DC regulated power supply. The specific process is: the host computer controls the high and low temperature test chamber to adjust the temperature, and at the same time uses the host computer to adjust the programmable DC regulated power supply to output an appropriate voltage until the output frequency of the voltage-controlled crystal oscillator to be compensated measured by the frequency meter is equal to the target frequency, thereby obtaining the corresponding frequency deviation and compensation voltage at different temperatures, obtaining a frequency deviation-compensation voltage data table and storing it in the compensation voltage generating device of the voltage-controlled crystal oscillator.
[0014] For example, the Chinese invention patent document with publication number CN111669126A discloses a test method for improving the stability of a temperature compensated crystal oscillator, and its system structure diagram is shown in FIG. Figure 3 As shown, the test method connects the pre-made reference frequency and the frequency of the voltage-controlled crystal oscillator to be compensated to the digital frequency comparison circuit, the single-chip microcomputer reads the temperature sensor to obtain the real-time temperature value and collects the corresponding comparison control voltage output by the phase-locked loop through the ADC, and then uses the polynomial fitting algorithm to calculate and obtain the corresponding compensation voltage under different temperatures.
[0015] However, the first method of realizing automatic temperature compensation requires continuous adjustment of the programmable DC regulated power supply until the output frequency of the voltage-controlled crystal oscillator is equal to the target frequency, which will cause the system to take too long to perform automatic temperature compensation. Since the second method of realizing automatic temperature compensation uses ADC to collect the control voltage, the compensation accuracy of the system is greatly affected by the accuracy of the ADC. At the same time, the use of polynomial fitting algorithm will also reduce the accuracy of the system compensation control. Summary of the invention
[0016] The purpose of the present invention is to provide a crystal oscillator automatic temperature compensation system and compensation method to solve the technical problems of the existing automatic temperature compensation system such as long compensation time and low accuracy, thereby improving the efficiency and accuracy of the crystal oscillator automatic temperature compensation system.
[0017] The purpose of the present invention is achieved through the following technical solutions:
[0018] In one aspect, the present invention provides a crystal oscillator automatic temperature compensation system, comprising:
[0019] High and low temperature test chamber;
[0020] The crystal oscillator to be compensated is placed in a high and low temperature test chamber and is used to output a frequency signal to be compensated;
[0021] External high-stability reference crystal oscillator, used to output reference frequency signal;
[0022] A first frequency dividing circuit is used for receiving a frequency signal to be compensated output by the crystal oscillator to be compensated, and dividing the frequency signal to be compensated to output a first frequency divided signal;
[0023] A second frequency division circuit is used to receive a reference frequency signal output by an external high-stability reference crystal oscillator, and divide the reference frequency signal to output a second frequency division signal;
[0024] A phase comparison circuit is used to receive a first frequency-divided signal output by the first frequency-divided circuit and a second frequency-divided signal output by the second frequency-divided circuit, and compare the first frequency-divided signal with the second frequency-divided signal to obtain a phase deviation between the two, and finally convert the phase deviation into a compensation voltage signal of corresponding magnitude and output it;
[0025] A first low-pass filter, used for receiving the compensation voltage signal output by the phase comparison circuit, filtering the compensation voltage signal and then outputting it;
[0026] A high-precision voltmeter, used to receive the compensation voltage signal filtered by the first low-pass filter to measure the temperature compensation voltage; and
[0027] The host computer is used to adjust the temperature of the high and low temperature test chamber and read the temperature compensation voltage measured by the high-precision voltmeter;
[0028] The host computer establishes a temperature-compensation voltage data table of the crystal oscillator to be compensated within the full temperature range according to the temperature compensation voltage at different temperatures, and stores the temperature-compensation voltage data table in the crystal oscillator to be compensated.
[0029] Optionally, the crystal oscillator to be compensated comprises:
[0030] A voltage-controlled crystal oscillator, used for outputting a frequency signal to be compensated;
[0031] Single chip microcomputer, communicating with the host computer;
[0032] A temperature sensor is connected to the single-chip microcomputer and is used to detect the temperature of the environment in which the voltage-controlled crystal oscillator is located;
[0033] A storage unit is connected to the single chip microcomputer for communication;
[0034] The voltage conversion circuit D / A is connected to the single-chip microcomputer for communication so as to generate a temperature compensation voltage according to the instruction issued by the single-chip microcomputer and output the voltage to the voltage-controlled crystal oscillator.
[0035] Furthermore, the crystal oscillator to be compensated also includes a second low-pass filter, which is used to receive the temperature compensation voltage output by the voltage conversion circuit D / A, and filter the temperature compensation voltage before outputting it to the voltage-controlled crystal oscillator.
[0036] Optionally, the crystal oscillator automatic temperature compensation system also includes a DC regulated power supply, which is used to power the crystal oscillator to be compensated, an external high-stability reference crystal oscillator, a first frequency division circuit, a second frequency division circuit, a phase comparison circuit and a first low-pass filter.
[0037] On the other hand, the present invention provides a crystal oscillator automatic temperature compensation method, using the crystal oscillator automatic temperature compensation system as described above, comprising the following steps:
[0038] S1. Place the crystal oscillator to be compensated inside the high and low temperature test chamber;
[0039] S2. Using a DC regulated power supply to supply power to the crystal oscillator to be compensated, the external high-stability reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter;
[0040] S3. Use the host computer to adjust the high and low temperature test chamber to different temperatures in turn. At the same time, use the host computer to read the temperature compensation voltage measured by the high-precision voltmeter at different temperatures, so as to establish a temperature-compensation voltage data table of the crystal oscillator to be compensated in the full temperature range according to the temperature compensation voltage at different temperatures, and store the temperature-compensation voltage data table in the crystal oscillator to be compensated;
[0041] S4. The crystal oscillator to be compensated performs automatic temperature compensation according to the established temperature-compensation voltage data table and the current ambient temperature.
[0042] Optionally, step S4 specifically includes:
[0043] S41. The microcontroller of the crystal oscillator to be compensated receives the temperature-compensated voltage data table sent by the host computer and writes it into the storage unit for storage;
[0044] S42. The single-chip computer reads the corresponding temperature compensation voltage data in the storage unit according to the current ambient temperature obtained by the temperature sensor, and generates a corresponding temperature compensation voltage through the voltage conversion circuit D / A;
[0045] S43. The temperature compensation voltage generated by the voltage conversion circuit D / A is filtered by the second low-pass filter and then output to the voltage-controlled crystal oscillator to achieve automatic temperature compensation of the voltage-controlled crystal oscillator.
[0046] Optionally, step S1 further includes:
[0047] The frequency division coefficients of the first frequency division circuit and the second frequency division circuit are set to ensure that the frequency of the first frequency division signal output by the crystal oscillator to be compensated and divided by the first frequency division circuit is equal to the frequency of the second frequency division signal output by the external high-stable reference crystal oscillator and divided by the second frequency division circuit.
[0048] The technical solution of the embodiment of the present invention has at least the following advantages and beneficial effects:
[0049] 1. The present invention adds an external high-stable reference crystal oscillator as a reference benchmark, and cooperates with a first frequency-dividing circuit, a second frequency-dividing circuit, a phase comparison circuit, a first low-pass filter, a high-precision voltmeter and a host computer, so as to use the first frequency-dividing circuit to divide the frequency signal to be compensated output by the crystal oscillator to be compensated, use the second frequency-dividing circuit to divide the reference frequency signal output by the external high-stable reference crystal oscillator, and use the phase comparison circuit to compare the divided signals after being divided by the first frequency-dividing circuit and the second frequency-dividing circuit to obtain the phase deviation between the two divided signals, and then convert the obtained phase deviation into a compensation voltage signal of corresponding magnitude, and finally obtain the temperature compensation voltage of the crystal oscillator to be compensated at different temperatures through the high-precision voltmeter, and establish a temperature-compensation voltage data table of the crystal oscillator to be compensated in the full temperature range with the help of the host computer, so as to realize automatic temperature compensation of the crystal oscillator to be compensated. Compared with the prior art, there is no need to frequently adjust the programmable DC regulated power supply, thereby improving the efficiency of the compensation system in obtaining the temperature compensation voltage and performing automatic temperature compensation.
[0050] 2. The present invention uses a high-precision voltmeter to collect the temperature compensation voltage of the crystal oscillator to be compensated at different temperatures. In the whole process of obtaining the temperature compensation voltage, only the crystal oscillator to be compensated is placed inside the high and low temperature test box, and the external high-stable reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter and other modules are arranged in an environment with a constant external temperature. This can effectively improve the acquisition accuracy of the temperature compensation voltage, thereby improving the compensation accuracy of the compensation system when performing automatic temperature compensation. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 An example diagram of the frequency-temperature characteristic curve of an existing voltage-controlled crystal oscillator;
[0052] Figure 2A schematic diagram of the system structure of an automatic temperature compensation system in the prior art;
[0053] Figure 3 It is a schematic diagram of the system structure of another automatic temperature compensation system in the prior art;
[0054] Figure 4 A schematic diagram of the structure of a crystal oscillator automatic temperature compensation system provided by an embodiment of the present invention;
[0055] Figure 5 A schematic diagram of the structure of a crystal oscillator to be compensated provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] Example
[0057] Please refer to Figure 4 The present embodiment provides a crystal oscillator automatic temperature compensation system, including a high and low temperature test chamber, a crystal oscillator to be compensated, an external high-stable reference crystal oscillator, a first frequency division circuit, a second frequency division circuit, a phase comparison circuit, a first low-pass filter, a high-precision voltmeter, a host computer and a DC regulated power supply, wherein the DC regulated power supply (not shown in the figure) is used to provide the crystal oscillator to be compensated, the external high-stable reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter with the power required for normal operation.
[0058] In this embodiment, the crystal oscillator to be compensated for outputting the frequency signal to be compensated is placed inside a high and low temperature test chamber, so that the crystal oscillator to be compensated can operate under a variety of different temperature conditions to simulate the actual operating environment of the crystal oscillator to be compensated.
[0059] In this embodiment, an external high-stable reference crystal oscillator is used to output a reference frequency signal. It can be understood that the external high-stable reference crystal oscillator is a crystal oscillator with high frequency and temperature stability. By using the external high-stable reference crystal oscillator as a reference to obtain the temperature compensation voltage of the crystal oscillator to be compensated, the accuracy of obtaining the temperature compensation voltage can be effectively improved.
[0060] In this embodiment, the first frequency dividing circuit is used to receive the frequency signal to be compensated output by the crystal oscillator to be compensated. At this time, the first frequency dividing circuit can be used to divide the frequency signal to be compensated output by the crystal oscillator to be compensated, so as to output the corresponding first frequency dividing signal.
[0061] In this embodiment, the second frequency division circuit is used to receive the reference frequency signal output by the external high-stable reference crystal oscillator. At this time, the second frequency division circuit can be used to divide the reference frequency signal output by the external high-stable reference crystal oscillator, so as to use the second frequency division circuit to output the corresponding second frequency division signal.
[0062] In this embodiment, the phase comparison circuit is used to receive the first frequency-divided signal output by the first frequency-divided circuit and the second frequency-divided signal output by the second frequency-divided circuit. At the same time, the phase comparison circuit can compare the received first frequency-divided signal with the second frequency-divided signal to obtain the phase deviation between the two frequency-divided signals. Finally, the phase comparison circuit converts the phase deviation into a compensation voltage signal of corresponding size and outputs it.
[0063] At the same time, in order to further improve the accuracy of the temperature compensation voltage obtained, the first low-pass filter can be used to receive the compensation voltage signal output by the phase comparison circuit, and the compensation voltage signal can be filtered by the first low-pass filter to output the corresponding compensation voltage signal. At this time, the compensation voltage corresponding to the filtered compensation voltage signal output by the first low-pass filter is the temperature compensation voltage of the crystal oscillator to be compensated under the current temperature conditions. By relying on a high-precision voltmeter to receive the compensation voltage signal filtered by the first low-pass filter, the temperature compensation voltage of the crystal oscillator to be compensated under the current temperature conditions can be measured.
[0064] In this embodiment, the host computer is used to adjust the temperature of the high and low temperature test box, and at the same time, the host computer can read the temperature compensation voltage measured by the high-precision voltmeter. When the temperature of the high and low temperature test box changes, the high-precision voltmeter can measure the temperature compensation voltage required by the crystal oscillator to be compensated at multiple different temperatures. At this time, the host computer can establish a temperature-compensation voltage data table of the crystal oscillator to be compensated in the full temperature range according to the temperature compensation voltage at different temperatures read from the high-precision voltmeter, and store the temperature-compensation voltage data table in the crystal oscillator to be compensated for use when the crystal oscillator to be compensated performs automatic temperature compensation.
[0065] It is understood that in order to achieve automatic temperature compensation of the crystal oscillator to be compensated, please refer to Figure 5 The crystal oscillator to be compensated in this embodiment includes a voltage-controlled crystal oscillator, a single-chip microcomputer, a temperature sensor, a storage unit, a voltage conversion circuit D / A and a second low-pass filter.
[0066] Among them, the voltage-controlled crystal oscillator is used to output the corresponding frequency signal to be compensated in the stage of obtaining the temperature compensation voltage, so as to obtain the temperature compensation voltage required by the voltage-controlled crystal oscillator at different temperatures. At this time, the temperature-compensation voltage data table of the crystal oscillator to be compensated in the full temperature range obtained above is the temperature-compensation voltage data table of the voltage-controlled crystal oscillator in the full temperature range. At the same time, in the automatic temperature compensation stage, the voltage-controlled crystal oscillator can output the required target frequency.
[0067] In this embodiment, the single-chip microcomputer of the crystal oscillator to be compensated is communicatively connected with the host computer so as to receive, through the single-chip microcomputer, the temperature-compensation voltage data table of the voltage-controlled crystal oscillator to be compensated in the full temperature range established by the host computer. At this time, the storage unit of the crystal oscillator to be compensated is communicatively connected with the single-chip microcomputer so as to write the acquired temperature-compensation voltage data table into the storage unit of the crystal oscillator to be compensated for storage through the unit machine for use in subsequent automatic temperature compensation.
[0068] In this embodiment, the temperature sensor of the crystal oscillator to be compensated is connected to the single-chip microcomputer for communication, so that the temperature of the current environment of the voltage-controlled crystal oscillator can be detected by the temperature sensor during the automatic temperature compensation stage.
[0069] In this embodiment, the voltage conversion circuit D / A is connected to the single-chip microcomputer in communication. In the automatic temperature compensation stage, the voltage conversion circuit D / A can generate a corresponding temperature compensation voltage according to the instruction issued by the single-chip microcomputer and output it to the voltage-controlled crystal oscillator. It can be understood that in order to improve the accuracy of the temperature compensation voltage output by the voltage conversion circuit D / A to the voltage-controlled crystal oscillator, a second low-pass filter can be set between the voltage-controlled crystal oscillator and the voltage conversion circuit D / A to receive the temperature compensation voltage output by the voltage conversion circuit D / A through the second low-pass filter, and use the second low-pass filter to filter the temperature compensation voltage before outputting it to the voltage-controlled crystal oscillator, so as to achieve high-precision automatic temperature compensation of the voltage-controlled crystal oscillator.
[0070] On the other hand, the present embodiment further provides a crystal oscillator automatic temperature compensation method, which adopts the crystal oscillator automatic temperature compensation system as described above. The compensation method is mainly divided into a temperature compensation voltage acquisition stage and an automatic temperature compensation stage, and specifically includes the following steps:
[0071] S1. During the temperature compensation voltage acquisition phase, the crystal oscillator to be compensated is placed inside a high and low temperature test chamber so that the voltage-controlled crystal oscillator of the crystal oscillator to be compensated can operate under a variety of different temperature conditions. At the same time, the frequency division coefficients of the first frequency division circuit and the second frequency division circuit are set to ensure that the frequency of the first frequency division signal output by the voltage-controlled crystal oscillator of the crystal oscillator to be compensated and divided by the first frequency division circuit and the frequency of the second frequency division signal output by the external high-stability reference crystal oscillator and divided by the second frequency division circuit are equal, so as to further improve the accuracy of the temperature compensation voltage finally obtained.
[0072] It should be noted that when the frequency of the reference frequency signal output by the external high-stable reference crystal oscillator is greater than the frequency of the frequency signal to be compensated output by the voltage-controlled crystal oscillator of the crystal oscillator to be compensated, the division coefficient of the first frequency division circuit corresponding to the voltage-controlled crystal oscillator of the crystal oscillator to be compensated is set to 1. At this time, only the second frequency division circuit is used to divide the reference frequency signal output by the external high-stable reference crystal oscillator; when the frequency of the reference frequency signal output by the external high-stable reference crystal oscillator is equal to the frequency of the frequency signal to be compensated output by the voltage-controlled crystal oscillator of the crystal oscillator to be compensated, the division coefficients of the first frequency division circuit and the second frequency division circuit are set to 1 at the same time, that is, the reference frequency signal output by the external high-stable reference crystal oscillator and the frequency signal to be compensated output by the voltage-controlled crystal oscillator of the crystal oscillator to be compensated are not divided.
[0073] S2. Use a DC regulated power supply to respectively power the crystal oscillator to be compensated, the external high-stable reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter, so that the voltage-controlled crystal oscillator of the crystal oscillator to be compensated, the external high-stable reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter can operate normally and reliably.
[0074] S3. Use the host computer to adjust the high and low temperature test box to different temperatures in turn. At the same time, use the host computer to read the temperature compensation voltage measured by the high-precision voltmeter at different temperatures, so as to use the host computer to establish the temperature-compensation voltage data table of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated in the full temperature range according to the temperature compensation voltage at different temperatures read from the high-precision voltmeter, and store the temperature-compensation voltage data table in the crystal oscillator to be compensated. It is understandable that in the process of obtaining the temperature compensation voltage of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated, the temperature in the external environment should be kept constant (usually room temperature) to avoid the external high-stability reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the low-pass filter placed in the external environment from being affected by changes in the external environment temperature.
[0075] Specifically, it is assumed that the temperature range of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated during normal operation is the lowest temperature T min To the maximum temperature T max When obtaining the temperature compensation voltage, you can first use the host computer to adjust the temperature of the high and low temperature test chamber to the lowest temperature T minAt this time, the voltage-controlled crystal oscillator of the crystal oscillator to be compensated outputs the corresponding frequency signal to be compensated to the first frequency-dividing circuit, the first frequency-dividing circuit divides the frequency signal to be compensated to output the first frequency-dividing signal, the external high-stability reference crystal oscillator outputs the corresponding reference frequency signal to the second frequency-dividing circuit, the second frequency-dividing circuit divides the reference frequency signal to output the second frequency-dividing signal; the phase comparison circuit receives the first frequency-dividing signal output by the first frequency-dividing circuit and the second frequency-dividing signal output by the second frequency-dividing circuit, and compares the first frequency-dividing signal with the second frequency-dividing signal to obtain the phase deviation between the two frequency-dividing signals, and finally converts the phase deviation into a compensation voltage signal of corresponding magnitude and outputs it to the first low-pass filter; the first low-pass filter filters the received compensation voltage signal and outputs it to the high-precision voltmeter, so as to measure the temperature as the lowest temperature T through the high-precision voltmeter. min The temperature compensation voltage of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated is obtained. At the same time, the host computer can read the temperature compensation voltage at the current temperature from the high-precision voltmeter. By analogy, the temperature of the high and low temperature test chamber is adjusted from the lowest temperature T min Adjust to the highest temperature T max , you can get the minimum temperature T min To the maximum temperature T max A series of temperature compensation voltage data of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated within this temperature range (i.e., the full temperature range) can be used to establish a temperature-compensation voltage data table of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated within the full temperature range using the series of temperature compensation voltage data read by the host computer.
[0076] It should be noted that when actually obtaining the temperature compensation voltage of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated within the full temperature range, the temperature of the high and low temperature test chamber can also be adjusted to the highest temperature T using the host computer. max Then, the host computer is used to adjust the temperature of the high and low temperature test box from the highest temperature T max Adjust to the lowest temperature T min , the temperature compensation voltage of the voltage-controlled crystal oscillator to be compensated in the full temperature range can also be obtained, and the adjustment order of the high and low temperature test chamber temperatures is not limited here.
[0077] S4. Finally, in the automatic temperature compensation stage, the voltage-controlled crystal oscillator of the crystal oscillator to be compensated can perform automatic temperature compensation according to the established temperature-compensation voltage data table and the current ambient temperature.
[0078] Specifically, the process of automatic temperature compensation of the voltage-controlled crystal oscillator of the crystal oscillator to be compensated includes:
[0079] S41. The single-chip microcomputer of the crystal oscillator to be compensated receives the temperature-compensation voltage data table sent by the host computer and writes it into the storage unit for storage, so that the single-chip microcomputer can read the temperature compensation voltage data corresponding to the current ambient temperature during automatic temperature compensation.
[0080] S42. The temperature sensor obtains the temperature of the current environment of the voltage-controlled crystal oscillator in real time and sends it to the single-chip microcomputer. The single-chip microcomputer reads the temperature compensation voltage data corresponding to the current ambient temperature in the temperature-compensation voltage data table stored in the storage unit according to the current ambient temperature obtained by the temperature sensor, and uses the single-chip microcomputer to send corresponding instructions to the voltage conversion circuit D / A to generate the corresponding temperature compensation voltage through the voltage conversion circuit D / A.
[0081] S43. The temperature compensation voltage generated by the voltage conversion circuit D / A is filtered by the second low-pass filter and then output to the voltage-controlled crystal oscillator, thereby realizing automatic temperature compensation of the voltage-controlled crystal oscillator.
[0082] It can be seen that the crystal oscillator automatic temperature compensation system and compensation method provided in the present embodiment, by adding an external high-stable reference crystal oscillator as a reference benchmark, and cooperating with a first frequency division circuit, a second frequency division circuit, a phase comparison circuit, a first low-pass filter, a high-precision voltmeter and a host computer, so as to use the first frequency division circuit to divide the frequency signal to be compensated output by the crystal oscillator to be compensated, and use the second frequency division circuit to divide the reference frequency signal output by the external high-stable reference crystal oscillator, and use the phase comparison circuit to compare the divided frequency signals after being divided by the first frequency division circuit and the second frequency division circuit to obtain the phase deviation between the two divided frequency signals, and then convert the obtained phase deviation into a compensation voltage signal of corresponding magnitude, and finally obtain the temperature compensation voltage of the crystal oscillator to be compensated at different temperatures through the high-precision voltmeter, and establish a temperature-compensation voltage data table of the crystal oscillator to be compensated in the full temperature range with the help of the host computer, so as to realize automatic temperature compensation of the crystal oscillator to be compensated. Compared with the prior art, there is no need to frequently adjust the programmable DC regulated power supply, thereby improving the efficiency of the compensation system in obtaining the temperature compensation voltage and performing automatic temperature compensation. At the same time, a high-precision voltmeter is used to collect the temperature compensation voltage of the crystal oscillator to be compensated at different temperatures. In the whole process of obtaining the temperature compensation voltage, only the crystal oscillator to be compensated is placed inside the high and low temperature test chamber, while the external high-stable reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter and other modules are arranged in an environment with constant external temperature. This can effectively improve the acquisition accuracy of the temperature compensation voltage, thereby improving the compensation accuracy of the compensation system when performing automatic temperature compensation.
[0083] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A crystal oscillator automatic temperature compensation system, characterized in that: include: High and low temperature test chamber; The crystal oscillator to be compensated is placed in a high and low temperature test chamber and is used to output a frequency signal to be compensated; External high-stability reference crystal oscillator, used to output reference frequency signal; A first frequency dividing circuit is used for receiving a frequency signal to be compensated output by the crystal oscillator to be compensated, and dividing the frequency signal to be compensated to output a first frequency divided signal; A second frequency division circuit is used to receive a reference frequency signal output by an external high-stability reference crystal oscillator, and divide the reference frequency signal to output a second frequency division signal; A phase comparison circuit is used to receive a first frequency-divided signal output by the first frequency-divided circuit and a second frequency-divided signal output by the second frequency-divided circuit, and compare the first frequency-divided signal with the second frequency-divided signal to obtain a phase deviation between the two, and finally convert the phase deviation into a compensation voltage signal of corresponding magnitude and output it; A first low-pass filter, used for receiving the compensation voltage signal output by the phase comparison circuit, filtering the compensation voltage signal and then outputting it; A high-precision voltmeter, used to receive the compensation voltage signal filtered by the first low-pass filter to measure the temperature compensation voltage; and The host computer is used to adjust the temperature of the high and low temperature test chamber and read the temperature compensation voltage measured by the high-precision voltmeter; The host computer establishes a temperature-compensation voltage data table of the crystal oscillator to be compensated within the full temperature range according to the temperature compensation voltage at different temperatures, and stores the temperature-compensation voltage data table in the crystal oscillator to be compensated.
2. The crystal oscillator automatic temperature compensation system according to claim 1, characterized in that: The crystal oscillator to be compensated includes: A voltage-controlled crystal oscillator, used for outputting a frequency signal to be compensated; Single chip microcomputer, communicating with the host computer; A temperature sensor is connected to the single-chip microcomputer and is used to detect the temperature of the environment in which the voltage-controlled crystal oscillator is located; A storage unit is connected to the single-chip microcomputer for communication; The voltage conversion circuit D / A is connected to the single-chip microcomputer for communication so as to generate a temperature compensation voltage according to the instruction issued by the single-chip microcomputer and output the voltage to the voltage-controlled crystal oscillator.
3. The crystal oscillator automatic temperature compensation system according to claim 2, characterized in that: The crystal oscillator to be compensated also includes a second low-pass filter, which is used to receive the temperature compensation voltage output by the voltage conversion circuit D / A, and filter the temperature compensation voltage before outputting it to the voltage-controlled crystal oscillator.
4. The crystal oscillator automatic temperature compensation system according to claim 1, characterized in that: It also includes a DC regulated power supply, which is used to power the crystal oscillator to be compensated, an external high-stability reference crystal oscillator, a first frequency division circuit, a second frequency division circuit, a phase comparison circuit and a first low-pass filter.
5. A crystal oscillator automatic temperature compensation method, using the crystal oscillator automatic temperature compensation system according to any one of claims 1 to 4, characterized in that: The following steps are involved: S1. Place the crystal oscillator to be compensated inside the high and low temperature test chamber; S2. Using a DC regulated power supply to supply power to the crystal oscillator to be compensated, the external high-stability reference crystal oscillator, the first frequency division circuit, the second frequency division circuit, the phase comparison circuit and the first low-pass filter; S3. Use the host computer to adjust the high and low temperature test chamber to different temperatures in turn. At the same time, use the host computer to read the temperature compensation voltage measured by the high-precision voltmeter at different temperatures, so as to establish a temperature-compensation voltage data table of the crystal oscillator to be compensated in the full temperature range according to the temperature compensation voltage at different temperatures, and store the temperature-compensation voltage data table in the crystal oscillator to be compensated; S4. The crystal oscillator to be compensated performs automatic temperature compensation according to the established temperature-compensation voltage data table and the current ambient temperature.
6. The crystal oscillator automatic temperature compensation method according to claim 5, characterized in that: Step S4 specifically includes: S41. The microcontroller of the crystal oscillator to be compensated receives the temperature-compensated voltage data table sent by the host computer and writes it into the storage unit for storage; S42. The single-chip computer reads the corresponding temperature compensation voltage data in the storage unit according to the current ambient temperature obtained by the temperature sensor, and generates a corresponding temperature compensation voltage through the voltage conversion circuit D / A; S43. The temperature compensation voltage generated by the voltage conversion circuit D / A is filtered by the second low-pass filter and then output to the voltage-controlled crystal oscillator to achieve automatic temperature compensation of the voltage-controlled crystal oscillator.
7. The crystal oscillator automatic temperature compensation method according to claim 5, characterized in that: Step S1 also includes: The frequency division coefficients of the first frequency division circuit and the second frequency division circuit are set to ensure that the frequency of the first frequency division signal output by the crystal oscillator to be compensated and divided by the first frequency division circuit is equal to the frequency of the second frequency division signal output by the external high-stable reference crystal oscillator and divided by the second frequency division circuit.
