Relaxation oscillator system

By designing the switching module and temperature sensor in the relaxation oscillator and adjusting the capacitance parameters, the problem of poor frequency stability of the relaxation oscillator is solved, and low-cost and efficient clock signal generation is achieved.

WO2024216752A1PCT designated stage expired Publication Date: 2024-10-24XINYI INFORMATION TECH(SHANGHAI) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/104123
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2023-06-29
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing relaxation oscillators have poor frequency stability and require complex bias voltage elimination circuits, which are costly and difficult to implement.

Method used

A relaxation oscillation circuit including a comparator, capacitor and RC module is designed. The switching module alternately switches between the two modes to avoid bias voltage. The temperature sensor and frequency calibration module are used to adjust the capacitance parameters to ensure the accuracy of the clock signal. stability.

Benefits of technology

A low-cost, easy-to-implement stable frequency clock signal is achieved, which reduces power consumption and avoids frequency instability problems caused by bias voltage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023104123_24102024_PF_FP_ABST
    Figure CN2023104123_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to the technical field of integrated circuits, and discloses a relaxation oscillator system. The relaxation oscillator system comprises: a relaxation oscillation circuit, comprising a comparator, a first capacitor connected to a negative input end of the comparator, a second capacitor connected to a positive input end of the comparator, an RC module respectively connected to the positive input end and the negative input end, and a switching module connected to the output end of the comparator; the switching module is used, in accordance with a signal outputted by the output end, for switching the relaxation oscillation circuit to a first mode or to a second mode; in the first mode, the RC module is conducted with the positive input end, and the first capacitor is conducted with the negative input end; and in the second mode, the RC module is conducted with the negative input end, and the second capacitor is conducted with the positive input end.
Need to check novelty before this filing date? Find Prior Art

Description

A relaxation oscillator system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number "202310430109.8" and application date of April 21, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application by introduction. Technical Field

[0003] The embodiments of the present application relate to the field of integrated circuit technology, and in particular to a relaxation oscillator system. Background Art

[0004] Current IoT devices are primarily battery-powered. Chip power consumption is a key factor affecting battery life, so reducing chip power consumption can extend battery life. IoT chips spend most of their time in sleep mode, where they rely solely on a low-frequency oscillator to provide system timing. Therefore, an oscillator circuit with high frequency accuracy and low power consumption can maximize the chip's sleep time, thereby reducing power consumption.

[0005] A crystal oscillator-based clock circuit can meet the aforementioned oscillation circuit requirements, but this type of clock circuit has the disadvantage of requiring additional peripheral components and chip pins, increasing hardware cost. Therefore, a low-cost on-chip RC relaxation oscillator can be used instead of a crystal oscillator, as shown in Figure 1. However, the comparator in the relaxation oscillator shown in Figure 1 is affected by the bias voltage in the circuit, resulting in a frequency stability worse than that of a crystal oscillator. Improving frequency stability requires the use of a more complex bias voltage cancellation circuit, which is difficult to implement and expensive.

[0006] Summary of the Invention

[0007] An embodiment of the present application provides a relaxation oscillator system, comprising a relaxation oscillator circuit, wherein the relaxation oscillator circuit comprises a comparator, a first capacitor connected to the negative input terminal of the comparator, a second capacitor connected to the positive input terminal of the comparator, an RC module connected to the positive input terminal and the negative input terminal respectively, and a switching module connected to the output terminal of the comparator; the switching module is used to switch the relaxation oscillator circuit to a first mode or a second mode according to a signal output from the output terminal; in the first mode, the RC module is connected to the positive input terminal, the first capacitor is connected to the negative input terminal, and the RC module is used to receive The power supply current inputted by the second input terminal of the relaxation oscillation circuit is used to generate a standard voltage inputted to the comparator, and the first capacitor is used to receive the power supply current inputted by the first input terminal of the relaxation oscillation circuit to generate a first voltage inputted to the comparator that is equal to the standard voltage; in the second mode, the RC module is conducted with the negative input terminal, and the second capacitor is conducted with the positive input terminal, and the RC module is used to receive the power supply current inputted by the first input terminal to generate a standard voltage inputted to the comparator, and the second capacitor is used to receive the power supply current inputted by the second input terminal to generate a second voltage inputted to the comparator that is equal to the standard voltage.

