Method, device and equipment for adjusting output frequency of oscillator circuit and storage medium

By detecting and adjusting parameters such as the capacitance, current source and reference voltage of the oscillator circuit, the problem that the output frequency of the oscillator circuit is affected by temperature is solved, and the frequency accuracy and stability are improved.

CN114826156BActive Publication Date: 2025-10-21ZHEJIANG GEOFORCECHIP TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210589050.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2025-10-21
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

The output frequency of existing oscillator circuits is affected by temperature, resulting in unstable and inaccurate frequency.

Method used

By detecting the current frequency and temperature characteristics of the oscillator circuit, the target frequency and temperature characteristics are determined, and based on the difference and the parameter adjustment range, the parameters such as the capacitor, current source and reference voltage are adjusted to calibrate the output frequency to the target value.

Benefits of technology

The automatic adjustment and calibration of the output frequency of the oscillator circuit is realized, and the frequency accuracy and stability are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114826156B_ABST
    Figure CN114826156B_ABST
Patent Text Reader

Abstract

The application provides an oscillator circuit output frequency adjustment method, device, equipment and storage medium. The method comprises the following steps: detecting a current amplitude and a current temperature characteristic of an oscillator circuit output frequency; determining a target amplitude and a target temperature characteristic of the oscillator circuit output frequency; determining a target adjustment parameter based on a first difference between the current amplitude and the target amplitude and a variation range of each adjustment parameter; the target adjustment parameter comprises at least one of a capacitor of the oscillator circuit, a current source and a reference voltage of a comparator; and adjusting the target adjustment parameter to calibrate the oscillator circuit output frequency to the target amplitude and the target temperature characteristic. The application can effectively calibrate the output frequency of the oscillator circuit and improve the precision of the output frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of oscillators, and specifically relates to a method, device, equipment and storage medium for adjusting the output frequency of an oscillator circuit. Background Art

[0002] With the continuous development of electronic technology, the application of various electronic components has become increasingly widespread, and integrated circuits have been applied to all aspects of our lives. For example, oscillator circuits (circuits that can convert DC power into AC power with a certain frequency) and chips integrating such circuits have found widespread application in many fields, including measurement, automatic control, wireless communications, and remote control.

[0003] However, the output frequency of the existing oscillator circuit is affected by temperature, which may cause the output frequency to vary from expectations, thereby causing the oscillator output frequency to be unstable and inaccurate. Summary of the Invention

[0004] The present application proposes a method, device, equipment and storage medium for adjusting the output frequency of an oscillator circuit. The method can effectively calibrate the output frequency of the oscillator circuit and improve the accuracy of the output frequency.

[0005] A first embodiment of the present application provides a method for adjusting the output frequency of an oscillator circuit, the method comprising:

[0006] detecting the current amplitude and current temperature characteristics of the output frequency of the oscillator circuit;

[0007] determining a target amplitude and a target temperature characteristic of an output frequency of the oscillator circuit;

[0008] determining a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter; the target adjustment parameter comprising at least one of a capacitance of the oscillator circuit, a current source, and a reference voltage of a comparator;

[0009] The target adjustment parameter is adjusted to calibrate the output frequency of the oscillator circuit to the target amplitude and the target temperature characteristic.

[0010] In some embodiments of the present application, determining a target adjustment parameter based on a first difference between the current amplitude and the target amplitude includes:

[0011] determining whether the current temperature characteristic and the target temperature characteristic are the same;

[0012] If yes, determining whether adjusting the capacitance can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude and the adjustment range of the capacitance;

[0013] If so, it is determined that the target adjustment parameter is capacitance.

[0014] In some embodiments of the present application, after determining, based on the current amplitude and the variation range of the capacitance, whether adjusting the capacitance can enable the output frequency of the oscillator circuit to reach the target frequency, the method further includes:

[0015] If adjusting the capacitor cannot make the output frequency of the oscillator circuit reach the target frequency, determining whether adjusting the capacitor and the current source in sequence can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude, the adjustment range of the capacitor, and the adjustment range of the current source;

[0016] If so, it is determined that the target adjustment parameters are capacitance and current source, and the temperature characteristic of the output frequency of the oscillator circuit is not changed after the current source is adjusted.

[0017] In some embodiments of the present application, after determining, based on the current amplitude, the adjustment range of the capacitor, and the adjustment range of the current source, whether adjusting the capacitor and the current source in sequence can enable the output frequency of the oscillator circuit to reach the target frequency, the further step includes:

[0018] If adjusting the capacitor and the current source in sequence cannot cause the output frequency of the oscillator circuit to reach the target frequency, determining, based on the current amplitude, the adjustment range of the capacitor, the adjustment range of the current source, and the adjustment range of the reference voltage, whether adjusting the capacitor, the current source, and the reference voltage in sequence can cause the output frequency of the oscillator circuit to reach the target frequency;

[0019] If so, the target adjustment parameters are determined to be capacitance, current source, and reference voltage.

[0020] In some embodiments of the present application, adjusting the target adjustment parameter to calibrate the output frequency of the oscillator circuit from the current amplitude and the current temperature characteristic to the target amplitude and the target temperature characteristic includes:

[0021] sequentially adjusting the capacitance, the reference voltage, and the current source of the oscillator circuit so that the amplitude of the output frequency of the oscillator circuit reaches the target amplitude;

[0022] detecting a new temperature characteristic of the output frequency of the oscillator circuit after adjusting the amplitude;

