CN115001483A - Adaptive temperature change clock module and adaptive temperature change method - Google Patents
Adaptive temperature change clock module and adaptive temperature change method Download PDFInfo
- Publication number
- CN115001483A CN115001483A CN202210829548.1A CN202210829548A CN115001483A CN 115001483 A CN115001483 A CN 115001483A CN 202210829548 A CN202210829548 A CN 202210829548A CN 115001483 A CN115001483 A CN 115001483A
- Authority
- CN
- China
- Prior art keywords
- frequency
- temperature
- crystal oscillator
- constant
- output
- 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
Links
- 230000008859 change Effects 0.000 title claims abstract description 56
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000003044 adaptive effect Effects 0.000 title claims description 49
- 239000013078 crystal Substances 0.000 claims abstract description 176
- 230000007613 environmental effect Effects 0.000 claims abstract description 18
- 238000001514 detection method Methods 0.000 claims description 30
- 210000003127 knee Anatomy 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 238000005259 measurement Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L1/00—Stabilisation of generator output against variations of physical values, e.g. power supply
- H03L1/02—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
- H03L1/028—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only of generators comprising piezoelectric resonators
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B5/00—Generation of oscillations using amplifier with regenerative feedback from output to input
- H03B5/30—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element being electromechanical resonator
- H03B5/32—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element being electromechanical resonator being a piezoelectric resonator
Landscapes
- Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
The invention relates to the technical field of clock synchronization, and discloses a self-adaptive temperature change clock module and a self-adaptive temperature change method, wherein the self-adaptive temperature change clock module comprises: the constant-temperature crystal oscillator comprises a main control module and a constant-temperature crystal oscillator connected with the main control module, wherein the main control module is used for acquiring the current environment temperature when detecting that the environment temperature changes, acquiring the target inflection point frequency of the constant-temperature crystal oscillator at the current environment temperature, searching a corresponding output voltage value in a preset voltage-frequency relation table according to the target inflection point frequency, and finally outputting the output voltage value to the constant-temperature crystal oscillator so that the constant-temperature crystal oscillator adjusts the current output frequency to the target inflection point frequency according to the output voltage value. The self-adaptive temperature change clock module adopted by the invention can adjust the voltage value output to the constant temperature crystal oscillator according to the change of the environmental temperature and the target inflection point frequency at the current environmental temperature so as to ensure that the constant temperature crystal oscillator works at the optimal temperature, thereby self-adapting to the change of the environmental temperature.
Description
Technical Field
The invention relates to the technical field of clock synchronization, in particular to a self-adaptive temperature change clock module and a self-adaptive temperature change method.
Background
With the development of the times and the progress of science and technology, the measuring instruments, the automation devices and the like have more and more extensive applications, so that the requirements on the precision and the stability of the devices are higher and higher, and the constant temperature crystal oscillator is often applied to the devices due to the high precision and the high stability of the constant temperature crystal oscillator. However, when the external environment temperature changes, the temperature inside the constant temperature crystal oscillator also changes, and at this time, the output frequency of the constant temperature crystal oscillator also fluctuates greatly.
In the prior art, the working temperature in the constant-temperature crystal oscillator can be adjusted at normal temperature, and the inflection point of the constant-temperature crystal oscillator can be found by measuring the frequency change, but the method needs manual intervention, and the inflection point of the constant-temperature crystal oscillator needs to be found again when the temperature changes, so that the working efficiency is low. Therefore, how to solve the problem of adapting to the change of the ambient temperature by the constant temperature crystal oscillator and make the inflection point of the constant temperature crystal oscillator always work at the optimal point becomes a problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a self-adaptive temperature change clock module and a self-adaptive temperature change method, and aims to solve the technical problem that the inflection point of a constant temperature crystal oscillator always works at the optimal point due to the fact that the constant temperature crystal oscillator adapts to the change of the ambient temperature in the prior art.
To achieve the above object, the present invention provides an adaptive temperature change clock module, including: the constant-temperature crystal oscillator comprises a main control module and a constant-temperature crystal oscillator connected with the main control module;
the main control module is used for acquiring the current ambient temperature when detecting that the ambient temperature changes;
the main control module is further used for acquiring a target inflection point frequency of the constant temperature crystal oscillator at the current ambient temperature;
the main control module is further used for searching a corresponding output voltage value in a preset voltage frequency relation table according to the target inflection point frequency;
the main control module is further configured to output the output voltage value to the constant temperature crystal oscillator, so that the constant temperature crystal oscillator adjusts the current output frequency to the target inflection frequency according to the output voltage value.
Optionally, the adaptive temperature change clock module further includes: a frequency detection module;
the frequency detection module is respectively connected with the main control module and the constant-temperature crystal oscillator;
the main control module is further used for adjusting a voltage value output to the constant-temperature crystal oscillator according to the detected ambient temperature so that the constant-temperature crystal oscillator performs frequency adjustment according to the adjusted voltage value;
the frequency detection module is used for receiving the adjusted frequency in real time, and comparing the pulse per second signal obtained after the frequency division of the adjusted frequency with a reference pulse per second signal to obtain a phase difference;
the main control module is further used for acquiring the phase difference and adjusting the current output frequency of the constant-temperature crystal oscillator according to the phase difference;
the main control module is further used for constructing a preset voltage-frequency relation table according to the plurality of adjusted voltage values and the current output frequency corresponding to the adjusted voltage values.
Optionally, the frequency detection module is further configured to receive a reference pulse per second signal of a satellite receiver;
the frequency detection module is also used for receiving the output frequency of the constant-temperature crystal oscillator in real time and dividing the output frequency into pulse per second signals;
the frequency detection module is further configured to compare the pulse per second signal with the reference pulse per second signal to obtain a phase difference.
Optionally, the main control module further includes: the device comprises a singlechip, a voltage adjusting module and a frequency adjusting module;
the voltage adjusting module and the frequency adjusting module are respectively connected with the single chip microcomputer and the constant-temperature crystal oscillator;
the single chip microcomputer is used for sending a temperature adjusting instruction to the voltage adjusting module according to the detected ambient temperature;
the voltage adjusting module is used for outputting a corresponding voltage value to the constant-temperature crystal oscillator according to the temperature adjusting instruction so as to adjust the frequency of the constant-temperature crystal oscillator according to the voltage value;
the single chip microcomputer is also used for acquiring a phase difference obtained by the frequency detection module based on the adjusted frequency and sending a frequency adjusting instruction to the frequency adjusting module according to the phase difference;
and the frequency adjusting module is used for adjusting the current output frequency of the constant-temperature crystal oscillator according to the frequency adjusting instruction.
Optionally, the single chip microcomputer is further configured to record a voltage value output by the voltage adjustment module to the constant temperature crystal oscillator and a current output frequency of the constant temperature crystal oscillator when it is detected that the obtained phase difference is equal to zero;
and the single chip microcomputer is also used for constructing a preset voltage-frequency relation table according to the voltage value and the output frequency when detecting that the number of the recorded voltage value and the output frequency reaches a preset value.
Further, in order to achieve the above object, the present application also provides an adaptive temperature variation method based on the above adaptive temperature variation clock module, where the adaptive temperature variation method includes:
when the change of the environmental temperature is detected, acquiring a target inflection point frequency at the current environmental temperature;
searching a corresponding output voltage value in a preset voltage frequency relation table according to the current environment temperature and the target inflection point frequency;
and adjusting the current output frequency to the target inflection point frequency according to the output voltage value.
Optionally, before the step of obtaining the target inflection frequency at the current ambient temperature when the ambient temperature is detected to change, the method further includes:
acquiring the output frequency of a constant-temperature crystal oscillator at the current temperature, and dividing the output frequency into pulse per second signals;
receiving a reference pulse per second signal of a satellite receiver;
when the pulse per second signal and the reference pulse per second signal reach a preset balance condition, taking the current output frequency of the constant-temperature crystal oscillator as a standard output frequency;
acquiring a voltage value output to the constant-temperature crystal oscillator under the preset balance condition and the standard output frequency;
and constructing a preset voltage-frequency relation table according to the obtained plurality of voltage values output by the constant-temperature crystal oscillator at each temperature and the standard output frequency.
Optionally, before the step of taking the current output frequency of the constant temperature crystal oscillator as the standard output frequency when the pulse per second signal and the reference pulse per second signal reach the preset equilibrium condition, the method further includes:
acquiring a phase difference between the pulse per second signal and the reference pulse per second signal;
adjusting the output frequency of the constant-temperature crystal oscillator according to the reference second pulse signal so as to change the phase difference;
and when the phase difference is equal to zero, judging that the pulse per second signal and the reference pulse per second signal reach a preset balance condition.
Optionally, the step of constructing a preset voltage-frequency relationship table according to the obtained plurality of voltage values output by the constant-temperature crystal oscillator at each temperature and the standard output frequency includes:
drawing a curve graph according to a plurality of obtained voltage values output by the constant-temperature crystal oscillator at each temperature and a standard output frequency;
and constructing a preset voltage frequency relation table based on the graph.
Optionally, the step of drawing a graph according to the obtained plurality of voltage values output by the constant temperature crystal oscillator at each temperature and the standard output frequency includes:
outputting preset voltage values at equal intervals to the constant-temperature crystal oscillator at various temperatures;
acquiring standard output frequency corresponding to the preset voltage values at equal intervals;
and when the number of the voltage value and the standard output frequency reaches a preset value, drawing a curve graph according to the voltage value and the standard output frequency.
The invention discloses a main control module and a constant temperature crystal oscillator connected with the main control module, wherein the main control module is used for acquiring the current environment temperature when detecting that the environment temperature changes, and the main control module is also used for acquiring the target inflection point frequency of the constant temperature crystal oscillator at the current environment temperature, and the main control module is also used for searching a corresponding output voltage value main control module in a preset voltage frequency relation table according to the target inflection point frequency and outputting a voltage value to the constant temperature crystal oscillator so that the constant temperature crystal oscillator adjusts the current output frequency to the target inflection point frequency according to the output voltage value. Compared with the prior art that the working temperature in the constant-temperature crystal oscillator is adjusted at normal temperature, and the inflection point of the constant-temperature crystal oscillator is found by measuring the frequency change, the self-adaptive temperature change clock module adopted by the invention can adjust the voltage value output to the constant-temperature crystal oscillator according to the change of the environmental temperature and the target inflection point frequency at the current environmental temperature, so that the constant-temperature crystal oscillator outputs stable frequency, the constant-temperature crystal oscillator is adaptive to the change of the environmental temperature, and the working efficiency is further improved.
Drawings
FIG. 1 is a schematic structural diagram of a self-adaptive temperature variation clock module according to the present invention;
fig. 2 is a schematic structural diagram of a main control module in the adaptive temperature change clock module according to the present invention;
FIG. 3 is a schematic flow chart illustrating a first embodiment of a method for adaptive temperature variation based on the adaptive temperature variation clock module according to the present invention;
FIG. 4 is a schematic flow chart illustrating a second embodiment of an adaptive temperature variation method based on the adaptive temperature variation clock module according to the present invention;
FIG. 5 is a graph showing a relationship between a voltage value outputted to the constant temperature crystal oscillator and a standard output frequency according to the adaptive temperature variation method of the adaptive temperature variation clock module of the present invention;
FIG. 6 is a temperature characteristic diagram of the constant temperature crystal oscillator according to the adaptive temperature variation method of the adaptive temperature variation clock module of the present invention when no inflection point is found;
FIG. 7 is a temperature characteristic diagram of the constant temperature crystal oscillator with inflection point finding and compensation in the adaptive temperature variation method based on the adaptive temperature variation clock module according to the present invention;
fig. 8 is a flowchart illustrating a third embodiment of an adaptive temperature variation method based on the adaptive temperature variation clock module according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention are within the scope of protection of the present invention without any creative efforts.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an adaptive temperature change clock module according to an embodiment of the present invention.
As shown in fig. 1, the adaptive temperature change clock module provided in this embodiment includes: the main control module 100, the constant temperature crystal oscillator 200 and the frequency detection module 300, wherein the frequency detection module 300 is respectively connected to the main control module 100 and the constant temperature crystal oscillator 200, as shown in fig. 2, the main control module 100 includes a single chip microcomputer 101, a voltage adjustment module 102 and a frequency adjustment module 103, wherein the voltage adjustment module 102 and the frequency adjustment module 103 are respectively connected to the single chip microcomputer 101 and the constant temperature crystal oscillator 200.
It should be noted that the main control module 100 may obtain the current ambient temperature when detecting that the temperature changes.
It should be understood that, the temperature sensing device is disposed inside the main control module 100, and can detect the temperature of the environment and obtain the temperature value of the current environment in real time, and when sensing that the environmental temperature changes, can obtain the temperature value of the current environment, for example, if the main control module 100 detects that the environmental temperature is maintained at 26 degrees celsius, but the temperature suddenly rises to 30 degrees celsius at a certain time, at this time, the temperature value of the current environment can be obtained at 30 degrees celsius.
It should be noted that the main control module 100 may obtain a target knee frequency of the constant temperature crystal oscillator 200 at the current ambient temperature.
It should be understood that the target knee frequency may be a frequency output by the constant temperature crystal oscillator 200 at a specific temperature point, and the target knee frequency has a relatively small fluctuation even if the external environment temperature changes.
It can be understood that the main control module 100 may look up a corresponding output voltage value in a preset voltage-frequency relationship table according to the target knee frequency.
It should be noted that the preset voltage-frequency relationship table may be a relationship table established at a certain temperature between a voltage value output to the thermostatic crystal oscillator 200 by the single chip microcomputer 101 and an output frequency corresponding to the thermostatic crystal oscillator 200 at the current voltage value, as shown in fig. 3, a frequency at a highest point in the preset voltage-frequency relationship table is a target inflection frequency.
It should be understood that the output voltage value may be a corresponding voltage value searched in a preset voltage-frequency relationship table according to the target inflection frequency, and the voltage adjustment module 102 may change the temperature inside the constant temperature crystal oscillator 200 by outputting different voltage values to the constant temperature crystal oscillator 200, where when the voltage adjustment module 102 outputs the output voltage value corresponding to the target inflection frequency in the preset voltage-frequency relationship table to the constant temperature crystal oscillator 200, the temperature inside the constant temperature crystal oscillator 200 is the inflection temperature of the constant temperature crystal oscillator 200, and the inflection temperature is a stable frequency that the constant temperature crystal oscillator may output and even if the external environment temperature changes, the fluctuation of the output frequency is relatively small.
It can be understood that the main control module 100 may output a voltage value to the oven controlled crystal oscillator 200, so that the oven controlled crystal oscillator 200 adjusts the current output frequency to the target knee frequency according to the output voltage value.
It should be noted that the current output frequency may be the output frequency of the constant temperature crystal oscillator 200 at the ambient temperature detected by the main control module 100.
In specific implementation, when the main control module 100 detects that the external environment changes, a specific numerical value of the current environment temperature is obtained, a voltage-frequency relationship table corresponding to the temperature value is found according to the temperature value of the current environment, and the output frequency of the constant temperature crystal oscillator 200 corresponding to the highest point in the voltage-frequency relationship table is found, the output frequency at this time is the target inflection frequency of the constant temperature crystal oscillator 200 at the current environment temperature, and the main control module 100 can output the output voltage value corresponding to the target inflection frequency to the constant temperature crystal oscillator 200, so that the constant temperature crystal oscillator 200 works at the inflection temperature.
It should be noted that the main control module 100 may adjust the voltage value output to the constant temperature crystal oscillator 200 according to the detected ambient temperature, so that the constant temperature crystal oscillator 200 performs frequency adjustment according to the adjusted voltage value.
It should be understood that the main control module 100 may output different voltage values to the constant temperature crystal oscillator 200 at the current ambient temperature, for example: the voltage value is incremented in units of 1. Since the voltage value output by the main control module 100 to the constant temperature crystal oscillator 200 changes, the frequency output by the constant temperature crystal oscillator 200 also changes accordingly.
It can be understood that the frequency detection module 300 may receive the adjusted frequency of the constant temperature crystal oscillator 200 in real time, and compare the pulse per second signal obtained by dividing the frequency of the adjusted frequency with the reference pulse per second signal to obtain the phase difference.
It should be noted that the frequency detection module 300 may be a digital integrated circuit, for example: FPGA, CPLD, etc. The frequency detection module 300 may perform frequency division processing on the received frequency, that is, output the frequency of the received signal as a pulse per second signal after reducing the frequency of the received signal.
It should be understood that the reference pulse-per-second signal can be a pulse-per-second signal of a satellite receiver, i.e., a frequency output after tracking a satellite by a standard GPS module.
In specific implementation, the frequency adjusted by the constant temperature crystal oscillator 200 can be received in real time through the FPGA, the received frequency is subjected to frequency division processing and converted into a pulse per second signal, the pulse per second signal is compared with the received pulse per second signal of the satellite receiver to obtain a phase difference, and finally the FPGA converts the phase difference into an output voltage and outputs the output voltage in a voltage form.
It should be noted that the main control module 100 may obtain the phase difference, and adjust the current output frequency of the constant temperature crystal oscillator 200 according to the phase difference.
It should be understood that the phase difference may be obtained by the frequency detection module 300 based on the output frequency of the constant temperature crystal oscillator 200, so that the main control module 100 may change the phase difference by adjusting the output frequency of the constant temperature crystal oscillator 200 until the phase difference reaches a preset value.
It can be understood that the main control module 100 may construct a preset voltage-frequency relationship table according to a plurality of adjusted voltage values and the current output frequency corresponding to the adjusted voltage values.
It should be noted that the preset voltage-frequency relationship table may be established by the main control module 100 based on a plurality of voltage values and output frequencies corresponding to the plurality of voltage values, in this embodiment, different output voltages may be obtained by changing the voltage values, the voltage values and the output frequencies corresponding to the voltage values are recorded as a set of data, the voltage values are increased by an equal size to obtain corresponding output frequencies, so as to obtain a plurality of sets of data based on the plurality of voltage values and the output frequencies corresponding to the plurality of voltage values, and finally the preset voltage-frequency relationship table is established according to the data.
In a specific implementation, the main control module 100 may detect a current ambient temperature, if the detected current ambient temperature changes from 26 degrees celsius to 30 degrees celsius, output a voltage value to the constant temperature crystal oscillator 200, the constant temperature crystal oscillator 200 outputs a corresponding frequency according to different voltage values, when the frequency detection module 300 detects that the output frequency of the constant temperature crystal oscillator 200 changes, perform frequency division on the received changed frequency to obtain a second pulse signal, compare the second pulse signal with a reference second pulse signal to obtain a phase difference, convert the phase difference into an output voltage and output the output voltage to the main control module 100, the main control module 100 adjusts the output frequency of the constant temperature crystal oscillator 200 according to the phase difference until the obtained phase difference is equal to zero, record a voltage value output to the constant temperature crystal oscillator 200 when the phase difference is zero and the output frequency of the constant temperature crystal oscillator 200 at that time as a set of data, and increase the voltage value output to the constant temperature crystal oscillator 200 by 1 as a unit, and recording the output frequency corresponding to the constant temperature crystal oscillator 200 when the phase difference obtained by the main control module 100 is zero, and establishing a preset voltage-frequency relation table based on multiple sets of data after obtaining multiple sets of data.
It should be noted that the single chip microcomputer 101 may send a temperature adjustment instruction to the voltage adjustment module 102 according to the detected ambient temperature.
It should be understood that the single chip 101 and the voltage regulating module 102 may be connected by way of an integrated circuit bus.
It can be understood that the temperature adjustment instruction may be an instruction that is automatically triggered when the temperature detection device inside the single chip microcomputer 101 detects that the current ambient temperature changes, so that the voltage adjustment module 102 may adjust the voltage value output to the constant temperature crystal oscillator 200 as soon as the current ambient temperature changes.
It should be noted that the voltage adjusting module 102 may output a corresponding voltage value to the constant temperature crystal oscillator 200 according to the temperature adjustment instruction, so that the constant temperature crystal oscillator 200 performs frequency adjustment according to the voltage value.
It should be understood that the voltage adjusting module 102 may be a digital simulator or other devices with the same or similar functions, the voltage adjusting module 102 may adjust the temperature inside the thermostatic crystal oscillator 200 by outputting different voltage values to the thermostatic crystal oscillator 200, and when receiving a temperature adjusting instruction sent by the single chip 101, determine how to adjust the voltage value output to the thermostatic crystal oscillator 200 according to the temperature adjusting instruction, for example: the voltage value output to the constant temperature crystal oscillator 200 is added by 5V based on the voltage value output now.
It can be understood that the single chip microcomputer 101 may obtain a phase difference obtained by the frequency detection module 300 based on the adjusted frequency, and send a frequency adjustment instruction to the frequency adjustment module 103 according to the phase difference.
It should be noted that the single chip microcomputer 101 and the frequency adjustment module 103 may be connected by way of an integrated circuit bus.
It should be understood that the frequency adjustment instruction may be a specific value of the phase difference obtained from the frequency adjustment module 103 and sent by the single chip microcomputer 101, and when the single chip microcomputer 101 detects that the value of the phase difference is zero, the sending of the frequency adjustment instruction to the frequency adjustment module 103 is stopped.
It is understood that the frequency adjustment module 103 may adjust the current output frequency of the constant temperature crystal oscillator according to the frequency adjustment instruction.
It should be noted that the frequency adjustment module 103 may be a digital simulator or other devices with the same or similar functions, and the frequency adjustment module 103 may adjust the frequency of the constant temperature crystal oscillator 200.
In specific implementation, the single chip microcomputer 101 detects a current environment temperature through an internal temperature detection device, when it is detected that the current environment temperature changes, a temperature adjustment instruction is automatically triggered, the voltage adjustment module 102 adds 1 to a current voltage value output to the constant temperature crystal oscillator 200 to output after receiving the temperature adjustment instruction, the constant temperature crystal oscillator 200 outputs a new frequency according to the adjusted voltage, when the single chip microcomputer 101 receives a phase difference obtained by the frequency detection module 300 based on new frequency measurement, the frequency adjustment module 103 sends a frequency adjustment instruction to the frequency adjustment module 103, and the frequency adjustment module 103 gradually increases the output frequency of the constant temperature crystal oscillator 200 according to the frequency adjustment instruction until the single chip microcomputer 101 stops sending the frequency adjustment instruction to the frequency adjustment module 10.
The invention discloses a main control module and a constant temperature crystal oscillator connected with the main control module, wherein the main control module is used for acquiring the current environment temperature when the environment temperature is detected to change, and is also used for acquiring the target inflection point frequency of the constant temperature crystal oscillator at the current environment temperature, and the main control module is also used for searching a corresponding output voltage value main control module in a preset voltage frequency relation table according to the target inflection point frequency and outputting a voltage value to the constant temperature crystal oscillator so that the constant temperature crystal oscillator adjusts the current output frequency to the target inflection point frequency according to the output voltage value. Compared with the prior art that the working temperature in the constant-temperature crystal oscillator is adjusted at normal temperature, and the inflection point of the constant-temperature crystal oscillator is found by measuring the frequency change, the self-adaptive temperature change clock module adopted by the invention can adjust the voltage value output to the constant-temperature crystal oscillator according to the change of the environmental temperature and the target inflection point frequency at the current environmental temperature, so that the constant-temperature crystal oscillator outputs stable frequency, the constant-temperature crystal oscillator is adaptive to the change of the environmental temperature, and the working efficiency is further improved.
Based on the first embodiment of the adaptive temperature change clock module, the first embodiment of the adaptive temperature change method based on the adaptive temperature change clock module is provided.
Referring to fig. 3, fig. 3 is a schematic flow chart of a first embodiment of an adaptive temperature change method based on an adaptive temperature change clock module according to the present invention.
In this embodiment, the adaptive temperature change method based on the adaptive temperature change clock module includes the following steps:
step S10: and when the change of the environmental temperature is detected, acquiring the target inflection point frequency under the current environmental temperature.
It should be noted that the target inflection frequency may be a frequency value that can be stably output when the constant temperature crystal oscillator operates at an inflection temperature, and when the external environment temperature changes, the fluctuation of the value of the target inflection frequency is also small.
It will be appreciated that the detection of the ambient temperature may be periodic, for example: detecting the current environment temperature every 0.1s, comparing the detected environment temperature value with the last detected environment temperature, and if the fluctuation range of the environment temperature exceeds a set value, for example: and 3 ℃, obtaining the target inflection point frequency at the current ambient temperature.
Step S20: and searching a corresponding output voltage value in a preset voltage frequency relation table according to the current environment temperature and the target inflection point frequency.
It should be noted that, when the ambient temperature changes, the corresponding preset voltage-frequency relationship table also changes correspondingly, at this time, the corresponding preset voltage-frequency relationship table may be found according to the current ambient temperature, and then the target inflection point frequency may be found from the preset voltage-frequency relationship table, where the target inflection point frequency may be a frequency corresponding to a highest point in the preset voltage-frequency relationship table, and at this time, a voltage value corresponding to the highest point is a corresponding output voltage value.
Step S30: and adjusting the current output frequency to the target inflection point frequency according to the output voltage value.
It should be understood that when the output voltage value found by the preset voltage-frequency relation table is output to the constant temperature crystal oscillator, the output frequency of the constant temperature crystal oscillator may reach the target knee frequency.
In this embodiment, by detecting the ambient temperature in real time, when the ambient temperature fluctuates greatly, the corresponding output voltage value is obtained in the preset voltage-frequency relationship table according to the target inflection point frequency, so as to output the corresponding output voltage value to the constant temperature crystal oscillator, so that the constant temperature crystal oscillator outputs a stable frequency, and thus the constant temperature crystal oscillator can adapt to the ambient temperature in a self-adaptive manner, and output the stable frequency, thereby improving the working efficiency.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of an adaptive temperature variation method based on an adaptive temperature variation clock module according to the present invention.
Based on the first embodiment, in order to construct the preset voltage-frequency relationship table according to the output voltage value and the output frequency, in this embodiment, before the step S10, the method further includes:
step S01: the method comprises the steps of obtaining the output frequency of the constant-temperature crystal oscillator at the current temperature, and dividing the output frequency into pulse per second signals.
Step S02: a reference pulse-per-second signal of the satellite receiver is received.
Step S03: and when the pulse per second signal and the reference pulse per second signal reach a preset balance condition, taking the current output frequency of the constant temperature crystal oscillator as a standard output frequency.
The preset balance condition may be a state in which the frequency detection module measures the phases of the pulse per second signal and the reference pulse per second signal and the phases of the pulse per second signal and the reference pulse per second signal completely coincide with each other.
It should be understood that the standard output voltage may be obtained by measuring the output frequency of the constant temperature crystal oscillator at the moment when the pulse per second signal and the reference pulse per second signal reach the preset balance condition by the frequency detection module.
Step S04: and acquiring the voltage value output to the constant-temperature crystal oscillator and the standard output frequency under the preset balance condition.
It can be understood that the voltage value output to the constant temperature crystal oscillator can be obtained by measuring the voltage value sent to the constant temperature crystal oscillator by the measurement voltage detection module when the pulse per second signal and the reference pulse per second signal reach the preset balance condition.
Step S05: and constructing a preset voltage-frequency relation table according to the obtained plurality of voltage values output by the constant-temperature crystal oscillator at each temperature and the standard output frequency.
In a specific implementation, after acquiring a voltage value and a standard output frequency output to a constant temperature crystal oscillator when a last pulse per second signal and a reference pulse per second signal reach a preset balance condition, the voltage value output to the constant temperature crystal oscillator can be changed so as to obtain a corresponding standard output frequency, after acquiring a plurality of groups of data of the voltage value and the standard output frequency output to the constant temperature crystal oscillator, a curve graph is drawn according to the data, as shown in fig. 5, and a voltage frequency relation table is constructed based on the curve graph, the obtained voltage frequency relation table is a voltage frequency relation table at the current temperature, finally, the environment temperature can be changed so as to obtain a voltage frequency relation table corresponding to the changed environment temperature, and after acquiring the voltage frequency relation table at each temperature, when the environment temperature fluctuates, the voltage value output to the constant temperature crystal oscillator can be changed through the voltage frequency relation table corresponding to the current environment temperature, therefore, the temperature characteristic diagram of the full temperature zone is shown in figure 6 when the external environment temperature changes and the constant temperature crystal oscillator does not find an inflection point, and the temperature characteristic diagram of the full temperature zone after finding the inflection point and compensating the inflection point is shown in figure 7, so that the output frequency of the constant temperature crystal oscillator is gradually stabilized, and the temperature characteristic improvement effect is obvious.
In this embodiment, when the pulse-per-second signal and the reference pulse-per-second signal obtained by performing frequency division output on the output frequency of the constant temperature crystal oscillator reach the preset balance condition, the voltage value and the standard output frequency output to the constant temperature crystal oscillator are obtained, and the preset voltage-frequency relationship table is constructed based on a plurality of voltage values output to the constant temperature crystal oscillator and a plurality of standard output frequencies at each temperature, so that when the ambient temperature changes, the corresponding voltage value can be searched for through the standard output frequency of the constant temperature crystal oscillator in the preset voltage-frequency relationship table corresponding to the current ambient temperature, and the searched voltage value is output to the constant temperature crystal oscillator as a new voltage value, thereby improving the efficiency of the constant temperature crystal oscillator adapting to the ambient temperature.
Referring to fig. 8, fig. 8 is a schematic flowchart illustrating a third embodiment of an adaptive temperature change method based on an adaptive temperature change clock module according to the present invention.
Based on the above embodiments, in order to determine whether the pulse per second signal and the reference pulse per second signal reach the preset balance condition, before the step S04, the method further includes:
step S031: and acquiring the phase difference between the pulse per second signal and the reference pulse per second signal.
Step S032: and adjusting the output frequency of the constant-temperature crystal oscillator according to the reference pulse per second signal so as to change the phase difference.
It should be noted that, when the output frequency of the constant temperature crystal oscillator changes, the phase of the pulse per second signal corresponding to the output frequency detected and obtained by the frequency detection module changes, and at this time, the phase difference between the pulse per second signal and the reference pulse per second signal also changes correspondingly, so that the pulse per second signal and the reference pulse per second signal can reach the preset balance condition by adjusting the output frequency of the constant temperature crystal oscillator.
Step S033: and when the phase difference is equal to zero, judging that the pulse per second signal and the reference pulse per second signal reach a preset balance condition.
It should be understood that when the phase difference between the pulse-per-second signal and the reference pulse-per-second signal is equal to zero, it indicates that the output frequency of the thermostatic crystal oscillator and the frequency output by the GPS module after tracking the satellite are synchronized, and at this time, the current state may be set to be an equilibrium state, that is, the pulse-per-second signal and the reference pulse-per-second signal reach the preset equilibrium condition.
In this embodiment, the output frequency of the constant temperature crystal oscillator is adjusted until the phase difference between the pulse per second signal obtained by frequency division of the output frequency of the constant temperature crystal oscillator and the reference pulse per second signal is zero, and at this time, it is determined that the pulse per second signal and the reference pulse per second signal reach the preset balance condition, and the voltage value output to the constant temperature crystal oscillator under the preset balance condition can enable the constant temperature crystal oscillator to output a stable frequency, so that the compensation of the voltage value output to the constant temperature crystal oscillator at the current ambient temperature is completed, and the constant temperature crystal oscillator works at the optimal point.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or system in which the element is included.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An adaptive temperature change clock module, comprising: the constant-temperature crystal oscillator comprises a main control module and a constant-temperature crystal oscillator connected with the main control module;
the main control module is used for acquiring the current ambient temperature when detecting that the ambient temperature changes;
the main control module is further used for acquiring a target inflection point frequency of the constant temperature crystal oscillator at the current ambient temperature;
the main control module is further used for searching a corresponding output voltage value in a preset voltage frequency relation table according to the target inflection point frequency;
the main control module is further configured to output the output voltage value to the constant temperature crystal oscillator, so that the constant temperature crystal oscillator adjusts the current output frequency to the target inflection frequency according to the output voltage value.
2. The adaptive temperature change clock module of claim 1, further comprising: a frequency detection module;
the frequency detection module is respectively connected with the main control module and the constant-temperature crystal oscillator;
the main control module is further used for adjusting a voltage value output to the constant temperature crystal oscillator according to the detected environmental temperature so as to enable the constant temperature crystal oscillator to carry out frequency adjustment according to the adjusted voltage value;
the frequency detection module is used for receiving the adjusted frequency in real time, and comparing the pulse per second signal obtained after the frequency division of the adjusted frequency with a reference pulse per second signal to obtain a phase difference;
the main control module is further used for acquiring the phase difference and adjusting the current output frequency of the constant-temperature crystal oscillator according to the phase difference;
the main control module is further used for constructing a preset voltage-frequency relation table according to the plurality of adjusted voltage values and the current output frequency corresponding to the adjusted voltage values.
3. The adaptive temperature varying clock module of claim 2,
the frequency detection module is also used for receiving a reference pulse per second signal of the satellite receiver;
the frequency detection module is also used for receiving the output frequency of the constant-temperature crystal oscillator in real time and dividing the output frequency into pulse per second signals;
the frequency detection module is further configured to compare the pulse per second signal with the reference pulse per second signal to obtain a phase difference.
4. The adaptive temperature varying clock module of claim 2, wherein the master module further comprises: the device comprises a singlechip, a voltage adjusting module and a frequency adjusting module;
the voltage adjusting module and the frequency adjusting module are respectively connected with the single chip microcomputer and the constant-temperature crystal oscillator;
the single chip microcomputer is used for sending a temperature adjusting instruction to the voltage adjusting module according to the detected ambient temperature;
the voltage adjusting module is used for outputting a corresponding voltage value to the constant-temperature crystal oscillator according to the temperature adjusting instruction so as to adjust the frequency of the constant-temperature crystal oscillator according to the voltage value;
the single chip microcomputer is also used for acquiring a phase difference obtained by the frequency detection module based on the adjusted frequency and sending a frequency adjusting instruction to the frequency adjusting module according to the phase difference;
and the frequency adjusting module is used for adjusting the current output frequency of the constant-temperature crystal oscillator according to the frequency adjusting instruction.
5. The adaptive temperature varying clock module of claim 4,
the single chip microcomputer is further used for recording the voltage value output to the constant temperature crystal oscillator by the voltage adjusting module and the current output frequency of the constant temperature crystal oscillator when the acquired phase difference is detected to be equal to zero;
and the single chip microcomputer is also used for constructing a preset voltage-frequency relation table according to the voltage value and the output frequency when detecting that the number of the recorded voltage value and the output frequency reaches a preset value.
6. An adaptive temperature change method based on the adaptive temperature change clock module of any one of claims 1 to 5, wherein the adaptive temperature change method comprises:
when the change of the environmental temperature is detected, acquiring a target inflection point frequency at the current environmental temperature;
searching a corresponding output voltage value in a preset voltage frequency relation table according to the current environment temperature and the target inflection point frequency;
and adjusting the current output frequency to the target inflection point frequency according to the output voltage value.
7. The adaptive temperature change method according to claim 6, wherein the step of obtaining the target knee frequency at the current ambient temperature when the change in the ambient temperature is detected further comprises:
acquiring the output frequency of a constant-temperature crystal oscillator at the current temperature, and dividing the output frequency into pulse per second signals;
receiving a reference pulse per second signal of a satellite receiver;
when the pulse per second signal and the reference pulse per second signal reach a preset balance condition, taking the current output frequency of the constant-temperature crystal oscillator as a standard output frequency;
acquiring a voltage value output to the constant-temperature crystal oscillator under the preset balance condition and the standard output frequency;
and constructing a preset voltage-frequency relation table according to the obtained plurality of voltage values output by the constant-temperature crystal oscillator at each temperature and the standard output frequency.
8. The adaptive temperature variation method according to claim 7, wherein before the step of using the current output frequency of the constant temperature crystal oscillator as a standard output frequency when the pulse per second signal and the reference pulse per second signal reach a preset equilibrium condition, the method further comprises:
acquiring a phase difference between the pulse per second signal and the reference pulse per second signal;
adjusting the output frequency of the constant-temperature crystal oscillator according to the reference pulse per second signal so as to change the phase difference;
and when the phase difference is equal to zero, judging that the pulse per second signal and the reference pulse per second signal reach a preset balance condition.
9. The adaptive temperature variation method according to claim 7, wherein the step of constructing a preset voltage-frequency relationship table according to the obtained voltage values and standard output frequency of the constant temperature crystal oscillator output at each temperature comprises:
drawing a curve graph according to a plurality of obtained voltage values output by the constant-temperature crystal oscillator at each temperature and a standard output frequency;
and constructing a preset voltage-frequency relation table based on the graph.
10. The adaptive temperature variation method according to claim 9, wherein the step of plotting a graph according to the obtained voltage values and the standard output frequency of the constant temperature crystal oscillator output at each temperature comprises:
outputting preset voltage values at equal intervals to the constant-temperature crystal oscillator at various temperatures;
acquiring standard output frequency corresponding to the preset voltage values at equal intervals;
and when the number of the voltage value and the standard output frequency reaches a preset value, drawing a curve graph according to the voltage value and the standard output frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210829548.1A CN115001483B (en) | 2022-07-15 | 2022-07-15 | Adaptive temperature change clock module and adaptive temperature change method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210829548.1A CN115001483B (en) | 2022-07-15 | 2022-07-15 | Adaptive temperature change clock module and adaptive temperature change method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115001483A true CN115001483A (en) | 2022-09-02 |
CN115001483B CN115001483B (en) | 2022-10-28 |
Family
ID=83021023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210829548.1A Active CN115001483B (en) | 2022-07-15 | 2022-07-15 | Adaptive temperature change clock module and adaptive temperature change method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115001483B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5041799A (en) * | 1990-11-05 | 1991-08-20 | Motorola, Inc. | Temperature compensation circuit for a crystal oscillator |
JP2000040958A (en) * | 1998-07-24 | 2000-02-08 | Advantest Corp | Reference frequency/timing generating device |
JP2008141347A (en) * | 2006-11-30 | 2008-06-19 | Kyocera Kinseki Corp | Temperature compensation oscillator |
US20110234328A1 (en) * | 2010-03-24 | 2011-09-29 | Seiko Epson Corporation | Constant-temperature piezoelectric oscillator and method of manufacturing the same |
CN211701995U (en) * | 2020-03-10 | 2020-10-16 | 上海鸿晔电子科技股份有限公司 | Crystal oscillator |
CN112737509A (en) * | 2021-04-02 | 2021-04-30 | 上海擎昆信息科技有限公司 | Method and system for compensating frequency drift of crystal oscillator |
CN112821892A (en) * | 2021-02-02 | 2021-05-18 | 深圳市金科泰通信设备有限公司 | Intelligent adjustment control circuit and method for constant-temperature crystal oscillator frequency and inflection point |
-
2022
- 2022-07-15 CN CN202210829548.1A patent/CN115001483B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5041799A (en) * | 1990-11-05 | 1991-08-20 | Motorola, Inc. | Temperature compensation circuit for a crystal oscillator |
JP2000040958A (en) * | 1998-07-24 | 2000-02-08 | Advantest Corp | Reference frequency/timing generating device |
JP2008141347A (en) * | 2006-11-30 | 2008-06-19 | Kyocera Kinseki Corp | Temperature compensation oscillator |
US20110234328A1 (en) * | 2010-03-24 | 2011-09-29 | Seiko Epson Corporation | Constant-temperature piezoelectric oscillator and method of manufacturing the same |
CN211701995U (en) * | 2020-03-10 | 2020-10-16 | 上海鸿晔电子科技股份有限公司 | Crystal oscillator |
CN112821892A (en) * | 2021-02-02 | 2021-05-18 | 深圳市金科泰通信设备有限公司 | Intelligent adjustment control circuit and method for constant-temperature crystal oscillator frequency and inflection point |
CN112737509A (en) * | 2021-04-02 | 2021-04-30 | 上海擎昆信息科技有限公司 | Method and system for compensating frequency drift of crystal oscillator |
Also Published As
Publication number | Publication date |
---|---|
CN115001483B (en) | 2022-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110932718B (en) | Method, device and equipment for calibrating clock frequency of crystal oscillator and storage medium | |
CN101626587A (en) | Crystal auto-calibration method and apparatus | |
CN114928355B (en) | Voltage compensation method, device and equipment based on crystal oscillator and storage medium | |
CN113203894B (en) | Impedance testing method and testing device thereof | |
CN115001483B (en) | Adaptive temperature change clock module and adaptive temperature change method | |
CN116149243A (en) | High-precision time sequence control method and device | |
US11489746B2 (en) | Detection device, detection method, and detection program | |
CN106656120B (en) | Clock compensation circuit, clock circuit and microcontroller | |
CN117491848B (en) | Device, method, equipment and system for determining circuit attribute | |
CN114978403B (en) | Method and device for measuring clock holding phase deviation value | |
CN109600174A (en) | Poewr control method, test device, terminal and test macro | |
CN110289550B (en) | Current correction method and device for optical module and computer readable storage medium | |
CN111257633B (en) | Test system and test method for nominal frequency of crystal oscillator | |
CN112816752A (en) | Temperature compensation method and equipment for capacitor transformer | |
CN115542229B (en) | Constant current source calibration system under complex temperature environment | |
CN117348686B (en) | Clock signal temperature drift correction method, circuit, chip and electronic equipment | |
WO2022151218A1 (en) | Propagation delay compensation method, apparatus, and device, base station, system, and medium | |
CN116388913B (en) | RTC clock self-calibration method, electronic equipment and storage medium | |
CN113640606B (en) | Terminal charging function debugging method and device and terminal equipment | |
KR20230078989A (en) | Frequency compensation method and circuit, storage medium, electronic device | |
CN117949012A (en) | MEMS device scale factor compensation system based on ARM | |
CN115941150A (en) | Clock output method, clock module, electronic device, and storage medium | |
CN111985100A (en) | Method for obtaining thermal response model of precision lens system | |
CN118264201A (en) | Clock frequency calibration circuit and electronic equipment | |
CN116482472A (en) | Temperature frequency characteristic measuring device and method, computer device and storage medium |
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 |