[0008] In addition, the relaxation oscillation circuit also includes a first switch connecting the RC module and the positive input end, a second switch connecting the RC module and the negative input end, a third switch connecting the first capacitor and the negative input end, and a fourth switch connecting the second capacitor and the positive input end; switching the relaxation oscillation circuit to the first mode is specifically: controlling the first switch and the third switch to be closed, and the second switch and the fourth switch to be disconnected, so that the RC module is connected to the positive input end and the first capacitor is connected to the negative input end; switching the relaxation oscillation circuit to the second mode is specifically: controlling the second switch and the fourth switch to be closed, and the first switch and the third switch to be disconnected, so that the RC module is connected to the negative input end and the second capacitor is connected to the positive input end.

[0009] In addition, the system also includes a temperature sensor and a frequency calibration module, the temperature sensor is connected to the relaxation oscillation circuit, and the temperature sensor is also connected to the frequency calibration module; the temperature sensor is used to receive the clock signal output by the relaxation oscillation circuit to obtain the operating temperature of the relaxation oscillation circuit, and send the operating temperature to the frequency calibration module; the frequency calibration module is used to obtain the capacitance parameters corresponding to the operating temperature according to the operating temperature of the relaxation oscillation circuit, and send the capacitance parameters corresponding to the operating temperature to the frequency calibration module and to the relaxation oscillation circuit, so that the relaxation oscillation circuit adjusts the current capacitance parameters to the capacitance parameters corresponding to the current operating temperature, wherein the temperature sensor pre-stores several capacitance parameters at several operating temperatures.

[0010] In addition, the temperature sensor includes a first ring oscillator, a second ring oscillator and a temperature calculation module, and the temperature calculation module is connected to the first ring oscillator and the second ring oscillator respectively; the first ring oscillator is used to generate a first standard clock signal and send the first standard clock signal to the temperature calculation module; the second ring oscillator is used to generate a second standard clock signal and send the second standard clock signal to the temperature calculation module; the temperature calculation module is used to calculate the operating temperature of the relaxation oscillation circuit based on the first standard clock signal and the second standard clock signal.

[0011] In addition, the temperature sensor is also used to send the clock signal output by the relaxation oscillation circuit to the signal calibration module; the frequency calibration module is also used to determine whether to adjust the current capacitance parameters of the relaxation oscillation circuit based on the clock signal output by the relaxation oscillation circuit and a preset third standard clock signal when the capacitance parameters corresponding to the operating temperature of the relaxation oscillation circuit are not obtained according to the operating temperature of the relaxation oscillation circuit; if it is determined that the current capacitance parameters of the relaxation oscillation circuit are to be adjusted, the target capacitance parameters of the relaxation oscillation circuit are obtained, and the target capacitance parameters are sent to the relaxation oscillation circuit so that the relaxation oscillation circuit can adjust the current capacitance parameters to the target capacitance parameters.

[0012] In addition, the frequency calibration module is also used to compare the clock signal output by the relaxation oscillation circuit with the third standard clock signal. When the clock signal output by the relaxation oscillation circuit is not equal to the third standard clock signal, the frequency deviation value between the clock signal output by the relaxation oscillation circuit and the third standard clock signal is obtained according to a preset software algorithm, and the target capacitance parameter of the relaxation oscillation circuit is determined according to the frequency deviation value.

[0013] In addition, the relaxation oscillation circuit includes a capacitor array consisting of several third capacitors and one fourth capacitor; the frequency calibration module is also used to respectively obtain the first target capacitance parameters of each of the third capacitors and the second target capacitance parameters of the fourth capacitor in the relaxation oscillation circuit, and send each of the first target capacitance parameters and the second target capacitance parameters to the relaxation oscillation circuit, so that the relaxation oscillation circuit can adjust the current capacitance parameters of several of the third capacitors to the corresponding first target capacitance parameters, and adjust the current capacitance parameters of the fourth capacitor to the second target capacitance parameters.

[0014] The fourth capacitor is periodically turned on or off.

[0015] In addition, the system also includes a counting module, which is connected to the relaxation oscillation circuit and the temperature sensor respectively; the counting module is used to receive the clock signal output by the relaxation oscillation circuit and periodically trigger the temperature sensor according to the clock signal, so that the temperature sensor periodically obtains the operating temperature of the relaxation oscillation circuit.

[0016] In addition, the system also includes a high-frequency crystal oscillator, which is connected to the frequency calibration module; the high-frequency crystal oscillator is used to generate the third standard clock signal and send the third standard clock signal to the frequency calibration module, so that the frequency calibration module can determine whether to adjust the current capacitance parameters of the relaxation oscillation circuit based on the clock signal output by the relaxation oscillation circuit and the third standard clock signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0018] FIG1 is a schematic structural diagram of a relaxation oscillator;