[0023] determining whether the new temperature characteristic is the same as the target temperature characteristic;

[0024] If not, the temperature characteristics of part or all of the current sources are modified so that the output frequency of the oscillator circuit meets the target temperature characteristics.

[0025] In some embodiments of the present application, after determining whether the current temperature characteristic is the same as the target temperature characteristic, the method further includes:

[0026] If the current temperature characteristic is different from the target temperature characteristic, determining whether adjusting the current source can enable the output frequency of the oscillator circuit to reach the target frequency based on the current amplitude and the adjustment range of the current source;

[0027] If so, it is determined that the target adjustment parameter is a current source.

[0028] In some embodiments of the present application, adjusting the target adjustment parameter to calibrate the output frequency of the oscillator circuit from the current amplitude and the current temperature characteristic to the target amplitude and the target temperature characteristic includes:

[0029] determining a current value to be compensated of the current source according to the first difference;

[0030] determining a temperature characteristic to be compensated for the current source according to the current temperature characteristic and the target temperature characteristic;

[0031] Based on the current value to be compensated and the temperature characteristic to be compensated, the current source of the oscillator circuit is adjusted so that the output frequency of the oscillator circuit reaches the target amplitude and the target temperature characteristic.

[0032] In some embodiments of the present application, after determining, based on the current amplitude and the adjustment range of the current source, whether adjusting the current source can enable the output frequency of the oscillator circuit to reach the target frequency, the further step includes:

[0033] If adjusting the current source cannot make the output frequency of the oscillator circuit reach the target frequency, determining whether adjusting the capacitor and the current source in sequence can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude, the adjustment range of the current source, and the adjustment range of the capacitor;

[0034] If so, the target adjustment parameters are determined to be the current source and the capacitance.

[0035] In some embodiments of the present application, adjusting the target adjustment parameter to calibrate the output frequency of the oscillator circuit from the current amplitude and the current temperature characteristic to the target amplitude and the target temperature characteristic includes:

[0036] Determining, based on the current amplitude, the adjustment range of the current source, and the adjustment range of the capacitor, a current value to be compensated of the current source after adjusting the capacitor to a maximum value or a minimum value;

[0037] determining a temperature characteristic to be compensated for the current source according to the current temperature characteristic and the target temperature characteristic;

[0038] The capacitance of the oscillator circuit is adjusted to a maximum value or a minimum value, and based on the current value to be compensated and the temperature characteristic to be compensated, the current source of the oscillator circuit is adjusted so that the output frequency of the oscillator circuit reaches the target amplitude and the target temperature characteristic.

[0039] In some embodiments of the present application, after determining, based on the current amplitude, the adjustment range of the current source, and the adjustment range of the capacitor, whether adjusting the capacitor and the current source in sequence can enable the output frequency of the oscillator circuit to reach the target frequency, the further step includes:

[0040] If sequentially adjusting the capacitor and the current source cannot cause the output frequency of the oscillator circuit to reach the target frequency, determining, based on the current amplitude, the adjustment range of the current source, the adjustment range of the capacitor, and the adjustment range of the reference voltage, whether sequentially adjusting the capacitor, the current source, and the reference voltage can cause the output frequency of the oscillator circuit to reach the target frequency;

[0041] If so, the target adjustment parameters are determined to be the current source, the capacitance, and the reference voltage; if not, a prompt message indicating that the adjustment range is exceeded is output.

[0042] An embodiment of a second aspect of the present application provides a device for adjusting the output frequency of an oscillator circuit, comprising:

[0043] A detection module, used to detect the current amplitude and current temperature characteristics of the output frequency of the oscillator circuit;

[0044] a target determination module, configured to determine a target amplitude and a target temperature characteristic of an output frequency of the oscillator circuit;

[0045] a parameter determination module, configured to determine a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter; the target adjustment parameter comprising at least one of a capacitance of the oscillator circuit, a current source, and a reference voltage of a comparator;

[0046] An adjustment module is used to adjust the target adjustment parameter to calibrate the output frequency of the oscillator circuit to the target amplitude and the target temperature characteristic.

[0047] An embodiment of the third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps described in the first aspect when executing the computer program.

[0048] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method described in the first aspect.

[0049] The technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:

[0050] The method for adjusting the output frequency of an oscillator circuit provided in an embodiment of the present application first obtains the current amplitude, current temperature characteristics, target amplitude, and target temperature characteristics of the oscillator circuit's output frequency, then determines the target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and the adjustment range of each parameter, and then calibrates the output frequency of the oscillator circuit to the target amplitude and target temperature characteristics by adjusting the target adjustment parameter. After obtaining the current amplitude, current temperature characteristics, target amplitude, and target temperature characteristics of the oscillator circuit's output frequency, this embodiment first determines the target adjustment parameter that needs to be adjusted based on the current amplitude and target amplitude, and then adjusts the target adjustment parameter so that the output frequency of the oscillator circuit meets the target amplitude and target temperature characteristics, thereby achieving automatic adjustment and calibration of the oscillator circuit's output frequency and effectively improving the accuracy of the oscillator circuit's output frequency. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. Throughout the accompanying drawings, the same reference numerals are used to denote the same components.

[0052] In the attached figure:

[0053] Figure 1 Shown is a schematic structural diagram of an oscillator circuit in the prior art;

[0054] Figure 2 A schematic diagram of the principle structure of an oscillator circuit provided in one embodiment of the present application is shown;

