Method for improving initial frequency precision of frequency device

Through the microprocessor recording and analyzing frequency differences, predicting aging parameters, and adopting bandwidth strategies in the phase-locked loop, the initial frequency deviation and stability of high-precision frequency devices are solved, and the high accuracy and long-term stability of frequency devices are achieved. .

CN118921058AInactive Publication Date: 2024-11-08TAIMU MICROELECTRONICS TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411073872.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The initial frequency deviation of high-precision frequency devices is large, and existing solutions mainly rely on screening and manual adjustment, and the output frequency accuracy is difficult to maintain stable under different environmental conditions.

Method used

The microprocessor records the frequency difference between the external reference frequency source and the local constant temperature crystal oscillator, analyzes and fits the temperature change law, predicts the aging parameters, performs frequency correction in real time, and uses different bandwidth strategies in the phase-locked loop to achieve Fast locking and frequency stable.

Benefits of technology

It significantly improves the initial accuracy and long-term stability of frequency devices, reduces frequency drift caused by aging, and ensures high accuracy and reliability of frequency devices under different environmental conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921058A_ABST
    Figure CN118921058A_ABST
Patent Text Reader

Abstract

The invention discloses a method for improving the initial frequency precision of a frequency device, and the main points of the technical scheme are as follows: recording the frequency difference between an external reference frequency source and a local constant-temperature crystal oscillator through a microprocessor, and measuring the temperature value when the frequency difference is recorded; after the equipment is powered on and runs, the microprocessor calculates frequency deviation and performs frequency correction at the output end of the phase-locked loop; before and after the phase-locked loop is locked, the microprocessor controls the phase-locked loop to use different bandwidths, the wide bandwidth is used before locking so as to realize rapid locking, and the narrow bandwidth is used after locking so as to reduce the frequency offset of the output frequency and maintain the stability of the output frequency and the phase; through the method, the initial frequency error of the high-stability frequency device after startup can be effectively improved, the initial frequency deviation of the frequency device is remarkably reduced, the accuracy and the stability of the frequency are improved, and meanwhile, the method can also effectively eliminate the frequency deviation caused by aging of the device along with time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of crystal oscillators, and in particular to a method for improving the initial frequency accuracy of a frequency device. Background Art

[0002] Due to the limitations of various objective conditions, the actual output frequency of clock frequency control devices after power-on will be somewhat different from their nominal frequency, and the output frequency accuracy will continue to change with different usage environments and working hours. Currently, high-precision frequency devices basically use crystal oscillators as their main components. This is an advantage brought by the piezoelectric properties of crystals. However, due to subtle differences in the crystal processing process, and the characteristics of the oscillation circuit, temperature compensation or constant temperature control circuit cannot be completely consistent, the frequency accuracy of the final crystal oscillator product or its initial frequency deviation after power-on cannot be exactly the same.

[0003] Generally speaking, the initial frequency deviation of such high-precision frequency devices can reach 1ppm. The main solution currently is to select devices with smaller initial frequency deviations and better aging performance through screening methods, or to manually adjust this parameter during later maintenance. The use process is very inconvenient. To solve the above problems, we propose a method for improving the initial frequency accuracy of frequency devices. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a method for improving the initial frequency accuracy of a frequency device, thereby solving the problems raised in the background technology.

[0005] The above technical objectives of the present invention are achieved through the following technical solutions:

[0006] A method for improving the initial frequency accuracy of a frequency device comprises the following steps:

[0007] S1, recording the frequency difference between the external reference frequency source and the local constant temperature crystal oscillator through the microprocessor, and measuring the temperature value when recording the frequency difference;

[0008] S2, the microprocessor analyzes and processes the recorded data to obtain the natural frequency deviation, and stores it in the FLASH memory of the microprocessor;

[0009] S3, the microprocessor analyzes the changing rules of frequency and temperature, fits a 7th-order polynomial, and stores the correlation coefficient;

