Adaptive adjustment method and system for oscillator frequency and storage medium

By loading the temperature compensation table in a high-precision oscillator and adjusting the resonant capacitance using a dichotomy, combining an adaptive PID controller and a dual-mode adjustment mechanism, the frequency is corrected based on the self-learning and aging trend prediction algorithm, the synergistic contradiction between the accuracy, range and stability of the oscillator is solved, and the oscillator frequency adjustment with high precision and long-term stability is achieved.

CN120074381AActive Publication Date: 2025-05-30深圳扬兴科技有限公司

Patent Information

Application Number
CN202510554363.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-05-30
Estimated Expiration
2045-04-29

AI Technical Summary

Technical Problem

There are synergistic contradictions between high-precision, wide range and fast response in existing high-precision oscillators, and there are significant bottlenecks in long-term stability maintenance, making it difficult to take into account both accuracy and stability.

Method used

By loading the pre-stored temperature compensation table during the system initialization phase and adjusting the resonant capacitor through dichotomy, combining the frequency divider configuration reference clock, adaptive PID controller and dual-mode adjustment mechanism, the frequency is corrected based on the self-learning temperature compensation and aging trend prediction algorithm.

Benefits of technology

It improves the accuracy and stability of the oscillator frequency, meets the needs of high-end scenarios, and avoids the problems of starting up drift and long-term stability in traditional solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120074381A_ABST
    Figure CN120074381A_ABST
Patent Text Reader

Abstract

The invention provides a self-adaptive adjustment method and system for oscillator frequency and a storage medium, and the method comprises the steps: firstly, loading a pre-stored temperature compensation table in a system initialization stage, adjusting a resonant capacitor through a dichotomy, rapidly correcting the initial frequency offset, and avoiding the problem of overlarge starting drift in a conventional scheme; secondly, a reference clock is configured through a frequency divider, a double-edge trigger phase discrimination mechanism is adopted, and the phase difference detection precision is improved; then, through a self-adaptive PID controller, according to the error amount, dynamically distributing proportion and integral weight, forbidding differential terms in a vibration scene, and based on a dual-mode adjustment mechanism, improving response speed and control precision; finally, the frequency is corrected based on self-learning temperature compensation in combination with an aging trend prediction algorithm, and the long-term stability of the oscillator is improved; through initialization calibration, a double-edge trigger phase discrimination mechanism, a self-adaptive dynamic adjustment and dual-mode adjustment mechanism and temperature and aging compensation, the precision and stability of the frequency of the oscillator are improved, and high-end scene requirements are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of oscillators, and more particularly, to a method, system, and storage medium for adaptively adjusting the frequency of an oscillator. Background Art

[0002] High-precision oscillators are core components in systems such as communication and navigation, and their frequency stability directly affects the overall performance. Traditional solutions mostly rely on a single tuning mechanism: Voltage-controlled oscillators are tuned through varactor diodes. Although they have a fast response, they have high non-linear errors during wide-range tuning and it is difficult to balance accuracy; Mechanical fine-tuning oscillators have high accuracy, but slow response and poor vibration resistance, and cannot adapt to industrial scenarios.

[0003] Currently, high-precision oscillators with temperature compensation have emerged on the market. However, temperature compensation generally uses pre-stored fixed tables, and the long-term stability across the entire temperature range is not high; in addition, temperature characteristic drift caused by crystal aging, packaging stress, etc. is usually not considered.

[0004] In addition, designs for dynamic frequency adjustment have emerged on the market. The dynamic control currently used on the market is usually a PID algorithm with fixed parameters, which is prone to overshoot or continuous jitter problems during temperature mutations or mechanical vibrations. Although research has introduced AI prediction or 24-bit DAC in recent years to improve performance, the former requires GPU computing power support, and the latter will increase material costs, severely restricting the feasibility of mass production.

[0005] As can be seen from the above, there are synergistic contradictions in the prior art among high precision, wide range, and fast response, and there are significant bottlenecks in aspects such as long-term stability maintenance. Therefore, there is an urgent need for a frequency adjustment technology for high-precision oscillators that balances the coordination of accuracy and range, dynamically responds to improve the response speed, and improves the long-term operation stability. Summary of the Invention

[0006] In view of the above problems, the purpose of the present invention is to provide a method, system, and storage medium for adaptively adjusting the frequency of an oscillator. First, during the system initialization phase, a pre-stored temperature compensation table is loaded and the resonant capacitance is adjusted through the bisection method to quickly correct the initial frequency deviation and avoid the problem of excessive startup drift in traditional solutions; Secondly, a reference clock is configured through a frequency divider, and a double-edge triggered phase discrimination mechanism is adopted to improve the phase difference detection accuracy; Then, through an adaptive PID controller, the proportional and integral weights are dynamically allocated according to the error amount and the differential term is disabled in the vibration scenario, and then based on a dual-mode adjustment mechanism, the response speed and control accuracy are improved; Finally, the frequency is corrected based on self-learning temperature compensation combined with an aging trend prediction algorithm to improve the long-term stability of the oscillator; The present invention improves the accuracy and stability of the oscillator frequency through initialization calibration, double-edge triggered phase discrimination mechanism, adaptive dynamic adjustment and dual-mode adjustment mechanism, temperature and aging compensation, meeting the requirements of high-end scenarios.

[0007] The first aspect of the present invention provides a method for adaptively adjusting the oscillator frequency, the method comprising: Obtaining first temperature information and first frequency information of the oscillator; Initializing a varactor diode and a digital potentiometer based on a temperature tuning parameter correspondence table; Obtaining a temperature compensation superposition amount of a feedback control algorithm according to the first temperature information and a preset temperature compensation coefficient; Obtaining first frequency deviation information according to the first frequency information and target frequency information; Adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information; Judging whether the absolute value of the first frequency deviation information is greater than a preset first deviation threshold; If so, obtaining first tuning resistor information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer; If not, obtaining first tuning capacitor information according to the first frequency deviation information and a preset second feedback control algorithm for adjusting the varactor diode.