[0055] Figure 3 A schematic flow chart of a method for adjusting the output frequency of an oscillator circuit provided in one embodiment of the present application is shown;

[0056] Figure 4 The specific flow diagram of step 3 in one embodiment of the present application is shown;

[0057] Figure 5 A schematic structural diagram of an electronic device provided in one embodiment of the present application is shown;

[0058] Figure 6 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0059] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0060] It should be noted that, unless otherwise specified, the technical or scientific terms used in this application should have the common meanings understood by those skilled in the art to which this application belongs.

[0061] In the existing related technologies, the oscillator circuit involved in this embodiment can be used to produce and output clock signals, and adjust the frequency amplitude and frequency temperature characteristics, that is, the amplitude and temperature characteristics of the clock signal. Its structure is generally as follows Figure 1 As shown, the oscillator circuit includes a current source connected to a supply voltage, a capacitor connected to the current source, a PMOS transistor connected in parallel with the capacitor, and a comparator. The comparator's positive input is connected to the drain of the PMOS transistor, its negative input is connected to a reference voltage Vref, and its output is connected to the gate of the PMOS transistor. The source of the PMOS transistor is grounded. The operating principle of the oscillator circuit is as follows: the capacitor is charged by the current source. When the charge in the capacitor reaches the reference voltage Vref, the comparator outputs a high level, which turns on the PMOS transistor. After the PMOS transistor turns on, it rapidly discharges the capacitor (grounded). After the capacitor is discharged, the comparator's positive input voltage decreases, resulting in a low level output, which turns off the PMOS transistor. The current source then charges the capacitor again. This cycle repeats, and the comparator regularly outputs high and low levels, i.e., an AC signal. The frequency of the AC signal can be adjusted by setting different reference voltages Vref.

[0062] The inventors discovered that the oscillator circuit's output frequency is affected by temperature because increasing temperature increases the delay of the comparator and the on-resistance of the MOS switch. Simultaneously, the current Icu also varies with temperature, thus affecting the oscillator's frequency. Furthermore, the oscillator's process can also affect its output frequency.

[0063] It can be understood that the output frequency Fr of the oscillator circuit can be calculated according to the following formula (1):

[0064]

[0065] Wherein, Fr is the frequency output by the oscillator circuit, Cr is the capacitance value of the capacitor, Ir is the current value of the current source, and Vr is the reference voltage of the comparator.

[0066] Based on the above formula, it can be seen that the output frequency of the oscillator circuit is related to the capacitance value of the capacitor, the current value of the current source and the reference voltage of the comparator.

[0067] In view of the above findings, in order to solve the above problems, the embodiments of the present application propose a method, device, equipment and storage medium for adjusting the output frequency of an oscillator circuit. The method for adjusting the output frequency of the oscillator circuit first obtains the current amplitude, current temperature characteristics, target amplitude and target temperature characteristics of the output frequency of the oscillator circuit, and then determines the target adjustment parameters based on the first difference between the current amplitude and the target amplitude, and the adjustment range of each parameter, and then adjusts the target adjustment parameters to calibrate the output frequency of the oscillator circuit to the target amplitude and target temperature characteristics. After obtaining the current amplitude, current temperature characteristics, target amplitude and target temperature characteristics of the output frequency of the oscillator circuit, this embodiment first determines the target adjustment parameters that need to be adjusted based on the current amplitude and target amplitude, and then adjusts the target adjustment parameters to make the output frequency of the oscillator circuit meet the target amplitude and target temperature characteristics, thereby realizing automatic adjustment and calibration of the output frequency of the oscillator circuit, and effectively improving the accuracy of the output frequency of the oscillator circuit.

[0068] In this embodiment, the oscillator circuit can be set to have a capacitor with an adjustable capacitance value, a current source with an adjustable current value, and a reference voltage with an adjustable voltage value, and the adjustment range of the output frequency corresponding to the capacitor, current source and reference voltage can be calculated in advance, that is, the above-mentioned capacitor, current source and reference voltage are adjusted to enable the oscillator circuit to reach the output frequency variation range. Alternatively, various compensation circuits can also be set to compensate for the above-mentioned capacitor, current source and reference voltage when necessary. That is, this embodiment does not specifically limit the adjustment method of the various parameters of the oscillator circuit. It can be either to directly adjust the various adjustable parameters in the oscillator circuit, or to compensate for the various parameters in the oscillator circuit through other compensation circuits. It can also be as follows Figure 2 As shown, the oscillator circuit includes a capacitor array with adjustable capacitance, a current source array with adjustable current, and an array resistor capable of providing an adjustable reference voltage. It is also equipped with a current source compensation circuit and a frequency control module. The current source compensation circuit can provide current sources with various temperature characteristics and select current sources with specific temperature characteristics. The frequency control module can detect the current amplitude and current temperature characteristics of the oscillator circuit's output frequency and control the various electronic components in the oscillator circuit and compensation circuit (for example, adjusting the size and controlling the on / off of switches).

[0069] It should be noted that the above-mentioned adjustment and compensation of the capacitor, current source and reference voltage include changes in both increasing and decreasing directions.

[0070] Please refer to Figure 3, which is a flow chart of the method for adjusting the output frequency of the oscillator circuit provided in this embodiment, as shown in FIG. Figure 3 As shown, the method includes the following steps:

[0071] Step S1, detecting the current amplitude and current temperature characteristics of the output frequency of the oscillator circuit.

