CN111769833A - Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator - Google Patents

Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator Download PDF

Info

Publication number
CN111769833A
CN111769833A CN202010566985.XA CN202010566985A CN111769833A CN 111769833 A CN111769833 A CN 111769833A CN 202010566985 A CN202010566985 A CN 202010566985A CN 111769833 A CN111769833 A CN 111769833A
Authority
CN
China
Prior art keywords
voltage
crystal oscillator
controlled crystal
module
time
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.)
Pending
Application number
CN202010566985.XA
Other languages
Chinese (zh)
Inventor
吴启文
戴景峰
童杰
秦明辉
赵小虎
马聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gsg Intelligent Technology Co ltd
CSG Smart Electrical Technology Co Ltd
CSG Smart Science and Technology Co Ltd
Original Assignee
Gsg Intelligent Technology Co ltd
CSG Smart Electrical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gsg Intelligent Technology Co ltd, CSG Smart Electrical Technology Co Ltd filed Critical Gsg Intelligent Technology Co ltd
Priority to CN202010566985.XA priority Critical patent/CN111769833A/en
Publication of CN111769833A publication Critical patent/CN111769833A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R1/00Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
    • G01R1/30Structural combination of electric measuring instruments with basic electronic circuits, e.g. with amplifier

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Oscillators With Electromechanical Resonators (AREA)

Abstract

The invention discloses a time keeping method and a time keeping system of a low-power-consumption voltage-controlled crystal oscillator, belonging to the technical field of high-precision time keeping and comprising the following steps: the output frequency of the voltage-controlled crystal oscillator module is used as a system clock oscillation frequency source of the central processing unit to carry out system travel time; when the standard clock source module is normal, the standard clock source module is used for carrying out system time service on the central processing unit; every N seconds, obtaining a corresponding relation between input voltage and frequency deviation value of the voltage-controlled crystal oscillator module according to travel time deviation between system travel time and system time service, and constructing a timekeeping reference table when the standard clock source module is abnormal; when the standard clock source module is abnormal, the travel time deviation is calculated according to the frequency deviation value corresponding to the input voltage in the timekeeping reference table, and the input voltage of the voltage-controlled crystal oscillator module is reversely adjusted according to the travel time deviation, so that the accumulated travel time deviation tends to zero to reach timekeeping. The method is simple, saves system power consumption, and is very suitable for being used in low-power-consumption application products and scenes.