[0008] In this solution, the initializing the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes: Searching a preset temperature tuning parameter correspondence table according to the first temperature information to obtain second tuning capacitor information; Initializing and configuring the varactor diode according to the second tuning capacitor information; Setting the resistance value of the digital potentiometer to a middle value and initializing a resistance adjustment step; Waiting for a preset first delay time to obtain second frequency deviation information; Judging whether the second frequency deviation information is less than a preset second deviation threshold; If so, ending the initialization of the digital potentiometer; If not, reducing the resistance adjustment step according to a preset reduction ratio, and configuring the digital potentiometer according to the second frequency deviation information and the updated resistance adjustment step.

[0009] In this solution, the obtaining the first frequency deviation information according to the first frequency information and the target frequency information further includes: Obtaining a frequency division ratio according to a frequency reference of the oscillator and the target frequency information; Determining a frequency division coefficient according to the frequency division ratio and configuring a frequency division mode based on a preset communication interface; Obtaining the first frequency information based on a preset first sampling period through a phase discriminator and an analog-to-digital converter; When the number of acquisitions exceeds a preset number threshold, obtaining second frequency information based on a preset filter; Calculate the difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.

[0010] In this solution, adjusting the coefficient weights of the feedback control algorithm according to the first frequency deviation information specifically includes: Obtain the absolute value of the deviation according to the first frequency deviation information; Judge whether the absolute value of the deviation is less than a preset second deviation threshold; If so, keep the default proportionality coefficient; If not, increase the proportionality coefficient based on a preset first linear algorithm; Obtain the first time information of the deviation; Judge whether the first time information is less than a preset time threshold; If so, keep the integral coefficient unchanged; If not, increase the integral coefficient based on a preset second linear algorithm.

[0011] This solution further includes: Obtain the first acceleration information of the environmental vibration sensor; Judge whether the first acceleration information is less than a preset acceleration threshold; If so, keep the differential coefficient unchanged; If not, disable the differential coefficient.

[0012] This solution further includes: Judge whether the absolute value of the deviation is less than a preset dead zone threshold; If not, set the first frequency deviation information to zero; If so, update the first frequency deviation information based on the product of a preset deviation proportionality factor and the first frequency deviation information.

[0013] In the second aspect of the present invention, an adaptive adjustment system for oscillator frequency is provided, including an adaptive adjustment method program for oscillator frequency. When the adaptive adjustment method program for oscillator frequency is executed by the processor, the following steps are implemented: Obtain the first temperature information and the first frequency information of the oscillator; Initialize the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table; Obtain the temperature compensation superposition amount of the feedback control algorithm according to the first temperature information and a preset temperature compensation coefficient; Obtain the first frequency deviation information according to the first frequency information and the target frequency information; Adjust the coefficient weights of the feedback control algorithm according to the first frequency deviation information; Determine whether the absolute value of the first frequency deviation information is greater than a preset first deviation threshold; If so, obtain first tuning resistor information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer; If not, obtain first tuning capacitor information according to the first frequency deviation information and a preset second feedback control algorithm for adjusting the varactor diode.

[0014] In this solution, initializing the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes: According to the first temperature information, look up a preset temperature tuning parameter correspondence table to obtain second tuning capacitor information; Initialize and configure the varactor diode according to the second tuning capacitor information; Set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step; Wait for a preset first delay time to obtain second frequency deviation information; Determine whether the second frequency deviation information is less than a preset second deviation threshold; If so, end the initialization of the digital potentiometer; If not, reduce the resistance adjustment step according to a preset reduction ratio, and configure the digital potentiometer according to the second frequency deviation information and the updated resistance adjustment step.

[0015] In this solution, obtaining the first frequency deviation information according to the first frequency information and the target frequency information further includes: Obtain a frequency division ratio according to the frequency reference of the oscillator and the target frequency information; Determine a frequency division coefficient according to the frequency division ratio and configure a frequency division mode based on a preset communication interface; Based on a preset first sampling period, obtain first frequency information through a phase discriminator and an analog-to-digital converter; When the number of acquisitions exceeds a preset number threshold, obtain second frequency information based on a preset filter; Calculate the difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.

[0016] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for an adaptive adjustment method of an oscillator frequency. When the program for the adaptive adjustment method of the oscillator frequency is executed by a processor, the steps of the adaptive adjustment method of the oscillator frequency as described in any one of the above are implemented.

[0017] The present invention provides a method, a system and a storage medium for adaptively adjusting the oscillator frequency. Firstly, during the system initialization phase, a pre-stored temperature compensation table is loaded and the resonant capacitance is adjusted by the bisection method to quickly correct the initial frequency deviation and avoid the problem of excessive startup drift in the traditional scheme. Secondly, the reference clock is configured through a frequency divider, and a double-edge triggered phase discrimination mechanism is adopted to improve the phase difference detection accuracy. Then, through an adaptive PID controller, the proportional and integral weights are dynamically allocated according to the error amount and the differential term in the vibration scenario is disabled. Based on the dual-mode adjustment mechanism, the response speed and control accuracy are improved. Finally, the frequency is corrected based on self-learning temperature compensation combined with the aging trend prediction algorithm to improve the long-term stability of the oscillator. The present invention improves the accuracy and stability of the oscillator frequency through initialization calibration, double-edge triggered phase discrimination mechanism, adaptive dynamic adjustment, dual-mode adjustment mechanism, temperature and aging compensation, meeting the requirements of high-end scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the scope.

[0019] Figure 1 The flowchart of a method for adaptively adjusting the oscillator frequency according to the present invention is shown; Figure 2 The initialization flowchart of the varactor diode and the digital potentiometer provided by the embodiment of the present invention is shown; Figure 3 The calculation flowchart of the first frequency deviation information provided by the embodiment of the present invention is shown; Figure 4 The block diagram of a system for adaptively adjusting the oscillator frequency according to the present invention is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0021] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meaning as commonly understood by those of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in a general dictionary should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and should not be interpreted in an idealized or overly formal sense unless clearly defined in the embodiments of the present invention.