[0010] S3, the microprocessor performs prediction processing on the aging parameters;

[0011] S4. After the device is powered on, the microprocessor calculates the frequency deviation and performs frequency correction at the output of the phase-locked loop;

[0012] S5. Before and after the phase-locked loop is locked, the microprocessor controls the phase-locked loop to use different bandwidths. Before locking, a wider bandwidth is used to achieve rapid locking. After locking, a narrower bandwidth is used to reduce the frequency deviation of the output frequency and maintain the stability of the output frequency and phase.

[0013] Preferably, in step S1, the external reference frequency source is a GPS signal, a cesium atomic clock, a rubidium atomic clock or other high-precision frequency standard source.

[0014] Preferably, in step S1, the constant temperature crystal oscillator is placed in a constant temperature controlled environment to reduce the impact of ambient temperature changes on its output frequency.

[0015] Preferably, in step S2, the FLASH memory of the microprocessor is used to store the natural frequency deviation data and the correlation coefficient of the fitting polynomial.

[0016] Preferably, in the step S3, the microprocessor compensates for the frequency drift caused by aging in real time by predicting the aging parameters.

[0017] Preferably, in step S4, the phase-locked loop includes a phase frequency detector, a loop filter and a voltage controlled oscillator, and the microprocessor controls the bandwidth of the loop filter.

[0018] Furthermore, the steps S1 and S4 also include recording and monitoring changes in ambient temperature to further improve the accuracy of frequency correction.

[0019] Furthermore, the natural frequency deviation and the temperature fitting polynomial coefficients are regularly updated during the long-term operation of the device.

[0020] In summary, the present invention mainly has the following beneficial effects:

[0021] 1. The frequency difference between the external reference frequency source and the local constant temperature crystal oscillator is recorded and analyzed in real time by the microprocessor, and the frequency deviation is corrected in combination with the ambient temperature data, so that the frequency deviation can be accurately calculated and compensated, thereby significantly improving the initial accuracy of the frequency device. At the same time, the method includes the prediction and real-time compensation of aging parameters, which reduces the frequency drift caused by device aging and ensures the stability and accuracy of the frequency device in long-term use.

[0022] 2. In the frequency correction process of the phase-locked loop, different bandwidth strategies (wide bandwidth before locking, narrow bandwidth after locking) are adopted to achieve fast locking and minimization of frequency deviation, thereby improving the efficiency and accuracy of frequency locking. At the same time, the ambient temperature changes are recorded and monitored in real time, and the temperature data is combined with the frequency data for analysis, which helps to further optimize the frequency correction process, reduce the impact of ambient temperature on frequency stability, and improve the performance of the equipment under different environmental conditions.

[0023] 3. By regularly updating the inherent frequency deviation and temperature fitting polynomial coefficients, the long-term accuracy and stability of the frequency device are maintained, and the reliability of the equipment in long-term operation is improved.

[0024] These measures significantly reduce the initial frequency deviation of the frequency device and improve the frequency accuracy and stability, thus meeting the needs of high-precision applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a principle block diagram of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the described embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0027] The following examples are used to illustrate the present invention, but they cannot be used to limit the scope of protection of the present invention. The conditions in the examples can be further adjusted according to specific conditions. Simple improvements to the method of the present invention under the premise of the concept of the present invention belong to the scope of protection claimed in the present invention.

[0028] refer to Figure 1 , a method for improving the initial frequency accuracy of a frequency device, comprising the following steps:

[0029] S1, recording the frequency difference between the external reference frequency source and the local constant temperature crystal oscillator through the microprocessor, and measuring the temperature value when recording the frequency difference;

[0030] S2, the microprocessor analyzes and processes the recorded data to obtain the natural frequency deviation, and stores it in the FLASH memory of the microprocessor;

[0031] S3, the microprocessor analyzes the changing rules of frequency and temperature, fits a 7th-order polynomial, and stores the correlation coefficient;

[0032] S3, the microprocessor performs prediction processing on the aging parameters;

