An Adaptive Adjustment Method, System and Storage Medium for Oscillator Frequency
Through the adaptive adjustment method, combined with temperature compensation and aging trend prediction algorithm, the frequency stability and response speed problems of high-precision oscillators in high-end scenarios are solved, and the rapid correction of frequency and long-term stability improvement are achieved.
Patent Information
- Application Number
- CN202510554363.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-04-29
AI Technical Summary
In high-precision oscillators, existing high-precision oscillators have problems such as low frequency stability, slow response speed and poor vibration resistance in high-end scenarios, especially when temperature changes and mechanical vibrations are easy to cause overshoot or continuous jitter. The existing dynamic control algorithm is costly and has poor feasibility for mass production.
Adaptive adjustment method is adopted, and the pre-stored temperature compensation table, double-edge trigger camera recognition mechanism, adaptive PID controller and dual-mode adjustment mechanism are combined with the aging trend prediction algorithm to achieve rapid frequency correction and long-term stability improvement.
It improves the accuracy and stability of the oscillator frequency, meets the needs of high-end scenarios, and achieves rapid response and long-term stable frequency adjustment.
Smart Images

Figure CN120074381B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of oscillators, and more specifically, 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 a high non-linear error 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 the material cost, 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 high-precision oscillator frequency adjustment technology that balances the coordination between precision 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 stage, 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 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, and the method includes:
[0008] Obtain the first temperature information and the first frequency information of the oscillator;
[0009] Initialize the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table;
[0010] According to the first temperature information and the preset temperature compensation coefficient, obtain the temperature compensation superposition amount of the feedback control algorithm;
[0011] According to the first frequency information and the target frequency information, obtain the first frequency deviation information;
[0012] According to the first frequency deviation information, adjust the coefficient weight of the feedback control algorithm;
[0013] Judge whether the absolute value of the first frequency deviation information is greater than a preset first deviation threshold;
[0014] If so, according to the frequency and the preset first feedback control algorithm, obtain the first tuning resistance information for adjusting the digital potentiometer;
[0015] If not, according to the first frequency deviation information and the preset second feedback control algorithm, obtain the first tuning capacitance information for adjusting the varactor diode.
[0016] In this solution, the initializing the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes:
[0017] According to the first temperature information, search the preset temperature tuning parameter correspondence table to obtain the second tuning capacitance information;
[0018] Initialize and configure the varactor diode according to the second tuning capacitance information;
[0019] Set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step;
[0020] Wait for a preset first delay time to obtain the second frequency deviation information;
[0021] Judge whether the second frequency deviation information is less than a preset second deviation threshold;
[0022] If so, end the initialization of the digital potentiometer;
[0023] 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.
[0024] In this solution, obtaining the first frequency deviation information based on the first frequency information and the target frequency information further includes:
[0025] Obtaining a frequency division ratio based on the frequency reference of the oscillator and the target frequency information;
[0026] Determining a frequency division coefficient according to the frequency division ratio, and configuring a frequency division mode based on a preset communication interface;
[0027] Obtaining first frequency information through a phase discriminator and an analog-to-digital converter based on a preset first sampling period;
[0028] When the number of acquisitions exceeds a preset number threshold, obtaining second frequency information based on a preset filter;
[0029] Calculating the difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.
[0030] In this solution, adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information specifically includes:
[0031] Obtaining an absolute value of the deviation according to the first frequency deviation information;
[0032] Judging whether the absolute value of the deviation is less than a preset second deviation threshold;
[0033] If so, maintaining the default proportional coefficient;
[0034] If not, increasing the proportional coefficient based on a preset first linear algorithm;
[0035] Obtaining first time information of the deviation;
[0036] Judging whether the first time information is less than a preset time threshold;
[0037] If so, keeping the integral coefficient unchanged;
[0038] If not, increasing the integral coefficient based on a preset second linear algorithm.
[0039] This solution further includes:
[0040] Obtaining first acceleration information of an environmental vibration sensor;
[0041] Judging whether the first acceleration information is less than a preset acceleration threshold;
[0042] If so, keeping the differential coefficient unchanged;
[0043] If not, disabling the differential coefficient.
[0044] This solution further includes:
[0045] Determine whether the absolute value of the deviation is less than a preset dead zone threshold;
[0046] If not, set the first frequency deviation information to zero;
[0047] If so, update the first frequency deviation information based on the product of a preset deviation ratio factor and the first frequency deviation information.
[0048] The second aspect of the present invention provides an adaptive adjustment system for oscillator frequency, 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:
[0049] Obtain the first temperature information and the first frequency information of the oscillator;
[0050] Initialize the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table;
[0051] Obtain the temperature compensation superposition amount of the feedback control algorithm according to the first temperature information and a preset temperature compensation coefficient;
[0052] Obtain the first frequency deviation information according to the first frequency information and the target frequency information;
[0053] Adjust the coefficient weight of the feedback control algorithm according to the first frequency deviation information;
[0054] Determine whether the absolute value of the first frequency deviation information is greater than a preset first deviation threshold;
[0055] If so, obtain the first tuning resistance information according to the frequency and a preset first feedback control algorithm for adjusting the digital potentiometer;
[0056] If not, obtain the first tuning capacitance information according to the first frequency deviation information and a preset second feedback control algorithm for adjusting the varactor diode.
[0057] In this solution, the initialization of the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes:
[0058] Search for the preset temperature tuning parameter correspondence table according to the first temperature information to obtain the second tuning capacitance information;
[0059] Initialize and configure the varactor diode according to the second tuning capacitance information;
[0060] Set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step;
[0061] Wait for a preset first delay time to obtain the second frequency deviation information;
[0062] Determine whether the second frequency deviation information is less than a preset second deviation threshold;
[0063] If so, end the initialization of the digital potentiometer;
[0064] If not, reduce 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.
[0065] In this solution, obtaining the first frequency deviation information according to the first frequency information and the target frequency information further includes:
[0066] Obtain a frequency division ratio according to the frequency reference of the oscillator and the target frequency information;
[0067] Determine a frequency division coefficient according to the frequency division ratio, and configure a frequency division mode based on a preset communication interface;
[0068] Based on a preset first sampling period, obtain the first frequency information through a phase discriminator and an analog-to-digital converter;
[0069] When the number of acquisitions exceeds a preset number threshold, obtain the second frequency information based on a preset filter;
[0070] Calculate the difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.
[0071] The 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.
[0072] The present invention provides an adaptive adjustment method, system and storage medium for an oscillator frequency. First, in the system initialization stage, 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; 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, 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; through initialization calibration, double-edge triggered phase discrimination mechanism, adaptive dynamic adjustment and dual-mode adjustment mechanism, temperature and aging compensation, the present invention improves the accuracy and stability of the oscillator frequency and meets the requirements of high-end scenarios. Description of the Drawings
[0073] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments. 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.
[0074] Figure 1 It shows a flowchart of an adaptive adjustment method for the oscillator frequency of the present invention;
[0075] Figure 2 It shows a flowchart of the initialization of the varactor diode and the digital potentiometer provided by the embodiment of the present invention;
[0076] Figure 3 It shows a flowchart of the calculation of the first frequency deviation information provided by the embodiment of the present invention;
[0077] Figure 4 It shows a block diagram of an adaptive adjustment system for the oscillator frequency of the present invention. Specific Embodiments
[0078] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all 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 scope of protection of the present invention.
[0079] 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.
[0080] In the embodiments of the present invention, the terms "first", "second" and similar terms do not denote any order, quantity or importance, but are only used to distinguish different components. Similar terms such as "a", "an" or "the" do not denote a quantity limitation either, but mean that there is at least one. Similarly, terms such as "comprising" or "including" mean that the elements or objects appearing before this term cover the elements or objects listed after this term and their equivalents, without excluding other elements or objects. Terms 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.
[0081] 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.
[0082] Figure 1 The flowchart of an adaptive adjustment method for the oscillator frequency of the present invention is shown.
[0083] 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:
[0084] S102, obtaining first temperature information and first frequency information of the oscillator;
[0085] S104, initializing the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table;
[0086] S106, obtaining the temperature compensation superposition amount of the feedback control algorithm according to the first temperature information and the preset temperature compensation coefficient;
[0087] S108, obtaining first frequency deviation information according to the first frequency information and the target frequency information; (sliding filtering)
[0088] S110, adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information;
[0089] S112, determining whether the absolute value of the first deviation information is greater than a preset first deviation threshold;
[0090] S114, if so, obtaining first tuning resistance information according to the frequency and the preset first feedback control algorithm for adjusting the digital potentiometer;
[0091] S116. If not, based on the first frequency deviation information and a preset second feedback control algorithm, obtain first tuning capacitor information for adjusting the varactor diode.
[0092] 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.
[0093] 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 the preset temperature acquisition period; then perform arithmetic superposition calculation based on the temperature compensation amount to obtain the temperature compensation superposition amount, which is used to compensate the control amount output by the feedback control algorithm and improve the sensitivity of the oscillator to temperature. Then, based on a preset adaptive adjustment control coefficient mechanism, according to the first frequency deviation information, adjust the coefficient weights of the feedback control algorithm in real time, including but not limited to the proportional coefficient, integral coefficient, and differential coefficient. Finally, based on a preset dual-mode hierarchical tuning mechanism, select the 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 based on the preset first feedback control algorithm, obtain the first tuning resistor 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 capacitor information for adjusting the varactor diode. The dual-mode hierarchical tuning mechanism is adopted to improve the efficiency and stability of frequency adjustment.
[0094] Figure 2 Shows the initialization flowchart of the varactor diode and the digital potentiometer provided by the embodiment of the present invention.
[0095] 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:
[0096] S202. According to the first temperature information, search the preset temperature tuning parameter correspondence table to obtain the second tuning capacitor information;
[0097] S204. Initialize and configure the varactor diode according to the second tuning capacitance information.
[0098] S206. Set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step.
[0099] S208. Wait for a preset first delay time and obtain the second frequency deviation information.
[0100] S210. Determine whether the second frequency deviation information is less than a preset second deviation threshold.
[0101] S212. If so, end the initialization of the digital potentiometer.
[0102] S214. 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.
[0103] It should be noted that the second tuning capacitance 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.
[0104] 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 capacitance 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 a 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.
[0105] 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 binary search method is used to adjust the digital potentiometer to make the output frequency reach the preset frequency range, improving the initialization efficiency. Among them, the binary search 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 reduced 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 method, when the reduction ratio is 50%, it meets the complete binary search requirement.
[0106] Figure 3 The flowchart of calculating the first frequency deviation information provided by the embodiment of the present invention is shown.
[0107] 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:
[0108] S302. Obtain a frequency division ratio according to the frequency reference of the oscillator and the target frequency information;
[0109] S304. Determine a frequency division coefficient according to the frequency division ratio, and configure a frequency division mode based on a preset communication interface;
[0110] S306. Based on a preset first sampling period, obtain the first frequency information through a phase discriminator and an analog-to-digital converter;
[0111] S308. When the number of acquisitions exceeds a preset number threshold, obtain the second frequency information based on a preset filter;
[0112] S310. Calculate the difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.
[0113] 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 the preset first sampling period, a double-edge triggered phase discriminator is used for measurement, and the output voltage of the phase discriminator is converted by an analog-to-digital converter to obtain an analog-to-digital conversion value, and then the first frequency information is obtained according to the first sampling period and the analog-to-digital conversion value; wherein, the sampling frequency is at least twice the target frequency. Finally, when the number of acquisitions of the first frequency information exceeds the preset number threshold, filtering is performed through a preset filter to obtain the second frequency information for calculating the difference from the target frequency information to obtain the first frequency deviation information; wherein, the filter includes but is not limited to Butterworth filter, Chebyshev filter, and Bessel filter.
[0114] According to the embodiment of the present invention, adjusting the coefficient weight of the feedback control algorithm according to the first frequency deviation information specifically includes:
[0115] Obtain an absolute value of the deviation according to the first frequency deviation information;
[0116] Judge whether the absolute value of the deviation is less than a preset second deviation threshold;
[0117] If so, keep the default proportional coefficient;
[0118] If not, increase the proportionality coefficient based on a preset first linear algorithm;
[0119] Obtain the first time information of the deviation;
[0120] Determine whether the first time information is less than a preset time threshold;
[0121] If so, keep the integral coefficient unchanged;
[0122] If not, increase the integral coefficient based on a preset second linear algorithm.
[0123] 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 proportionality coefficient and the integral coefficient in an adaptive adjustment control coefficient mechanism. For the proportionality coefficient, determine 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 proportionality coefficient; if not, it means that the deviation value is too large and the proportionality 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: determine 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 be tending to be stable, so keep the integral coefficient 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 increase the integral coefficient to improve the sensitivity of the feedback control algorithm to the cumulative deviation, thereby improving the stability of the oscillator output frequency.
[0124] According to an embodiment of the present invention, it further includes:
[0125] Obtain the first acceleration information of the environmental vibration sensor;
[0126] Determine whether the first acceleration information is less than a preset acceleration threshold;
[0127] If so, keep the differential coefficient unchanged;
[0128] If not, disable the differential coefficient.
[0129] 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 an environmental vibration sensor, and the first acceleration information represents the vibration condition of the device where the oscillator is located. Determine whether the first acceleration information is less than a preset acceleration threshold; if so, it means that the vibration state of the oscillator's working environment is within the allowable range, and at this time, the differential coefficient is maintained to improve the sensitivity of the oscillator frequency adjustment; if not, it means that the vibration frequency or amplitude of the oscillator's working environment is too large, and at this time, the differential coefficient is disabled to avoid misadjustment.
[0130] According to an embodiment of the present invention, it further includes:
[0131] Determine whether the absolute value of the deviation is less than a preset dead zone threshold;
[0132] If not, set the first deviation information to zero;
[0133] If so, update the first deviation information based on the product of a preset deviation proportional factor and the first deviation information.
[0134] It should be noted that the dead zone threshold is the set absolute value range of the allowable deviation, that is, the deviation less than the dead zone threshold is considered within the reasonable error range. By setting the dead zone threshold in this embodiment, 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 a preset deviation proportional factor and the first deviation information to accelerate the efficiency of feedback control convergence.
[0135] It is worth mentioning that it further includes a hierarchical tuning mechanism, specifically:
[0136] When in the coarse tuning mode;
[0137] Set the adjustment time period to a preset period reference value;
[0138] According to the first deviation information and a preset first feedback control algorithm, obtain a resistance control amount;
[0139] Adjust the digital potentiometer according to the resistance control amount;
[0140] When in the fine tuning mode;
[0141] According to the first deviation information and a preset second feedback control algorithm, obtain a capacitance control amount;
[0142] Adjust the DAC output voltage according to the capacitance control amount to adjust the varactor diode.
[0143] It should be noted that when in the coarse adjustment mode, since there is a response delay in 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, based on the first feedback control algorithm, the resistance control quantity is obtained to update the parameters of the digital potentiometer. When in the fine adjustment mode, the capacitance value is adjusted by adjusting the voltage value at the control terminal of the varactor diode. Based on the preset second feedback control algorithm, the capacitance control quantity 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.
[0144] It is worth mentioning that the temperature compensation mechanism further includes:
[0145] Record the duration when the absolute value of the deviation is less than the third deviation threshold to obtain the second time information;
[0146] Judge whether the second time information is greater than the preset second time threshold;
[0147] If so, record the relationship between the current temperature and the frequency as new data;
[0148] Perform weighted averaging on the new data and the historical data to update the compensation table.
[0149] 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 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, record the relationship between the current temperature and the frequency as new data. Finally, perform weighted averaging on the new data and the historical data to update the compensation table to achieve self-learning and improve the adaptability of the oscillator to the actual usage environment.
[0150] It is worth mentioning that an aging drift compensation mechanism is also included, specifically:
[0151] Based on the preset aging calibration period, perform the reference frequency calibration step, which specifically includes: disconnect the external control loop and connect a high-precision atomic clock as the reference source; record the current frequency deviation and update the varactor diode bias reference value;
[0152] Based on the frequency drift historical data, perform the drift amount prediction step, which specifically includes: analyze the frequency drift historical data for a preset duration, fit to obtain the aging curve; predict the aging drift amount based on the aging curve and inject the feedback control algorithm in advance.
[0153] 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 corrected by using a high-precision atomic clock as a reference source, the current frequency deviation is recorded, and the reference value of the varactor diode bias voltage is updated. 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 fitting according to 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.
[0154] Figure 4 The block diagram of an adaptive adjustment system for the oscillator frequency of the present invention is shown.
[0155] As Figure 4 shown, the second aspect of the present invention discloses an adaptive adjustment system 4 for the oscillator frequency, including a memory 41 and a processor 42. The memory includes an adaptive adjustment method program for the oscillator frequency. When the adaptive adjustment method program for the oscillator frequency is executed by the processor, the following steps are implemented:
[0156] Obtain the first temperature information and the first frequency information of the oscillator;
[0157] Initialize the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table;
[0158] Obtain the temperature compensation superposition amount of the feedback control algorithm according to the first temperature information and the preset temperature compensation coefficient;
[0159] Obtain the first frequency deviation information according to the first frequency information and the target frequency information; (sliding filtering)
[0160] Adjust the coefficient weight of the feedback control algorithm according to the first frequency deviation information;
[0161] Judge whether the absolute value of the first deviation information is greater than the preset first deviation threshold;
[0162] If so, obtain the first tuning resistance information according to the frequency and the preset first feedback control algorithm for adjusting the digital potentiometer;
[0163] If not, obtain the first tuning capacitance information according to the first frequency deviation information and the preset second feedback control algorithm for adjusting the varactor diode.
[0164] 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.
[0165] 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 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 the preset temperature compensation system, the real-time temperature compensation amount is calculated according to the preset temperature acquisition period; then, an arithmetic superposition calculation is performed based on the temperature compensation amount to obtain a temperature compensation superposition amount, which is used to compensate the control amount output by the feedback control algorithm and 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, the corresponding adjustment mode is selected according to the first frequency deviation information: 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 resistor 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 capacitor information for adjusting the varactor diode. The dual-mode hierarchical tuning mechanism is adopted to improve the efficiency and stability of frequency adjustment.
[0166] According to the embodiment of the present invention, the initialization of the varactor diode and the digital potentiometer based on the temperature tuning parameter correspondence table further includes:
[0167] According to the first temperature information, look up the preset temperature tuning parameter correspondence table to obtain the second tuning capacitor information;
[0168] According to the second tuning capacitor information, initialize and configure the varactor diode;
[0169] Set the resistance value of the digital potentiometer to the middle value and initialize the resistance adjustment step;
[0170] Wait for the preset first delay time to obtain the second frequency deviation information;
[0171] Determine whether the second frequency deviation information is less than a preset second deviation threshold;
[0172] If so, end the initialization of the digital potentiometer;
[0173] If not, then reduce 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.
[0174] 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 and the target frequency of the oscillator.
[0175] 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, then reduce the resistance adjustment step and continue to adjust the digital potentiometer.
[0176] 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 binary method is used to adjust the digital potentiometer to make the output frequency reach the preset frequency range, improving the initialization efficiency. Among them, the binary 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, measure the real-time deviation again for comparison and judgment. Among them, as an implementation method, when the reduction ratio is 50%, it meets the complete binary requirement.
[0177] 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:
[0178] Obtain the frequency division ratio according to the frequency reference of the oscillator and the target frequency information;
[0179] Determine the frequency division coefficient according to the frequency division ratio, and configure the frequency division mode based on the preset communication interface;
[0180] Based on a preset first sampling period, first frequency information is obtained through a phase detector and an analog-to-digital converter.
[0181] When the number of acquisitions exceeds a preset quantity threshold, second frequency information is obtained based on a preset filter.
[0182] The difference between the second frequency information and the target frequency information is calculated to obtain first frequency deviation information.
[0183] It should be noted that in this embodiment, first, a 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, a frequency division coefficient is calculated in a way of rounding up or rounding down to configure the frequency division parameter, that is, to determine the frequency division mode. Then, according to the preset first sampling period, a double-edge triggered phase detector is used for measurement, the output voltage of the phase detector is converted by an analog-to-digital converter to obtain an analog-to-digital conversion value, and then based on the first sampling period and the analog-to-digital conversion value, 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 the preset quantity threshold, filtering is performed through a preset filter to obtain second frequency information for calculating the difference from 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.
[0184] 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:
[0185] Based on the first frequency deviation information, an absolute value of the deviation is obtained.
[0186] It is judged whether the absolute value of the deviation is less than a preset second deviation threshold.
[0187] If so, the default proportional coefficient is maintained.
[0188] If not, the proportional coefficient is increased based on a preset first linear algorithm.
[0189] First time information of the deviation is obtained.
[0190] It is judged whether the first time information is less than a preset time threshold.
[0191] If so, the integral coefficient is kept unchanged.
[0192] If not, the integral coefficient is increased based on a preset second linear algorithm.
[0193] 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.
[0194] According to an embodiment of the present invention, it further includes:
[0195] Obtain the first acceleration information of the environmental vibration sensor;
[0196] Judge whether the first acceleration information is less than a preset acceleration threshold;
[0197] If so, keep the differential coefficient unchanged;
[0198] If not, disable the differential coefficient.
[0199] 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.
[0200] According to an embodiment of the present invention, it further includes:
[0201] Judge whether the absolute value of the deviation is less than a preset dead zone threshold;
[0202] If not, set the first deviation information to zero;
[0203] If so, update the first deviation information based on the product of a preset deviation proportional factor and the first deviation information.
[0204] 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.
[0205] It is worth mentioning that a hierarchical tuning mechanism is further included, specifically:
[0206] When in the coarse tuning mode;
[0207] Set the adjustment time period to the preset period reference value;
[0208] According to the first deviation information and the preset first feedback control algorithm, obtain the resistance control amount;
[0209] Adjust the digital potentiometer according to the resistance control amount;
[0210] When in the fine tuning mode;
[0211] According to the first deviation information and the preset second feedback control algorithm, obtain the capacitance control amount;
[0212] Adjust the DAC output voltage according to the capacitance control amount to adjust the varactor diode.
[0213] 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, it is necessary to set the adjustment period of the digital potentiometer 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 at the control end 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 end voltage; then, based on the digital-to-analog converter (DAC), convert the digital value of the control end voltage into an analog value, and further adjust the capacitance value of the varactor diode.
[0214] It is worth mentioning that the temperature compensation mechanism further includes:
[0215] Record the duration during which the absolute value of the deviation is less than the third deviation threshold to obtain the second time information;
[0216] Judge whether the second time information is greater than the preset second time threshold;
[0217] If so, record the relationship between the current temperature and frequency as new data.
[0218] Perform a weighted average of the new data and the historical data to update the compensation table.
[0219] 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 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, record the relationship between the current temperature and frequency as new data. Finally, perform a weighted average based on the new data and the historical data to update the compensation table, realizing self-learning to improve the adaptability of the oscillator to the actual use environment.
[0220] It is worth mentioning that it also includes an aging drift compensation mechanism, specifically:
[0221] 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.
[0222] 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.
[0223] 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.
[0224] The third aspect of the present invention provides a computer-readable storage medium, which includes a program for an 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 implemented.
[0225] 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 capacitor is adjusted by the binary search method to quickly correct the initial frequency deviation and avoid the problem of excessive startup drift in the traditional scheme. Second, 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, and meets the requirements of high-end scenarios.
[0226] If the above 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 this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this 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 may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing 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.
[0227] The foregoing are only the preferred embodiments of the present invention and are 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. An adaptive adjustment method for the oscillator frequency, characterized in that, The method includes: Obtaining first temperature information and first frequency information of an oscillator; According to the first temperature information, looking up a preset temperature tuning parameter correspondence table to obtain second tuning capacitor information; Initializing and configuring a varactor diode according to the second tuning capacitor information; Setting the resistance value of a digital potentiometer to a middle value and initializing a resistance adjustment step; Waiting for a preset first delay time and obtaining 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; 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 resistance 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.
2. The adaptive adjustment method for the oscillator frequency according to claim 1, wherein The obtaining of 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 first frequency information through a phase discriminator and an analog-to-digital converter based on a preset first sampling period; When the number of acquisitions exceeds a preset number threshold, obtaining second frequency information based on a preset filter; Calculating a difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.
3. The adaptive adjustment method for the oscillator frequency according to claim 1, wherein The adjusting of the coefficient weight of the feedback control algorithm according to the first frequency deviation information is specifically: Obtaining an absolute value of the deviation according to the first frequency deviation information; Judging whether the absolute value of the deviation is less than a preset second deviation threshold; If so, maintaining a default proportionality coefficient; If not, increasing the proportionality coefficient based on a preset first linear algorithm; Obtaining first time information of the deviation; Judging whether the first time information is less than a preset time threshold; If so, maintaining an integral coefficient unchanged; If not, increasing the integral coefficient based on a preset second linear algorithm.
4. The adaptive adjustment method of an oscillator frequency according to claim 3, characterized in that It further includes: Obtaining first acceleration information of an environmental vibration sensor; Judging whether the first acceleration information is less than a preset acceleration threshold; If so, maintaining a differential coefficient unchanged; If not, disabling the differential coefficient.
5. The adaptive adjustment method for the oscillator frequency according to claim 3, characterized in that, It further includes: Judging 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, updating the first frequency deviation information based on a product of a preset deviation proportionality factor and the first frequency deviation information.
6. An adaptive adjustment system for oscillator frequency, characterized in that, The system includes a memory and a processor. The memory contains a program for the adaptive adjustment method of the oscillator frequency. When the program for the adaptive adjustment method of the 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; According to the first temperature information, search 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 and obtain the second frequency deviation information; Judge 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; 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; Adjust the coefficient weight of the feedback control algorithm according to the first frequency deviation information; Judge whether the absolute value of the first frequency deviation information is greater than the preset first deviation threshold; If so, obtain the first tuning resistance information according to the frequency and the preset first feedback control algorithm, and use it to adjust the digital potentiometer; If not, obtain the first tuning capacitor information according to the first frequency deviation information and the preset second feedback control algorithm, and use it to adjust the varactor diode.
7. An adaptive adjustment system for the oscillator frequency according to claim 6, characterized in that, The obtaining of the first frequency deviation information according to the first frequency information and the target frequency information further includes: Obtain the frequency division ratio according to the frequency reference of the oscillator and the target frequency information; Determine the frequency division coefficient according to the frequency division ratio, and configure the frequency division mode based on the preset communication interface; Based on the preset first sampling period, obtain the first frequency information through the phase detector and the analog-to-digital converter; When the number of acquisitions exceeds the preset number threshold, obtain the second frequency information based on the preset filter; Calculate the difference between the second frequency information and the target frequency information to obtain the first frequency deviation information.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer-readable storage medium contains a program for the adaptive adjustment method of the oscillator frequency. When the program for the adaptive adjustment method of the oscillator frequency is executed by the processor, the steps of the adaptive adjustment method of the oscillator frequency as described in any one of claims 1 to 5 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