[0022] In the embodiments of the present invention, words such as "first", "second" and the like do not denote any order, quantity or importance, but are only used to distinguish different components. Words such as "a", "an" or "the" do not denote a quantity limitation either, but mean that there is at least one. Similarly, words such as "comprising" or "including" mean that the elements or objects appearing before this word cover the elements or objects listed after this word and their equivalents, without excluding other elements or objects. Words such as "connected" or "coupled" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiments of the present invention do not necessarily need to be carried out precisely in sequence. On the contrary, various steps can be carried out in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or one or several steps can be removed from these processes.

[0023] In addition, in each embodiment of the present invention, each functional module can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.

[0024] Figure 1 The flowchart of an adaptive adjustment method for the oscillator frequency of the present invention is shown.

[0025] As Figure 1 shown, in the first aspect of the present invention, an adaptive adjustment method for the oscillator frequency is disclosed, and the method includes: S102, obtaining first temperature information and first frequency information of the oscillator; S104, initializing a varactor diode and a digital potentiometer based on a temperature tuning parameter correspondence table; S106, obtaining a temperature compensation superposition amount of a feedback control algorithm according to the first temperature information and a preset temperature compensation coefficient; S108, obtaining first frequency deviation information according to the first frequency information and target frequency information; (sliding filtering) S110, adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information; S112, determining whether the absolute value of the first deviation information is greater than a preset first deviation threshold; S114, if yes, obtaining first tuning resistance information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer; S116, if not, obtaining first tuning capacitance information according to the first frequency deviation information and a preset second feedback control algorithm for adjusting the varactor diode.

[0026] It should be noted that the first temperature information is the real-time temperature value of the oscillator; the first frequency information is the real-time output frequency of the oscillator; the first frequency deviation information is the algorithmic difference between the real-time output frequency of the oscillator and the target frequency; the first tuning capacitance information is the target configured capacitance value of the varactor diode; the first tuning resistance information is the target configured resistance value of the digital potentiometer; the feedback control algorithm includes a first feedback control algorithm and a second feedback control algorithm; the first feedback control algorithm is used to calculate the control amount of the digital potentiometer; the second feedback control algorithm is used to calculate the control amount of the varactor diode.

[0027] In this embodiment, first, based on the temperature information and the initial frequency of the oscillator, the varactor diode and the digital potentiometer are initialized so that the output frequency of the oscillator is close to the target frequency to improve the efficiency of frequency adjustment. Secondly, based on the real-time temperature value of the oscillator and the preset temperature compensation system, the real-time temperature compensation amount is calculated according to the preset temperature acquisition period; then, based on the arithmetic superposition calculation of the temperature compensation amount, the temperature compensation superposition amount is obtained, which is used to compensate the control amount output by the feedback control algorithm to improve the sensitivity of the oscillator to temperature. Then, based on the preset adaptive adjustment control coefficient mechanism, according to the first frequency deviation information, the coefficient weights of the feedback control algorithm are adjusted in real time, including but not limited to the proportional coefficient, the integral coefficient, and the differential coefficient. Finally, based on the preset dual-mode hierarchical tuning mechanism, according to the first frequency deviation information, the corresponding adjustment mode is selected: when the absolute value of the first deviation information is greater than the preset first deviation threshold, enter the coarse tuning mode, and based on the preset first feedback control algorithm, obtain the first tuning resistance information for adjusting the digital potentiometer; when the absolute value of the first deviation information is not greater than the preset first deviation threshold, enter the fine tuning mode, and based on the preset second feedback control algorithm, obtain the first tuning capacitance information for adjusting the varactor diode. The dual-mode hierarchical tuning mechanism is adopted to improve the efficiency and stability of frequency adjustment.

[0028] Figure 2 Shows the initialization flowchart of the varactor diode and the digital potentiometer provided by the embodiment of the present invention.

[0029] According to the embodiment of the present invention, as Figure 2 shown, the initialization of the varactor diode and the digital potentiometer based on the temperature-tuning parameter correspondence table further includes: S202, according to the first temperature information, look up the preset temperature-tuning parameter correspondence table to obtain the second tuning capacitance information; S204, initialize and configure the varactor diode according to the second tuning capacitance information; S206, set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step; S208, Wait for a preset first delay time and obtain second frequency deviation information; S210, Determine whether the second frequency deviation information is less than a preset second deviation threshold; S212, If so, end the initialization of the digital potentiometer; S214, If not, then decrease the resistance adjustment step by a preset reduction ratio, and configure the digital potentiometer according to the second frequency deviation information and the updated resistance adjustment step.

[0030] It should be noted that the second tuning capacitor information is the initial capacitance value of the varactor diode; the first delay time is the waiting delay for the oscillator frequency response after the digital potentiometer is adjusted; the second frequency deviation information is the arithmetic difference between the real-time output frequency of the oscillator and the target frequency.

[0031] This embodiment provides an initialization process for a varactor diode and a digital potentiometer. Specifically: according to the first temperature information, look up a preset temperature tuning parameter correspondence table to obtain second tuning capacitor information for initializing and configuring the varactor diode; set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step; obtain second frequency deviation information according to a preset first delay time; if the second frequency deviation information is not less than a preset second deviation threshold, then decrease the resistance adjustment step and continue to adjust the digital potentiometer.

[0032] In this embodiment, based on the temperature value of the oscillator, the initialization parameters of the varactor diode are determined to improve the temperature sensitivity of the oscillator. Then, the digital potentiometer is adjusted by the dichotomy method to make the output frequency reach the preset frequency range, improving the initialization efficiency. Among them, the dichotomy method is specifically: first, set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step to half of the adjustable range of the digital potentiometer resistance value; then, after waiting for the delay duration of the oscillator response, measure and calculate the real-time deviation between the output frequency and the target frequency; finally, if the real-time deviation is less than the preset threshold, it means the initialization is completed; otherwise, the resistance adjustment step will be decreased according to a preset ratio, and after adjusting the digital potentiometer according to the real-time deviation, measure the real-time deviation again for comparison and judgment. Among them, as an implementation manner, when the decrease ratio is 50%, it meets the complete dichotomy requirement.