[0019] FIG2 is a structural schematic diagram 1 of a relaxation oscillator provided according to an embodiment of the present application;

[0020] FIG3 is a second structural diagram of a relaxation oscillator provided according to an embodiment of the present application;

[0021] FIG4 is a third structural diagram of a relaxation oscillator provided according to an embodiment of the present application;

[0022] FIG5 is a fourth structural diagram of a relaxation oscillator provided according to an embodiment of the present application;

[0023] FIG6 is a fifth structural diagram of a relaxation oscillator provided according to an embodiment of the present application;

[0024] FIG7 is a schematic structural diagram of a temperature sensor provided according to an embodiment of the present application;

[0025] FIG8 is a sixth structural diagram of a relaxation oscillator provided according to an embodiment of the present application;

[0026] FIG9 is a schematic structural diagram of a capacitor array provided according to an embodiment of the present application;

[0027] FIG10 is a seventh structural diagram of a relaxation oscillator provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The purpose of the embodiments of the present application is to provide a relaxation oscillator system that can provide a clock with a stable frequency for the system, is easy to implement and has low cost.

[0029] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present application, many technical details are proposed to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present application. The various embodiments can be combined and referenced with each other under the premise of no contradiction.

[0030] To facilitate understanding, the relaxation oscillator is explained below: Factors affecting the clock frequency stability of the relaxation oscillator include the temperature of the resistor and the bias voltage of the comparator. Regarding the resistor temperature, positive and negative temperature coefficient compensation can be used to achieve good temperature consistency, eliminating the impact of the resistor temperature on clock frequency stability. Regarding the comparator bias voltage, a relatively complex bias voltage cancellation circuit is required to eliminate the bias voltage so that the relaxation oscillator generates a frequency-stable clock signal. However, such a bias voltage cancellation circuit is difficult to implement and is costly.

[0031] The relaxation oscillator system of the embodiment of the present application can provide a clock with a stable frequency for the system, which is easy to implement and has low cost.

[0032] An embodiment of the present application relates to a relaxation oscillator system. The implementation details of the relaxation oscillator system of this embodiment are described in detail below. The following content is only the implementation details provided for easy understanding and is not necessary for implementing this solution.

[0033] The structure of the relaxation oscillator system of this embodiment can be shown in Figure 2, specifically including: a relaxation oscillation circuit 20, wherein the relaxation oscillation circuit 20 includes a comparator 200, a first capacitor 201 connected to the negative input terminal of the comparator 200, a second capacitor 202 connected to the positive input terminal of the comparator 200, an RC module 203 connected to the positive input terminal and the negative input terminal of the comparator 200 respectively, and a switching module 204 connected to the output terminal of the comparator 200.

[0034] The switching module 204 is configured to switch the relaxation oscillator circuit 20 to the first mode or the second mode according to a signal outputted from the output terminal of the comparator 200. In the first mode, the RC module 203 is electrically connected to the positive input terminal of the comparator 200, and the first capacitor 201 is electrically connected to the negative input terminal of the comparator 200, so that the RC module 203 can receive the supply current inputted from the second input terminal of the relaxation oscillator circuit 20 in the first mode to generate a standard voltage inputted to the comparator 200, and the first capacitor 201 can receive the supply current inputted from the first input terminal of the relaxation oscillator circuit 20 in the first mode to generate a first voltage equal to the standard voltage inputted to the comparator 200. In the second mode, the RC module 203 is connected to the negative input terminal of the comparator 200, and the second capacitor 202 is connected to the positive input terminal of the comparator 200, so that the RC module 203 can receive the power supply current input from the first input terminal of the relaxation oscillation circuit 20 in the second mode to generate a standard voltage input to the comparator 200, and at the same time, the second capacitor 202 can receive the power supply current input from the second input terminal of the relaxation oscillation circuit 20 in the second mode to generate a second voltage equal to the standard voltage input to the comparator 200.