[0072] The output frequency can be understood as the center frequency of the clock signal output by the oscillator circuit. The temperature characteristic of frequency can be understood as the law of how the output frequency of the oscillator circuit changes with temperature.

[0073] Since the output frequency of an oscillator may change during use due to temperature or environmental factors, the oscillator circuit must be initialized periodically or irregularly. After each initialization, a correction must be performed based on the output frequency parameters measured above. This means that the current frequency-temperature characteristics of the oscillator circuit being tested are corrected based on the initially measured frequency-temperature characteristics to match the measured frequency-temperature characteristics. Therefore, the current amplitude and temperature characteristics of the oscillator circuit's output frequency can be automatically detected after each initialization. Alternatively, real-time detection can be performed via the frequency table control module upon receiving a detection request.

[0074] In the initialization process of this embodiment, the capacitance value of the capacitor array, the current value of the current source array, and the reference voltage value corresponding to the resistor array are usually set. Specifically, the magnitude of the current value, the magnitude of the capacitance value, and the magnitude of the reference voltage are linearly related to the number of bits storing the corresponding values ​​in the register. In the circuit structure, the number of bits can be used to represent the magnitude of the current value, the magnitude of the capacitance value, and the magnitude of the reference voltage. For example, assuming that the current value of the current source array is n1 bits, the value range is <n1-1:0>Assume that the capacitance value of the capacitor array is n2bit, and the value range is <n2-1:0>Similarly, set the reference voltage range adjusted by the resistor array to <3:0>.

[0075] Step S2: determining a target amplitude and a target temperature characteristic of the output frequency of the oscillator circuit.

[0076] The target amplitude and target temperature characteristics may be preset arbitrary amplitudes and arbitrary temperature characteristics, and may be, but are not limited to, standard amplitudes and standard temperature characteristics measured before the oscillator circuit is put into operation. The target temperature characteristics may refer to the temperature characteristics of the oscillator circuit before first use. Before the oscillator circuit is put into use, its output frequency parameters (including frequency amplitude and frequency temperature characteristics) may be measured and recorded. Each subsequent adjustment of the oscillator circuit's output frequency may be based on the measured frequency parameters.

[0077] In some implementations, the application requirements of the oscillator circuit may be first obtained, and then the target amplitude and target temperature characteristics of the output frequency of the oscillator circuit may be determined based on the application requirements.

[0078] In practical applications, oscillator circuits used in different scenarios may have different requirements for their output frequencies. For example, when used in measurement equipment, the temperature characteristics of the oscillator frequency can be set based on the temperature characteristics of the device under test to ensure measurement accuracy. Therefore, this embodiment can also determine the target amplitude and target temperature characteristics based on the application requirements of the oscillator circuit, thereby enabling more flexible and autonomous adjustment of the oscillator circuit's output frequency.

[0079] In addition, this embodiment does not limit the execution order of step S1 and step S2. In specific implementation, step S1 can be executed first and then step S2, or step S2 can be executed first and then step S1.

[0080] Step S3: determining the target adjustment parameter based on the first difference between the current amplitude and the target amplitude, and the adjustment range of each parameter.

[0081] The target adjustment parameter includes at least one of a capacitance of the oscillator circuit, a current source, and a reference voltage of the comparator. The adjustment range of each parameter may include: a first preset threshold representing a frequency amplitude variation range achievable by adjusting the capacitance; a second preset threshold representing a frequency amplitude variation range achievable by adjusting the current source; and a third preset threshold representing a frequency amplitude variation range achievable by adjusting the reference voltage.

[0082] In view of the adjustment range of each of the above parameters, the target adjustment parameter can be determined based on the above first difference and the adjustment range of each parameter. For example, the capacitance adjustment range of the capacitor is [a, b]. If the amplitude of the current output frequency is f1, and the capacitance value at this time is c in the interval [a, b], then according to the above formula (1), if the first difference (target amplitude minus current amplitude) is positive, the amplitude of the output frequency can be increased by reducing the capacitance value. If other parameters remain unchanged, it can be calculated whether the amplitude of the frequency obtained by adjusting the capacitance value to the maximum value is greater than or equal to the target amplitude. If so, the target adjustment parameter is the capacitance. Other parameters can also refer to the determination method of the capacitance, which will not be repeated here.

[0083] In practical applications, capacitors typically have no temperature coefficient, while current sources and reference voltages can exhibit positive, negative, or no temperature coefficient. Therefore, when adjusting parameters, if the current and target temperature characteristics are identical, the capacitor should be adjusted first, followed by the current and reference voltage. When introducing parameters with temperature characteristics, multiple adjustments are often required to ensure that the oscillator circuit maintains a stable output frequency with the target amplitude and temperature characteristics.

[0084] In some embodiments, as Figure 4 As shown, the above step S3 may include the following processing: determining whether the current temperature characteristic and the target temperature characteristic are the same; if so, determining whether adjusting the capacitance can make the oscillator circuit output frequency reach the target frequency based on the current amplitude and the adjustment range of the capacitance; if so, determining that the target adjustment parameter is the capacitance.

[0085] In this way, if adjusting the capacitance can meet the output frequency amplitude, only the capacitance is set as the target adjustment parameter, which facilitates the implementation of the adjustment steps. Furthermore, since the capacitance has no temperature coefficient, it will not cause the temperature coefficient of the output frequency to change. This avoids temperature characteristic changes caused by the output frequency adjustment process, reduces the number of adjustment repetitions, and improves adjustment efficiency.