[0033] Figure 3 Shows the calculation flowchart of the first frequency deviation information provided by the embodiment of the present invention.

[0034] According to the embodiment of the present invention, as Figure 3 shown, obtaining the first frequency deviation information according to the first frequency information and the target frequency information further includes: S302, Obtain a frequency division ratio according to the frequency reference of the oscillator and the target frequency information; S304. Determine the frequency division coefficient according to the frequency division ratio, and configure the frequency division mode based on a preset communication interface. S306. Based on a preset first sampling period, obtain first frequency information through a phase detector and an analog-to-digital converter. S308. When the number of acquisitions exceeds a preset quantity threshold, obtain second frequency information based on a preset filter. S310. Calculate the difference between the second frequency information and the target frequency information to obtain first frequency deviation information.

[0035] It should be noted that in this embodiment, first, the frequency division ratio is obtained according to the division result of the target frequency and the theoretical frequency reference value of the oscillator. Secondly, based on the frequency division ratio, the frequency division coefficient is calculated in the way of rounding up or rounding down to configure the frequency division parameter, that is, to determine the frequency division mode. Then, according to a preset first sampling period, a double-edge triggered phase detector is used for measurement, and the output voltage of the phase detector is converted by an analog-to-digital converter to obtain an analog-to-digital conversion value. Then, according to the first sampling period and the analog-to-digital conversion value, the first frequency information is obtained; wherein, the sampling frequency is at least twice the target frequency. Finally, when the number of acquisitions of the first frequency information exceeds a preset quantity threshold, filtering is performed through a preset filter to obtain second frequency information for calculating the difference with the target frequency information to obtain first frequency deviation information; wherein, the filter includes but is not limited to Butterworth filter, Chebyshev filter, and Bessel filter.

[0036] According to an embodiment of the present invention, adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information is specifically as follows: Obtain the absolute value of the deviation according to the first frequency deviation information. Judge whether the absolute value of the deviation is less than a preset second deviation threshold. If so, maintain the default proportional coefficient. If not, increase the proportional coefficient based on a preset first linear algorithm. Obtain the first time information of the deviation. Judge whether the first time information is less than a preset time threshold. If so, keep the integral coefficient unchanged. If not, increase the integral coefficient based on a preset second linear algorithm.

[0037] It should be noted that the first time information is the duration of the deviation, that is, the duration when the absolute value of the deviation is greater than the dead zone threshold. This embodiment provides an adjustment process for the proportional coefficient and the integral coefficient in an adaptive adjustment control coefficient mechanism. For the proportional coefficient, it is judged whether the absolute value of the first frequency deviation information is less than a preset second deviation threshold; if so, it means that the deviation value is within the set range and the proportional coefficient does not need to be adjusted; if not, it means that the deviation value is too large and the proportional coefficient needs to be increased to increase the response amplitude of the feedback control algorithm and improve the adjustment efficiency. For the integral coefficient, it is adjusted based on the stability of the first frequency deviation information. Specifically, it is judged whether the first time information is less than a preset time threshold; if so, it means that the time when the absolute value of the deviation exceeds the stable interval is short and it is determined to tend to be stable, so the integral coefficient remains unchanged; if not, it means that the time when the absolute value of the deviation exceeds the stable interval is long and it is determined to be in an unstable state, so the integral coefficient is increased to improve the sensitivity of the feedback control algorithm to the accumulated deviation, thereby improving the stability of the oscillator output frequency.

[0038] According to an embodiment of the present invention, it further includes: Obtain the first acceleration information of the environmental vibration sensor; Judge whether the first acceleration information is less than a preset acceleration threshold; If so, keep the differential coefficient unchanged; If not, disable the differential coefficient.

[0039] It should be noted that this embodiment provides a process for adjusting the differential coefficient based on the environmental vibration condition. The acceleration information of the oscillator is measured by the environmental vibration sensor, and the first acceleration information represents the vibration condition of the device where the oscillator is located. Judge whether the first acceleration information is less than a preset acceleration threshold; if so, it means that the vibration state of the working environment of the oscillator is within the allowable range, and at this time the differential coefficient is kept to improve the sensitivity of the oscillator frequency adjustment; if not, it means that the vibration frequency or amplitude of the working environment of the oscillator is too large, and at this time the differential coefficient is disabled to avoid misadjustment.

[0040] According to an embodiment of the present invention, it further includes: Judge whether the absolute value of the deviation is less than a preset dead zone threshold; If not, set the first deviation information to zero; If so, update the first deviation information based on the product of a preset deviation ratio factor and the first deviation information.

[0041] It should be noted that the dead zone threshold is the absolute value range of the set allowable deviation, that is, the deviation less than the dead zone threshold is considered within the reasonable error range. In this embodiment, by setting the dead zone threshold, the fault tolerance rate of operations such as measurement and filtering calculation is improved. In this embodiment, if the absolute value of the deviation is less than the preset dead zone threshold, the first deviation information is set to zero, indicating that the output frequency of the oscillator does not need to be adjusted. If the absolute value of the deviation is not less than the preset dead zone threshold, the first deviation information is updated based on the product of the preset deviation proportionality factor and the first deviation information to accelerate the efficiency of feedback control convergence.

[0042] It is worth mentioning that a hierarchical tuning mechanism is also included, specifically: When in the coarse tuning mode; Set the adjustment time period to the preset period reference value; According to the first deviation information and the preset first feedback control algorithm, obtain the resistance control amount; Adjust the digital potentiometer according to the resistance control amount; When in the fine tuning mode; According to the first deviation information and the preset second feedback control algorithm, obtain the capacitance control amount; Adjust the DAC output voltage according to the capacitance control amount to adjust the varactor diode.