[0035] In a specific implementation, the supply currents of the first input terminal and the second input terminal are equal, and the RC module 203 is composed of a fixed resistor R and a capacitor C. The number of R and C is not limited here. Therefore, if the supply currents of the first input terminal and the second input terminal are equal, and the values ​​of R and C of the RC module are fixed, the standard voltage generated by the RC module is fixed. The relaxation oscillation circuit 20 alternately switches between the first mode and the second mode. Assume that the switching module 204 first switches the relaxation oscillation circuit 20 to the first mode, that is, the RC module 203 is connected to the positive input terminal of the comparator 200, and the first capacitor 201 is connected to the negative input terminal of the comparator 200. Then, after the RC module 203 generates the standard voltage, the voltage of the first capacitor 201 will gradually increase until it increases to a first voltage equal to the standard voltage. The standard voltage generated by the RC module 203 and the first voltage generated by the first capacitor 201 are input into the comparator 200. The switching module 204 can determine the input status of the positive and negative input terminals of the comparator 200 based on the signal output from the output terminal of the comparator 200, that is, determine whether the voltage of the first capacitor 201 increases to the first voltage equal to the standard voltage. When the first capacitor 201 increases to the first voltage, the switching module 204 switches the relaxation oscillation circuit 20 to the second mode, that is, the RC module 203 is connected to the negative input terminal of the comparator 200, and the second capacitor 202 is connected to the positive input terminal of the comparator 200. Then, after the RC module 203 generates the standard voltage, the voltage of the second capacitor 202 will gradually increase until it increases to a second voltage equal to the standard voltage. The standard voltage generated by the RC module 203 and the second voltage generated by the second capacitor 202 are input to the comparator 200. The switching module 204 can determine the input status of the positive and negative input terminals of the comparator 200 based on the signal output by the output terminal of the comparator 200, that is, determine whether the voltage of the second capacitor 202 increases to the second voltage equal to the standard voltage. When the second capacitor 202 increases to the second voltage, the switching module 204 switches the relaxation oscillation circuit 20 to the first mode again, and so on. In other words, the two modes of the relaxation oscillation circuit 20 are executed as one cycle.

[0036] In one example, the relaxation oscillator circuit 20 further includes a first switch connecting the RC module 203 to the positive input of the comparator 200, a second switch connecting the RC module 203 to the negative input of the comparator 200, a third switch connecting the first capacitor 201 to the negative input of the comparator 200, and a fourth switch connecting the second capacitor 202 to the positive input of the comparator 200. Switching the relaxation oscillator circuit 200 to the first mode specifically involves controlling the first and third switches to be closed and the second and fourth switches to be open, so that the RC module 203 is conductively connected to the positive input of the comparator 200 and the first capacitor 201 is conductively connected to the negative input of the comparator 200; switching the relaxation oscillator circuit 200 to the second mode specifically involves controlling the second and fourth switches to be closed and the first and third switches to be open, so that the RC module 203 is conductively connected to the negative input of the comparator 200 and the second capacitor 202 is conductively connected to the positive input of the comparator 200.

[0037] For ease of understanding, reference may be made to the relaxation oscillator circuit shown in FIG3 , wherein IO1 is a first input terminal, IO2 is a second input terminal, the RC module 203 includes resistors R and C, S1 is a first switch, SN1 is a second switch, SN2 is a third switch, and S2 is a fourth switch. The switching module 204 includes an S switch that can control S1 and S2, and an SN switch that can control SN1 and SN2. Therefore, the relaxation oscillator circuit in the first mode may be shown in FIG4 , wherein SN1 and SN2 are closed, so that the RC module 203 is connected to the positive input terminal of the comparator 200 and the first capacitor 201 is connected to the negative input terminal of the comparator 200; the relaxation oscillator circuit in the second mode may be shown in FIG5 , wherein S1 and S2 are closed, so that the RC module 203 is connected to the negative input terminal of the comparator 200 and the second capacitor 202 is connected to the positive input terminal of the comparator 200. In this embodiment, different switches are provided between the first capacitor 201 , the second capacitor 202 , the RC module 203 and the positive and negative input terminals of the comparator 200 , thereby achieving flexible conduction of the paths among the first capacitor 201 , the second capacitor 202 , the RC module 203 and the comparator 200 .