[0086] If the above calculations determine that adjusting the capacitor cannot make the oscillator circuit output frequency reach the target frequency, then determine whether adjusting the capacitor and current source in sequence can make the oscillator circuit output frequency reach the target frequency based on the current amplitude, the adjustment range of the capacitor, and the adjustment range of the current source. If so, determine that the target adjustment parameters are the capacitor and current source, and that the temperature characteristics of the oscillator circuit output frequency do not change after adjustment of the current source.

[0087] In this way, when adjusting the capacitance cannot meet the requirements, and adjusting the capacitance and current in sequence can meet the output frequency amplitude, both the capacitance and the current source are set as target adjustment parameters to ensure the accuracy of the frequency adjustment, and a current source without a temperature coefficient can be used to avoid changes in the temperature coefficient during the adjustment process, thereby avoiding repeated detection and adjustment.

[0088] Furthermore, if it is determined that adjusting the capacitor and current source in sequence cannot make the output frequency of the oscillator circuit reach the target frequency, then based on the current amplitude, the adjustment range of the capacitor, the adjustment range of the current source and the adjustment range of the reference voltage, it is determined whether adjusting the capacitor, current source and reference voltage in sequence can make the output frequency of the oscillator circuit reach the target frequency; if so, the target adjustment parameters are determined to be the capacitor, current source and reference voltage; if not, a prompt message indicating that the adjustment range is exceeded is output.

[0089] In this embodiment, since the reference voltage directly affects the output of the comparator and has a greater impact on the temperature characteristics of the output frequency, it has the lowest priority when adjusting the frequency. Only when the adjustment capacitor and current source cannot meet the output frequency requirements, the reference voltage is considered for adjustment. After adjusting the reference voltage, it is usually necessary to re-detect and adjust the temperature characteristics. If all capacitor arrays, resistor arrays, and current arrays are adjusted to 0000 or 1111, and the center frequency is still not within the required range, a '0' (of course, other numbers or symbols, such as NULL) can be output as a prompt message that the adjustment range is exceeded. Accordingly, if the output frequency has been adjusted to the target frequency, a '1' (of course, other numbers or symbols, such as YES) can be output as a prompt message that the adjustment is completed.

[0090] It should be noted that, in the above secondary adjustment of the capacitance and the current source, the temperature may be adjusted first, or the capacitance may be adjusted first.

[0091] In some embodiments, if the current temperature characteristic and the target temperature characteristic are different, it is determined whether adjusting the current source can make the oscillator circuit output frequency reach the target frequency based on the current amplitude and the adjustment range of the current source; if so, the target adjustment parameter is determined to be the current source.

[0092] In this embodiment, since adjusting the current can simultaneously adjust the magnitude and temperature characteristics of the output frequency, when the temperature characteristics of the output frequency need to be adjusted, it is possible to first determine whether adjusting the current alone can enable the oscillator circuit output frequency to reach the target frequency. If not, try increasing the capacitance and reference voltage in turn to maximize the adjustment accuracy and efficiency.

[0093] Accordingly, when the current temperature characteristics and the target temperature characteristics are different, if adjusting the current source cannot make the output frequency of the oscillator circuit reach the target frequency, then based on the current amplitude, the adjustment range of the current source and the adjustment range of the capacitor, determine whether adjusting the capacitor and the current source in sequence can make the output frequency of the oscillator circuit reach the target frequency; if so, then determine that the target adjustment parameters are the current source and the capacitor.

[0094] In this way, when the current temperature characteristics and the target temperature characteristics are different, and adjusting the capacitance and current in sequence can meet the output frequency amplitude, both the capacitance and the current source are set as target adjustment parameters to ensure the accuracy of the frequency adjustment, and a current source without a temperature coefficient can be used to avoid changes in the temperature coefficient during the adjustment process, thereby avoiding repeated detection and repeated adjustment.

[0095] Furthermore, if the current temperature characteristics and the target temperature characteristics are different, and adjusting the current source and capacitor still cannot make the oscillator circuit output frequency reach the target frequency, then based on the current amplitude, the adjustment range of the current source, the adjustment range of the capacitor, and the adjustment range of the reference voltage, it is determined whether adjusting the capacitor, current source, and reference voltage in sequence can make the oscillator circuit output frequency reach the target frequency; if so, the target adjustment parameters are determined to be the current source, capacitor, and reference voltage; if not, a prompt message is output indicating that the adjustment range is exceeded. In this way, the target adjustment parameters can be accurately determined to include the current source, capacitor, and reference voltage, thereby ensuring the accuracy of the output frequency.

[0096] It should be noted that, for the case where the current temperature characteristics and the target temperature characteristics are different, the specific calculation process of whether the output frequency of the oscillator circuit can reach the target frequency can refer to the case where the current temperature characteristics and the target temperature characteristics are the same as above, and will not be repeated here. Similarly, when all the capacitor arrays, resistor arrays and current arrays are adjusted to 0000 or 1111, and the center frequency is still not within the required range, a '0' (of course, other numbers or symbols, such as NULL) can be output as a prompt message that the adjustment range is exceeded. Correspondingly, if the output frequency has been adjusted to the target frequency, a '1' (of course, other numbers or symbols, such as YES) can be output as a prompt message that the adjustment is completed.

[0097] Step S4 , adjusting the target adjustment parameters to calibrate the output frequency of the oscillator circuit to the target amplitude and target temperature characteristics.