[0043] It should be noted that when in the coarse tuning mode, due to the response delay of the oscillator after the digital potentiometer is adjusted, the adjustment period of the digital potentiometer needs to be set based on the response delay. Then, according to the first feedback control algorithm, the resistance control amount is obtained to update the parameters of the digital potentiometer. When in the fine tuning mode, the capacitance value is adjusted by adjusting the voltage value of the control terminal of the varactor diode. According to the preset second feedback control algorithm, the capacitance control amount is obtained to adjust the digital value of the control terminal voltage; then, based on the digital-to-analog converter (DAC), the digital value of the control terminal voltage is converted into an analog value, and further the capacitance value of the varactor diode is adjusted.

[0044] It is worth mentioning that the temperature compensation mechanism further includes: Record the duration during which the absolute value of the deviation is less than the third deviation threshold to obtain the second time information; Judge whether the second time information is greater than the preset second time threshold; If so, record the relationship between the current temperature and frequency as new data; Perform weighted averaging on the new data and the historical data to update the compensation table.

[0045] It should be noted that this embodiment provides a temperature compensation self - learning mechanism. When the absolute value of the deviation between the oscillator output frequency and the target frequency is less than the third deviation threshold, it is considered to be in a temperature - frequency stable state, and the duration of being in the temperature - frequency stable state is recorded, that is, the second time information. If the second time information is greater than the preset second time threshold, it means that the current frequency has stabilized, that is, the relationship between the current temperature and frequency is recorded as new data. Finally, based on the new data and historical data, weighted averaging is performed to update the compensation table to achieve self - learning, so as to improve the adaptability of the oscillator to the actual use environment.

[0046] It is worth mentioning that it also includes an aging drift compensation mechanism, specifically: Based on a preset aging calibration period, perform a reference frequency calibration step, which specifically includes: disconnecting the external control loop and connecting a high - precision atomic clock as a reference source; recording the current frequency deviation and updating the varactor diode bias reference value; Based on the frequency drift historical data, perform a drift amount prediction step, which specifically includes: analyzing the frequency drift historical data for a preset duration, fitting to obtain an aging curve; predicting the aging drift amount based on the aging curve and injecting a feedback control algorithm in advance.

[0047] It should be noted that this embodiment includes reference frequency calibration and aging drift amount prediction. Based on a preset aging calibration period, the oscillator is calibrated using a high - precision atomic clock as a reference source, recording the current frequency deviation and updating the varactor diode bias reference value. Fitting is performed based on the frequency drift historical data for a preset duration. For example, according to the frequency drift data in the past 30 days, a linear aging curve is fitted by the least - squares method; then the drift amount is predicted based on the aging curve to adjust the control amount output by the feedback control algorithm to achieve forward - looking compensation.

[0048] Figure 4 The block diagram of an adaptive adjustment system for the oscillator frequency of the present invention is shown.

[0049] As Figure 4 shown, the second aspect of the present invention discloses an adaptive adjustment system 4 for oscillator frequency, including a memory 41 and a processor 42. The memory includes an adaptive adjustment method program for oscillator frequency. When the adaptive adjustment method program for oscillator frequency is executed by the processor, the following steps are implemented: Obtain the first temperature information and the first frequency information of the oscillator; Initialize the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table; According to the first temperature information and the preset temperature compensation coefficient, obtain the temperature compensation superposition amount of the feedback control algorithm; According to the first frequency information and the target frequency information, obtain the first frequency deviation information; (sliding filtering) Adjust the coefficient weights of the feedback control algorithm according to the first frequency deviation information; Determine whether the absolute value of the first deviation information is greater than a preset first deviation threshold; If so, obtain first tuning resistor information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer; If not, obtain first tuning capacitor information according to the first frequency deviation information and a preset second feedback control algorithm for adjusting the varactor diode.

[0050] It should be noted that the first temperature information is the real-time temperature value of the oscillator; the first frequency information is the real-time output frequency of the oscillator; the first frequency deviation information is the algorithmic difference between the real-time output frequency of the oscillator and the target frequency; the first tuning capacitor information is the target configured capacitance value of the varactor diode; the first tuning resistor information is the target configured resistance value of the digital potentiometer; the feedback control algorithm includes a first feedback control algorithm and a second feedback control algorithm; the first feedback control algorithm is used to calculate the control amount of the digital potentiometer; the second feedback control algorithm is used to calculate the control amount of the varactor diode.

[0051] In this embodiment, first, based on the temperature information and the initial frequency of the oscillator, initialize the varactor diode and the digital potentiometer to make the output frequency of the oscillator close to the target frequency, so as to improve the efficiency of frequency adjustment. Secondly, based on the real-time temperature value of the oscillator and a preset temperature compensation system, calculate the real-time temperature compensation amount according to a preset temperature acquisition period; then perform arithmetic superposition calculation based on the temperature compensation amount to obtain a temperature compensation superposition amount for compensating the control amount output by the feedback control algorithm and improving the sensitivity of the oscillator to temperature. Then, based on a preset adaptive adjustment control coefficient mechanism, adjust the coefficient weights of the feedback control algorithm in real time according to the first frequency deviation information, including but not limited to the proportional coefficient, the integral coefficient, and the differential coefficient. Finally, based on a preset dual-mode hierarchical tuning mechanism, select a corresponding adjustment mode according to the first frequency deviation information: when the absolute value of the first deviation information is greater than a preset first deviation threshold, enter the coarse tuning mode, and obtain first tuning resistor information based on a preset first feedback control algorithm for adjusting the digital potentiometer; when the absolute value of the first deviation information is not greater than a preset first deviation threshold, enter the fine tuning mode, and obtain first tuning capacitor information based on a preset second feedback control algorithm for adjusting the varactor diode. Adopting the dual-mode hierarchical tuning mechanism improves the efficiency and stability of frequency adjustment.

