Method and device for improving autonomous timekeeping capability of crystal oscillator
Through the method of periodic polarization modulation of DAC values, the problem that the crystal oscillator cannot maintain time synchronization when losing the time frequency reference source is lost, real-time frequency compensation and accuracy improvement are achieved, and hysteresis and high development difficulties in the prior art are avoided. question.
Patent Information
- Application Number
- CN202411025056.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-29
AI Technical Summary
When the crystal oscillator loses the time frequency reference source, it cannot maintain long-term time synchronization capabilities. The existing methods need to accumulate historical data to establish algorithm models, resulting in large amount of code development, high difficulty in parameter optimization, and certain lag in compensation methods. , real-time compensation cannot be achieved.
By using periodic polarization modulation method, by increasing the DAC value every Δt+ in the T1 time period, decreasing the DAC value every Δt-in-the DAC value every Δt-in-the DAC value during the T2 time period, slowly changing the DAC value with T1+T2 as the period, fine-tuning the crystal oscillator Frequency to compensate for phase deviations caused by aging rate and temperature characteristics.
It significantly improves the autonomous punctual accuracy of the crystal oscillator, avoids the lag problem, and realizes real-time frequency compensation when the time-frequency reference source is lost.
Smart Images

Figure CN119010798A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of crystal oscillator design, and in particular to a method and device for improving the autonomous timekeeping capability of a crystal oscillator. Background Art
[0002] As a frequency device, the crystal oscillator has unique advantages such as short stability, small size and low cost. It is widely used in many important industries such as communications, electricity, finance, and transportation. However, due to the influence of temperature and aging drift, the long-term stability and accuracy of the crystal oscillator are poor, and it does not have the ability to keep time autonomously for a long time. Generally, the 1 Pulse Per Second (1PPS) signal provided by the Global Navigation Satellite System (GNSS) is used to tame and calibrate the local crystal oscillator to improve its long-term stability and accuracy. However, the satellite signal transmission path is complex. In the case of interference, deception or even interruption, the GNSS clock reference is lost, and the local crystal oscillator cannot be tamed and calibrated. As time accumulates, its output frequency deviation gradually increases, and phase synchronization can no longer be guaranteed. Therefore, how to improve the autonomous timekeeping ability of the crystal oscillator so that the crystal oscillator can still maintain a high-precision time synchronization capability within a certain period of time when the time and frequency reference source is lost is an important problem that must be solved.
[0003] Traditional methods to improve the autonomous timekeeping capability of crystal oscillators are mostly to establish algorithm models for the aging drift and temperature drift of crystal oscillators, such as using multiple Kalman filters to process the historical data of constant temperature crystal oscillators, adaptively simulating the temperature drift and aging drift of the output frequency of constant temperature crystal oscillators, and then compensating for them; or to establish a crystal oscillator frequency prediction algorithm based on neural networks, and train the neural network model by using the previous measured values of the crystal oscillator frequency to characterize the law of crystal oscillator frequency drift and improve the prediction accuracy of crystal oscillator frequency. Regardless of which method is used, it is necessary to accumulate the historical data of the crystal oscillator and establish an algorithm model for prediction. Therefore, the algorithm code development is large and the parameter optimization is difficult. At the same time, this compensation method also has a certain lag and cannot achieve real-time compensation. Summary of the invention
[0004] Based on this, it is necessary to provide a method and device for improving the autonomous timekeeping capability of a crystal oscillator in response to the above technical problems.
[0005] A method for improving the autonomous timekeeping capability of a crystal oscillator, the method comprising: improving the autonomous timekeeping capability of the crystal oscillator by using a method of periodically polarizing and modulating a DAC value; the DAC value is a control signal of a voltage control terminal of the crystal oscillator, and the specific steps of the method of periodically polarizing and modulating the DAC value include:
[0006] From the moment t0 when the crystal oscillator changes from the taming state to the autonomous timekeeping state, within the T1 time period, every first time interval Δt + , increase the DAC value step by step by Δ DAC+ .
[0007] During the T2 period starting from the time t0+T1, every second time interval Δt - , the DAC value is decreased step by step by Δ DAC- ; Similarly, the DAC value changes slowly with a period of T=T1+T2.
[0008] The voltage control voltage of the crystal oscillator is changed by using a periodically and slowly changing DAC value, and the crystal oscillator frequency is fine-tuned to compensate for the phase deviation caused by the aging rate of the crystal oscillator itself and the frequency-temperature characteristics, thereby improving the autonomous timing accuracy of the crystal oscillator.
[0009] In one embodiment, T1 and Δt + , T2 and Δt - Satisfaction relationship:
[0010] T1=N*Δt + , N positive integer
[0011] T2=M*Δt - , M is a positive integer
[0012] Where N is the time interval Δt within the T1 period + The number of M is the time interval Δt within the T2 period. - The number of
[0013] In one embodiment, the parameter combination (M, N; Δt + , Δt - ; Δ DAC+ , Δ DAC- ) includes the following steps:
[0014] Step 1: Set the initial value of the parameter combination so that the parameter combination satisfies M=N, Δt + =Δt - , Δ DAC+ =Δ DAC- , and obtain the initial curve of the change law of the crystal oscillator output phase difference over time.
[0015] Step 2: If the initial curve of the crystal oscillator output phase difference changing with time is flat, then determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- )value.
[0016] Step 3: If the initial curve of the crystal oscillator output phase difference changing with time is not straight, first keep M = N, Δ DAC+ =Δ DAC- Fixed, by adjusting Δt + and\or Δt - Adjust the crystal oscillator output phase difference to obtain the time-varying law curve; observe whether the adjusted crystal oscillator output phase difference time-varying law curve is straight; if it is straight, determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ) value; if it is not straight, continue to + and\or Δt - Adjust. If the curve of the crystal oscillator output phase difference changing with time is flat when the number of adjustments is less than the preset maximum cycle threshold, stop adjusting and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ) value; if the phase difference over time curve does not reach a flat line when the preset maximum cycle threshold is reached, then keep M = N, Δt + =Δt - Fixed, by DAC+ and\or Δ DAC- Adjust until the crystal oscillator output phase difference changes with time and the curve is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- )value.
[0017] In one embodiment, when the initial curve of the variation law of the crystal oscillator output phase difference over time is open upward: step 3 specifically includes:
[0018] First, keep M = N, Δ DAC+ =Δ DAC- Fixed, by reducing Δt + , increase Δt - Or reduce Δt + At the same time, the adjustment method of Δt is added to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight.
[0019] If the curve of the crystal oscillator output phase difference changing with time is straight, then the parameter combination is determined as (M, N; Δt + , Δt - ; Δ DAC+ , Δ DAC- ).
[0020] If the curve of the crystal oscillator output phase difference changing with time still opens upward, continue to reduce Δt + , increase Δt - Or reduce Δt + At the same time, increase the Δt adjustment method to adjust until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time opens downward, then by increasing Δt + , reduce Δt - Or increase Δt + While reducing Δt - Continue to adjust in the same way.
[0021] If the curve of the crystal oscillator output phase difference changing with time is flat, then the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0022] If the crystal oscillator output phase difference curve over time is not straight when the cycle adjustment number threshold is reached, then keep M = N, Δt + =Δt - Fixed by reducing Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; if the curve of the crystal oscillator output phase difference changing with time is straight, then determine the parameter combination as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0023] If the curve of the crystal oscillator output phase difference changing with time still opens upward, continue to reduce Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC-); if the curve opens downward, increase Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0024] In one embodiment, when the initial curve of the variation law of the crystal oscillator output phase difference over time is open downward: step 3 specifically includes:
[0025] First, keep M = N, Δ DAC+ =Δ DAC- Fixed, by increasing Δt + , reduce Δt - Or increase Δt + , while reducing Δt - Adjust the crystal oscillator output phase difference over time by adjusting the adjustment method to obtain the curve of the crystal oscillator output phase difference over time, and observe whether the curve of the crystal oscillator output phase difference over time is straight.
[0026] If the curve of the crystal oscillator output phase difference changing with time is straight, then the parameter combination is determined as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0027] If the curve of the crystal oscillator output phase difference changing with time still opens downward, continue to increase Δt + , reduce Δt - Or increase Δt + , while reducing Δt - If the cycle adjustment number threshold is not reached and the curve of the crystal oscillator output phase difference changing with time is flat, then the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the cycle adjustment number threshold is not reached, and the curve of the crystal oscillator output phase difference changing with time opens upward, then reduce Δt + , increase Δt - Or reduce Δt + While increasing Δt - Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt- , Δ DAC+ , Δ DAC- ).
[0028] If the crystal oscillator output phase difference curve over time is not straight when the cycle adjustment number threshold is reached, then keep Δt + =Δt - Fixed by increasing Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; if the curve of the crystal oscillator output phase difference changing with time is straight, then determine the parameter combination as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time still opens downward, continue to increase Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method until the crystal oscillator output phase difference changes smoothly over time, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time opens upward, then by reducing Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Continue to adjust in the same way until the crystal oscillator output phase difference changes smoothly over time, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0029] In one embodiment, the DAC value at any time t0+k*T satisfies the relationship:
[0030] DAC(t0+k*T)=DAC0+k*(N*Δ DAC+ -M*Δ DAC- )
[0031] Wherein, k is a positive integer.
[0032] In one embodiment, when Δt + =Δt -By setting T1, T2, Δ DAC+ and Δ DAC- Improve the autonomous timekeeping capability of the crystal oscillator.
[0033] A device for improving the autonomous timekeeping capability of a crystal oscillator, the device is used to improve the autonomous timekeeping capability of the crystal oscillator by adopting a method of periodically polarizing and modulating a DAC value; the DAC value is a control signal of a voltage control terminal of the crystal oscillator, and the specific steps of the method of periodically polarizing and modulating the DAC value include: from the moment t0 when the crystal oscillator changes from a tamed state to an autonomous timekeeping state, within a time period T1, every first time interval Δt + , increase the DAC value step by step by Δ DAC+ ; During the T2 period starting from the time t0+T1, every second time interval Δt - , the DAC value is decreased step by step by Δ DAC- ; Similarly, the DAC value changes slowly with a period of T=T1+T2; the voltage control voltage of the crystal oscillator is changed by using the periodically slowly changing DAC value, and the crystal oscillator frequency is fine-tuned to compensate for the phase deviation caused by the aging rate of the crystal oscillator itself and the frequency-temperature characteristics, thereby improving the autonomous timing accuracy of the crystal oscillator.
[0034] The above-mentioned method and device for improving the autonomous timekeeping ability of the crystal oscillator, when the crystal oscillator is transferred from the tamed state to the autonomous timekeeping state, the method performs periodic polarization modulation on the value of the digital-to-analog converter DAC, periodically and slowly changes the DAC value, and then periodically and slowly changes the voltage-controlled voltage of the crystal oscillator, and fine-tunes the crystal oscillator frequency to compensate for the aging rate of the crystal oscillator itself and the phase deviation caused by the frequency-temperature characteristics, which significantly improves the autonomous timekeeping ability of the crystal oscillator. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It indicates the transition of the crystal oscillator from the tamed state to the autonomous timekeeping state;
[0036] Figure 2 A schematic diagram of a flow chart of a method for improving the autonomous timekeeping capability of a crystal oscillator in one embodiment;
[0037] Figure 3 A schematic diagram of another embodiment for improving the autonomous timekeeping capability of a crystal oscillator;
[0038] Figure 4 A result diagram of DAC value change and output phase difference in another embodiment of the crystal oscillator in autonomous timing state;
[0039] Figure 5 In another embodiment, the crystal oscillator is in an autonomous timekeeping state, and a periodic polarization modulation DAC value (M=N=150; Δt + =Δt - =1,Δ DAC+ =Δ DAC-=1), short-term output phase difference result diagram;
[0040] Figure 6 In another embodiment, the crystal oscillator is in an autonomous timekeeping state, and a periodic polarization modulation DAC value (M=N=10; Δt + =Δt - =1,Δ DAC+ =Δ DAC- =16), long-term output phase difference result diagram;
[0041] Figure 7 In another embodiment, the crystal oscillator is in an autonomous timekeeping state, and a periodic polarization modulation DAC value (M=N=10; Δt + =Δt - =1,Δ DAC+ =Δ DAC- =16), short-term output phase difference result diagram. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The traditional crystal oscillator training process consists of a time interval counter (TIC), Kalman filter, proportional integral derivative (PID) control, digital analog converter (DAC) and crystal oscillator to form a training loop, such as Figure 1 As shown. The time interval counter (TIC) measures the time difference between the 1PPS output by the crystal oscillator and the reference 1PPS. The Kalman filter and proportional integral differential (PID) control process the time difference result and output a digital quantity representing the time difference. The digital quantity is converted into an analog control voltage by a digital-to-analog converter (DAC) and acts on the voltage control end of the crystal oscillator, thereby correcting the 1PPS of the crystal oscillator so that it completely follows the external reference 1PPS. When the external reference is interrupted, the time interval counter (TIC), Kalman filter, and proportional integral differential (PID) control cannot work. Therefore, the phase difference caused by the aging drift and temperature drift of the crystal oscillator itself can be compensated by changing the value of the DAC, thereby improving the autonomous timing capability of the crystal oscillator.
[0044] By studying the influence of the gradual increase and decrease of the DAC value output by the digital-to-analog converter on the phase difference of the crystal oscillator output, it is clarified that the gradual increase of the DAC value leads to the gradual increase of the crystal oscillator output phase difference, and the gradual decrease of the DAC value leads to the gradual decrease of the crystal oscillator output phase difference, and the two are the rules with opposite polarities and approximately equal amplitudes; the influence of the periodic polarization modulation DAC value on the crystal oscillator output phase difference is studied, that is, in a period of time, the DAC value gradually increases, and then in another period of time the DAC value gradually decreases. It is clarified that the periodic polarization modulation DAC value can achieve the stability of the crystal oscillator output phase difference.
[0045] In one embodiment, Figure 2 As shown, a method for improving the autonomous timekeeping capability of a crystal oscillator is provided, the method comprising: improving the autonomous timekeeping capability of the crystal oscillator by using a method of periodically polarizing and modulating a DAC value; the DAC value is a control signal of a voltage control terminal of the crystal oscillator, and the specific steps of the method of periodically polarizing and modulating the DAC value include:
[0046] Step 100: From the moment t0 when the crystal oscillator changes from the taming state to the autonomous timekeeping state, within the time period T1, every first time interval Δt + , increase the DAC value step by step by Δ DAC+ .
[0047] Step 102: During the T2 time period starting from time t0+T1, every second time interval Δt - , the DAC value is decreased step by step by Δ DAC- ; Similarly, the DAC value changes slowly with a period of T=T1+T2.
[0048] Step 104: Use the periodically and slowly changing DAC value to change the voltage control voltage of the crystal oscillator, fine-tune the crystal oscillator frequency to compensate for the aging rate of the crystal oscillator itself and the phase deviation caused by the frequency-temperature characteristics, and improve the autonomous timing accuracy of the crystal oscillator.
[0049] The schematic diagram for improving the autonomous timekeeping capability of the crystal oscillator is as follows Figure 3 shown.
[0050] In the above method for improving the autonomous timekeeping ability of the crystal oscillator, when the crystal oscillator is transferred from the tamed state to the autonomous timekeeping state, the value of the digital-to-analog converter DAC is periodically polarized modulated, the DAC value is periodically and slowly changed, and then the voltage-controlled voltage of the crystal oscillator is periodically and slowly changed, and the crystal oscillator frequency is fine-tuned to compensate for the aging rate of the crystal oscillator itself and the phase deviation caused by the frequency-temperature characteristics, which significantly improves the autonomous timekeeping ability of the crystal oscillator.
[0051] In one embodiment, when the method of periodically polarizing the DAC value is used, T1 and Δt + , T2 and Δt - Satisfaction relationship:
[0052] T1=N*Δt + , N positive integer
[0053] T2=M*Δt - , M is a positive integer
[0054] Where N is the time interval Δt within the T1 period + The number of M is the time interval Δt within the T2 period. - The number of
[0055] In one embodiment, the parameter combination (M, N; Δt + , Δt - ; Δ DAC+ , Δ DAC- ) includes the following steps:
[0056] Step 1: Set the initial value of the parameter combination so that the parameter combination satisfies M=N, Δt + =Δt - , Δ DAC+ =Δ DAC- , and obtain the initial curve of the change law of the crystal oscillator output phase difference over time.
[0057] Step 2: If the initial curve of the crystal oscillator output phase difference changing with time is flat, then determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- )value.
[0058] Step 3: If the initial curve of the crystal oscillator output phase difference changing with time is not straight, first keep M = N, Δ DAC+ =Δ DAC- Fixed, by adjusting Δt + and\or Δt - Adjust the crystal oscillator output phase difference to obtain the time-varying law curve; observe whether the adjusted crystal oscillator output phase difference time-varying law curve is straight; if it is straight, determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ) value; if it is not straight, continue to + and\or Δt - Adjust. If the curve of the crystal oscillator output phase difference changing with time is flat when the number of adjustments is less than the preset maximum cycle threshold, stop adjusting and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC-) value; if the phase difference over time curve does not reach a flat line when the preset maximum cycle threshold is reached, then keep M = N, Δt + =Δt - Fixed, by DAC+ and\or Δ DAC- Adjust until the crystal oscillator output phase difference changes with time and the curve is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- )value.
[0059] In one embodiment, when the initial curve of the variation law of the crystal oscillator output phase difference over time is open upward: step 3 specifically includes:
[0060] First, keep M = N, Δ DAC+ =Δ DAC- Fixed, by reducing Δt + , increase Δt - Or reduce Δt + At the same time, the adjustment method of Δt is added to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight.
[0061] If the curve of the crystal oscillator output phase difference changing with time is straight, then the parameter combination is determined as (M, N; Δt + , Δt - ; Δ DAC+ , Δ DAC- ).
[0062] If the curve of the crystal oscillator output phase difference changing with time still opens upward, continue to reduce Δt + , increase Δt - Or reduce Δt + At the same time, increase the Δt adjustment method to adjust until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time opens downward, then by increasing Δt + , reduce Δt - Or increase Δt + While reducing Δt - Continue to adjust in the same way.
[0063] If the curve of the crystal oscillator output phase difference changing with time is flat, then the parameter combination (M, N; Δt + , Δt -, Δ DAC+ , Δ DAC- ).
[0064] If the crystal oscillator output phase difference curve over time is not straight when the cycle adjustment number threshold is reached, then keep M = N, Δt + =Δt - Fixed by reducing Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; if the curve of the crystal oscillator output phase difference changing with time is straight, then determine the parameter combination as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0065] If the curve of the crystal oscillator output phase difference changing with time still opens upward, continue to reduce Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); if the curve opens downward, increase Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0066] In one embodiment, when the initial curve of the variation law of the crystal oscillator output phase difference over time is open downward: step 3 specifically includes:
[0067] First, keep M = N, Δ DAC+ =Δ DAC- Fixed, by increasing Δt + , reduce Δt - Or increase Δt + , while reducing Δt -Adjust the crystal oscillator output phase difference over time by adjusting the adjustment method to obtain the curve of the crystal oscillator output phase difference over time, and observe whether the curve of the crystal oscillator output phase difference over time is straight.
[0068] If the curve of the crystal oscillator output phase difference changing with time is straight, then the parameter combination is determined as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0069] If the curve of the crystal oscillator output phase difference changing with time still opens downward, continue to increase Δt + , reduce Δt - Or increase Δt + , while reducing Δt - If the cycle adjustment number threshold is not reached and the curve of the crystal oscillator output phase difference changing with time is flat, then the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the cycle adjustment number threshold is not reached, and the curve of the crystal oscillator output phase difference changing with time opens upward, then reduce Δt + , increase Δt - Or reduce Δt + While increasing Δt - Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0070] If the crystal oscillator output phase difference curve over time is not straight when the cycle adjustment number threshold is reached, then keep Δt + =Δt - Fixed by increasing Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; if the curve of the crystal oscillator output phase difference changing with time is straight, then determine the parameter combination as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time still opens downward, continue to increase Δ DAC+ , reduce ΔDAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method until the crystal oscillator output phase difference changes smoothly over time, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time opens upward, then by reducing Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Continue to adjust in the same way until the crystal oscillator output phase difference changes smoothly over time, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
[0071] In one embodiment, the DAC value at any time t0+k*T satisfies the relationship:
[0072] DAC(t0+k*T)=DAC0+k*(N*Δ DAC+ -M*Δ DAC- )
[0073] Wherein, k is a positive integer.
[0074] In one embodiment, when Δt + =Δt - By setting T1, T2, Δ DAC+ and Δ DAC- Improve the autonomous timekeeping capability of the crystal oscillator.
[0075] Specifically, from the moment t0 when the crystal oscillator changes from the tamed state to the autonomous timekeeping state, if every Δt + , the DAC value increases step by step Δ DAC+ , the crystal oscillator output phase difference changes with time to meet the quadratic function relationship: + (t) = a + t 2 +b + t+c + ;
[0076] From the moment t0 when the crystal oscillator changes from the tamed state to the autonomous timekeeping state, if every Δt - , the DAC value decreases step by step Δ DAC- , the crystal oscillator output phase difference changes with time to meet the quadratic function relationship: - (t) = a - t 2 +b- t+c - ;
[0077] When Δt + =Δt - , Δ DAC+ =Δ DAC When + ≈-a - , b + ≈-b - , c + ≈-c - That is, the DAC value increases and decreases in a step-by-step manner at equal time and equal amplitude, and the change pattern of the crystal oscillator output phase difference is opposite in polarity and approximately equal in amplitude, thus achieving automatic compensation of the positive and negative phase difference of the crystal oscillator output.
[0078] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0079] In a specific embodiment, let Δt + =Δt - =1,Δ DAC+ =Δ DAC- =1, 2, 3, the DAC value changes and output phase difference measurement results are as follows: Figure 4 As shown, it can be seen that the crystal oscillator output phase difference changes with time and satisfies the quadratic function. The larger the DAC value changes, the smaller the opening, and the steeper the change; Δ DAC+ =Δ DAC- , the phase difference of the crystal oscillator output changes with time in an upward and downward symmetrical relationship.
[0080] Let M = N = 150, Δt + =Δt - =1,Δ DAC+ =Δ DAC- =1, this parameter is used to periodically polarize the DAC value. When the crystal oscillator is in the autonomous timing state, the measurement results of the output phase difference changing with time are as follows: Figure 5As shown, it can be seen that the output phase difference remains basically unchanged in a short period of time (600s) and presents a horizontal straight line, which proves that the periodic polarization modulation DAC value can improve the autonomous timekeeping ability of the crystal oscillator.
[0081] To further prove the effectiveness of this method, let M = N = 150, Δt + =Δt - =1,Δ DAC+ =Δ DAC- =1, using this parameter to periodically polarize modulate the DAC value, the crystal oscillator's autonomous timekeeping capability within a time scale of 35,000 seconds (9.7 hours) was tested, and the measurement results of the output phase difference are as follows: Figure 6 In the crystal oscillator free oscillation mode, the timing accuracy (maximum value minus minimum value) is about 928ns, while when the periodic polarization modulation DAC value is used, the timing accuracy (maximum value minus minimum value) is about 150ns, which is 6 times higher.
[0082] In a specific embodiment, let M=N=10, Δt + =Δt - =1,Δ DAC+ =Δ DAC- =16, using this parameter to periodically polarize modulate the DAC value, the measurement results of the output phase difference changing with time when the crystal oscillator is in the autonomous timing state are as follows Figure 7 As shown in the figure, it can be seen that, in general, the output phase difference remains basically unchanged in a short period of time (500s), which proves that the periodic polarization modulation DAC value can improve the autonomous timekeeping ability of the crystal oscillator. However, compared with M=N=150, Δt + =Δt - =1,Δ DAC+ =Δ DAC- = 1, the phase difference fluctuation over time increases significantly, mainly due to Δ DAC Too large.
[0083] In one embodiment, a device for improving the autonomous timekeeping capability of a crystal oscillator is provided. The device uses a method of periodically polarizing and modulating a DAC value to improve the autonomous timekeeping capability of the crystal oscillator. The DAC value is a control signal of a voltage control terminal of the crystal oscillator. The specific steps of the method of periodically polarizing and modulating the DAC value include: starting from the moment t0 when the crystal oscillator changes from a tamed state to an autonomous timekeeping state, within a time period T1, every first time interval Δt + , increase the DAC value step by step by Δ DAC+ ; During the T2 period starting from the time t0+T1, every second time interval Δt - , the DAC value is decreased step by step by Δ DAC-; Similarly, the DAC value changes slowly with a period of T=T1+T2; the voltage control voltage of the crystal oscillator is changed by using the periodically slowly changing DAC value, and the crystal oscillator frequency is fine-tuned to compensate for the phase deviation caused by the aging rate of the crystal oscillator itself and the frequency-temperature characteristics, thereby improving the autonomous timing accuracy of the crystal oscillator.
[0084] The specific definition of the device for improving the autonomous timekeeping capability of the crystal oscillator can be found in the definition of the method for improving the autonomous timekeeping capability of the crystal oscillator in the above text, which will not be repeated here. Each module in the above-mentioned device for improving the autonomous timekeeping capability of the crystal oscillator can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0085] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0086] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for improving the autonomous timekeeping capability of a crystal oscillator, characterized in that the method comprises: The method of periodic polarization modulation DAC value is used to improve the autonomous timekeeping ability of the crystal oscillator; The DAC value is a control signal of a crystal oscillator voltage control terminal, and the specific steps of the method for periodically polarizing and modulating the DAC value include: From the moment t0 when the crystal oscillator changes from the taming state to the autonomous timekeeping state, within the T1 time period, every first time interval Δt + , increase the DAC value step by step by Δ DAC+ ; During the T2 period starting from the time t0+T1, every second time interval Δt - , the DAC value is decreased step by step by Δ DAC- ; Similarly, the DAC value changes slowly with a period of T=T1+T2; The voltage control voltage of the crystal oscillator is changed by using a periodically and slowly changing DAC value, and the crystal oscillator frequency is fine-tuned to compensate for the phase deviation caused by the aging rate of the crystal oscillator itself and the frequency-temperature characteristics, thereby improving the autonomous timing accuracy of the crystal oscillator.
2. The method for improving the autonomous timekeeping capability of a crystal oscillator according to claim 1, characterized in that T1 and Δt + , T2 and Δt - Satisfaction relationship: T1=N*Δt + , N positive integer T2=M*Δt - , M is a positive integer in, N is the time interval Δt within the T1 period + The number of M is the time interval Δt in the T2 period - The number of 3. The method for improving the autonomous timekeeping capability of a crystal oscillator according to claim 2, characterized in that the parameter combination (M, N; Δt + , Δt - ; Δ DAC+ , Δ DAC- ) includes the following steps: Step 1: Set the initial value of the parameter combination so that the parameter combination satisfies M=N, Δt + =Δt - , Δ DAC+ =Δ DAC- , get the initial curve of the change law of the crystal oscillator output phase difference over time; Step 2: If the initial curve of the crystal oscillator output phase difference changing with time is flat, then determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- )value; Step 3: If the initial curve of the crystal oscillator output phase difference changing with time is not straight, first keep M = N, Δ DAC+ =Δ DAC- Fixed, by adjusting Δt + and\or Δt - Adjust the crystal oscillator output phase difference to obtain the time-varying law curve; observe whether the adjusted crystal oscillator output phase difference time-varying law curve is straight; if it is straight, determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ) value; if it is not straight, continue to + and\or Δt - Adjust. If the curve of the crystal oscillator output phase difference changing with time is flat when the number of adjustments is less than the preset maximum cycle threshold, stop adjusting and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ) value; if the phase difference over time curve does not reach a flat line when the preset maximum cycle threshold is reached, then keep M = N, Δt + =Δt - Fixed by Δ DAC+ and\or Δ DAC- Adjust until the crystal oscillator output phase difference changes with time and the curve is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- )value.
4. The method for improving the autonomous timekeeping capability of a crystal oscillator according to claim 3 is characterized in that, when the initial curve of the variation law of the crystal oscillator output phase difference over time is open upward: step 3 specifically comprises: First, keep M = N, Δ DAC+ =Δ DAC- Fixed, by reducing Δt + , increase Δt - Or reduce Δt + At the same time, add the adjustment method of Δt to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; If the curve of the crystal oscillator output phase difference changing with time is straight, then the parameter combination is determined as (M, N; Δt + , Δt - ; Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time still opens upward, continue to reduce Δt + , increase Δt - Or reduce Δt + At the same time, increase the Δt adjustment method to adjust until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time opens downward, then by increasing Δt + , reduce Δt - Or increase Δt + While reducing Δt - Continue to adjust in the same way; If the curve of the crystal oscillator output phase difference changing with time is flat, then the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the crystal oscillator output phase difference curve over time is not straight when the cycle adjustment number threshold is reached, then keep M = N, Δt + =Δt - Fixed, by reducing Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; if the curve of the crystal oscillator output phase difference changing with time is straight, then determine the parameter combination as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time still opens upward, continue to reduce Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); if the curve opens downward, increase Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
5. The method for improving the autonomous timekeeping capability of a crystal oscillator according to claim 3 is characterized in that, when the initial curve of the variation law of the crystal oscillator output phase difference over time is open downward: step 3 specifically comprises: First, keep M = N, Δ DAC+ =Δ DAC- Fixed, by increasing Δt + , reduce Δt - Or increase Δt + , while reducing Δt - Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; If the curve of the crystal oscillator output phase difference changing with time is straight, then the parameter combination is determined as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time still opens downward, continue to increase Δt + , reduce Δt - Or increase Δt + , while reducing Δt - If the cycle adjustment number threshold is not reached and the curve of the crystal oscillator output phase difference changing with time is flat, then the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the cycle adjustment number threshold is not reached, and the curve of the crystal oscillator output phase difference changing with time opens upward, then reduce Δt + , increase Δt - Or reduce Δt + While increasing Δt - Adjust the adjustment method until the curve of the crystal oscillator output phase difference changing with time is straight, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ). If the crystal oscillator output phase difference curve over time is not straight when the cycle adjustment number threshold is reached, then keep Δt + =Δt - Fixed by increasing Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method to obtain the curve of the crystal oscillator output phase difference changing with time, and observe whether the curve of the crystal oscillator output phase difference changing with time is straight; if the curve of the crystal oscillator output phase difference changing with time is straight, then determine the parameter combination as (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time still opens downward, continue to increase Δ DAC+ , reduce Δ DAC- Or increase Δ DAC+ While reducing Δ DAC- Adjust the adjustment method until the crystal oscillator output phase difference changes smoothly over time, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ); If the curve of the crystal oscillator output phase difference changing with time opens upward, then by reducing Δ DAC+ , increase Δ DAC- Or reduce Δ DAC+ While increasing Δ DAC- Continue to adjust in the same way until the crystal oscillator output phase difference changes smoothly over time, and determine the parameter combination (M, N; Δt + , Δt - , Δ DAC+ , Δ DAC- ).
6. The method for improving the autonomous timekeeping capability of a crystal oscillator according to claim 1, characterized in that the DAC value at any time t0+k*T satisfies the relationship: DAC(t0+k*T)=DAC0+k*(N*Δ DAC+ -M*Δ DAC- ) in, k is a positive integer.
7. The method for improving the autonomous timekeeping capability of a crystal oscillator according to claim 1, characterized in that when Δt + =Δt - By setting T1, T2, Δ DAC+ and Δ DAC- Improve the autonomous timekeeping capability of the crystal oscillator.
8. A device for improving the autonomous timekeeping capability of a crystal oscillator, characterized in that the device uses a method of periodically polarizing and modulating a DAC value to improve the autonomous timekeeping capability of the crystal oscillator; the DAC value is a control signal of a voltage control terminal of the crystal oscillator, and the specific steps of the method of periodically polarizing and modulating the DAC value include: From the moment t0 when the crystal oscillator changes from the taming state to the autonomous timekeeping state, within the T1 time period, every first time interval Δt + , increase the DAC value step by step by Δ DAC+ ; During the T2 period starting from the time t0+T1, every second time interval Δt - , the DAC value is decreased step by step by Δ DAC- ; Similarly, the DAC value changes slowly with a period of T=T1+T2; The voltage control voltage of the crystal oscillator is changed by using a periodically and slowly changing DAC value, and the crystal oscillator frequency is fine-tuned to compensate for the phase deviation caused by the aging rate of the crystal oscillator itself and the frequency-temperature characteristics, thereby improving the autonomous timing accuracy of the crystal oscillator.
Citation Information
Patent Citations
Navigation satellite high-precision time service system with constant temperature circuit and method
CN105446128A
Punctuality metering precision improving method and circuit
CN111010174A
Frequency calibration method and system of constant temperature crystal oscillator
CN115694413A
High-precision time interval measuring instrument based on GNSS and TDC-GPX2
CN117311128A
Real-time correction method for constant-temperature crystal oscillator, and electromagnetic receiver
WO2022252614A1
Cited By
High-stability crystal oscillator taming device, system and method
CN119787979A
Constant-temperature crystal oscillator time keeping method and system based on LSTM neural network
CN121995725A