[0038] In this embodiment, the relaxation oscillation circuit is switched to the first mode or the second mode according to the signal output from the output terminal of the comparator by the switching module in the relaxation oscillation circuit. In the first mode, the RC module is connected to the positive input terminal of the comparator, and the first capacitor is connected to the negative input terminal of the comparator, so that the RC module receives the power supply current input from the second input terminal of the relaxation oscillation circuit to generate a standard voltage input to the comparator, and the first capacitor receives the power supply current input from the first input terminal of the relaxation oscillation circuit to generate a first voltage equal to the standard voltage input to the comparator. In the second mode, the RC module is connected to the negative input terminal, and the second capacitor is connected to the positive input terminal, so that the RC module receives the first power supply current input from the first input terminal of the relaxation oscillation circuit to generate a first voltage equal to the standard voltage input to the comparator. The power supply current inputted at the input terminal is used to generate a standard voltage inputted to the comparator, and the second capacitor receives the power supply current inputted at the second input terminal to generate a second voltage equal to the standard voltage inputted to the comparator, that is, the RC module can store the standard voltage, and the relaxation oscillation circuit alternately charges and discharges the first capacitor and the second capacitor, so that in the process of generating the clock signal, the RC module is alternately connected to the positive input terminal and the negative input terminal of the comparator, then the input voltages of the positive input terminal and the negative input terminal of the comparator are equal, and there is no bias voltage, thereby avoiding the problem of insufficient stability of the frequency of the clock signal outputted by the relaxation oscillation circuit due to the existence of the bias voltage of the comparator, and the implementation method is simple, does not require expensive electronic components, and the cost is also low.

[0039] Another embodiment of the present application relates to a relaxation oscillator system. The implementation details of the relaxation oscillator system of this embodiment are described in detail below. The following content is only the implementation details provided for easy understanding and is not necessary for implementing this solution.

[0040] The structure of the relaxation oscillator system of this embodiment can be shown in FIG6 , and specifically includes: a relaxation oscillator circuit 60, a temperature sensor 61, and a frequency calibration module 62. The relaxation oscillator circuit 60 is connected to the temperature sensor 61, and the temperature sensor 61 is connected to the frequency calibration module 62. The relaxation oscillator circuit 60 is similar to the relaxation oscillator circuit 20 in the above embodiment and will not be described in detail here.

[0041] Among them, the temperature sensor 61 is used to receive the clock signal output by the relaxation oscillation circuit 60 to obtain the operating temperature of the relaxation oscillation circuit, and send the operating temperature to the frequency calibration module 62. Since the frequency calibration module 62 stores a plurality of capacitance parameters at a plurality of operating temperatures, the frequency calibration module 62 is used to obtain the capacitance parameters corresponding to the operating temperature according to the operating temperature of the relaxation oscillation circuit, and send the capacitance parameters corresponding to the current operating temperature to the relaxation oscillation circuit 60, so that the relaxation oscillation circuit 60 adjusts the current capacitance parameters to the capacitance parameters corresponding to the current operating temperature. Since the factors affecting the frequency stability of the relaxation oscillation circuit also include the delay of the comparator, it is necessary to calibrate the comparator delay, which is specifically achieved by adjusting the capacitance parameters of the relaxation oscillation circuit 60. The capacitance parameters of the relaxation oscillation circuit 60 specifically refer to the value of C in the RC module 203. Therefore, in this embodiment, the adjustment of the capacitance parameters of the relaxation oscillation circuit is achieved by the temperature sensor and the frequency calibration module, thereby avoiding the problem of the clock signal being delayed by the temperature, resulting in an unstable clock frequency, and the power consumption is lower than the method of avoiding delay by increasing the current in the related art.

[0042] In one example, the temperature sensor 61 is periodically turned on or off, that is, the operating temperature of the relaxation oscillation circuit 60 is periodically acquired to further reduce the power consumption of the system.

[0043] In some embodiments, the structure of the temperature sensor 61 may be as shown in FIG7 , specifically including: a first ring oscillator 610 , a second ring oscillator 611 and a temperature calculation module 612 , and the temperature calculation module 612 is connected to the first ring oscillator 610 and the second ring oscillator 611 respectively.

[0044] The first ring oscillator is used to generate a first standard clock signal and send the first standard clock signal to the temperature calculation module 612. The second ring oscillator 611 is used to generate a second standard clock signal and send the second standard clock signal to the temperature calculation module 612. The temperature calculation module 612 is used to calculate the operating temperature of the relaxation oscillation circuit 60 based on the first standard clock signal and the second standard clock signal. The frequency of the first standard clock signal does not change with temperature, while the frequency of the second standard clock signal does change with temperature. Therefore, the temperature sensor 61 inputs the first standard clock signal and the second standard clock signal into the same module, namely, the temperature calculation module 612. The temperature calculation module 612 can calculate the current operating temperature of the relaxation oscillation circuit 60 based on the difference in counts of the first standard clock signal and the second standard clock signal during the same time period. This calculation method can achieve a more accurate temperature value.