[0052] According to an embodiment of the present invention, initializing the varactor diode and the digital potentiometer based on the temperature-tuning parameter correspondence table further includes: According to the first temperature information, look up the preset temperature tuning parameter correspondence table to obtain the second tuning capacitor information; Initialize and configure the varactor diode according to the second tuning capacitor information; Set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step; Wait for the preset first delay time to obtain the second frequency deviation information; Determine whether the second frequency deviation information is less than the preset second deviation threshold; If so, end the initialization of the digital potentiometer; If not, reduce the resistance adjustment step according to the preset reduction ratio, and configure the digital potentiometer according to the second frequency deviation information and the updated resistance adjustment step.

[0053] It should be noted that the second tuning capacitor information is the initial capacitance value of the varactor diode; the first delay time is the oscillator frequency response waiting delay after the digital potentiometer is adjusted; the second frequency deviation information is the arithmetic difference between the real-time output frequency of the oscillator and the target frequency.

[0054] This embodiment provides an initialization process for a varactor diode and a digital potentiometer. Specifically: according to the first temperature information, look up the preset temperature tuning parameter correspondence table to obtain the second tuning capacitor information for initializing and configuring the varactor diode; set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step; obtain the second frequency deviation information according to the preset first delay time; if the second frequency deviation information is not less than the preset second deviation threshold, reduce the resistance adjustment step and continue to adjust the digital potentiometer.

[0055] In this embodiment, based on the temperature value of the oscillator, the initialization parameters of the varactor diode are determined to improve the temperature sensitivity of the oscillator. Then, the digital potentiometer is adjusted by the dichotomy method to make the output frequency reach the preset frequency range, improving the initialization efficiency. Among them, the dichotomy method is specifically: first, set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step to half of the adjustable range of the digital potentiometer resistance value; then, after waiting for the delay duration of the oscillator response, measure and calculate the real-time deviation between the output frequency and the target frequency; finally, if the real-time deviation is less than the preset threshold, it means that the initialization is completed; otherwise, the resistance adjustment step will be reduced according to the preset ratio, and after adjusting the digital potentiometer according to the real-time deviation, the real-time deviation will be measured and compared again. Among them, as an implementation method, when the reduction ratio is 50%, it meets the complete dichotomy requirement.

[0056] According to an embodiment of the present invention, the obtaining of the first frequency deviation information according to the first frequency information and the target frequency information further includes: Obtain a frequency division ratio based on the frequency reference of the oscillator and the target frequency information; Determine a frequency division coefficient according to the frequency division ratio, and configure a frequency division mode based on a preset communication interface; Based on a preset first sampling period, obtain first frequency information through a phase discriminator and an analog-to-digital converter; When the number of acquisitions exceeds a preset number threshold, obtain second frequency information based on a preset filter; Calculate the difference between the second frequency information and the target frequency information to obtain first frequency deviation information.

[0057] It should be noted that in this embodiment, first, obtain a frequency division ratio according to the division result of the target frequency and the theoretical frequency reference value of the oscillator. Secondly, based on the frequency division ratio, calculate a frequency division coefficient in a way of rounding up or down to configure frequency division parameters, that is, determine the frequency division mode. Then, according to a preset first sampling period, use a double-edge triggered phase discriminator to measure, convert the output voltage of the phase discriminator through an analog-to-digital converter to obtain an analog-to-digital conversion value, and then obtain first frequency information according to the first sampling period and the analog-to-digital conversion value; where the sampling frequency is at least twice the target frequency. Finally, when the number of acquisitions of the first frequency information exceeds a preset number threshold, filter through a preset filter to obtain second frequency information for calculating the difference from the target frequency information to obtain first frequency deviation information; where the filter includes but is not limited to Butterworth filter, Chebyshev filter, and Bessel filter.

[0058] According to an embodiment of the present invention, adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information specifically includes: Obtain an absolute value of the deviation according to the first frequency deviation information; Judge whether the absolute value of the deviation is less than a preset second deviation threshold; If so, keep the default proportional coefficient; If not, increase the proportional coefficient based on a preset first linear algorithm; Obtain first time information of the deviation; Judge whether the first time information is less than a preset time threshold; If so, keep the integral coefficient unchanged; If not, increase the integral coefficient based on a preset second linear algorithm.

[0059] It should be noted that the first time information is the duration of the deviation, that is, the duration when the absolute value of the deviation is greater than the dead zone threshold. This embodiment provides an adjustment process for the proportional coefficient and the integral coefficient in an adaptive adjustment control coefficient mechanism. For the proportional coefficient, it is judged whether the absolute value of the first frequency deviation information is less than a preset second deviation threshold; if so, it means that the deviation value is within the set range and there is no need to adjust the proportional coefficient; if not, it means that the deviation value is too large and the proportional coefficient needs to be increased to increase the response amplitude of the feedback control algorithm and improve the adjustment efficiency. For the integral coefficient, it is adjusted based on the stability of the first frequency deviation information. Specifically: it is judged whether the first time information is less than a preset time threshold; if so, it means that the time when the absolute value of the deviation exceeds the stable interval is short and it is determined to tend to be stable, then the integral coefficient remains unchanged; if not, it means that the time when the absolute value of the deviation exceeds the stable interval is long and it is determined to be in an unstable state, then the integral coefficient is increased to improve the sensitivity of the feedback control algorithm to the cumulative deviation, thereby improving the stability of the oscillator output frequency.

[0060] According to an embodiment of the present invention, it further includes: Obtain the first acceleration information of the environmental vibration sensor; Judge whether the first acceleration information is less than a preset acceleration threshold; If so, keep the differential coefficient unchanged; If not, disable the differential coefficient.

[0061] It should be noted that this embodiment provides a process for adjusting the differential coefficient based on the environmental vibration situation. The acceleration information of the oscillator is measured by the environmental vibration sensor, and the first acceleration information represents the vibration situation of the device where the oscillator is located. Judge whether the first acceleration information is less than a preset acceleration threshold; if so, it means that the vibration state of the working environment of the oscillator is within the allowable range, and at this time the differential coefficient is kept to improve the sensitivity of the oscillator frequency adjustment; if not, it means that the vibration frequency or amplitude of the working environment of the oscillator is too large, and at this time the differential coefficient is disabled to avoid misadjustment.

