A digital self-calibration method, system, and storage medium for frequency in an oscillator
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2026-08-11
AI Technical Summary
很多数字控制的频率调整流程比较复杂,还有是通过手动的方式来实现占空比的调整,不能安全实现了频率校正的自动化,降低了精度,增加了校正的时间
本发明通过充分地考虑了模拟比较器的失配,能够用简单的控制设计,提供自动的频率检测和校正方法,实现温度和电压变化时,减少振荡器的频率漂移,提供高精度振荡器,提高了对频率的识别精度。通过把频率的信息转化成电压信息,实现频率的自动检测,不需要外部参考时钟,降低了振荡器的设计成本。
Smart Images

Figure CN118539871B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of oscillator frequency correction technology, and in particular to a digital self-calibration method, system and storage medium for frequency in an oscillator. Background Technology
[0002] As the demand for clock signal accuracy increases, we become more sensitive to the frequency precision of clock signals. Due to the influence of manufacturing processes, voltage, and temperature, frequency detection and correction circuits are needed to continuously detect and adjust the clock frequency. Many digital control frequency adjustment processes are quite complex, and some still rely on manual methods to adjust the duty cycle, failing to achieve automated frequency correction, reducing accuracy, and increasing correction time. We designed a simple digital control process to control the correction of the oscillator frequency adjuster, thereby achieving a wider frequency adjustment range and higher accuracy. Summary of the Invention
[0003] This invention overcomes the shortcomings of the prior art and provides a digital self-calibration method, system and storage medium for frequency in an oscillator.
[0004] To achieve the above objectives, the technical solution adopted by the present invention is as follows: The first aspect of this invention provides a digital self-calibration method for frequency in an oscillator, comprising the following steps: The system acquires the oscillator input data, performs parameter identification on the oscillator input data, obtains the oscillator input frequency information, and calculates the real-time voltage information based on the frequency information. The operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator. The identification result is obtained. When the identification result is not greater than the preset identification result, the analog comparator is adjusted. The real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset. Based on the aforementioned control scheme and comparison results, the frequency information is adjusted using a counter.
[0005] Furthermore, in this method, parameter identification is performed on the data information input to the oscillator to obtain the frequency information of the oscillator input, and real-time voltage information is calculated based on the frequency information, specifically including: By extracting and recognizing features from the data input to the oscillator, the frequency information of the oscillator input, real-time current information, capacitance information, and clock cycle count information are obtained. The real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information, and clock cycle count information of the oscillator input, and then the real-time voltage information is output.
[0006] Furthermore, in this method, the operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator, and the identification result is obtained. Specifically, this includes: Historical operating parameter change feature data of the analog comparator is obtained, and a frequency judgment accuracy prediction model is constructed based on a deep neural network. By extracting features from the historical operating parameter change feature data of the analog comparator, frequency judgment accuracy change feature data is obtained. The frequency judgment accuracy change feature data is input into the frequency judgment accuracy prediction model for training, the trained frequency judgment accuracy prediction model is obtained, and the operating parameter information of the analog comparator within a preset time is obtained. The operating parameter information of the analog comparator within the preset time is input into the frequency judgment accuracy prediction model for prediction, and the frequency judgment accuracy of the analog comparator at the current timestamp is obtained. The recognition result is constructed based on the accuracy of the analog comparator in the current timestamp, and the recognition result is output.
[0007] Furthermore, in this method, when the recognition result is not greater than a preset recognition result, the analog comparator is adjusted, specifically including: Construct a frequency judgment accuracy threshold, set a preset recognition result based on the frequency judgment accuracy threshold, and determine whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, the compensation value of the analog comparator is calculated based on the recognition result and the preset recognition result; The analog comparator is parameter compensated according to the compensation value of the analog comparator.
[0008] Furthermore, in this method, the real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset, specifically including: The real-time voltage information is input into an analog comparator to obtain the comparison result, and the comparison result is compensated for parameters to construct several frequency information control schemes. For each control scheme, relevant control logic is set, and a database is constructed. The relevant control logic and regulation scheme are bound together and stored in the database.
[0009] Furthermore, in this method, the frequency information is adjusted using a counter based on the control scheme and comparison results, specifically including: When the comparison result is not the preset comparison result, the control scheme is initialized, the real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is the reference voltage. When the voltage information is a reference voltage, the control scheme is output; When the voltage information is the reference voltage, the control scheme is adjusted until the voltage information is the reference voltage, and the corresponding control scheme is then adjusted.
[0010] A second aspect of the present invention provides a digital self-calibration system for frequency in an oscillator, the system comprising a memory and a processor, the memory including a digital self-calibration method program for frequency in the oscillator, wherein when the processor executes the digital self-calibration method program for frequency in the oscillator, the following steps are performed: The system acquires the oscillator input data, performs parameter identification on the oscillator input data, obtains the oscillator input frequency information, and calculates the real-time voltage information based on the frequency information. The operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator. The identification result is obtained. When the identification result is not greater than the preset identification result, the analog comparator is adjusted. The real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset. Based on the aforementioned control scheme and comparison results, the frequency information is adjusted using a counter.
[0011] A third aspect of the present invention provides a computer-readable storage medium including a digital self-calibration method program for a frequency in an oscillator, wherein when executed by a processor, the digital self-calibration method program for a frequency in an oscillator implements the steps of any of the digital self-calibration methods for a frequency in an oscillator as described in the present invention.
[0012] This invention addresses the shortcomings of the prior art and has the following beneficial effects: This invention, by fully considering the mismatch of analog comparators, provides an automatic frequency detection and correction method with a simple control design. It reduces oscillator frequency drift under temperature and voltage changes, providing a high-precision oscillator and improving frequency identification accuracy. By converting frequency information into voltage information, automatic frequency detection is achieved without the need for an external reference clock, thus reducing oscillator design costs. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained from these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating the overall method for digital self-calibration of frequency in an oscillator is shown. Figure 2 A schematic diagram of the module during the calibration process is shown; Figure 3 A system block diagram of a digital self-calibrating system for frequency in an oscillator is shown. Detailed Implementation
[0015] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0016] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0017] like Figure 1 As shown, the first aspect of the present invention provides a digital self-calibration method for frequency in an oscillator, comprising the following steps: S102: Obtain the data information input by the oscillator, and obtain the frequency information input by the oscillator by performing parameter identification on the data information input by the oscillator, and calculate the real-time voltage information based on the frequency information; S104: Obtain the operating parameter information of the analog comparator, identify the frequency judgment accuracy based on the operating parameter information of the analog comparator, obtain the identification result, and when the identification result is not greater than the preset identification result, adjust the analog comparator. S106: Input the real-time voltage information into the analog comparator, obtain the comparison result, and preset several control schemes; S108: Based on the control scheme and comparison results, the frequency information is adjusted using a counter.
[0018] It should be noted that this invention, by constructing an automatic detection and correction device and fully considering the mismatch of analog comparators, provides an automatic frequency detection and correction method with simple control design. This reduces oscillator frequency drift under temperature and voltage changes, providing a high-precision oscillator and improving frequency identification accuracy. By converting frequency information into voltage information, automatic frequency detection is achieved without the need for an external reference clock, thus reducing the design cost of the oscillator.
[0019] Furthermore, in this method, parameter identification is performed on the data information input to the oscillator to obtain the frequency information of the oscillator input, and real-time voltage information is calculated based on the frequency information, specifically including: By extracting and recognizing features from the data input to the oscillator, the frequency information of the oscillator input, real-time current information, capacitance information, and clock cycle count information are obtained. The real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information, and clock cycle count information of the oscillator input, and then the real-time voltage information is output.
[0020] It should be noted that the real-time voltage value satisfies the following relationship: in, For real-time voltage, For current, The number of clock cycles. Where is the clock frequency of the oscillator, and C is the capacitor.
[0021] Furthermore, the reference voltage can be set by setting the oscillator's clock frequency threshold.
[0022] Furthermore, in this method, the operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator, and the identification result is obtained. Specifically, this includes: Historical operating parameter change feature data of the analog comparator is obtained, and a frequency judgment accuracy prediction model is constructed based on a deep neural network. By extracting features from the historical operating parameter change feature data of the analog comparator, frequency judgment accuracy change feature data is obtained. The frequency judgment accuracy change feature data is input into the frequency judgment accuracy prediction model for training, the trained frequency judgment accuracy prediction model is obtained, and the operating parameter information of the analog comparator within a preset time is obtained. The operating parameter information of the analog comparator within the preset time is input into the frequency judgment accuracy prediction model for prediction, and the frequency judgment accuracy of the analog comparator at the current timestamp is obtained. The recognition result is constructed based on the accuracy of the analog comparator in the current timestamp, and the recognition result is output.
[0023] It should be noted that as analog comparators age, their performance degrades, leading to changes in operating parameters and consequently reducing frequency judgment accuracy. A neural network is used to construct a frequency judgment accuracy prediction model to predict the frequency judgment accuracy of the analog comparator at the current timestamp. The frequency judgment accuracy of the analog comparator can be measured by data such as the reliability of the frequency judgment and the probability of anomalies.
[0024] Furthermore, in this method, when the recognition result is not greater than a preset recognition result, the analog comparator is adjusted, specifically including: Construct a frequency judgment accuracy threshold, set a preset recognition result based on the frequency judgment accuracy threshold, and determine whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, the compensation value of the analog comparator is calculated based on the recognition result and the preset recognition result; The analog comparator is parameter compensated according to the compensation value of the analog comparator.
[0025] It should be noted that this method can perform parameter compensation on the analog comparator, thereby compensating for the real-time voltage value input to the analog comparator.
[0026] Furthermore, in this method, the real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset, specifically including: The real-time voltage information is input into an analog comparator to obtain the comparison result, and the comparison result is compensated for parameters to construct several frequency information control schemes. For each control scheme, relevant control logic is set, and a database is constructed. The relevant control logic and regulation scheme are bound together and stored in the database.
[0027] It should be noted that in practical applications, 2^6 frequency modulation schemes can be set and controlled by the PBIAS switch. For example, the PBIAS switch is set to 1 when powered on and 0 when powered off. A total of 6 switches are set, corresponding to 64 frequency modulation schemes. The PBIAS<6:0> switch can be adjusted or controlled to adjust the oscillator circuit, thereby controlling the frequency and thus controlling the operation of the corresponding switch.
[0028] Furthermore, in this method, the frequency information is adjusted using a counter based on the control scheme and comparison results, specifically including: When the comparison result is not the preset comparison result, the control scheme is initialized, the real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is the reference voltage. When the voltage information is a reference voltage, the control scheme is output; When the voltage information is the reference voltage, the control scheme is adjusted until the voltage information is the reference voltage, and the corresponding control scheme is then adjusted.
[0029] In some embodiments, such as when the real-time voltage is less than the reference voltage, for the same current, the same sampling capacitor, and the same number of clock cycles, it is explained that... The frequency is greater than the target frequency threshold. Therefore, the comparator output is 0, which controls the CNT to move in a decreasing direction. Initially, CNT<6:0>=1000000, and the next increment is 0111111. If the comparator output is still 0, CNT continues to decrease to the next increment: 0111110, 0111101, 0111100, and so on, until the comparator output becomes 1, indicating that the oscillator frequency has approached the initial target frequency threshold. In this way, the oscillator frequency is reduced from a high frequency by decreasing the control current of the oscillator, eventually approaching the desired value. This completes the automatic frequency adjustment.
[0030] For example, when the real-time voltage is greater than the reference voltage, for the same current, the same sampling capacitor, and the same number of clock cycles, it indicates... The current voltage is less than the target frequency threshold. Since the real-time voltage is greater than the reference voltage, the comparator output is 1, which controls CNT to continue counting in the increasing direction. Initially, CNT<6:0>=1000000, the next increment is 1000001. If the comparator output is still 1, and CNT continues to increase to the next increment of 1000010, 1000011, 1000100, until the comparator output becomes 0, the oscillator frequency has exceeded the set value. The oscillator frequency is now close to the initial target frequency threshold. Thus, the oscillator frequency is increased from a low frequency by increasing the control current of the oscillator, eventually approaching the desired value. This completes the automatic frequency adjustment.
[0031] like Figure 3 As shown, a second aspect of the present invention provides a digital self-calibration system 4 for frequency in an oscillator. The system includes a memory 41 and a processor 42. The memory 41 includes a digital self-calibration method program for frequency in an oscillator. When the processor 42 executes the digital self-calibration method program for frequency in an oscillator, it performs the following steps: The system acquires the oscillator input data, performs parameter identification on the oscillator input data, obtains the oscillator input frequency information, and calculates the real-time voltage information based on the frequency information. The operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator. The identification result is obtained. When the identification result is not greater than the preset identification result, the analog comparator is adjusted. The real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset. Based on the aforementioned control scheme and comparison results, the frequency information is adjusted using a counter.
[0032] Furthermore, in this system, by performing parameter identification on the data input to the oscillator, the frequency information of the oscillator input is obtained, and the real-time voltage information is calculated based on the frequency information, specifically including: By extracting and recognizing features from the data input to the oscillator, the frequency information of the oscillator input, real-time current information, capacitance information, and clock cycle count information are obtained. The real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information, and clock cycle count information of the oscillator input, and then the real-time voltage information is output.
[0033] It should be noted that the real-time voltage value satisfies the following relationship: in, For real-time voltage, For current, The number of clock cycles. Where is the clock frequency of the oscillator, and C is the capacitor.
[0034] Furthermore, the reference voltage can be set by setting the oscillator's clock frequency threshold.
[0035] Furthermore, in this system, the operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator, and the identification result is obtained, specifically including: Historical operating parameter change feature data of the analog comparator is obtained, and a frequency judgment accuracy prediction model is constructed based on a deep neural network. By extracting features from the historical operating parameter change feature data of the analog comparator, frequency judgment accuracy change feature data is obtained. The frequency judgment accuracy change feature data is input into the frequency judgment accuracy prediction model for training, the trained frequency judgment accuracy prediction model is obtained, and the operating parameter information of the analog comparator within a preset time is obtained. The operating parameter information of the analog comparator within the preset time is input into the frequency judgment accuracy prediction model for prediction, and the frequency judgment accuracy of the analog comparator at the current timestamp is obtained. The recognition result is constructed based on the accuracy of the analog comparator in the current timestamp, and the recognition result is output.
[0036] It should be noted that as the service life of an analog comparator increases, its performance will degrade to some extent, leading to changes in the characteristic data of operating parameters and consequently reducing the accuracy of frequency determination. A frequency determination accuracy prediction model is constructed by using a neural network to predict the frequency determination accuracy of the analog comparator at the current timestamp.
[0037] Furthermore, in this system, when the recognition result is not greater than a preset recognition result, the analog comparator is adjusted, specifically including: Construct a frequency judgment accuracy threshold, set a preset recognition result based on the frequency judgment accuracy threshold, and determine whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, the compensation value of the analog comparator is calculated based on the recognition result and the preset recognition result; The analog comparator is parameter compensated according to the compensation value of the analog comparator.
[0038] It should be noted that this method can perform parameter compensation on the analog comparator, thereby compensating for the real-time voltage value input to the analog comparator.
[0039] Furthermore, in this system, the real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset, specifically including: The real-time voltage information is input into an analog comparator to obtain the comparison result, and the comparison result is compensated for parameters to construct several frequency information control schemes. For each control scheme, relevant control logic is set, and a database is constructed. The relevant control logic and regulation scheme are bound together and stored in the database.
[0040] It should be noted that in practical applications, 2^6 frequency modulation schemes can be set and controlled by the PBIAS switch. For example, the PBIAS switch is set to 1 when powered on and 0 when powered off. A total of 6 switches are set, corresponding to 64 frequency modulation schemes. The PBIAS<6:0> switch can be adjusted or controlled to adjust the oscillator circuit, thereby controlling the frequency and thus controlling the operation of the corresponding switch.
[0041] Furthermore, in this system, the frequency information is adjusted using a counter based on the aforementioned control scheme and comparison results, specifically including: When the comparison result is not the preset comparison result, the control scheme is initialized, the real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is the reference voltage. When the voltage information is a reference voltage, the control scheme is output; When the voltage information is the reference voltage, the control scheme is adjusted until the voltage information is the reference voltage, and the corresponding control scheme is then adjusted.
[0042] In some embodiments, such as when the real-time voltage is less than the reference voltage, for the same current, the same sampling capacitor, and the same number of clock cycles, it is explained that... The frequency is greater than the target frequency threshold. Therefore, the comparator output is 0, which controls the CNT to move in a decreasing direction. Initially, CNT<6:0>=1000000 (corresponding to the relevant control scheme). If the comparator output is still 0 at the next level, 0111111, the CNT continues to decrease to the next level: 0111110, 0111101, 0111100... until the comparator output becomes 1, indicating that the oscillator frequency has approached the initial target frequency threshold. In this way, the oscillator frequency is reduced from a high frequency by decreasing the control current of the oscillator, eventually approaching the desired value. This completes the automatic frequency adjustment.
[0043] For example, when the real-time voltage is greater than the reference voltage, for the same current, the same sampling capacitor, and the same number of clock cycles, it indicates... The current voltage is less than the target frequency threshold. Since the real-time voltage is greater than the reference voltage, the comparator output is 1, which controls CNT to continue counting in the increasing direction. Initially, CNT<6:0>=1000000, the next increment is 1000001. If the comparator output is still 1, and CNT continues to increase to the next increment of 1000010, 1000011, 1000100, until the comparator output becomes 0, the oscillator frequency has exceeded the set value. The oscillator frequency is now close to the initial target frequency threshold. Thus, the oscillator frequency is increased from a low frequency by increasing the control current of the oscillator, eventually approaching the desired value. This completes the automatic frequency adjustment.
[0044] A third aspect of the present invention provides a computer-readable storage medium including a digital self-calibration method program for a frequency in an oscillator, wherein when executed by a processor, the digital self-calibration method program for a frequency in an oscillator implements the steps of any of the digital self-calibration methods for a frequency in an oscillator as described in the present invention.
[0045] like Figure 2 The diagram shows the flowchart of this design. In the diagram, OSC is the oscillator, Control logic is the control logic module, Frequency to voltage is the frequency-to-voltage conversion module, which is the module that calculates the real-time voltage, COMP is the comparator module, which is the analog comparator that compares voltage values, Frequency pattern detection is the frequency detection and judgment module, and CNT is the calculator.
[0046] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0047] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0048] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0049] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0050] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0051] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A digital self-calibration method for frequency in an oscillator, characterized in that, Includes the following steps: The system acquires the oscillator input data, performs parameter identification on the oscillator input data, obtains the oscillator input frequency information, and calculates the real-time voltage information based on the frequency information. The operating parameter information of the analog comparator is obtained, and the frequency judgment accuracy is identified based on the operating parameter information of the analog comparator. The identification result is obtained. When the identification result is not greater than the preset identification result, the analog comparator is adjusted. The real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset. Based on the aforementioned control scheme and comparison results, the frequency information is adjusted using a counter. Obtain the operating parameter information of the analog comparator, identify the frequency judgment accuracy based on the operating parameter information of the analog comparator, and obtain the identification result, specifically including: Historical operating parameter change feature data of the analog comparator is obtained, and a frequency judgment accuracy prediction model is constructed based on a deep neural network. By extracting features from the historical operating parameter change feature data of the analog comparator, frequency judgment accuracy change feature data is obtained. The frequency judgment accuracy change feature data is input into the frequency judgment accuracy prediction model for training, the trained frequency judgment accuracy prediction model is obtained, and the operating parameter information of the analog comparator within a preset time is obtained. The operating parameter information of the analog comparator within the preset time is input into the frequency judgment accuracy prediction model for prediction, and the frequency judgment accuracy of the analog comparator at the current timestamp is obtained. The accuracy is determined based on the frequency of the analog comparator in the current timestamp, and the recognition result is constructed and output. When the recognition result is not greater than the preset recognition result, the analog comparator is adjusted, specifically including: Construct a frequency judgment accuracy threshold, set a preset recognition result based on the frequency judgment accuracy threshold, and determine whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, the compensation value of the analog comparator is calculated based on the recognition result and the preset recognition result; The analog comparator is parameter compensated according to the compensation value of the analog comparator.
2. The digital self-calibration method for frequency in an oscillator according to claim 1, characterized in that, By performing parameter identification on the data input to the oscillator, the frequency information of the oscillator input is obtained, and the real-time voltage information is calculated based on the frequency information, specifically including: By extracting and recognizing features from the data input to the oscillator, the frequency information of the oscillator input, real-time current information, capacitance information, and clock cycle count information are obtained. The real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information, and clock cycle count information of the oscillator input, and then the real-time voltage information is output.
3. The digital self-calibration method for frequency in an oscillator according to claim 1, characterized in that, The real-time voltage information is input into an analog comparator to obtain the comparison result, and several control schemes are preset, specifically including: The real-time voltage information is input into an analog comparator to obtain the comparison result, and the comparison result is compensated for parameters to construct several frequency information control schemes. For each control scheme, relevant control logic is set, and a database is constructed. The relevant control logic and regulation scheme are bound together and stored in the database.
4. The digital self-calibration method for frequency in an oscillator according to claim 1, characterized in that, Based on the aforementioned control scheme and comparison results, the frequency information is adjusted using a counter, specifically including: When the comparison result is not the preset comparison result, the control scheme is initialized, the real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is the reference voltage. When the voltage information is a reference voltage, the control scheme is output; When the voltage information is not the reference voltage, the control scheme is adjusted until the voltage information is the reference voltage, and the corresponding control scheme is then adjusted.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a digital self-calibration method program for the frequency in an oscillator, which, when executed by a processor, implements the steps of the digital self-calibration method for the frequency in an oscillator as described in any one of claims 1-4.
Citation Information
Patent Citations
Complementary metal oxide semiconductor (CMOS) process-based high-accuracy on-chip clock oscillator
CN102882471A
Oscillator arrangement
CN103516333A
Air compressor fault analysis and service life prediction system considering service cycle
CN115630284A