[0033] S4. After the device is powered on, the microprocessor calculates the frequency deviation and performs frequency correction at the output of the phase-locked loop;

[0034] S5. Before and after the phase-locked loop is locked, the microprocessor controls the phase-locked loop to use different bandwidths. Before locking, a wider bandwidth is used to achieve rapid locking. After locking, a narrower bandwidth is used to reduce the frequency deviation of the output frequency and maintain the stability of the output frequency and phase.

[0035] Example 1

[0036] The frequency comparison calibration method is adopted to adjust the output frequency of the oven controlled crystal oscillator (OCXO) by comparing with the external reference frequency source and adjusting the frequency comparison phase to eliminate the frequency error of the oven controlled crystal oscillator itself.

[0037] An example implementation of the adaptive calibration algorithm is as follows:

[0038]

[0039]

[0040] The calibrator calculates the calibration correction amount based on the frequency measurement value output by the OCXO and the measurement value of the phase-locked loop, and determines whether calibration is required based on whether the frequency error is within a set tolerance range.

[0041] Example 2

[0042] The high-precision temperature sensor measures the temperature changes during operation in a timely manner and automatically adjusts the control parameters of the constant temperature crystal oscillator to achieve frequency calibration and stabilization.

[0043] In order to improve the stability of the output of the adaptive calibration algorithm, considering the dynamics of the system and the real-time changes of the target, fuzzy logic control is used to enhance the robustness of the adaptive calibration algorithm:

[0044]

[0045]

[0046]

[0047] Example 3

[0048] Automatically monitor and calibrate the real-time frequency deviation online, and store and memorize it regularly. After restarting, these stored data can be used to quickly adjust the output frequency of the constant temperature crystal oscillator to ensure the output frequency accuracy in the absence of a reference source.

[0049] Example 4

[0050] Periodic frequency calibration to prevent frequency drift and performance degradation.

[0051] Example 5

[0052] Frequency change prediction: Use the recorded data during operation to predict the frequency change without a reference clock to improve frequency accuracy;

[0053] After a frequency device has been running for a period of time, the frequency change caused by device aging tends to be linear in a short time, and this frequency change value can be compensated by a simple linearization prediction.

[0054] The implementation example is as follows:

[0055] import pandas as pd

[0056] import numpy as np

[0057] import matplotlib.pyplot as plt

[0058] from sklearn.model_selection import train_test_split

[0059] from sklearn.linear_model import LinearRegression

[0060] from sklearn.metrics import mean_squared_error,r2_score

[0061] #Read data

[0062] data = pd.read_csv('aging_data.csv')#Data is saved in the aging_data.csv file

[0063] X = data[['temperature','humidity','stress']] # Features

[0064] y = data['resistance'] # aging characteristics

[0065] #Data segmentation

[0066] X_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.2,random_state=42)

[0067] #Build and fit a linear regression model

[0068] model=LinearRegression()

[0069] model.fit(X_train,y_train)

[0070] #predict

[0071] y_pred_train=model.predict(X_train)

[0072] y_pred_test=model.predict(X_test)

[0073] #Model evaluation

[0074] print('Training R^2:',r2_score(y_train,y_pred_train))

[0075] print('Test R^2:',r2_score(y_test,y_pred_test))

[0076] print('Mean Squared Error:',mean_squared_error(y_test,y_pred_test))#Residual analysis

[0077] residuals=y_test-y_pred_test

[0078] plt.figure(figsize=(10,6))

[0079] plt.scatter(y_pred_test,residuals)

[0080] plt.axhline(y=0,color='r',linestyle='--')