[0045] In some embodiments, after receiving the clock signal output by the relaxation oscillation circuit 60, the temperature sensor 61 also sends the clock signal output by the relaxation oscillation circuit to the frequency calibration module 62. The frequency calibration module 62 is further configured to determine whether to adjust the current capacitance parameter of the relaxation oscillation circuit 60 based on the clock signal output by the relaxation oscillation circuit 60 and a preset second standard clock signal when the capacitance parameter corresponding to the operating temperature of the relaxation oscillation circuit is not obtained based on the operating temperature of the relaxation oscillation circuit. If it is determined that the current capacitance parameter of the relaxation oscillation circuit 60 is to be adjusted, the target capacitance parameter of the relaxation oscillation circuit 60 is obtained and sent to the relaxation oscillation circuit 60 so that the relaxation oscillation circuit 60 adjusts the current capacitance parameter to the target capacitance parameter. The preset second standard clock signal is a clock signal with a standard and stable frequency.

[0046] In some embodiments, the relaxation oscillator system may further include a high-frequency crystal oscillator 63, as shown in FIG8 . The high-frequency crystal oscillator 63 is connected to the frequency calibration module 62. The high-frequency crystal oscillator is used to generate a third standard clock signal and send the third standard clock signal to the frequency calibration module 62. The frequency calibration module 62 determines whether to adjust the current capacitance parameters of the relaxation oscillator circuit 60 based on the clock signal output by the relaxation oscillator circuit 60 and the third standard clock signal. In this embodiment, the third standard clock signal is generated by the high-frequency crystal oscillator, which simplifies implementation.

[0047] In one example, the frequency calibration module 62 is specifically used to compare the clock signal output by the relaxation oscillation circuit 60 with a third standard clock signal. When the clock signal output by the relaxation oscillation circuit 60 is not equal to the third standard clock signal, the frequency deviation value between the clock signal output by the relaxation oscillation circuit 60 and the third standard clock signal is obtained according to a preset software algorithm, and the target capacitance parameter of the relaxation oscillation circuit 60 is determined according to the frequency deviation value, and the determined target capacitance parameter is the optimal target capacitance parameter.

[0048] In some embodiments, the RC module 203 of the relaxation oscillation circuit 60 specifically includes a capacitor array consisting of several third capacitors and a fourth capacitor, and the frequency calibration module 62 is further used to obtain the first target capacitance parameter of each third capacitor and the second target capacitance parameter of the fourth capacitor in the relaxation oscillation circuit 60 respectively, and each first target capacitance parameter and the second target capacitance parameter are sent to the relaxation oscillation circuit 60, so that the current capacitance parameters of several third capacitors are adjusted to the corresponding first target capacitance parameters for the relaxation oscillation circuit 60, and the current capacitance parameters of the fourth capacitor are adjusted to the second target capacitance parameters. Wherein, the fourth capacitor is periodically turned on or off to further achieve accurate adjustment of capacitance parameters. In the present embodiment, by adjusting the capacitance parameters of the third capacitor and the fourth capacitor respectively, the clock delay is further calibrated to improve the stability of the clock frequency.

[0049] It can be understood that the RC module 203 of the relaxation oscillation circuit 60 may also only include a capacitor array composed of several third capacitors. Then the frequency calibration module 62 only needs to obtain the first target capacitance parameters of each third capacitor in the relaxation oscillation circuit 60, and send each first target capacitance parameter to the relaxation oscillation circuit 60, so that the relaxation oscillation circuit 60 can adjust the current capacitance parameters of the several third capacitors to the corresponding first target capacitance parameters respectively.

[0050] In one example, the structure of the capacitor array is shown in FIG9 , specifically including N third capacitors C1 (only 7 are shown in FIG9 ) and a fourth capacitor C2, and each third capacitor C1 and fourth capacitor C2 corresponds to a switch. Among them, the switch of the fourth capacitor C2 is periodically turned on or off, and the length of the cycle can be set by those skilled in the art according to actual needs. Therefore, the present embodiment can also adjust the size of the switching cycle of the fourth capacitor C2, thereby adjusting the period size of the relaxation oscillation circuit 60, so as to achieve clock calibration of the relaxation oscillation circuit 60 and improve the stability of the clock frequency.

[0051] In some embodiments, the relaxation oscillator system may further include a counting module 64, as shown in FIG10 , which is connected to the relaxation oscillator circuit 60 and the temperature sensor 61, respectively. The counting module 64 is configured to receive a clock signal output by the relaxation oscillator circuit 60 and periodically trigger the temperature sensor based on the clock signal, so that the temperature sensor periodically obtains the operating temperature of the relaxation oscillator circuit 60. In this embodiment, periodically triggering the temperature sensor to obtain the operating temperature of the relaxation oscillator circuit reduces system power consumption.