Description

Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator
Technical Field
The invention relates to the technical field of high-precision time keeping, in particular to a time keeping method and system of a low-power-consumption voltage-controlled crystal oscillator.
Background
The wide-area recording type fault indicator is a sensor which is installed on a power distribution overhead line and collects the load current and the electric field of the line. The main function of the system is to realize the identification and positioning of line short circuit and earth fault by matching with a power distribution main station. The principle of the ground fault location is as follows: after the single-phase earth fault occurs in the line, the fault indicator records the current electric field waveform at the fault moment, the master station recalls the zero-sequence current waveforms at the fault moments of all the fault indicators, and the fault is researched, judged and positioned according to the polarity and amplitude of the zero-sequence current.
In order to ensure the effectiveness of zero sequence current synthesized by a three-phase acquisition unit, the three-phase acquisition unit is required to have high-precision synchronization, the current standard requires that the three-phase sampling synchronization is not more than 20us, and all fault indicators are required to have time consistency in order to ensure that all equipment can capture fault waveforms.
The current wide area wave recording type fault indicator mainly uses a high-precision synchronous clock signal based on a Beidou/GPS system to carry out time service and time keeping. Because the wide area recording type fault indicator is installed on a power distribution overhead line, a main power supply source of the wide area recording type fault indicator is used for taking power for a line CT, the wide area recording type fault indicator is limited by the condition limitations of product size and the like, and the CT power taking capability is limited, the whole system has high power consumption requirements, and the power consumption is high when a Beidou/GPS module operates. Therefore, the existing time service and time keeping method is mainly designed based on sufficient backup power sources and is not suitable for application scenes with low power consumption and high precision requirements related to the recording type fault indicator.
Disclosure of Invention
The invention aims to overcome the defects in the background art and provide a time keeping method suitable for application scenes with low power consumption and high precision.
In order to achieve the purpose, the time keeping method of the low-power-consumption voltage-controlled crystal oscillator comprises the following steps:
the output frequency of the voltage-controlled crystal oscillator module is used as a system clock oscillation frequency source of the central processing unit to carry out system travel time;
when the standard clock source module is normal, the standard clock source module is used for carrying out system time service on the central processing unit;
every N seconds, obtaining a corresponding relation between input voltage and frequency deviation value of the voltage-controlled crystal oscillator module according to travel time deviation between system travel time and system time service, and constructing a timekeeping reference table when the standard clock source module is abnormal;
when the standard clock source module is abnormal, the travel time deviation is calculated according to the frequency deviation value corresponding to the input voltage in the timekeeping reference table, and the input voltage of the voltage-controlled crystal oscillator module is reversely adjusted according to the travel time deviation, so that the accumulated travel time deviation tends to zero to reach timekeeping.
Further, every N seconds, according to the travel time deviation between the system travel time and the system time service, the obtained correspondence between the input voltage of the voltage controlled crystal oscillator module and the frequency deviation value is obtained, and a timekeeping reference table when the standard clock source module is abnormal is constructed, including:
a) recording the time of the standard clock source module and the system time of the central processing every N seconds, calculating the frequency deviation value of the output frequency of the voltage-controlled crystal oscillator module and the standard frequency, and recording the frequency deviation value corresponding to the input voltage value of the voltage-controlled crystal oscillator module at the moment;
b) according to the frequency deviation value, adjusting the input voltage of the voltage-controlled crystal oscillator module so as to adjust the output frequency of the voltage-controlled crystal oscillator module;
c) and a) repeatedly executing the step a) until the system is balanced, dynamically outputting the output frequency of the voltage-controlled crystal oscillator module at about the standard frequency value, and constructing a timekeeping reference table when the standard clock source module is abnormal according to the obtained corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value.
Further, the calculation process of the frequency deviation value between the output frequency of the vcxo module and the standard frequency is as follows:
turning on the standard clock source module, recording the central processor system time TT1 and the standard clock source module time ST1 by using the standard clock source module PPS signal, and turning off the standard clock source module at the same time;
after setting N seconds, starting the standard time clock source module, and recording the central processor system time TT2 and the standard time clock source module time ST2 again;
calculating the time difference of the standard clock source module as DiffST (ST 2-ST 1), and calculating the time difference of the central processing unit as DiffTT (TT 2-TT 1);
calculating the travel time deviation of the central processing unit system to be DiffST-DiffTT, and calculating the frequency deviation value between the output frequency value corresponding to the input voltage of the voltage-controlled crystal oscillator module and the standard frequency value according to the travel time deviation of the system.
Further, the adjusting the input voltage of the voltage controlled crystal oscillator module according to the frequency deviation value, so as to adjust the output frequency of the voltage controlled crystal oscillator module, includes:
when the output frequency of the voltage-controlled crystal oscillator module is greater than the standard frequency, adjusting the input voltage value of the voltage-controlled crystal oscillator module to reduce the output frequency value;
and when the output frequency value of the voltage-controlled crystal oscillator module is smaller than the standard frequency, adjusting the input voltage value of the voltage-controlled crystal oscillator module to increase the output frequency value.
Further, still include: according to the dynamic change of the frequency deviation value, the adjusting speed of the input voltage of the voltage-controlled crystal oscillator module is as follows:
the larger the deviation between the output frequency of the voltage-controlled crystal oscillator module and the standard frequency value is, the shorter the time for closing the standard clock source module is set, and the faster the speed for adjusting the input voltage of the voltage-controlled crystal oscillator module is;
the smaller the deviation between the output frequency of the voltage-controlled crystal oscillator module and the standard frequency value is, the longer the time for closing the standard clock source module is set, and the slower the speed for adjusting the input voltage of the voltage-controlled crystal oscillator module is.
Further, the central processing unit regulates and controls the input voltage of the voltage-controlled crystal oscillator module through an analog-to-digital converter.
On the other hand, the time keeping system adopting the low-power-consumption voltage-controlled crystal oscillator comprises a central processing unit, a voltage-controlled crystal oscillator module, a standard clock source module and an analog-to-digital converter, wherein the outputs of the voltage-controlled crystal oscillator module and the standard clock source module are connected with the input of the central processing unit, the output of the central processing unit is connected with the input of the voltage-controlled crystal oscillator module through the analog-to-digital converter, and the time keeping system comprises:
the output frequency of the voltage-controlled crystal oscillator module is used as a system clock oscillation frequency source of the central processing unit to carry out system travel time; the central processing unit receives the clock output by the standard clock source module to carry out system time service; and the central processing unit adjusts the analog voltage output adjusted by the digital-to-analog converter according to the system travel time and the system time service so as to control the output frequency of the voltage-controlled crystal oscillator module.
Further, the standard clock source module is a Beidou/GPS receiver.
Further, the central processing unit includes a timekeeping reference table construction module and a timekeeping control module, wherein:
the timekeeping reference table building module is used for obtaining the corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value according to the travel time deviation between the system travel time and the system time service every N seconds, and building a timekeeping reference table when the standard clock source module is abnormal;
the time keeping control module is used for calculating travel time deviation according to the frequency deviation value corresponding to the input voltage in the time keeping reference table when the standard clock source module is abnormal, and reversely adjusting the input voltage of the voltage controlled crystal oscillator module according to the travel time deviation so that the accumulated travel time deviation tends to zero to reach time keeping.
Further, the timekeeping reference table construction module comprises a recording unit, a regulation unit and a construction unit, wherein:
the recording unit is used for recording the time of the standard clock source module and the system time of the central processing every N seconds, calculating the frequency deviation value of the output frequency of the voltage-controlled crystal oscillator module and the standard frequency, and recording the frequency deviation value corresponding to the input voltage value of the voltage-controlled crystal oscillator module at the moment;
the regulating and controlling unit is used for regulating the input voltage of the voltage-controlled crystal oscillator module according to the frequency deviation value so as to regulate the output frequency of the voltage-controlled crystal oscillator module;
the construction unit is used for controlling the recording unit to repeatedly execute actions until the system is balanced, the output frequency of the voltage-controlled crystal oscillator module is dynamically output around a standard frequency value, and a timekeeping reference table when the standard clock source module is abnormal is constructed according to the obtained corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value.
Compared with the prior art, the invention has the following technical effects: the invention can realize the taming of the crystal oscillator simply and efficiently, solve the problem of system time keeping when the clock source is abnormal, has simple realization method, has low requirements on system software resources by storage and calculation, can be applied to most products, does not need to be normally opened when the clock source is normal, saves the power consumption of the system, and is very suitable for being used with low-power consumption application products and scenes.
Drawings
The following detailed description of embodiments of the invention refers to the accompanying drawings in which:
FIG. 1 is a flow chart of a time keeping method for a low power consumption voltage controlled crystal oscillator;
FIG. 2 is a flow chart of crystal oscillator bias adaptation when the clock source of the time keeping system is normal;
FIG. 3 is a flowchart of a method for keeping time when a clock source of a time-keeping system is abnormal;
fig. 4 is a structural diagram of a time keeping system of a low power consumption voltage controlled crystal oscillator.
Detailed Description
To further illustrate the features of the present invention, refer to the following detailed description of the invention and the accompanying drawings. The drawings are for reference and illustration purposes only and are not intended to limit the scope of the present disclosure.
As shown in fig. 1 to fig. 3, the present embodiment discloses a time keeping method for a low power consumption voltage controlled crystal oscillator, which includes the following steps S1 to S4:
s1, using the output frequency of the voltage-controlled crystal oscillator module as the system clock oscillation frequency source of the central processing unit to carry out system time travel;
s2, when the standard clock source module is normal, the standard clock source module is used for carrying out system time service on the central processing unit;
s3, every N seconds, obtaining the corresponding relation between the input voltage and the frequency deviation value of the voltage-controlled crystal oscillator module according to the travel time deviation between the system travel time and the system time service, and constructing a timekeeping reference table when the standard clock source module is abnormal;
and S4, when the standard clock source module is abnormal, calculating travel time deviation according to the frequency deviation value corresponding to the input voltage in the timekeeping reference table, and reversely adjusting the input voltage of the voltage-controlled crystal oscillator module according to the travel time deviation so that the accumulated travel time deviation tends to zero to reach timekeeping.
Further, in the step S3: every N seconds, according to the travel time deviation between the system travel time and the system time service, obtaining the corresponding relation between the input voltage of the voltage controlled crystal oscillator module and the frequency deviation value, and constructing a timekeeping reference table when the standard clock source module is abnormal, wherein the timekeeping reference table comprises the following steps:
a) recording the time of the standard clock source module and the system time of the central processing every N seconds, calculating the frequency deviation value of the output frequency of the voltage-controlled crystal oscillator module and the standard frequency, and recording the frequency deviation value corresponding to the input voltage value of the voltage-controlled crystal oscillator module at the moment;
b) according to the frequency deviation value, adjusting the input voltage of the voltage-controlled crystal oscillator module so as to adjust the output frequency of the voltage-controlled crystal oscillator module;
c) and a) repeatedly executing the step a) until the system is balanced, dynamically outputting the output frequency of the voltage-controlled crystal oscillator module at about the standard frequency value, and constructing a timekeeping reference table when the standard clock source module is abnormal according to the obtained corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value.
Further, in the step a), a calculation process of a frequency deviation value between the output frequency of the vcxo module and the standard frequency is as follows:
turning on the standard clock source module, recording the central processor system time TT1 and the standard clock source module time ST1 by using the standard clock source module PPS signal, and turning off the standard clock source module at the same time;
after setting N seconds, starting the standard time clock source module, and recording the central processor system time TT2 and the standard time clock source module time ST2 again;
calculating the time difference of the standard clock source module as DiffST (ST 2-ST 1), and calculating the time difference of the central processing unit as DiffTT (TT 2-TT 1);
calculating the travel time deviation of the central processing unit system to be DiffST-DiffTT, and calculating the frequency deviation value between the output frequency value corresponding to the input voltage of the voltage-controlled crystal oscillator module and the standard frequency value according to the travel time deviation of the system.
Further, in the step b), adjusting the input voltage of the voltage controlled crystal oscillator module according to the frequency deviation value, so as to adjust the output frequency of the voltage controlled crystal oscillator module, including:
when the output frequency of the voltage-controlled crystal oscillator module is greater than the standard frequency, adjusting the input voltage value of the voltage-controlled crystal oscillator module to reduce the output frequency value;
and when the output frequency value of the voltage-controlled crystal oscillator module is smaller than the standard frequency, adjusting the input voltage value of the voltage-controlled crystal oscillator module to increase the output frequency value.
Further, the method further comprises: according to the dynamic change of the frequency deviation value, the adjusting speed of the input voltage of the voltage-controlled crystal oscillator module is as follows:
the larger the deviation between the output frequency of the voltage-controlled crystal oscillator module and the standard frequency value is, the shorter the time for closing the standard clock source module is set, and the faster the speed for adjusting the input voltage of the voltage-controlled crystal oscillator module is;
the smaller the deviation between the output frequency of the voltage-controlled crystal oscillator module and the standard frequency value is, the longer the time for closing the standard clock source module is set, and the slower the speed for adjusting the input voltage of the voltage-controlled crystal oscillator module is.
In the embodiment, when the clock source is normal, system time service is performed; recording system time and clock source time at the beginning; the clock source is turned on again after the clock source is dormant for a period of time; recording the system time and the clock source time when the recording is finished; calculating and recording crystal oscillator deviation through the time difference of two times; by such circulation, the output crystal oscillator frequency can be dynamically adjusted around the standard frequency; when the clock source is abnormal, calculating the system clock deviation according to the recorded crystal oscillator deviation and the running time; the output frequency is reversely adjusted to ensure that the clock deviation of the system tends to zero; the system timekeeping is repeatedly achieved. The method can simply and efficiently realize the taming of the crystal oscillator, solves the problem of system timekeeping when the clock source is abnormal, has simple realization method, saves the power consumption of the system, and is very suitable for being used in low-power-consumption application products and scenes.
As shown in fig. 4, this embodiment further discloses a low-power consumption voltage-controlled crystal oscillator time keeping system, which includes a central processing unit, a voltage-controlled crystal oscillator module, a standard clock source module, and an analog-to-digital converter, where outputs of the voltage-controlled crystal oscillator module and the standard clock source module are both connected to an input of the central processing unit, an output of the central processing unit is connected to an input of the voltage-controlled crystal oscillator module through the analog-to-digital converter, where:
the output frequency of the voltage-controlled crystal oscillator module is used as a system clock oscillation frequency source of the central processing unit to carry out system travel time; the central processing unit receives the clock output by the standard clock source module to carry out system time service; and the central processing unit adjusts the analog voltage output adjusted by the digital-to-analog converter according to the system travel time and the system time service so as to control the output frequency of the voltage-controlled crystal oscillator module.
The standard clock source module is a Beidou/GPS receiver, and when the Beidou/GPS signal is normal, the central processing unit completes time synchronization of the system through the PPS signal of the Beidou/GPS receiver and the serial port time data.
Further, the central processing unit includes a timekeeping reference table construction module and a timekeeping control module, wherein:
the timekeeping reference table building module is used for obtaining the corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value according to the travel time deviation between the system travel time and the system time service every N seconds, and building a timekeeping reference table when the standard clock source module is abnormal;
the time keeping control module is used for calculating travel time deviation according to the frequency deviation value corresponding to the input voltage in the time keeping reference table when the standard clock source module is abnormal, and reversely adjusting the input voltage of the voltage controlled crystal oscillator module according to the travel time deviation so that the accumulated travel time deviation tends to zero to reach time keeping.
Further, the timekeeping reference table construction module comprises a recording unit, a regulation unit and a construction unit, wherein:
the recording unit is used for recording the time of the standard clock source module and the system time of the central processing every N seconds, calculating the frequency deviation value of the output frequency of the voltage-controlled crystal oscillator module and the standard frequency, and recording the frequency deviation value corresponding to the input voltage value of the voltage-controlled crystal oscillator module at the moment;
the regulating and controlling unit is used for regulating the input voltage of the voltage-controlled crystal oscillator module according to the frequency deviation value so as to regulate the output frequency of the voltage-controlled crystal oscillator module;
the construction unit is used for controlling the recording unit to repeatedly execute actions until the system is balanced, the output frequency of the voltage-controlled crystal oscillator module is dynamically output around a standard frequency value, and a timekeeping reference table when the standard clock source module is abnormal is constructed according to the obtained corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value.
It should be noted that, the specific steps implemented by the system are as follows:
1) when the Beidou/GPS signals are normal, the central processing unit completes time synchronization of the system through the PPS signals of the Beidou/GPS receiver and the serial port time data.
2) After time synchronization, when a next PPS interrupt signal is acquired, the Beidou/GPS module is closed by the system time t1 and the Beidou/GPS time t2, and the power consumption of the system is reduced.
3) After N seconds, the Beidou/GPS module is started, when the PPS interrupt signal is acquired again, the system time t3 and the Beidou/GPS time t4 are obtained, the system travel time is t3-t1, the standard travel time is t4-t2, the relative standard time deviation of the system travel time is (t3-t1) - (t4-t2), and the relative standard time deviation of the system per second can be calculated as ((t3-t1) - (t4-t2))/(t4-t2), so that the deviation value of the output frequency and the standard frequency can be calculated, and the value of the digital-to-analog converter is dynamically recorded corresponding to the relative standard frequency deviation value of the output frequency.
4) If the output frequency is larger than the standard frequency value, adjusting the digital-to-analog converter to reduce the frequency output frequency of the voltage-controlled crystal oscillator; if the output frequency is smaller than the standard frequency value, the digital-to-analog converter is adjusted to increase the output frequency of the voltage-controlled crystal oscillator.
5) If the deviation of the output frequency of the voltage-controlled crystal oscillator and the standard frequency value is larger, the smaller N (> < 1) seconds waiting in the step 3 is, and the faster the crystal oscillator is adjusted; if the deviation of the output frequency of the voltage-controlled crystal oscillator and the standard frequency value is smaller, the longer N seconds waiting in the step 3 is, the slower the speed of the crystal oscillator is.
6) After the system is balanced, the output frequency of the voltage-controlled crystal oscillator dynamically operates around the standard frequency, and the recording table can be used as a timekeeping reference table when the Beidou/GPS receiver is abnormal.
7) When the Beidou/GPS receiver is abnormal, calculating the travel time deviation of the system time relative to the absolute time in the operation time under the current output frequency according to the record table; reversely adjusting the output frequency, continuously operating for a period of time, and calculating the travel time deviation of the accumulated system time relative to the absolute time; the circulation ensures that the travel time deviation of the system always tends to zero, and the goal of keeping the system in time is achieved.
Note that this example uses STM32 from ST corporation as a central processing unit, the crystal oscillator uses an EPSON crystal oscillator, the crystal oscillator frequency is 16000000Hz (16MHz), and the system clock is represented by a value of 16000000Tick and 1 second. Table 1 below is a data record of the system crystal oscillator initialization uncalibrated to the crystal oscillator to stable output.
TABLE 1
Figure BDA0002548187730000101
Figure BDA0002548187730000111
From the above table data, it can be seen that: when the time service is finished at 1589483232 seconds, the system starting time is recorded to be 1589483232.7, and the GPS time is recorded to be 1589483232; recording ending system time is 1589483234.116, and GPS time is 1589483234; the time difference was 2 seconds, the system clock bias was 109, and the crystal oscillator bias was 109/2/16000000-3.40625 ppm. And when 1589483302 seconds, the system completes the self-adjusting function of the voltage-controlled crystal oscillator, and the output frequency of the crystal oscillator is dynamically adjusted around the standard. After equilibrium, the crystal oscillator operates 320 seconds at a DAC value of 1502 to cause a forward 8Tik bias and operates 320 seconds at a DAC value of 1503 to cause a reverse 20Tik bias. When the clock source fails, the system can dynamically adjust the DAC value to operate for 320 seconds after the DAC value is 1502 seconds and operates for 800 seconds, so that positive and negative deviation offset can be achieved, and high-precision time keeping of the system is achieved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A time keeping method of a low-power-consumption voltage-controlled crystal oscillator is characterized by comprising the following steps:
the output frequency of the voltage-controlled crystal oscillator module is used as a system clock oscillation frequency source of the central processing unit to carry out system travel time;
when the standard clock source module is normal, the standard clock source module is used for carrying out system time service on the central processing unit;
every N seconds, obtaining a corresponding relation between input voltage and frequency deviation value of the voltage-controlled crystal oscillator module according to travel time deviation between system travel time and system time service, and constructing a timekeeping reference table when the standard clock source module is abnormal;
when the standard clock source module is abnormal, the travel time deviation is calculated according to the frequency deviation value corresponding to the input voltage in the timekeeping reference table, and the input voltage of the voltage-controlled crystal oscillator module is reversely adjusted according to the travel time deviation, so that the accumulated travel time deviation tends to zero to reach timekeeping.
2. The method according to claim 1, wherein every N seconds, according to the travel time deviation between the system travel time and the system time service, the obtained correspondence between the input voltage of the vcxo module and the frequency deviation value is obtained, and a time keeping reference table when the standard clock source module is abnormal is constructed, including:
a) recording the time of the standard clock source module and the system time of the central processing every N seconds, calculating the frequency deviation value of the output frequency of the voltage-controlled crystal oscillator module and the standard frequency, and recording the frequency deviation value corresponding to the input voltage value of the voltage-controlled crystal oscillator module at the moment;
b) according to the frequency deviation value, adjusting the input voltage of the voltage-controlled crystal oscillator module so as to adjust the output frequency of the voltage-controlled crystal oscillator module;
c) and a) repeatedly executing the step a) until the system is balanced, dynamically outputting the output frequency of the voltage-controlled crystal oscillator module at about the standard frequency value, and constructing a timekeeping reference table when the standard clock source module is abnormal according to the obtained corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value.
3. The timing method of the vcxo of claim 2, wherein the calculating of the frequency deviation value between the output frequency of the vcxo module and the standard frequency is:
turning on the standard clock source module, recording the central processor system time TT1 and the standard clock source module time ST1 by using the standard clock source module PPS signal, and turning off the standard clock source module at the same time;
after setting N seconds, starting the standard time clock source module, and recording the central processor system time TT2 and the standard time clock source module time ST2 again;
calculating the time difference of the standard clock source module as DiffST (ST 2-ST 1), and calculating the time difference of the central processing unit as DiffTT (TT 2-TT 1);
calculating the travel time deviation of the central processing unit system to be DiffST-DiffTT, and calculating the frequency deviation value between the output frequency value corresponding to the input voltage of the voltage-controlled crystal oscillator module and the standard frequency value according to the travel time deviation of the system.
4. The method for timing the vcxo of claim 2, wherein the adjusting the input voltage of the vcxo module according to the frequency deviation value to adjust the output frequency of the vcxo module comprises:
when the output frequency of the voltage-controlled crystal oscillator module is greater than the standard frequency, adjusting the input voltage value of the voltage-controlled crystal oscillator module to reduce the output frequency value;
and when the output frequency value of the voltage-controlled crystal oscillator module is smaller than the standard frequency, adjusting the input voltage value of the voltage-controlled crystal oscillator module to increase the output frequency value.
5. The method for keeping time of a low power consumption voltage controlled crystal oscillator according to claim 2, further comprising: according to the dynamic change of the frequency deviation value, the adjusting speed of the input voltage of the voltage-controlled crystal oscillator module is as follows:
the larger the deviation between the output frequency of the voltage-controlled crystal oscillator module and the standard frequency value is, the shorter the time for closing the standard clock source module is set, and the faster the speed for adjusting the input voltage of the voltage-controlled crystal oscillator module is;
the smaller the deviation between the output frequency of the voltage-controlled crystal oscillator module and the standard frequency value is, the longer the time for closing the standard clock source module is set, and the slower the speed for adjusting the input voltage of the voltage-controlled crystal oscillator module is.
6. The timing method of the voltage controlled crystal oscillator with low power consumption of any one of claims 1 to 5, wherein the central processing unit regulates and controls the input voltage of the voltage controlled crystal oscillator module through an analog-to-digital converter.
7. The utility model provides a low-power consumption voltage-controlled crystal oscillator's system of keeping in time, its characterized in that includes central processing unit, voltage-controlled crystal oscillator module, standard clock source module and adc, and the output of voltage-controlled crystal oscillator module and standard clock source module all is connected with central processing unit input, and central processing unit output is connected with voltage-controlled crystal oscillator module input through adc, wherein:
the output frequency of the voltage-controlled crystal oscillator module is used as a system clock oscillation frequency source of the central processing unit to carry out system travel time; the central processing unit receives the clock output by the standard clock source module to carry out system time service; and the central processing unit adjusts the analog voltage output adjusted by the digital-to-analog converter according to the system travel time and the system time service so as to control the output frequency of the voltage-controlled crystal oscillator module.
8. The time keeping system of the low power consumption voltage controlled crystal oscillator of claim 7, wherein the standard clock source module is a Beidou/GPS receiver.
9. The time keeping system of the low power consumption voltage controlled crystal oscillator of claim 7, wherein the central processor comprises a time keeping reference table building module and a time keeping control module, wherein:
the timekeeping reference table building module is used for obtaining the corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value according to the travel time deviation between the system travel time and the system time service every N seconds, and building a timekeeping reference table when the standard clock source module is abnormal;
the time keeping control module is used for calculating travel time deviation according to the frequency deviation value corresponding to the input voltage in the time keeping reference table when the standard clock source module is abnormal, and reversely adjusting the input voltage of the voltage controlled crystal oscillator module according to the travel time deviation so that the accumulated travel time deviation tends to zero to reach time keeping.
10. The time keeping system of the low-power consumption voltage-controlled crystal oscillator of claim 9, wherein the time keeping reference table construction module comprises a recording unit, a regulating unit and a construction unit, wherein:
the recording unit is used for recording the time of the standard clock source module and the system time of the central processing every N seconds, calculating the frequency deviation value of the output frequency of the voltage-controlled crystal oscillator module and the standard frequency, and recording the frequency deviation value corresponding to the input voltage value of the voltage-controlled crystal oscillator module at the moment;
the regulating and controlling unit is used for regulating the input voltage of the voltage-controlled crystal oscillator module according to the frequency deviation value so as to regulate the output frequency of the voltage-controlled crystal oscillator module;
the construction unit is used for controlling the recording unit to repeatedly execute actions until the system is balanced, the output frequency of the voltage-controlled crystal oscillator module is dynamically output around a standard frequency value, and a timekeeping reference table when the standard clock source module is abnormal is constructed according to the obtained corresponding relation between the input voltage of the voltage-controlled crystal oscillator module and the frequency deviation value.
CN202010566985.XA 2020-06-19 2020-06-19 Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator Pending CN111769833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010566985.XA CN111769833A (en) 2020-06-19 2020-06-19 Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010566985.XA CN111769833A (en) 2020-06-19 2020-06-19 Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator

Publications (1)

Publication Number Publication Date
CN111769833A true CN111769833A (en) 2020-10-13

Family

ID=72721346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010566985.XA Pending CN111769833A (en) 2020-06-19 2020-06-19 Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator

Country Status (1)

Country Link
CN (1) CN111769833A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499501A (en) * 2022-04-19 2022-05-13 成都市克莱微波科技有限公司 Frequency source dynamic control method, control device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120013375A1 (en) * 2010-07-15 2012-01-19 Oki Semiconductor Co., Ltd. Frequency synthesizer device and modulation frequency displacement adjustment method
CN102436174A (en) * 2011-10-26 2012-05-02 东莞市泰斗微电子科技有限公司 Method and corresponding device for taming crystal oscillation frequency of time-keeping device
CN107026702A (en) * 2017-04-20 2017-08-08 中国南方电网有限责任公司电网技术研究中心 The punctual method and apparatus of high accuracy
CN110133997A (en) * 2019-05-17 2019-08-16 长沙理工大学 A method of detection satellite clock is abnormal
CN110413042A (en) * 2019-07-30 2019-11-05 上海东土远景工业科技有限公司 A kind of clock server, punctual frequency compensation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120013375A1 (en) * 2010-07-15 2012-01-19 Oki Semiconductor Co., Ltd. Frequency synthesizer device and modulation frequency displacement adjustment method
CN102436174A (en) * 2011-10-26 2012-05-02 东莞市泰斗微电子科技有限公司 Method and corresponding device for taming crystal oscillation frequency of time-keeping device
CN107026702A (en) * 2017-04-20 2017-08-08 中国南方电网有限责任公司电网技术研究中心 The punctual method and apparatus of high accuracy
CN110133997A (en) * 2019-05-17 2019-08-16 长沙理工大学 A method of detection satellite clock is abnormal
CN110413042A (en) * 2019-07-30 2019-11-05 上海东土远景工业科技有限公司 A kind of clock server, punctual frequency compensation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499501A (en) * 2022-04-19 2022-05-13 成都市克莱微波科技有限公司 Frequency source dynamic control method, control device and system
CN114499501B (en) * 2022-04-19 2022-08-26 成都市克莱微波科技有限公司 Frequency source dynamic control method, control device and system