[0081] plt.xlabel('Predicted Values'

[0082] import pandas as pd

[0083] import numpy as np

[0084] import matplotlib.pyplot as plt

[0085] from sklearn.model_selection import train_test_split

[0086] from sklearn.linear_model import LinearRegression

[0087] from sklearn.metrics import mean_squared_error,r2_score

[0088] In summary, we can express the initial frequency deviation as follows:

[0089] Δf0=Δf d +Δf t +Δf a

[0090] Where: Δf0: total initial frequency deviation after each last time;

[0091] Δf d :Frequency deviation caused by design, physical devices and processing.

[0092] Δf t : Frequency deviation caused by temperature changes during operation.

[0093] Δf a : Frequency deviation due to device aging.

[0094] The present invention uses a pre-learning and online monitoring method to store the value in real time, and compensates this part of the inherent frequency deviation value through a phase-locked loop at the output end;

[0095] Online timely high-precision temperature measurement, using the frequency-temperature relationship curve to calculate and compensate in the output phase-locked loop;

[0096] Online aging data monitoring, predicting aging change data, and compensating aging data based on the frequency-time relationship after restarting;

[0097] Control the bandwidth of the phase-locked loop. When the loop is not locked, a larger bandwidth is used to accelerate the locking of the loop, thereby accelerating the output frequency to reach stability and achieve a small frequency deviation. After locking, the loop bandwidth is controlled to be reduced, thereby reducing the jitter of the output frequency and achieving high stability;

[0098] Through the above method, the initial frequency error of the high-stable frequency device after startup can be effectively improved. After measurement, the error can be controlled at the order of 10-9, which can meet the requirements of the ppb level. For application scenarios with an external 1PPS reference source or IEEE1588, it can effectively solve the frequency output accuracy before locking the 1PPS or IEEE1588 main reference source and speed up the locking process.

[0099] Although the embodiments of the present invention have been shown and described, it is understandable to those skilled in the art that, unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the usual meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "including" or "comprising" and the like used in the present invention mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. The words "connect" or "connected" and the like are not limited to physical or mechanical connections, but may also include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to indicate relative position relationships. When the absolute position of the described object changes, the relative position relationship may also change accordingly.

[0100] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for improving the initial frequency accuracy of a frequency device, characterized in that: The following steps are involved: S1, recording the frequency difference between the external reference frequency source and the local constant temperature crystal oscillator through the microprocessor, and measuring the temperature value when recording the frequency difference; S2, the microprocessor analyzes and processes the recorded data to obtain the natural frequency deviation, and stores it in the FLASH memory of the microprocessor; S3, the microprocessor analyzes the changing rules of frequency and temperature, fits a 7th-order polynomial, and stores the correlation coefficient; S3, the microprocessor performs prediction processing on the aging parameters; S4. After the device is powered on, the microprocessor calculates the frequency deviation and performs frequency correction at the output of the phase-locked loop; S5. Before and after the phase-locked loop is locked, the microprocessor controls the phase-locked loop to use different bandwidths. Before locking, a wider bandwidth is used to achieve rapid locking. After locking, a narrower bandwidth is used to reduce the frequency deviation of the output frequency and maintain the stability of the output frequency and phase.

2. A method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: In the step S1, the external reference frequency source is a GPS signal, a cesium atomic clock, a rubidium atomic clock or other high-precision frequency standard source.

3. A method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: In step S1, the constant temperature crystal oscillator is placed in a constant temperature controlled environment to reduce the impact of ambient temperature changes on its output frequency.

4. A method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: In the step S2, the FLASH memory of the microprocessor is used to store the natural frequency deviation data and the correlation coefficient of the fitting polynomial.

5. The method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: In step S3, the microprocessor compensates for the frequency drift caused by aging in real time by predicting the aging parameters.

6. A method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: In the step S4, the phase-locked loop includes a phase frequency detector, a loop filter and a voltage controlled oscillator, and the microprocessor controls the bandwidth of the loop filter.

7. A method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: The steps S1 and S4 also include recording and monitoring the changes in ambient temperature to further improve the accuracy of frequency correction.

8. The method for improving the initial frequency accuracy of a frequency device according to claim 1, characterized in that: The natural frequency deviation and temperature fitting polynomial coefficients are updated regularly during the long-term operation of the equipment.