[0052] It should be noted that the above examples in this embodiment are only illustrative examples for ease of understanding and do not constitute a limitation on the technical solutions of this application.

[0053] In one embodiment, the specific process of calibrating the comparator delay of the relaxation oscillation system is as follows, including:

[0054] S1, a temperature sensor receives a clock signal output by a relaxation oscillation circuit and obtains an operating temperature of the relaxation oscillation circuit according to the clock signal.

[0055] S2, the temperature sensor sends the operating temperature of the relaxation oscillation circuit and the clock signal output by the relaxation oscillation circuit to the frequency calibration module.

[0056] S3: The frequency calibration module obtains a capacitance parameter corresponding to the operating temperature of the relaxation oscillator circuit based on the operating temperature. Based on the capacitance parameter corresponding to the operating temperature, the frequency calibration module determines whether to adjust the current capacitance parameter of the relaxation oscillator circuit. If it is determined that the current capacitance parameter of the relaxation oscillator circuit is to be adjusted, the capacitance parameter corresponding to the current operating temperature is sent to the relaxation oscillator circuit, so that the relaxation oscillator circuit adjusts the current capacitance parameter to the capacitance parameter corresponding to the current operating temperature.

[0057] If the frequency calibration module does not obtain the capacitance parameters corresponding to the operating temperature, the frequency calibration module is also used to determine whether to adjust the current capacitance parameters of the relaxation oscillation circuit based on the clock signal output by the relaxation oscillation circuit and the preset second standard clock signal. If it is determined that the current capacitance parameters of the relaxation oscillation circuit are to be adjusted, the target capacitance parameters of the relaxation oscillation circuit are obtained and the target capacitance parameters are sent to the relaxation oscillation circuit so that the relaxation oscillation circuit can adjust the current capacitance parameters to the target capacitance parameters.

[0058] S4, turns off the temperature sensor.

[0059] The steps of the various methods above are divided only for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0060] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and that in actual applications, various changes may be made to the embodiments in form and detail without departing from the spirit and scope of the embodiments. Any person skilled in the art may make changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application shall be based on the scope defined in the claims.

Claims

1. A relaxation oscillator system, comprising: A relaxation oscillation circuit, the relaxation oscillation circuit comprising a comparator, a first capacitor connected to a negative input terminal of the comparator, a second capacitor connected to a positive input terminal of the comparator, an RC module connected to the positive input terminal and the negative input terminal respectively, and a switching module connected to an output terminal of the comparator; The switching module is used to switch the relaxation oscillation circuit to the first mode or the second mode according to the signal output by the output end; In the first mode, the RC module is connected to the positive input terminal, the first capacitor is connected to the negative input terminal, the RC module is used to receive the power supply current input from the second input terminal of the relaxation oscillation circuit to generate a standard voltage input to the comparator, and the first capacitor is used to receive the power supply current input from the first input terminal of the relaxation oscillation circuit to generate a first voltage equal to the standard voltage input to the comparator; In the second mode, the RC module is conducted with the negative input terminal, the second capacitor is conducted with the positive input terminal, the RC module is used to receive the power supply current inputted by the first input terminal to generate a standard voltage inputted to the comparator, and the second capacitor is used to receive the power supply current inputted by the second input terminal to generate a second voltage equal to the standard voltage inputted to the comparator.

2. The relaxation oscillator system according to claim 1, wherein: The relaxation oscillation circuit further includes a first switch connecting the RC module and the positive input terminal, a second switch connecting the RC module and the negative input terminal, a third switch connecting the first capacitor and the negative input terminal, and a fourth switch connecting the second capacitor and the positive input terminal; Switching the relaxation oscillation circuit to the first mode is specifically: controlling the first switch and the third switch to be closed, and the second switch and the fourth switch to be opened, so that the RC module is connected to the positive input terminal, and the first capacitor is connected to the negative input terminal; Switching the relaxation oscillation circuit to the second mode is specifically: controlling the second switch and the fourth switch to be closed, and the first switch and the third switch to be open, so that the RC module is connected to the negative input terminal, and the second capacitor is connected to the positive input terminal.

