Digital frequency self-correction method and system in oscillator and storage medium
Through the combination of digital self-correction method and deep neural network, automatic detection and correction of oscillator frequency is realized, which solves the problems of low frequency correction complexity and accuracy in the prior art, improves the accuracy and automation of frequency recognition, and reduces the Design cost.
Patent Information
- Application Number
- CN202410883331.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-03
AI Technical Summary
In the prior art, the oscillator frequency correction process is complex and lacks automation, resulting in low frequency adjustment accuracy, increasing correction time, and difficult to control frequency drift when temperature and voltage change.
Using digital self-correction method, by obtaining oscillator data information, calculating real-time voltage information, and using analog comparator and deep neural network to build a frequency judgment accuracy prediction model, automatically adjusting the analog comparator parameters, realizing automatic frequency detection and correction, and reducing Reliance on external reference clocks.
High-precision frequency identification and automatic correction are realized, which reduces frequency drift, reduces oscillator design costs, and improves the automation accuracy of frequency adjustment.
Smart Images

Figure CN118539871A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oscillator frequency correction, and in particular to a digital self-correction method, system and storage medium for frequency in an oscillator. Background Art
[0002] As the demand for clock signal accuracy increases, we are more sensitive to the frequency accuracy of clock signals. Due to the influence of process, voltage, and temperature, frequency detection and correction circuits are needed to continuously detect and adjust the clock frequency. The frequency adjustment process of many digital controls is relatively complicated, and the duty cycle is adjusted manually, which cannot safely realize the automation of frequency correction, reduces accuracy, and increases the correction time. We design 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] The present invention overcomes the shortcomings of the prior art and provides a digital self-correction method, system and storage medium for frequency in an oscillator.
[0004] To achieve the above object, the technical solution adopted by the present invention is: A first aspect of the present invention provides a method for digital self-correction of frequency in an oscillator, comprising the following steps: Acquire data information of the oscillator input, and acquire frequency information of the oscillator input by performing parameter recognition on the data information of the oscillator input, and calculate real-time voltage information according to the frequency information; Acquire operating parameter information of the analog comparator, and identify the frequency judgment accuracy according to the operating parameter information of the analog comparator, and obtain an identification result, and when the identification result is not greater than a preset identification result, regulate the analog comparator; Input the real-time voltage information into an analog comparator, obtain a comparison result, and preset several control schemes; The frequency information is adjusted through a counter based on the control scheme and the comparison result.
[0005] Furthermore, in the present method, by performing parameter recognition on the data information of the oscillator input, the frequency information of the oscillator input is obtained, and the real-time voltage information is calculated according to the frequency information, which specifically includes: By extracting and identifying features of the data information input by the oscillator, the frequency information of the oscillator input is obtained, and the real-time current information, capacitance information and the number of clock cycles are obtained; Real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information and the number of clock cycles input by the oscillator, and the real-time voltage information is output.
[0006] Furthermore, in the present method, obtaining the operating parameter information of the analog comparator, and identifying the frequency judgment accuracy according to the operating parameter information of the analog comparator to obtain the identification result specifically includes: Acquire historical operating parameter change characteristic data of the analog comparator, and construct a frequency judgment accuracy prediction model based on a deep neural network, and acquire frequency judgment accuracy change characteristic data by performing feature extraction on the historical operating parameter change characteristic data of the analog comparator; Inputting the frequency judgment accuracy change characteristic data into the frequency judgment accuracy prediction model for training, obtaining the trained frequency judgment accuracy prediction model, and obtaining the operating parameter information of the analog comparator within a preset time; Inputting the operating parameter information of the analog comparator within the preset time into the frequency judgment accuracy prediction model for prediction, and obtaining the frequency judgment accuracy of the analog comparator in the current timestamp; A recognition result is constructed according to the frequency judgment 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 the preset recognition result, the analog comparator is regulated, specifically including: Constructing a frequency judgment accuracy threshold, setting a preset recognition result based on the frequency judgment accuracy threshold, and judging whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, calculating a compensation value of the analog comparator according to the recognition result and the preset recognition result; Parameter compensation is performed on the analog comparator 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 a comparison result, and several control schemes are preset, specifically including: Input the real-time voltage information into an analog comparator, obtain a comparison result, perform parameter compensation on the comparison result, construct a plurality of frequency information control schemes, set relevant control logic for each control scheme, and construct a database; The related control logic and regulation scheme are bound and stored in the database.
[0009] Furthermore, in this method, adjusting the frequency information through a counter based on the control scheme and the comparison result specifically includes: When the comparison result is not a preset comparison result, the control scheme is initialized, real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is a reference voltage; When the voltage information is a reference voltage, the control scheme is output; When the voltage information is a reference voltage, the control scheme is adjusted until the voltage information is a reference voltage, and the corresponding control scheme is controlled.
[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 comprising a digital self-calibration method program for frequency in an oscillator, and when the digital self-calibration method program for frequency in an oscillator is executed by the processor, the following steps are implemented: Acquire data information of the oscillator input, and acquire frequency information of the oscillator input by performing parameter recognition on the data information of the oscillator input, and calculate real-time voltage information according to the frequency information; Acquire operating parameter information of the analog comparator, identify the frequency judgment accuracy according to the operating parameter information of the analog comparator, obtain an identification result, and when the identification result is not greater than a preset identification result, regulate the analog comparator; Input the real-time voltage information into an analog comparator, obtain a comparison result, and preset several control schemes; The frequency information is adjusted through a counter based on the control scheme and the comparison result.
[0011] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for a method for digital self-correction of frequency in an oscillator. When the program for digital self-correction of frequency in an oscillator is executed by a processor, the steps of any one of the methods for digital self-correction of frequency in an oscillator are implemented.
[0012] The present invention solves the defects existing in the background technology and has the following beneficial effects: The present invention fully considers the mismatch of the analog comparator, can use simple control design, provide automatic frequency detection and correction method, reduce the frequency drift of the oscillator when the temperature and voltage change, provide a high-precision oscillator, and improve the recognition accuracy of the frequency. By converting the frequency information into voltage information, the automatic detection of the frequency is realized, and no external reference clock is required, which reduces the design cost of the oscillator. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, drawings of other embodiments can be obtained based on these drawings without paying creative work.
[0014] Figure 1 An overall method flow chart of a method for digital self-correction of frequency in an oscillator is shown; Figure 2 shows a schematic diagram of the modules during the correction process; Figure 3 A system block diagram of a digital self-correction system for the frequency in an oscillator is shown. DETAILED DESCRIPTION
[0015] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0016] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present 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 method for digital self-correction of frequency in an oscillator, comprising the following steps: S102: acquiring data information of an oscillator input, and acquiring frequency information of the oscillator input by performing parameter recognition on the data information of the oscillator input, and calculating real-time voltage information according to the frequency information; S104: obtaining operating parameter information of the analog comparator, and identifying the frequency judgment accuracy according to the operating parameter information of the analog comparator, obtaining an identification result, and when the identification result is not greater than a preset identification result, regulating the analog comparator; S106: inputting the real-time voltage information into an analog comparator, obtaining a comparison result, and presetting several control schemes; S108: Adjust the frequency information through a counter based on the control scheme and the comparison result.
[0018] It should be noted that the present invention, by constructing an automatic detection and correction device and fully considering the mismatch of the analog comparator, can provide an automatic frequency detection and correction method with a simple control design, reduce the frequency drift of the oscillator when the temperature and voltage change, provide a high-precision oscillator, and improve the frequency recognition accuracy. By converting the frequency information into voltage information, the automatic detection of the frequency is realized, and no external reference clock is required, which reduces the design cost of the oscillator.
[0019] Furthermore, in the present method, by performing parameter recognition on the data information of the oscillator input, the frequency information of the oscillator input is obtained, and the real-time voltage information is calculated according to the frequency information, which specifically includes: By extracting and identifying features of the data information input by the oscillator, the frequency information of the oscillator input is obtained, and real-time current information, capacitance information and the number of clock cycles are obtained; Real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information and the number of clock cycles input by the oscillator, and the real-time voltage information is output.
[0020] It should be noted that the real-time voltage value satisfies the following relationship: in, is the real-time voltage, is the current, is the number of clock cycles, is the clock frequency of the oscillator, and C is the capacitance.
[0021] Furthermore, the reference voltage can be set by setting a clock frequency threshold of the oscillator.
[0022] Furthermore, in the present method, obtaining the operating parameter information of the analog comparator, and identifying the frequency judgment accuracy according to the operating parameter information of the analog comparator to obtain the identification result specifically includes: Acquire historical operating parameter change characteristic data of the analog comparator, and construct a frequency judgment accuracy prediction model based on a deep neural network, and acquire frequency judgment accuracy change characteristic data by performing feature extraction on the historical operating parameter change characteristic data of the analog comparator; Inputting the frequency judgment accuracy change characteristic data into the frequency judgment accuracy prediction model for training, obtaining the trained frequency judgment accuracy prediction model, and obtaining the operating parameter information of the analog comparator within a preset time; Inputting the operating parameter information of the analog comparator within the preset time into the frequency judgment accuracy prediction model for prediction, and obtaining the frequency judgment accuracy of the analog comparator in the current timestamp; A recognition result is constructed according to the frequency judgment accuracy of the analog comparator in the current timestamp, and the recognition result is output.
[0023] It should be noted that as the service life of the analog comparator increases, the performance of the analog comparator will degrade to a certain extent, which will cause the characteristic data of the operating parameter change to change, and then the frequency judgment accuracy will decrease. A frequency judgment accuracy prediction model is constructed through a neural network to predict the frequency judgment accuracy of the analog comparator in the current timestamp. The frequency judgment accuracy of the analog comparator can be data such as the credibility of the frequency judgment and the abnormal probability value of the frequency judgment.
[0024] Furthermore, in this method, when the recognition result is not greater than the preset recognition result, the analog comparator is regulated, specifically including: Constructing a frequency judgment accuracy threshold, setting a preset recognition result based on the frequency judgment accuracy threshold, and judging whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, calculating a compensation value of the analog comparator according to the recognition result and the preset recognition result; Parameter compensation is performed on the analog comparator according to the compensation value of the analog comparator.
[0025] It should be noted that, through this method, the parameters of the analog comparator can be compensated, thereby performing parameter compensation on 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 a comparison result, and several control schemes are preset, specifically including: Input the real-time voltage information into an analog comparator, obtain a comparison result, perform parameter compensation on the comparison result, construct a plurality of frequency information control schemes, set relevant control logic for each control scheme, and construct a database; The related control logic and regulation scheme are bound and stored in the database.
[0027] It should be noted that, in actual application, two to the sixth power frequency modulation schemes can be set and controlled by the PBIAS switch respectively, such as 1 when powered on and 0 when powered off. A total of 6 switches are set, corresponding to 64 frequency modulation schemes, so as to adjust or control the switch of PBIAS<6:0> to adjust the oscillator circuit, thereby achieving the frequency regulation, that is, controlling the working condition of the corresponding switch.
[0028] Furthermore, in this method, adjusting the frequency information through a counter based on the control scheme and the comparison result specifically includes: When the comparison result is not a preset comparison result, the control scheme is initialized, real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is a reference voltage; When the voltage information is a reference voltage, the control scheme is output; When the voltage information is a reference voltage, the control scheme is adjusted until the voltage information is a reference voltage, and the corresponding control scheme is controlled.
[0029] In some embodiments, for example, when the real-time voltage is less than the reference voltage, for the same current, the same sampling capacitor and the same number of clocks, the following description is given: Greater than the target frequency threshold. So the output of the comparator is 0, it controls CNT to move in the decreasing direction, initially CNT<6:0>=1000000, the next level is 0111111. If the output of the comparator is still 0, CNT continues to decrease to the next level 0111110, 0111101, 011110... until the output of the comparator becomes 1, indicating that the frequency of the oscillator is close to the initial target frequency threshold. In this way, the frequency of the oscillator is reduced from high frequency by reducing the current of the control oscillator to finally approach the desired value. In this way, the automatic adjustment of the frequency is completed.
[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 clocks, it means Less than the target frequency threshold; because the real-time voltage is greater than the reference voltage, the output of the comparator is 1, and it controls CNT to continue counting in the increasing direction. Initially, CNT<6:0>=1000000, and the next level is 1000001. If the output of the comparator is still 1; and CNT continues to increase to the next level by 1000010, 1000011, 1000100, until the output of the comparator becomes 0, the frequency of the oscillator is greater than the set value. The frequency of the oscillator is already close to the initial target frequency threshold. In this way, the frequency of the oscillator is increased from a low frequency by increasing the current of the oscillator to finally approach the desired value. In this way, the automatic adjustment of the frequency is completed.
[0031] like Figure 3 As shown, the second aspect of the present invention provides a digital self-correction system 4 for the frequency in an oscillator, the system comprising a memory 41 and a processor 42, the memory 41 comprising a digital self-correction method program for the frequency in the oscillator, and when the digital self-correction method program for the frequency in the oscillator is executed by the processor 42, the following steps are implemented: Acquire data information of the oscillator input, and acquire frequency information of the oscillator input by performing parameter recognition on the data information of the oscillator input, and calculate real-time voltage information according to the frequency information; Acquire operating parameter information of the analog comparator, identify the frequency judgment accuracy according to the operating parameter information of the analog comparator, obtain an identification result, and when the identification result is not greater than a preset identification result, regulate the analog comparator; Input the real-time voltage information into an analog comparator, obtain a comparison result, and preset several control schemes; The frequency information is adjusted through a counter based on the control scheme and the comparison result.
[0032] Furthermore, in the system, by performing parameter recognition on the data information of the oscillator input, the frequency information of the oscillator input is obtained, and the real-time voltage information is calculated according to the frequency information, which specifically includes: By extracting and identifying features of the data information input by the oscillator, the frequency information of the oscillator input is obtained, and real-time current information, capacitance information and the number of clock cycles are obtained; Real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information and the number of clock cycles input by the oscillator, and the real-time voltage information is output.
[0033] It should be noted that the real-time voltage value satisfies the following relationship: in, is the real-time voltage, is the current, is the number of clock cycles, is the clock frequency of the oscillator, and C is the capacitance.
[0034] Furthermore, the reference voltage can be set by setting a clock frequency threshold of the oscillator.
[0035] Furthermore, in the present system, the operating parameter information of the analog comparator is obtained, and the frequency determination accuracy is identified according to the operating parameter information of the analog comparator to obtain the identification result, which specifically includes: Acquire historical operating parameter change characteristic data of the analog comparator, and construct a frequency judgment accuracy prediction model based on a deep neural network, and acquire frequency judgment accuracy change characteristic data by performing feature extraction on the historical operating parameter change characteristic data of the analog comparator; Inputting the frequency judgment accuracy change characteristic data into the frequency judgment accuracy prediction model for training, obtaining the trained frequency judgment accuracy prediction model, and obtaining the operating parameter information of the analog comparator within a preset time; Inputting the operating parameter information of the analog comparator within the preset time into the frequency judgment accuracy prediction model for prediction, and obtaining the frequency judgment accuracy of the analog comparator in the current timestamp; A recognition result is constructed according to the frequency judgment 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 the analog comparator increases, the performance of the analog comparator will degrade to a certain extent, resulting in changes in the characteristic data of the operating parameter changes, and then the frequency judgment accuracy is reduced. A frequency judgment accuracy prediction model is constructed through a neural network to predict the frequency judgment accuracy of the analog comparator in the current timestamp.
[0037] Furthermore, in the present system, when the recognition result is not greater than the preset recognition result, the analog comparator is regulated, specifically including: Constructing a frequency judgment accuracy threshold, setting a preset recognition result based on the frequency judgment accuracy threshold, and judging whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, calculating a compensation value of the analog comparator according to the recognition result and the preset recognition result; Parameter compensation is performed on the analog comparator according to the compensation value of the analog comparator.
[0038] It should be noted that, through this method, the parameters of the analog comparator can be compensated, thereby performing parameter compensation on 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 a comparison result, and several control schemes are preset, including: Input the real-time voltage information into an analog comparator, obtain a comparison result, perform parameter compensation on the comparison result, construct a plurality of frequency information control schemes, set relevant control logic for each control scheme, and construct a database; The related control logic and regulation scheme are bound and stored in the database.
[0040] It should be noted that, in actual application, two to the sixth power frequency modulation schemes can be set and controlled by the PBIAS switch respectively, such as 1 when powered on and 0 when powered off. A total of 6 switches are set, corresponding to 64 frequency modulation schemes, so as to adjust or control the switch of PBIAS<6:0> to adjust the oscillator circuit, thereby achieving the frequency regulation, that is, controlling the working condition of the corresponding switch.
[0041] Furthermore, in the present system, the frequency information is adjusted through a counter based on the control scheme and the comparison result, specifically including: When the comparison result is not a preset comparison result, the control scheme is initialized, real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is a reference voltage; When the voltage information is a reference voltage, the control scheme is output; When the voltage information is a reference voltage, the control scheme is adjusted until the voltage information is a reference voltage, and the corresponding control scheme is controlled.
[0042] In some embodiments, for example, when the real-time voltage is less than the reference voltage, for the same current, the same sampling capacitor and the same number of clocks, the following description is given: Greater than the target frequency threshold. So the output of the comparator is 0, it controls CNT to move in the decreasing direction, initially CNT<6:0>=1000000 (corresponding to the relevant control scheme), the next level 0111111 If the output of the comparator is still 0, CNT continues to decrease to the next level 0111110, 0111101, 0111100... until the output of the comparator becomes 1, indicating that the frequency of the oscillator is close to the initial target frequency threshold. In this way, the frequency of the oscillator is reduced from high frequency by reducing the current of the control oscillator to finally approach the desired value. In this way, the automatic adjustment of the frequency is completed.
[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 clocks, it means Less than the target frequency threshold; because the real-time voltage is greater than the reference voltage, the output of the comparator is 1, and it controls CNT to continue counting in the increasing direction. Initially, CNT<6:0>=1000000, and the next level is 1000001. If the output of the comparator is still 1; and CNT continues to increase to the next level by 1000010, 1000011, 1000100, until the output of the comparator becomes 0, the frequency of the oscillator is greater than the set value. The frequency of the oscillator is already close to the initial target frequency threshold. In this way, the frequency of the oscillator is increased from a low frequency by increasing the current of the oscillator to finally approach the desired value. In this way, the automatic adjustment of the frequency is completed.
[0044] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for a method for digital self-correction of frequency in an oscillator. When the program for digital self-correction of frequency in an oscillator is executed by a processor, the steps of any one of the methods for digital self-correction of frequency in an oscillator are implemented.
[0045] like Figure 2 As shown in the figure, it is the flow chart of this design, in which OSC is the oscillator, Control logic is the control logic module; Frequency to voltage is the frequency to voltage conversion module, that is, the module for calculating the real-time voltage; COMP is the comparator module, that is, the comparison between voltage values by the analog comparator; Frequency pattern detection is the frequency detection and judgment module, and CNT is the calculator.
[0046] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0047] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0048] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0049] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0050] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0051] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for digital self-correction of frequency in an oscillator, characterized in that: The following steps are involved: Acquire data information of the oscillator input, and acquire frequency information of the oscillator input by performing parameter recognition on the data information of the oscillator input, and calculate real-time voltage information according to the frequency information; Acquire operating parameter information of the analog comparator, and identify the frequency judgment accuracy according to the operating parameter information of the analog comparator, and obtain an identification result, and when the identification result is not greater than a preset identification result, regulate the analog comparator; Input the real-time voltage information into an analog comparator, obtain a comparison result, and preset several control schemes; The frequency information is adjusted through a counter based on the control scheme and the comparison result.
2. A method for digital self-correction of frequency in an oscillator according to claim 1, characterized in that: By performing parameter recognition on the data information input by the oscillator, the frequency information of the oscillator input is obtained, and the real-time voltage information is calculated according to the frequency information, specifically including: By extracting and identifying features of the data information input by the oscillator, the frequency information of the oscillator input is obtained, and real-time current information, capacitance information and the number of clock cycles are obtained; Real-time voltage information is calculated based on the frequency information, real-time current information, capacitance information and the number of clock cycles input by the oscillator, and the real-time voltage information is output.
3. A method for digital self-correction of frequency in an oscillator according to claim 1, characterized in that: Acquiring operating parameter information of the analog comparator, and identifying the frequency judgment accuracy according to the operating parameter information of the analog comparator to obtain an identification result, specifically including: Acquire historical operating parameter change characteristic data of the analog comparator, and construct a frequency judgment accuracy prediction model based on a deep neural network, and acquire frequency judgment accuracy change characteristic data by performing feature extraction on the historical operating parameter change characteristic data of the analog comparator; Inputting the frequency judgment accuracy change characteristic data into the frequency judgment accuracy prediction model for training, obtaining the trained frequency judgment accuracy prediction model, and obtaining the operating parameter information of the analog comparator within a preset time; Inputting the operating parameter information of the analog comparator within the preset time into the frequency judgment accuracy prediction model for prediction, and obtaining the frequency judgment accuracy of the analog comparator in the current timestamp; A recognition result is constructed according to the frequency judgment accuracy of the analog comparator in the current timestamp, and the recognition result is output.
4. A method for digital self-correction of frequency in an oscillator according to claim 1, characterized in that: When the recognition result is not greater than the preset recognition result, the analog comparator is regulated, specifically including: Constructing a frequency judgment accuracy threshold, setting a preset recognition result based on the frequency judgment accuracy threshold, and judging whether the recognition result is not greater than the preset recognition result; When the recognition result is not greater than the preset recognition result, calculating a compensation value of the analog comparator according to the recognition result and the preset recognition result; Parameter compensation is performed on the analog comparator according to the compensation value of the analog comparator.
5. A method for digital self-correction of frequency in an oscillator according to claim 1, characterized in that: The real-time voltage information is input into the analog comparator to obtain the comparison result, and several control schemes are preset, including: Input the real-time voltage information into an analog comparator, obtain a comparison result, perform parameter compensation on the comparison result, construct a plurality of frequency information control schemes, set relevant control logic for each control scheme, and construct a database; The related control logic and regulation scheme are bound and stored in the database.
6. A method for digital self-correction of frequency in an oscillator according to claim 1, characterized in that: Adjusting the frequency information through a counter based on the control scheme and the comparison result specifically includes: When the comparison result is not a preset comparison result, the control scheme is initialized, real-time voltage information is calculated according to the control scheme, and it is determined whether the voltage information is a reference voltage; When the voltage information is a reference voltage, the control scheme is output; When the voltage information is a reference voltage, the control scheme is adjusted until the voltage information is a reference voltage, and the corresponding control scheme is controlled.
7. A digital self-correction system for frequency in an oscillator, characterized in that The system includes a memory and a processor, wherein the memory includes a digital self-calibration method program for the frequency in the oscillator, and when the digital self-calibration method program for the frequency in the oscillator is executed by the processor, the following steps are implemented: Acquire data information of the oscillator input, and acquire frequency information of the oscillator input by performing parameter recognition on the data information of the oscillator input, and calculate real-time voltage information according to the frequency information; Acquire operating parameter information of the analog comparator, and identify the frequency judgment accuracy according to the operating parameter information of the analog comparator, and obtain an identification result, and when the identification result is not greater than a preset identification result, regulate the analog comparator; Input the real-time voltage information into an analog comparator, obtain a comparison result, and preset several control schemes; The frequency information is adjusted through a counter based on the control scheme and the comparison result.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a digital self-correction method program for frequency in an oscillator. When the digital self-correction method program for frequency in an oscillator is executed by a processor, the steps of the digital self-correction method for frequency in an oscillator as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
High-accuracy oscillator and self-calibration method thereof
CN102201801A
Complementary metal oxide semiconductor (CMOS) process-based high-accuracy on-chip clock oscillator
CN102882471A
Oscillator arrangement
CN103516333A
High-stability clock generation circuit based on automatic biasing frequency locking ring
CN106444344A
Clock calibration method, system and equipment based on machine learning
CN115549645A