[0098] After determining the target adjustment parameter, the present embodiment can refer to the process of determining the target adjustment parameter and calculate the adjusted value of the target adjustment parameter according to the above formula (1). If there is only one target adjustment parameter, usually capacitance or current. For example, if there is only capacitance, the target capacitance value that makes the output frequency reach the target frequency can be calculated first, and then the current capacitance value can be adjusted to the target capacitance value. If the target adjustment parameter includes multiple parameters, usually at least capacitance and current are included.

[0099] When adjusting the target parameters, the changes are usually made step by step, for example, changing the 4-bit capacitance from 1000 to 1001.

[0100] When the target temperature characteristic is the same as the current temperature characteristic, and the target adjustment parameters include capacitance, reference voltage, and current source, the above-mentioned step S4 may include the following processing: adjusting the capacitance, reference voltage, and current source of the oscillator circuit in sequence so that the amplitude of the output frequency of the oscillator circuit reaches the target amplitude; detecting the new temperature characteristic of the output frequency of the oscillator circuit after adjusting the amplitude; determining whether the new temperature characteristic is the same as the target temperature characteristic; if not, correcting the temperature characteristics of part or all of the current sources so that the output frequency of the oscillator circuit meets the target temperature characteristic.

[0101] In this embodiment, although the target temperature characteristic and the current temperature characteristic are identical, the target adjustment parameters include the current source and the reference voltage, both of which have temperature coefficients. Therefore, after the output frequency amplitude reaches the target amplitude, it is necessary to re-test the current temperature characteristic and, by correcting the temperature characteristics of some or all of the current sources, adjust the oscillator circuit's output frequency to meet the target temperature characteristic. This ensures both the output frequency amplitude and the temperature characteristic, further effectively improving the precision and accuracy of the output frequency.

[0102] It should be noted that the above-mentioned sequential adjustment of the capacitance, reference voltage and current source of the oscillator circuit does not limit the adjustment order, and it is sufficient to adjust the above-mentioned three parameters in sequence.

[0103] In the case where the target temperature characteristic and the current temperature characteristic are different, if the target adjustment parameter only includes the current source, the above-mentioned step S4 may include the following processing: determining the current value to be compensated of the current source based on the first difference; determining the temperature characteristic to be compensated of the current source based on the current temperature characteristic and the target temperature characteristic; and adjusting the current source of the oscillator circuit based on the current value to be compensated and the temperature characteristic to be compensated so that the output frequency of the oscillator circuit reaches the target amplitude and target temperature characteristic.

[0104] Since adjusting the current can simultaneously adjust the magnitude and temperature characteristics of the output frequency, when the temperature characteristics of the output frequency need to be adjusted, the current source can be adjusted first, that is, first determine the current value to be compensated of the current source, and then determine the temperature characteristics to be compensated. After that, a current source with a current value as the current value to be compensated and a temperature characteristic as the temperature characteristic to be compensated can be selected. By compensating the current current source with the selected current source, the frequency amplitude and temperature characteristics can be adjusted at the same time to maximize the adjustment accuracy and adjustment efficiency.

[0105] When the target temperature characteristic and the current temperature characteristic are different, if the target adjustment parameters include a current source and a capacitor, the above-mentioned step S4 may include the following processing: determining the current value to be compensated of the current source after adjusting the capacitor to the maximum value or the minimum value based on the current amplitude, the adjustment range of the current source and the adjustment range of the capacitor; determining the temperature characteristic to be compensated of the current source based on the current temperature characteristic and the target temperature characteristic; adjusting the capacitance of the oscillator circuit to the maximum value or the minimum value, and adjusting the current source of the oscillator circuit based on the current value to be compensated and the temperature characteristic to be compensated, so that the output frequency of the oscillator circuit reaches the target amplitude and the target temperature characteristic.

[0106] In this embodiment, since the capacitor has no temperature characteristics, the capacitance value can be fully adjusted first (whether to be adjusted to the minimum or maximum can be selected according to the actual situation), and then the second difference between the current frequency amplitude and the target frequency amplitude is tested, and then the current value to be compensated of the current source is determined based on the difference between the second difference and the target amplitude. Then, based on the current temperature characteristics (which can be before or after the capacitance adjustment) and the target temperature characteristics, the temperature characteristics to be compensated of the current source are determined. After that, adjustment can be performed, adjusting the capacitance and current in turn, and adjusting the capacitance to full when adjusting the capacitance, inputting the compensation current when adjusting the current, and the compensation current has the above-mentioned current value to be compensated and the temperature characteristics to be compensated.

[0107] For situations where the target temperature characteristics are different from the current temperature characteristics, and the target adjustment parameters include the current source, capacitor, and reference voltage, you can refer to the above situation where the target temperature characteristics are different from the current temperature characteristics, and the target adjustment parameters include the current source and capacitor. That is, first adjust the capacitor to the maximum, then adjust the current source to the maximum, then calculate the adjusted reference voltage, and adjust the reference voltage to the calculated adjusted reference voltage. Then, re-check the temperature characteristics of the output frequency, and by correcting the temperature characteristics of some or all of the current sources, make the output frequency of the oscillator circuit meet the target temperature characteristics. In this way, both the amplitude of the output frequency and the temperature characteristics of the output frequency can be guaranteed, further effectively improving the precision and accuracy of the output frequency.

[0108] It should be noted that the steps of the above-mentioned method for adjusting the output frequency of the oscillator circuit are only steps for one adjustment. In actual applications, after the initial calibration is completed, it is necessary to repeat the frequency amplitude calibration and temperature characteristic calibration one or more times to achieve the frequency amplitude stabilization within the preset threshold range and the frequency temperature characteristic reaches the preset value.