Similar Documents

Publication Publication Date Title
WO2022095552A1 (en) Apparatus and method for generating time-frequency reference based on satellite timing and cpt atomic clock punctuality
Zhao et al. GPS-disciplined analog-to-digital converter for phasor measurement applications
CN105549379B (en) A kind of synchronous measuring apparatus triggered based on split-second precision benchmark and method
US20120146701A1 (en) Clock system and method for compensating timing information of clock system
CN103248364B (en) A kind of inertial sensor IMU signal analog-to-digital conversion module
CN203377841U (en) Satellite-based crystal oscillator taming apparatus for time service
TWI489782B (en) Phase calibration device and phasecalibration method
CN103092062B (en) Method and system used for real-time clock chip accuracy adjustment
CN109116187A (en) A kind of recording synchronous method applied to transient state recording type fault detector
CN102692258B (en) Circuit device, integrated circuit and detection device
CN111769833A (en) Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator
CN103683292A (en) Parallel type quasi-proportional resonance active power filter and control method thereof
CN102412957A (en) High-precision synchronous clock adjusting method
CN103684031A (en) Current hysteresis control digital implementation system for PWM rectifier
CN107732976B (en) Method for generating synchronous constant-frequency current phasor in full-inverter type microgrid
CN108761353A (en) A kind of wide effective value calculating method of variable-frequency power sources signal of aviation based on error correction
CN103187925A (en) High speed-controller area network (HS-CAN) bus clock recovery using tracking oscillator circuit
CN111579918A (en) Sampling synchronous correction method for transient recording type fault indicator
CN101534152A (en) Method and device for synchronous realization of wireless access network
CN110611544A (en) Method and device for accurately timing by utilizing RS232 serial port
CN202759413U (en) An on-line time error correcting system based on a satellite and a constant temperature crystal oscillator
CN105846939A (en) System for method for accurately keeping synchronization of multiple modules
CN114785342A (en) Low-frequency high-precision oscillator for system-on-chip SOC and system-on-chip SOC
CN113377003B (en) Phase adjustment method and device for cesium and hydrogen atomic frequency standard
CN110824237B (en) Pulse sampling time interval adjusting method and device

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