3. The relaxation oscillator system according to claim 1, wherein: The system further comprises a temperature sensor and a frequency calibration module, wherein the temperature sensor is connected to the relaxation oscillation circuit, and the temperature sensor is also connected to the frequency calibration module; The temperature sensor is used to receive the clock signal output by the relaxation oscillation circuit to obtain the operating temperature of the relaxation oscillation circuit, and send the operating temperature to the frequency calibration module; The frequency calibration module is used to obtain the capacitance parameters corresponding to the operating temperature according to the operating temperature of the relaxation oscillation circuit, and send the capacitance parameters corresponding to the operating temperature to the relaxation oscillation circuit, so that the relaxation oscillation circuit adjusts the current capacitance parameters to the capacitance parameters corresponding to the operating temperature, wherein the frequency calibration module stores several capacitance parameters at several operating temperatures.

4. The relaxation oscillator system according to claim 3, wherein: The temperature sensor comprises a first ring oscillator, a second ring oscillator and a temperature calculation module, wherein the temperature calculation module is connected to the first ring oscillator and the second ring oscillator respectively; The first ring oscillator is used to generate a first standard clock signal, and send the first standard clock signal to the temperature calculation module; The second ring oscillator is used to generate a second standard clock signal, and send the second standard clock signal to the temperature calculation module; The temperature calculation module is used to calculate the operating temperature of the relaxation oscillation circuit according to the first standard clock signal and the second standard clock signal.

5. The relaxation oscillator system according to claim 4, wherein: The temperature sensor is also used to send the clock signal output by the relaxation oscillation circuit to the frequency calibration module; The frequency calibration module is also used to determine whether to adjust the current capacitance parameters of the relaxation oscillation circuit based on the clock signal output by the relaxation oscillation circuit and a preset third standard clock signal when the capacitance parameters corresponding to the operating temperature of the relaxation oscillation circuit are not obtained according to the operating temperature of the relaxation oscillation circuit; if it is determined that the current capacitance parameters of the relaxation oscillation circuit are to be adjusted, then obtain the target capacitance parameters of the relaxation oscillation circuit and send the target capacitance parameters to the relaxation oscillation circuit so that the relaxation oscillation circuit can adjust the current capacitance parameters to the target capacitance parameters.

6. The relaxation oscillator system according to claim 5, wherein: The frequency calibration module is also used to compare the clock signal output by the relaxation oscillation circuit with the third standard clock signal. When the clock signal output by the relaxation oscillation circuit is not equal to the third standard clock signal, the frequency deviation value between the clock signal output by the relaxation oscillation circuit and the third standard clock signal is obtained according to a preset software algorithm, and the target capacitance parameter of the relaxation oscillation circuit is determined according to the frequency deviation value.

7. The relaxation oscillator system of claim 6, wherein: The relaxation oscillation circuit includes a capacitor array consisting of a plurality of third capacitors and a fourth capacitor; The frequency calibration module is also used to respectively obtain the first target capacitance parameters of each of the third capacitors and the second target capacitance parameters of the fourth capacitor in the relaxation oscillation circuit, and send each of the first target capacitance parameters and the second target capacitance parameters to the relaxation oscillation circuit, so that the relaxation oscillation circuit can respectively adjust the current capacitance parameters of several of the third capacitors to the corresponding first target capacitance parameters, and adjust the current capacitance parameters of the fourth capacitor to the second target capacitance parameters.

8. The relaxation oscillator system of claim 7, wherein: The fourth capacitor is periodically turned on or off.

9. The relaxation oscillator system of claim 3, wherein: The system further comprises a counting module, wherein the counting module is respectively connected to the relaxation oscillation circuit and the temperature sensor; The counting module is used to receive the clock signal output by the relaxation oscillation circuit, and periodically trigger the temperature sensor according to the clock signal, so that the temperature sensor periodically obtains the operating temperature of the relaxation oscillation circuit.

10. The relaxation oscillator system according to claim 5, wherein: The system further comprises a high-frequency crystal oscillator, wherein the high-frequency crystal oscillator is connected to the frequency calibration module; The high-frequency crystal oscillator is used to generate the third standard clock signal and send the third standard clock signal to the frequency calibration module, so that the frequency calibration module can determine whether to adjust the current capacitance parameters of the relaxation oscillation circuit based on the clock signal output by the relaxation oscillation circuit and the third standard clock signal.

Citation Information

Patent Citations

  • Temperature sensor

    CN101915625A

  • Systems and methods of low power clocking for sleep mode radios

    CN103296968A

  • Relaxation oscillator

    CN104518757A

  • Relaxation oscillator and wireless device including relaxation oscillator

    CN108988788A

  • RC oscillator and timing chip

    CN113507264A