[0109] It should be noted that the method for adjusting the output frequency of the oscillator circuit provided in this embodiment is based on the same concept as the above-mentioned oscillator circuit, so it can at least achieve the above-mentioned beneficial effects, and any of the above-mentioned implementation methods can be applied to the method for adjusting the output frequency of the oscillator circuit provided in this embodiment, which will not be repeated here.

[0110] Based on the same concept as above, this embodiment further provides a device for adjusting the output frequency of an oscillator circuit, comprising:

[0111] A detection module, used to detect the current amplitude and current temperature characteristics of the output frequency of the oscillator circuit;

[0112] a target determination module, configured to determine a target amplitude and a target temperature characteristic of an output frequency of an oscillator circuit;

[0113] a parameter determination module, configured to determine a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter; the target adjustment parameter comprising at least one of a capacitance of the oscillator circuit, a current source, and a reference voltage of the comparator;

[0114] The adjustment module is used to adjust the target adjustment parameters and calibrate the output frequency of the oscillator circuit to a target amplitude and target temperature characteristics.

[0115] The device for adjusting the output frequency of an oscillator circuit provided in this embodiment is based on the same concept as the method for adjusting the output frequency of an oscillator circuit described above, and therefore can at least achieve the aforementioned beneficial effects. Any of the aforementioned implementations can be applied to the device for adjusting the output frequency of an oscillator circuit provided in this embodiment, and will not be described in detail herein.

[0116] The present application also provides an electronic device to perform the above-mentioned method for adjusting the output frequency of the oscillator circuit. The electronic device can be a vehicle domain controller or a battery management system, or other specially configured controllers. Figure 5 , which shows a schematic diagram of an electrical device provided by some embodiments of the present application. Figure 5 As shown, the electrical device 40 includes: a processor 400, a memory 401, a bus 402 and a communication interface 403. The processor 400, the communication interface 403 and the memory 401 are connected via the bus 402; the memory 401 stores a computer program that can be run on the processor 400, and when the processor 400 runs the computer program, it executes the method for adjusting the output frequency of the oscillator circuit provided in any of the aforementioned embodiments of the present application.

[0117] The memory 401 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is achieved through at least one communication interface 403 (which may be wired or wireless), and may use the Internet, a wide area network, a local area network, a metropolitan area network, etc.

[0118] Bus 402 may be an ISA bus, a PCI bus, or an EISA bus. Buses may be classified as address buses, data buses, and control buses. Memory 401 is used to store programs, and processor 400 executes the programs upon receiving execution instructions. The method for adjusting the output frequency of an oscillator circuit disclosed in any of the aforementioned embodiments of the present application may be applied to or implemented by processor 400.

[0119] The processor 400 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 400 or by software instructions. The above processor 400 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 401 , and the processor 400 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.

[0120] The electrical equipment provided in the embodiment of the present application and the method for adjusting the output frequency of the oscillator circuit provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0121] The present application also provides a computer-readable storage medium corresponding to the method for adjusting the output frequency of the oscillator circuit provided in the above embodiment. Figure 6 The computer-readable storage medium shown is a CD 30 on which a computer program (i.e., a program product) is stored. When the computer program is run by the processor, it will execute the method for adjusting the output frequency of the oscillator circuit provided by any of the aforementioned embodiments.

[0122] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0123] The computer-readable storage medium provided in the above-mentioned embodiment of the present application and the method for adjusting the output frequency of the oscillator circuit provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A method for adjusting the output frequency of an oscillator circuit, characterized in that: The method comprises: detecting the current amplitude and current temperature characteristics of the output frequency of the oscillator circuit; determining a target amplitude and a target temperature characteristic of an output frequency of the oscillator circuit; determining a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter; the target adjustment parameter comprising at least one of a capacitance of the oscillator circuit, a current source, and a reference voltage of a comparator; Adjusting the target adjustment parameters to calibrate the output frequency of the oscillator circuit to the target amplitude and the target temperature characteristic; Determining a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter, includes: determining whether the current temperature characteristic and the target temperature characteristic are the same; If yes, determining whether adjusting the capacitance can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude and the adjustment range of the capacitance; If yes, determining that the target adjustment parameter is capacitance; After determining whether the current temperature characteristic is the same as the target temperature characteristic, the method further includes: If the current temperature characteristic is different from the target temperature characteristic, determining whether adjusting the current source can enable the output frequency of the oscillator circuit to reach the target frequency based on the current amplitude and the adjustment range of the current source; If so, it is determined that the target adjustment parameter is a current source.

2. The adjustment method according to claim 1, characterized in that: After determining, based on the current amplitude and the variation range of the capacitance, whether adjusting the capacitance can enable the output frequency of the oscillator circuit to reach the target frequency, the method further includes: If adjusting the capacitor cannot make the output frequency of the oscillator circuit reach the target frequency, determining whether adjusting the capacitor and the current source in sequence can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude, the adjustment range of the capacitor, and the adjustment range of the current source; If so, it is determined that the target adjustment parameters are capacitance and current source, and the temperature characteristic of the output frequency of the oscillator circuit is not changed after the current source is adjusted.