[0062] According to an embodiment of the present invention, it further includes: Judge whether the absolute value of the deviation is less than a preset dead zone threshold; If not, set the first deviation information to zero; If so, update the first deviation information based on the product of a preset deviation proportional factor and the first deviation information.

[0063] It should be noted that the dead zone threshold is the absolute value range of the set allowable deviation, that is, the deviation less than the dead zone threshold is considered within the reasonable error range. In this embodiment, by setting the dead zone threshold, the fault tolerance rate of operations such as measurement and filtering calculation is improved. In this embodiment, if the absolute value of the deviation is less than the preset dead zone threshold, the first deviation information is set to zero, indicating that the output frequency of the oscillator does not need to be adjusted. If the absolute value of the deviation is not less than the preset dead zone threshold, the first deviation information is updated based on the product of the preset deviation proportionality factor and the first deviation information to accelerate the efficiency of feedback control convergence.

[0064] It is worth mentioning that it also includes a hierarchical tuning mechanism, specifically: When in the coarse tuning mode; Set the adjustment time period to the preset period reference value; According to the first deviation information and the preset first feedback control algorithm, obtain the resistance control amount; Adjust the digital potentiometer according to the resistance control amount; When in the fine tuning mode; According to the first deviation information and the preset second feedback control algorithm, obtain the capacitance control amount; Adjust the DAC output voltage according to the capacitance control amount to adjust the varactor diode.

[0065] It should be noted that when in the coarse tuning mode, due to the response delay of the oscillator after the digital potentiometer is adjusted, therefore, the adjustment period of the digital potentiometer needs to be set based on the response delay. Then, according to the first feedback control algorithm, obtain the resistance control amount to update the parameters of the digital potentiometer. When in the fine tuning mode, the capacitance value is adjusted by adjusting the voltage value of the control terminal of the varactor diode. According to the preset second feedback control algorithm, obtain the capacitance control amount to adjust the digital value of the control terminal voltage; then, based on the digital-to-analog converter (DAC), convert the digital value of the control terminal voltage into an analog value, and further adjust the capacitance value of the varactor diode.

[0066] It is worth mentioning that the temperature compensation mechanism further includes: Record the duration during which the absolute value of the deviation is less than the third deviation threshold to obtain the second time information; Judge whether the second time information is greater than the preset second time threshold; If so, record the relationship between the current temperature and frequency as new data; Perform weighted averaging on the new data and the historical data to update the compensation table.

[0067] It should be noted that this embodiment provides a temperature compensation self - learning mechanism. When the absolute value of the deviation between the oscillator output frequency and the target frequency is less than the third deviation threshold, it is considered to be in the temperature - frequency stable state, and the duration of being in the temperature - frequency stable state, that is, the second time information, is recorded. If the second time information is greater than the preset second time threshold, it means that the current frequency has stabilized, that is, the relationship between the current temperature and frequency is recorded as new data. Finally, based on the new data and historical data, weighted averaging is performed to update the compensation table, realizing self - learning to improve the adaptability of the oscillator to the actual usage environment.

[0068] It is worth mentioning that an aging drift compensation mechanism is also included, specifically: Based on a preset aging calibration period, the reference frequency calibration step is executed, which specifically includes: disconnecting the external control loop and connecting a high - precision atomic clock as a reference source; recording the current frequency deviation and updating the varactor diode bias reference value. Based on the frequency drift historical data, the drift amount prediction step is executed, which specifically includes: analyzing the frequency drift historical data of a preset duration, fitting to obtain an aging curve; predicting the aging drift amount based on the aging curve and injecting a feedback control algorithm in advance.

[0069] It should be noted that this embodiment includes reference frequency calibration and aging drift amount prediction. Based on a preset aging calibration period, the oscillator is calibrated by using a high - precision atomic clock as a reference source, recording the current frequency deviation and updating the varactor diode bias reference value. Fitting is performed based on the frequency drift historical data of a preset duration. For example, according to the frequency drift data of the past 30 days, a linear aging curve is obtained by least - squares fitting; then the drift amount is predicted based on the aging curve to adjust the control amount output by the feedback control algorithm, realizing forward - looking compensation.

[0070] In the third aspect of the present invention, a computer - readable storage medium is provided. The computer - readable storage medium includes a program for the adaptive adjustment method of oscillator frequency. When the program for the adaptive adjustment method of oscillator frequency is executed by a processor, the steps of the adaptive adjustment method of oscillator frequency as described in any one of the above are realized.

[0071] In summary, the present invention provides a method, a system, and a storage medium for adaptively adjusting the oscillator frequency. First, during the system initialization phase, a pre-stored temperature compensation table is loaded and the resonant capacitance is adjusted by the bisection method to quickly correct the initial frequency deviation and avoid the problem of excessive startup drift in the traditional solution. Second, the reference clock is configured through a frequency divider, and a dual-edge triggered phase discrimination mechanism is adopted to improve the phase difference detection accuracy. Then, through an adaptive PID controller, the proportional and integral weights are dynamically allocated according to the error amount and the differential term in the vibration scenario is disabled. Based on the dual-mode adjustment mechanism, the response speed and control accuracy are improved. Finally, the frequency is corrected based on self-learning temperature compensation combined with the aging trend prediction algorithm to improve the long-term stability of the oscillator. The present invention improves the accuracy and stability of the oscillator frequency through initialization calibration, dual-edge triggered phase discrimination mechanism, adaptive dynamic adjustment, dual-mode adjustment mechanism, temperature and aging compensation, meeting the requirements of high-end scenarios.