3. The adjustment method according to claim 2, characterized in that: After determining, based on the current amplitude, the adjustment range of the capacitor, and the adjustment range of the current source, whether adjusting the capacitor and the current source in sequence can enable the output frequency of the oscillator circuit to reach the target frequency, the further step includes: If adjusting the capacitor and the current source in sequence cannot cause the output frequency of the oscillator circuit to reach the target frequency, determining, based on the current amplitude, the adjustment range of the capacitor, the adjustment range of the current source, and the adjustment range of the reference voltage, whether adjusting the capacitor, the current source, and the reference voltage in sequence can cause the output frequency of the oscillator circuit to reach the target frequency; If so, the target adjustment parameters are determined to be capacitance, current source, and reference voltage.

4. The adjustment method according to claim 3, characterized in that: Adjusting the target adjustment parameters to calibrate the output frequency of the oscillator circuit from the current amplitude and the current temperature characteristic to the target amplitude and the target temperature characteristic includes: sequentially adjusting the capacitance, the reference voltage, and the current source of the oscillator circuit so that the amplitude of the output frequency of the oscillator circuit reaches the target amplitude; detecting a new temperature characteristic of the output frequency of the oscillator circuit after adjusting the amplitude; determining whether the new temperature characteristic is the same as the target temperature characteristic; If not, the temperature characteristics of part or all of the current sources are modified so that the output frequency of the oscillator circuit meets the target temperature characteristics.

5. The adjustment method according to claim 1, characterized in that: Adjusting the target adjustment parameters to calibrate the output frequency of the oscillator circuit from the current amplitude and the current temperature characteristic to the target amplitude and the target temperature characteristic includes: determining a current value to be compensated of the current source according to the first difference; determining a temperature characteristic to be compensated for the current source according to the current temperature characteristic and the target temperature characteristic; Based on the current value to be compensated and the temperature characteristic to be compensated, the current source of the oscillator circuit is adjusted so that the output frequency of the oscillator circuit reaches the target amplitude and the target temperature characteristic.

6. The adjustment method according to claim 1, characterized in that: After determining, based on the current amplitude and the adjustment range of the current source, whether the current source can be adjusted to enable the output frequency of the oscillator circuit to reach the target frequency, the method further includes: If adjusting the current source cannot make the output frequency of the oscillator circuit reach the target frequency, determining whether adjusting the capacitor and the current source in sequence can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude, the adjustment range of the current source, and the adjustment range of the capacitor; If so, the target adjustment parameters are determined to be the current source and the capacitance.

7. The adjustment method according to claim 6, characterized in that: Adjusting the target adjustment parameters to calibrate the output frequency of the oscillator circuit from the current amplitude and the current temperature characteristic to the target amplitude and the target temperature characteristic includes: Determining, based on the current amplitude, the adjustment range of the current source, and the adjustment range of the capacitor, a current value to be compensated of the current source after adjusting the capacitor to a maximum value or a minimum value; determining a temperature characteristic to be compensated for the current source according to the current temperature characteristic and the target temperature characteristic; The capacitance of the oscillator circuit is adjusted to a maximum value or a minimum value, and based on the current value to be compensated and the temperature characteristic to be compensated, the current source of the oscillator circuit is adjusted so that the output frequency of the oscillator circuit reaches the target amplitude and the target temperature characteristic.

8. The adjustment method according to claim 6, characterized in that: After determining, based on the current amplitude, the adjustment range of the current source, and the adjustment range of the capacitor, whether adjusting the capacitor and the current source in sequence can enable the output frequency of the oscillator circuit to reach the target frequency, the further step includes: If sequentially adjusting the capacitor and the current source cannot cause the output frequency of the oscillator circuit to reach the target frequency, determining, based on the current amplitude, the adjustment range of the current source, the adjustment range of the capacitor, and the adjustment range of the reference voltage, whether sequentially adjusting the capacitor, the current source, and the reference voltage can cause the output frequency of the oscillator circuit to reach the target frequency; If so, the target adjustment parameters are determined to be the current source, the capacitance, and the reference voltage; if not, a prompt message indicating that the adjustment range is exceeded is output.

9. A device for adjusting the output frequency of an oscillator circuit, characterized in that: include: A detection module, used to detect the current amplitude and current temperature characteristics of the output frequency of the oscillator circuit; a target determination module, configured to determine a target amplitude and a target temperature characteristic of an output frequency of the oscillator circuit; a parameter determination module, configured to determine a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter; The target adjustment parameter includes at least one of a capacitance of the oscillator circuit, a current source, and a reference voltage of a comparator; an adjustment module, configured to adjust the target adjustment parameter to calibrate the output frequency of the oscillator circuit to the target amplitude and the target temperature characteristic; Determining a target adjustment parameter based on a first difference between the current amplitude and the target amplitude, and a variation range of each adjustment parameter, includes: determining whether the current temperature characteristic and the target temperature characteristic are the same; if so, determining whether adjusting the capacitance can enable the output frequency of the oscillator circuit to reach the target frequency based on the current amplitude and the adjustment range of the capacitance; if so, determining that the target adjustment parameter is capacitance; After determining whether the current temperature characteristic and the target temperature characteristic are the same, it also includes: if the current temperature characteristic and the target temperature characteristic are not the same, determining whether adjusting the current source can make the output frequency of the oscillator circuit reach the target frequency based on the current amplitude and the adjustment range of the current source; if so, determining that the target adjustment parameter is the current source.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Oscillator circuit, semiconductor apparatus, oscillator ic, and calibration method for oscillator circuit

    JP2020191486A

  • Oscillator circuit and method of providing temperature compensation therefor

    US20160049905A1