[0072] If the above-mentioned functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0073] The foregoing is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for adaptively adjusting an oscillator frequency, characterized in that: The method comprises: Acquiring first temperature information and first frequency information of the oscillator; Initialize the varactor diode and digital potentiometer based on the temperature tuning parameter correspondence table; According to the first temperature information and a preset temperature compensation coefficient, a temperature compensation superposition amount of a feedback control algorithm is obtained; Obtaining first frequency deviation information according to the first frequency information and the target frequency information; Adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information; Determine whether the absolute value of the first frequency deviation information is greater than a preset first deviation threshold; If yes, obtaining first tuning resistance information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer; If not, first tuning capacitance information is obtained according to the first frequency deviation information and a preset second feedback control algorithm, so as to adjust the varactor diode.

2. The method for adaptively adjusting the frequency of an oscillator according to claim 1, characterized in that: The method of initializing the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes: According to the first temperature information, searching a preset temperature tuning parameter corresponding table to obtain second tuning capacitance information; Initialize and configure the varactor diode according to the second tuning capacitance information; Set the digital potentiometer resistance to the middle value and initialize the resistance adjustment step; Waiting for a preset first delay time to obtain second frequency deviation information; Determining whether the second frequency deviation information is less than a preset second deviation threshold; If yes, the digital potentiometer initialization ends; If not, the resistance adjustment step is reduced according to a preset reduction ratio, and the digital potentiometer is configured according to the second frequency deviation information and the updated resistance adjustment step.

3. The method for adaptively adjusting the frequency of an oscillator according to claim 1, characterized in that: The obtaining the first frequency deviation information according to the first frequency information and the target frequency information also includes: A frequency division ratio is obtained according to the frequency reference and target frequency information of the oscillator; Determine a frequency division coefficient according to the frequency division ratio, and configure a frequency division mode based on a preset communication interface; Based on a preset first sampling period, obtaining first frequency information through a phase detector and an analog-to-digital converter; When the number of acquisitions exceeds a preset number threshold, second frequency information is obtained based on a preset filter; The difference between the second frequency information and the target frequency information is calculated to obtain the first frequency deviation information.

4. The method for adaptively adjusting the frequency of an oscillator according to claim 1, characterized in that: The coefficient weight of the feedback control algorithm is adjusted according to the first frequency deviation information, specifically: Obtaining an absolute value of the deviation according to the first frequency deviation information; Determining whether the absolute value of the deviation is less than a preset second deviation threshold; If yes, keep the default scaling factor; If not, then based on a preset first linear algorithm, the proportional coefficient is adjusted upward; Get the first-hand information of deviations; Determining whether the first time information is less than a preset time threshold; If so, keep the integral coefficient unchanged; If not, the integral coefficient is adjusted upward based on a preset second linear algorithm.

5. The method for adaptively adjusting the frequency of an oscillator according to claim 4, characterized in that: Also includes: Acquire first acceleration information of an environmental vibration sensor; Determining whether the first acceleration information is less than a preset acceleration threshold; If so, keep the differential coefficient unchanged; If not, the derivative coefficients are disabled.

6. The method for adaptively adjusting the frequency of an oscillator according to claim 4, characterized in that: Also includes: Determining whether the absolute value of the deviation is less than a preset dead zone threshold; If not, setting the first frequency deviation information to zero; If so, the first frequency deviation information is updated based on the product of a preset deviation proportional factor and the first frequency deviation information.

7. An adaptive adjustment system for oscillator frequency, characterized in that: The system includes a memory and a processor, wherein the memory includes a method program for adaptively adjusting the frequency of an oscillator, and when the method program for adaptively adjusting the frequency of an oscillator is executed by the processor, the following steps are implemented: Acquiring first temperature information and first frequency information of the oscillator; Initialize the varactor diode and digital potentiometer based on the temperature tuning parameter correspondence table; According to the first temperature information and a preset temperature compensation coefficient, a temperature compensation superposition amount of a feedback control algorithm is obtained; Obtaining first frequency deviation information according to the first frequency information and the target frequency information; Adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information; Determine whether the absolute value of the first frequency deviation information is greater than a preset first deviation threshold; If yes, obtaining first tuning resistance information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer; If not, first tuning capacitance information is obtained according to the first frequency deviation information and a preset second feedback control algorithm, so as to adjust the varactor diode.

8. The adaptive adjustment system of oscillator frequency according to claim 7, characterized in that: The method of initializing the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes: According to the first temperature information, searching a preset temperature tuning parameter corresponding table to obtain second tuning capacitance information; Initialize and configure the varactor diode according to the second tuning capacitance information; Set the digital potentiometer resistance to the middle value and initialize the resistance adjustment step; Waiting for a preset first delay time to obtain second frequency deviation information; Determining whether the second frequency deviation information is less than a preset second deviation threshold; If yes, the digital potentiometer initialization ends; If not, the resistance adjustment step is reduced according to a preset reduction ratio, and the digital potentiometer is configured according to the second frequency deviation information and the updated resistance adjustment step.

9. The adaptive adjustment system of oscillator frequency according to claim 7, characterized in that: The obtaining the first frequency deviation information according to the first frequency information and the target frequency information also includes: A frequency division ratio is obtained according to the frequency reference and target frequency information of the oscillator; Determine a frequency division coefficient according to the frequency division ratio, and configure a frequency division mode based on a preset communication interface; Based on a preset first sampling period, obtaining first frequency information through a phase detector and an analog-to-digital converter; When the number of acquisitions exceeds a preset number threshold, second frequency information is obtained based on a preset filter; The difference between the second frequency information and the target frequency information is calculated to obtain the first frequency deviation information.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a method program for adaptively adjusting the frequency of an oscillator. When the method program for adaptively adjusting the frequency of an oscillator is executed by a processor, the steps of the method for adaptively adjusting the frequency of an oscillator as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • RTC temperature compensation method, electronic equipment, storage medium and program product

    CN118449454A

  • Integrated tunable filter for broadband tuner

    US20040063415A1

Cited By

  • Frequency adjustment method and system based on sip module, and related equipment

    CN120433741A