Relaxation oscillator circuit, integrated circuit, and electronic device
By designing the current output module and the temperature compensation control module in the relaxation oscillator circuit, high temperature compensation for the frequency of the RC relaxation oscillator is achieved, solving the problems of complex circuit design and high cost in the prior art, and achieving efficient frequency stability and reducing costs.
Patent Information
- Application Number
- CN202411830054.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-05-06
AI Technical Summary
The compensation technology of existing RC relaxation oscillators has problems of complex circuit design and high cost.
A relaxation oscillator circuit is designed, including a current output module, a temperature compensation control module and a relaxation oscillation module. The current output module outputs a positively related current to the temperature, and the temperature compensation control module outputs a control signal when the preset temperature threshold is reached to perform frequency compensation.
Effective compensation of the relaxation oscillator frequency in high temperature environments is achieved, reducing circuit design complexity and cost, while no additional digital control signals are required.
Smart Images

Figure CN119945385A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a relaxation oscillator circuit, an integrated circuit and an electronic device. Background Art
[0002] With the continuous innovation and development of integrated circuit technology, the Internet of Things technology related to integrated circuits has also been booming. Internet of Things technology is now widely used in related fields such as biomedicine, wearable devices, and smart homes. IoT devices often need to work for a long time under low-power batteries and various temperature conditions. Therefore, the on-chip clock source of IoT devices needs to have the characteristics of high precision, low power consumption, and low cost. There are three common types of clock sources: crystal oscillators, ring oscillators, and RC relaxation oscillators. The output frequency of the crystal oscillator is accurate and stable, but it cannot be integrated into the chip. The ring oscillator is greatly affected by the process, temperature, and power supply voltage, and the output frequency accuracy is low and unstable. The output frequency accuracy and stability of the RC relaxation oscillator are between the two and are widely used.
[0003] The RC relaxation oscillator uses the resistor R and the capacitor C as time constants to determine the output frequency of the oscillator. The basic principle is to charge and discharge the capacitor through current so that the circuit can generate a periodic oscillation signal. In this process, the change in the current and capacitance will directly affect the accuracy of the oscillation frequency. The current and capacitance are easily affected by temperature, so the RC oscillator needs to be compensated for high temperature to improve accuracy.
[0004] However, in the related art, compensation for the RC oscillator is basically to stack resistors with different temperature coefficients, or to change the circuit layout to add different resistors or capacitors. The circuit design is relatively complex and the cost is high. Summary of the invention
[0005] The purpose of the present application is to provide a relaxation oscillator circuit, an integrated circuit and an electronic device to solve the problems of complex circuit design and high cost in the compensation technology of the RC relaxation oscillator.
[0006] The embodiment of the present application is implemented as follows:
[0007] According to a first aspect of an embodiment of the present application, a relaxation oscillator circuit is provided, the relaxation oscillator circuit comprising at least: a current output module (10), a temperature compensation control module (20), and a relaxation oscillation module (30); a compensation module (31) is provided in the relaxation oscillation module (30);
[0008] The current output module (10) is connected to the temperature compensation control module (20) and the relaxation oscillation module (30) respectively, and is used to output a first current to the temperature compensation control module (20) and the relaxation oscillation module (30), and the current output by the current output module (10) is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located;
[0009] The temperature compensation control module (20) is connected to the compensation module (30) and is used to output a control signal based on the voltage generated by the received first current when the temperature of the environment in which the relaxation oscillator circuit is located reaches a preset threshold, so as to control the compensation module (31) to compensate the frequency of the relaxation oscillation module (30), wherein the on-voltage of the temperature compensation control module (20) is negatively correlated with the temperature.
[0010] Optionally, the current output module (10) comprises:
[0011] A first amplifier (11), a first field effect transistor (M1), and a first resistor (R1); the resistance value of the first resistor (R1) is negatively correlated with temperature;
[0012] The negative end of the first amplifier (11) is used to connect to a reference voltage, and the positive end of the first amplifier (11) is respectively connected to one end of a first resistor (R1) and a second electrode of a first field effect transistor (M1); the output end of the first amplifier (11) is connected to a control electrode of the first field effect transistor (M1), and the output end of the first amplifier (11) is also connected to the temperature compensation control module (20) and the relaxation oscillation module (30); the first amplifier (11) is used to output a first current to the temperature compensation control module (20) and the relaxation oscillation module (30);
[0013] The first electrode of the first field effect tube (M1) is connected to the power supply voltage; the second electrode of the first field effect tube (M1) is connected to one end of the first resistor (R1);
[0014] The other end of the first resistor (R1) is grounded.
[0015] Optionally, the temperature compensation control module (20) comprises:
[0016] A first current mirror unit (21), a first transistor (Q1), an inverter (22), and a second resistor (R2); the on-state voltage of the first transistor (Q1) is negatively correlated with temperature;
[0017] The power supply end of the first current mirror unit (21) is connected to the power supply voltage; the control electrode of the first current mirror unit (21) is connected to the control end of the first field effect transistor (M1); the first output end of the first current mirror unit (21) is respectively connected to one end of the second resistor (R2) and the control electrode of the first transistor (Q1); the second output end of the first current mirror unit (21) is respectively connected to the first electrode of the first transistor (Q1) and the input end of the inverter (22);
[0018] The second electrode of the first transistor (Q1) is grounded;
[0019] The output end of the inverter (22) is connected to the compensation module (31), and the inverter (22) is used to output a first level when the first transistor (Q1) is turned off, and to output a second level when the first transistor (Q1) is turned on.
[0020] Optionally, the first current mirror unit (21) comprises:
[0021] A first current mirror (211), a second current mirror (212);
[0022] A first electrode of the first current mirror (211) is connected to a power supply voltage, and a second electrode of the first current mirror (211) is respectively connected to one end of the second resistor (R2) and a control electrode of the first transistor (Q1);
[0023] The first electrode of the second current mirror (212) is connected to the power supply voltage, and the second electrode of the second current mirror (212) is connected to the first electrode of the first transistor (Q1) and the input end of the inverter (22).
[0024] Optionally, the temperature compensation control module further comprises: a hysteresis unit (23);
[0025] The hysteresis unit (23) is respectively connected to the other end of the second resistor (R2), the second electrode of the first transistor (Q1), the output end of the inverter (22), and the third output end of the first current mirror unit (21), and is used to increase the resistance of the path where the second resistor (R2) is located under the control of the second level output by the inverter.
[0026] Optionally, the hysteresis unit (23) comprises:
[0027] A third resistor (R3), a second field effect transistor (M2), and a third field effect transistor (M3);
[0028] One end of the third resistor (R3) is respectively connected to the other end of the second resistor (R2) and the first electrode of the second field effect transistor (M2); the other end of the third resistor (R3) is respectively connected to the second electrode of the second field effect transistor (M2), the second electrode of the first transistor (Q1), and the second electrode of the third field effect transistor (M3);
[0029] The control electrode of the second field effect transistor (M2) is connected to the third output end of the first current mirror unit (21) and the first electrode of the third field effect transistor (M3);
[0030] The control electrode of the third field effect transistor (M3) is connected to the output end of the inverter (22), and the first electrode of the third field effect transistor (M3) is connected to the third output end of the first current mirror unit (21).
[0031] Optionally, the first current mirror unit (21) further includes: a third current mirror (213)
[0032] The first electrode of the third current mirror (213) is connected to the power supply voltage, and the second electrode of the third current mirror (213) is respectively connected to the control electrode of the second field effect transistor (M2) and the first electrode of the third field effect transistor (M3).
[0033] Optionally, the relaxation oscillation module (30) comprises: a first oscillation branch (33), a second oscillation branch (34), and an oscillation signal output unit (35); the output end of the temperature compensation control module (20) is respectively connected to the input end of the first oscillation branch (33) and the second oscillation branch (34); the output end of the first oscillation branch (33) and the second oscillation branch (34) is connected to the input end of the oscillation signal output unit (35); the output end of the oscillation signal output unit (35) is connected to the input end of the first oscillation branch (33) and the second oscillation branch (34), and is also used to output an oscillation signal;
[0034] The compensation module (31) comprises a first compensation unit (311) and a second compensation unit (312); the first compensation unit (311) is connected to the first oscillation branch (33), and the second compensation unit (312) is connected to the second oscillation branch (34);
[0035] The temperature compensation control module (20) is connected to the first compensation unit (311) and the second compensation unit (312) respectively;
[0036] Wherein, under the action of the control signal output by the temperature compensation control module (20), the first compensation unit (311) is controlled to compensate the capacitance of the first oscillation branch (33), and the second compensation unit (313) is controlled to compensate the capacitance of the second oscillation branch (34).
[0037] Optionally, the first compensation unit (311) comprises: a first capacitor (C2) and a fourth field effect transistor (M4); one end of the first capacitor (C2) is connected to the first oscillation branch (33), and the other end of the first capacitor (C2) is connected to the first electrode of the fourth field effect transistor (M4); the control electrode of the fourth field effect transistor (M4) is connected to the output end of the temperature compensation control module (20); and the second electrode of the fourth field effect transistor (M4) is grounded;
[0038] The second compensation unit (312) comprises: a second capacitor (C4) and a fifth field effect transistor (M5); one end of the second capacitor (C4) is connected to the second oscillation branch (34), and the other end of the second capacitor (C4) is connected to the first electrode of the fifth field effect transistor (M5); the control electrode of the fifth field effect transistor (M5) is connected to the output end of the temperature compensation control module (20); and the second electrode of the fifth field effect transistor (M5) is grounded.
[0039] According to a second aspect of the embodiments of the present application, an integrated circuit is provided, wherein the integrated circuit is any one of the relaxation oscillator circuits provided in the first aspect.
[0040] According to a third aspect of the embodiments of the present application, an electronic device is provided, wherein the electronic device comprises any one of the relaxation oscillator circuits provided in the first aspect or the integrated circuit provided in the second aspect.
[0041] The beneficial effects of the embodiments of the present application include:
[0042] The embodiment of the present application provides a relaxation oscillator circuit, in which a current output module (10), a temperature compensation control module (20), and a relaxation oscillation module (30) are arranged, and a compensation module (31) is arranged in the relaxation oscillator circuit. The current output by the current output module (10) is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located, and the on-voltage of the temperature compensation control module (20) is negatively correlated with the temperature. The current output module (10) is connected to the temperature compensation control module (20) and the relaxation oscillation module (30) respectively, and the temperature compensation control module (20) is connected to the compensation module (30). Since the current output by the current output module (10) is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located, the higher the temperature of the environment in which the relaxation oscillator circuit is located, the larger the current of the current output module (10), and the on-voltage of the temperature compensation control module (20) is negatively correlated with the temperature. Therefore, the higher the temperature of the environment in which the relaxation oscillator circuit is located, the lower the on-voltage of the temperature compensation control module (20) is. Therefore, as the temperature of the environment in which the relaxation oscillator circuit is located, such as the chip temperature, increases, the first current output by the current output module (10) increases, and the on-voltage of the temperature compensation control module (20) decreases. Then, after receiving the increased first current, the temperature compensation control module (20) controls the input voltage of the temperature compensation control module (20) to increase. When the increased input voltage is greater than the reduced on-voltage, a control signal can be output to the compensation module (31) to control the compensation module (31) to compensate for the frequency output by the relaxation oscillator module (30). In this process, the current output module (10) and the temperature compensation control module (20) control the compensation module (31) in a temperature-adaptive manner to compensate for the frequency of the oscillator when the temperature is greater than a preset threshold. The entire circuit design is relatively simple, and high-temperature compensation can be achieved without an additional digital control signal, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic structural diagram of a first relaxation oscillator circuit provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the structure of a second relaxation oscillator circuit provided in an embodiment of the present application;
[0046] Figure 3 A schematic structural diagram of a third relaxation oscillator circuit provided in an embodiment of the present application;
[0047] Figure 4 A schematic structural diagram of a fourth relaxation oscillator circuit provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of a signal waveform during an oscillation process provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0050] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0052] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0053] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0054] In the related technologies of RC relaxation oscillators, there are several ways to compensate for RC relaxation oscillators, such as: the first is to use resistors with different temperature coefficients to generate zero temperature coefficient current, so that the output frequency of the RC relaxation oscillator is prevented from being affected by unstable current; the second is to adjust the circuit network by adding various resistors or capacitors, thereby adjusting the frequency of the RC relaxation oscillator output.
[0055] However, the first compensation technology mentioned above is subject to the influence of the process, and requires resistors with different temperature coefficients. Using different types of resistors may increase the mask layer, which is relatively costly. The second compensation technology mentioned above requires providing a digital control signal, and the area of the resistor and capacitor array and the current mirror is relatively large.
[0056] Therefore, based on the above problems, an embodiment of the present application provides a relaxation oscillator circuit. Through the special design of the current output module (10) and the temperature compensation control module (20), since the current output by the current output module (10) is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located, the higher the temperature of the environment in which the relaxation oscillator circuit is located, the greater the current of the current output module (10), while the on-voltage of the temperature compensation control module (20) is negatively correlated with the temperature, so the higher the temperature of the environment in which the relaxation oscillator circuit is located, the lower the on-voltage of the temperature compensation control module (20). Therefore, as the temperature of the environment in which the relaxation oscillator circuit is located, such as the chip temperature, increases, the first current output by the current output module (10) increases, and the on-voltage of the temperature compensation control module (20) decreases. Then, after receiving the increased first current, the temperature compensation control module (20) controls the input voltage of the temperature compensation control module (20) to increase. When the increased input voltage is greater than the reduced on-voltage, a control signal can be output to the compensation module (31) to control the compensation module (31) to compensate for the frequency output by the relaxation oscillator module (30). In this process, the current output module (10) and the temperature compensation control module (20) control the compensation module (31) in a temperature-adaptive manner to compensate for the frequency of the oscillator when the temperature is greater than a preset threshold. The entire circuit design is relatively simple, and high-temperature compensation can be achieved without an additional digital control signal, thereby reducing costs and effectively improving the temperature characteristics of the RC relaxation oscillator.
[0057] The relaxation oscillator circuit provided in the embodiment of the present application is explained in detail below.
[0058] Figure 1 This is a schematic diagram of the structure of a relaxation oscillator circuit provided by the present application. Figure 1The embodiment of the present application provides a relaxation oscillator circuit, which at least includes: a current output module 10, a temperature compensation control module 20, and a relaxation oscillation module 30. A compensation module 31 is provided in the relaxation oscillation module.
[0059] The current output module 10 is connected to the temperature compensation control module 20 and the relaxation oscillation module 30 respectively.
[0060] The temperature compensation control module 20 is connected to the compensation module 31 .
[0061] In this embodiment, the relaxation oscillator circuit may be an RC relaxation oscillator circuit.
[0062] The current output module 10 is used to output a first current to the temperature compensation control module 20 and the relaxation oscillation module 30 .
[0063] Optionally, the first current may be a constant current, and the first current may serve as a reference current of the relaxation oscillator circuit.
[0064] Moreover, the current output by the current output module 10 is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located. In other words, the first current is positively correlated with the temperature, and the higher the ambient temperature, the greater the current value of the first current.
[0065] In addition, any other possible power source may provide working power to the current output module 10 to ensure that the current output module 10 outputs the first current.
[0066] The temperature compensation control module 20 is used to output a control signal based on the voltage generated by the received first current to control the compensation module 31 to compensate the frequency of the relaxation oscillator module 30 when the temperature of the environment in which the relaxation oscillator circuit is located reaches a preset threshold.
[0067] Optionally, the on-voltage of the temperature compensation control module 20 is negatively correlated with the temperature.
[0068] Optionally, the preset threshold may be set by relevant technicians according to actual needs, or may be determined by parameters of each component in the temperature compensation control module 20, which is not limited in the embodiment of the present application.
[0069] Generally, the preset threshold is used to indicate the temperature at which the relaxation oscillation module 30 needs to be compensated. That is, if the temperature of the environment in which the relaxation oscillator circuit is located reaches the preset threshold, it indicates that the relaxation oscillation module 30 needs to be compensated; if the temperature of the environment in which the relaxation oscillator circuit is located does not reach the preset threshold, it indicates that the relaxation oscillation module 30 does not need to be compensated.
[0070] In this embodiment, the control signal may be a high level signal or a low level signal. Generally, the control signal may be effective at a high level. That is, when the temperature compensation control module 20 outputs a high level control signal to the compensation module 31 or the relaxation oscillation module 30, the compensation module 31 may compensate the frequency of the relaxation oscillation module 30.
[0071] Specifically, the frequency of the oscillation signal output by the relaxation oscillation module 30 may be compensated, which is not limited in the embodiment of the present application.
[0072] In this embodiment, the temperature compensation control module 20 may include a switch tube whose on-voltage is inversely proportional to the temperature, that is, may include a switch tube with a negative temperature coefficient. In this case, the on-voltage of the temperature compensation control module 20 may refer to the on-voltage of the switch tube in the temperature compensation control module 20. This embodiment of the application is not limited to this.
[0073] The relaxation oscillation module 30 may be any device or circuit that can realize oscillation and generate an oscillation signal, and the embodiment of the present application does not limit this.
[0074] In this embodiment, the compensation module 31 may include any element capable of compensating the frequency of the oscillation signal. For example, the compensation module 31 may include at least one capacitor.
[0075] In this case, if the relaxation oscillation module 30 needs to be compensated, the compensation module 31 can be connected to other components in the relaxation oscillation module 30; if the relaxation oscillation module 30 does not need to be compensated, the compensation module 31 can be disconnected from other components in the relaxation oscillation module 30.
[0076] It is worth noting that in order to better introduce the relaxation oscillator circuit provided in the embodiment of the present application, the principle of the relaxation oscillator circuit is explained below:
[0077] When the relaxation oscillator circuit is working at a normal temperature, since the first current output by the current output module 10 is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located, and the on-voltage of the temperature compensation control module 20 is negatively correlated with the temperature, at this time, the first current output by the current output module 10 is relatively small, and the on-voltage of the temperature compensation control module 20 is relatively large, therefore, the temperature compensation control module 20 does not output the control signal. In this case, the compensation module 31 is disconnected from other components in the relaxation oscillator module 30, that is, the compensation module 31 does not compensate the relaxation oscillator module 30.
[0078] When the temperature of the environment in which the relaxation oscillator circuit is located gradually increases, the first current output by the current output module 10 gradually increases and the on-voltage of the temperature compensation control module 20 gradually decreases. Therefore, when the temperature of the environment in which the relaxation oscillator circuit is located reaches the preset threshold, the temperature compensation control module 20 starts to output the control signal. At this time, the compensation module 31 is connected to other elements in the relaxation oscillation module 30, that is, the compensation module 31 starts to compensate the relaxation oscillation module 30.
[0079] In this way, frequency compensation of the oscillation signal output by the relaxation oscillator circuit can be achieved in a high temperature environment.
[0080] In the embodiment of the present application, a current output module 10, a temperature compensation control module 20, and a relaxation oscillation module 30 are provided in the relaxation oscillator circuit. A compensation module 31 is provided in the relaxation oscillation module, and specifically, the current output module 10 is connected to the temperature compensation control module 20 and the relaxation oscillation module 30, respectively, and the temperature compensation control module 20 is connected to the compensation module 31.
[0081] As the temperature of the environment in which the relaxation oscillator circuit is located, such as the chip temperature, increases, the first current output by the current output module 10 increases, and the on-voltage of the temperature compensation control module 20 decreases. Then, after receiving the increased first current, the temperature compensation control module 20 controls the input voltage of the temperature compensation control module 20 to increase. When the increased input voltage is greater than the reduced on-voltage, a control signal can be output to the compensation module 31 to control the compensation module 31 to compensate for the frequency output by the relaxation oscillation module 30. In this process, the current output module 10 and the temperature compensation control module 20 control the compensation module 31 in a temperature-adaptive manner to compensate for the frequency of the oscillator when the temperature is greater than the preset threshold.
[0082] It can be seen that in the embodiment of the present application, the entire circuit design is relatively simple, and high temperature compensation can be achieved without additional digital control signals, thereby ensuring the stability of the RC relaxation oscillator frequency as much as possible, reducing costs, and effectively improving the temperature characteristics of the RC relaxation oscillator.
[0083] In one possible embodiment, see Figure 2 The current output module 10 may include: a first amplifier 11, a first field effect transistor M1, and a first resistor R1.
[0084] The negative terminal of the first amplifier 11 is used to connect to a reference voltage, and the positive terminal of the first amplifier 11 is respectively connected to one end of the first resistor R1 and the second electrode of the first field effect transistor M1.
[0085] The output end of the first amplifier 11 is connected to the control electrode of the first field effect transistor M1 . The output end of the first amplifier 11 is also connected to the temperature compensation control module 20 and the relaxation oscillation module 30 .
[0086] The first electrode of the first field effect transistor M1 is connected to the power supply voltage; the second electrode of the first field effect transistor M1 is connected to one end of the first resistor R1.
[0087] The other end of the first resistor R1 is grounded.
[0088] The first amplifier 11 is used to output a first current to the temperature compensation control module 20 and the relaxation oscillation module 30 .
[0089] Optionally, the negative terminal of the first amplifier 11 is used to connect a reference voltage VREF, and the reference voltage may be provided by any possible power source, such as a constant voltage source, etc., which is not limited in the embodiment of the present application.
[0090] Generally, the reference voltage can be close to a zero temperature coefficient voltage, has good temperature characteristics, and basically does not change with temperature, so as to ensure that the first amplifier 11 and the current output module 10 can work stably.
[0091] In this embodiment, the first resistor R1 is a negative temperature coefficient resistor, and the resistance of the first resistor R1 is negatively correlated with temperature, and its resistance decreases as the temperature increases. The specific parameters of the first resistor R1 can be set according to actual needs, and the embodiment of the application does not limit this.
[0092] In this embodiment, the first electrode of the first field effect transistor M1 is connected to the power supply voltage VDD.
[0093] Exemplarily, the first field effect transistor M1 may be a P-channel switch transistor, such as a PMOS transistor. In this case, the first electrode of the first field effect transistor M1 may be a source electrode, and the second electrode and control electrode of the first field effect transistor M1 may be a drain electrode and a gate electrode, respectively.
[0094] Optionally, the voltage levels of the power supply voltage VDD and the reference voltage VREF may be selected according to parameters of other components in the circuit, which is not limited in the embodiments of the present application.
[0095] It is worth noting that after the reference voltage is connected to the negative terminal of the first amplifier 11 and becomes stable, the first field effect transistor M1 is in a disconnected state, and the positive terminal of the first amplifier 11 is grounded through the first resistor R1. Therefore, the voltage VREF at the negative terminal of the first amplifier 11 is greater than the voltage at the positive terminal of the first amplifier 11, and the output of the first amplifier 11 pulls down the voltage of the control electrode of the first field effect transistor M1, so that the voltage of the second electrode of the first field effect transistor M1 gradually increases. Until the voltage VREF at the negative terminal of the first amplifier 11 is equal to the voltage at the positive terminal of the first amplifier 11, at this time, the current flowing through the first field effect transistor M1 is I=VREF / R1.
[0096] Since VREF is a zero temperature coefficient voltage and the first resistor R1 is a resistor with a negative temperature coefficient, the current I is a PTAT current, that is, a positive temperature coefficient current. In this way, the purpose of the first current having a positive correlation characteristic with the temperature can be achieved.
[0097] In a possible implementation, see Figure 3 The temperature compensation control module 20 at least includes: a first current mirror unit 21, a first transistor Q1, an inverter 22 and a second resistor R2.
[0098] The power supply end of the first current mirror unit 21 is connected to the power supply voltage, the control electrode of the first current mirror unit 21 is connected to the control end of the first field effect transistor M1, the first output end of the first current mirror unit 21 is respectively connected to one end of the second resistor R2 and the control electrode of the first transistor Q1, and the second output end of the first current mirror unit 21 is respectively connected to the first electrode of the first transistor Q1 and the input end of the inverter 22.
[0099] The second electrode of the first transistor Q1 is grounded, and the other end of the second resistor may also be grounded.
[0100] The output end of the inverter 22 is connected to the compensation module 31 .
[0101] The inverter 22 is used to output a first level when the first transistor Q1 is turned off, and to output a second level when the first transistor Q1 is turned on.
[0102] That is, the first level is a low-level control signal, and the second level is a high-level control signal.
[0103] In this embodiment, the first current mirror unit 21 can be any possible current mirror, that is, the function of the current mirror can be implemented in any possible way, and this embodiment of the present application does not limit this.
[0104] Specifically, the first current mirror unit 21 can map the first current, and specifically can map the first current to N times the current for output. That is, the current output by the first current mirror unit is N times the first current, which can be recorded as NI or NIPTAT.
[0105] In this embodiment, the turn-on voltage of the first transistor Q1 is negatively correlated with the temperature.
[0106] Exemplarily, the first transistor Q1 may be a bipolar transistor, specifically an NPN bipolar transistor, that is, the first transistor Q1 has a characteristic that the base-emitter voltage VBE is inversely proportional to the absolute temperature. In this case, the first electrode of the first transistor Q1 may be a collector, the second electrode may be an emitter, and the control electrode may be a base.
[0107] Optionally, the second resistor R2 can be used as a voltage dividing resistor.
[0108] Optionally, the inverter 22 is used to convert the level signal input to the inverter 22 into a signal with the same period and opposite phase, and output the converted signal.
[0109] Exemplarily, when the relaxation oscillator circuit is operating at a normal temperature, at this time, the on-voltage of the first transistor Q1 is relatively large, the first current IPTAT (i.e., the current flowing through the first field effect transistor M1) output by the current output module 10 is relatively small, and the voltage VB of the control electrode of the first transistor Q1 is the product of the current NIPTAT and the resistance value of the second resistor R2. At this time, the voltage VB is less than the on-voltage VBE of the first transistor Q1, the first transistor Q1 is in a cut-off state, the first electrode (collector) voltage of the first transistor Q1 is pulled up, and a high-level signal is output to the input end of the inverter 22. Therefore, the control signal TMC output by the inverter 22 is a low-level signal.
[0110] When the ambient temperature of the relaxation oscillator circuit gradually increases, the first current IPTAT output by the current output module 10 gradually increases, the conduction voltage VBE of the first transistor Q1 gradually decreases, but the voltage VB of the control electrode of the first transistor Q1 gradually increases. When the voltage VB is greater than the conduction voltage VBE, the first transistor Q1 starts to conduct, the first electrode (collector) voltage of the first transistor Q1 is pulled down, and the control signal TMC output by the inverter 22 becomes a high level. In this case, the relaxation oscillation module 30 can be compensated.
[0111] It can be understood that, from the above connection relationship and working principle, the larger the resistance of the second resistor R2, the lower the temperature at which the first transistor Q1 is turned on; conversely, the smaller the resistance of the second resistor R2, the higher the temperature at which the first transistor Q1 is turned on. Therefore, the above preset threshold can be adjusted by adjusting the resistance of the second resistor R2.
[0112] In a possible implementation, see Figure 3 The temperature compensation control module 20 also includes: a hysteresis unit 23.
[0113] The hysteresis unit 23 is respectively connected to the other end of the second resistor R2, the second electrode of the first transistor Q1, the output end of the inverter 22, and the third output end of the first current mirror unit (21).
[0114] The hysteresis unit 23 is used to increase the resistance of the path where the second resistor R2 is located under the control of the second level output by the inverter 22 .
[0115] In a possible implementation, see Figure 3 The hysteresis unit 23 may include: a third resistor R3, a second field effect transistor M2, and a third field effect transistor M3.
[0116] One end of the third resistor R3 is respectively connected to the other end of the second resistor R2 and the first electrode of the second field effect transistor M2, and the other end of the third resistor R3 is respectively connected to the second electrode of the second field effect transistor M2, the second electrode of the first transistor Q1, and the second electrode of the third field effect transistor M3. In addition, the other end of the third resistor R3 is also grounded.
[0117] The control electrode of the second field effect transistor M2 is connected to the third output terminal of the first current mirror unit 21 and the first electrode of the third field effect transistor M3.
[0118] The control electrode of the third field effect transistor M3 is connected to the output end of the inverter 22 , and the first electrode of the third field effect transistor M3 is connected to the third output end of the first current mirror unit 21 .
[0119] In this embodiment, the second field effect transistor M2 and the third field effect transistor M3 can both be PMOS transistors. In this case, the first electrode, the second electrode and the control electrode of the second field effect transistor M2 can be the collector, the emitter and the base respectively; the first electrode, the second electrode and the control electrode of the third field effect transistor M3 can be the collector, the emitter and the base respectively.
[0120] Optionally, the third resistor R3 can be used as a voltage dividing resistor.
[0121] Exemplarily, when the relaxation oscillator circuit is working at a normal temperature, at this time, the on-voltage of the first transistor Q1 is relatively large, the first current IPTAT (i.e., the current flowing through the first field effect transistor M1) output by the current output module 10 is relatively small, and the voltage VB of the control electrode of the first transistor Q1 is the product of the current NIPTAT and the resistance value of the second resistor R2. At this time, the voltage VB is less than the on-voltage VBE of the first transistor Q1, the first transistor Q1 is in a cut-off state, the first electrode (collector) voltage of the first transistor Q1 is pulled up, and a high-level signal is output to the input end of the inverter 22, so the control signal TMC output by the inverter 22 is a low-level signal. In this case, the third field effect transistor M3 is cut off, the second field effect transistor M2 is turned on, and the third resistor R3 is short-circuited.
[0122] When the ambient temperature of the relaxation oscillator circuit gradually increases, the first current IPTAT output by the current output module 10 gradually increases, the on-voltage VBE of the first transistor Q1 gradually decreases, but the voltage VB of the control electrode of the first transistor Q1 gradually increases. When the voltage VB is greater than the on-voltage VBE, the first transistor Q1 starts to conduct, the first electrode (collector) voltage of the first transistor Q1 is pulled down, and the control signal TMC output by the inverter 22 becomes a high level. In this case, the third field effect transistor M3 is turned on, the second field effect transistor M2 is turned off, and the third resistor R3 is connected to the circuit so that the voltage value of the voltage VB is adjusted to the product of the sum of the resistance values of the second resistor R2 and the third resistor R3 and the first current IPTAT.
[0123] It can be understood that, from the above connection relationship and working principle, the hysteresis unit 23 can realize the hysteresis effect of the temperature compensation control module 20 so that the first transistor Q1 is turned on with hysteresis. In this case, a hysteresis window can be provided for the compensation of the relaxation oscillation module 30 to avoid the problem of repeated jumps in the output control signal when the ambient temperature fluctuates back and forth above and below the preset threshold.
[0124] In addition, if the resistance of the second resistor R2 is larger, the starting point of the hysteresis window will move forward; if the resistance of the second resistor R2 is smaller, the starting point of the hysteresis window will move backward. The larger the resistance of the third resistor R2, the larger the step length of the hysteresis window; the smaller the resistance of the third resistor R2, the smaller the step length of the hysteresis window.
[0125] In one possible implementation, Figure 3 Based on Figure 4 The first current mirror unit 21 may further include: a first current mirror 211 and a second current mirror 212 .
[0126] The first electrode of the first current mirror 211 is connected to the power supply voltage, and the second electrode of the first current mirror 211 is respectively connected to one end of the second resistor R2 and the control electrode of the first transistor Q1.
[0127] A first electrode of the second current mirror 212 is connected to a power supply voltage, and a second electrode of the second current mirror 212 is connected to a first electrode of the first transistor Q1 and an input end of the inverter 22 .
[0128] In this embodiment, the first current mirror 211 may include a switch tube M6, and the second current mirror 212 may include a switch tube M7. That is, in this embodiment, the switch tubes may be used to implement the function of mapping and amplifying the first current IPTAT by N times.
[0129] Optionally, the switch tube M6 and the switch tube M7 may also be PMOS tubes.
[0130] In a possible implementation, see Figure 4 , the first current mirror unit 21 also includes: a third current mirror 213.
[0131] A first electrode of the third current mirror 213 is connected to a power supply voltage, and a second electrode of the third current mirror 213 is connected to a control electrode of the second field effect transistor M2 and a first electrode of the third field effect transistor M3 respectively.
[0132] In this embodiment, the third current mirror 213 may include a switch tube M8. That is, in this embodiment, the switch tube M8 may be used to implement the function of mapping and amplifying the first current IPTAT by N times.
[0133] Moreover, the switch tube M8 may also be a PMOS tube.
[0134] It is understandable that the switch tubes M6, M7 and M8 can cooperate with the first field effect tube M1 to achieve the effects of current mirroring and current amplification. That is, in this embodiment, the function of the current mirror can be achieved by dual MOS tubes.
[0135] For specific connection relationships, see Figure 4 As shown, the embodiments of the present application are not described in detail here.
[0136] In a possible implementation, see Figure 4 The relaxation oscillation module 30 includes: a first oscillation branch 33 , a second oscillation branch 34 , and an oscillation signal output unit 35 .
[0137] The output end of the temperature compensation control module 20 is connected to the input end of the first oscillation branch 33 and the input end of the second oscillation branch 34 respectively.
[0138] The output ends of the first oscillation branch 33 and the second oscillation branch 34 are connected to the input end of the oscillation signal output unit 35 .
[0139] The output end of the oscillation signal output unit 35 is connected to the input ends of the first oscillation branch 33 and the second oscillation branch 34 , and is also used to output an oscillation signal.
[0140] Moreover, the first oscillation branch 33 and the second oscillation branch 34 are also respectively connected to the output end of the current output module 10 , so that the current output module 10 can output the first current to the relaxation oscillation module 30 .
[0141] In a possible manner, the compensation module 31 may include a first compensation unit 311 and a second compensation unit 312. The first compensation unit 311 is connected to the first oscillation branch 33, and the second compensation unit 312 is connected to the second oscillation branch 34.
[0142] The temperature compensation control module 20 is connected to the first compensation unit 311 and the second compensation unit 312 respectively.
[0143] The first compensation unit 311 and the second compensation unit 312 may include at least one capacitor respectively. Furthermore, when the relaxation oscillation module 30 needs to be compensated, the capacitor in the first compensation unit 311 may be connected to the first oscillation branch 33, and the capacitor in the second compensation unit 312 may be connected to the second oscillation branch 34. In addition, when the relaxation oscillation module 30 does not need to be compensated, the capacitor in the first compensation unit 311 may be disconnected from the first oscillation branch 33, and the capacitor in the second compensation unit 312 may be disconnected from the second oscillation branch 34.
[0144] It can be understood that, under the control signal output by the temperature compensation control module 20 , the first compensation unit 311 is controlled to compensate the capacitance of the first oscillation branch 33 , and the second compensation unit 313 is controlled to compensate the capacitance of the second oscillation branch 34 .
[0145] In order to better understand how the first compensation unit 311 and the second compensation unit 313 specifically perform frequency compensation on the relaxation oscillation module 30, the specific structures of the first compensation unit 311 and the second compensation unit 313 are introduced below:
[0146] Specifically, see Figure 4 The first compensation unit 311 includes: a first capacitor C2 and a fourth field effect transistor M4.
[0147] One end of the first capacitor C2 is connected to the first oscillation branch 33 , and the other end of the first capacitor C2 is connected to the first electrode of the fourth field effect transistor M4 .
[0148] The control electrode of the fourth field effect transistor M4 is connected to the output end of the temperature compensation control module 20 , and the second electrode of the fourth field effect transistor M4 is grounded.
[0149] Optionally, the capacitance of the first capacitor C2 can be selected according to actual needs, and this embodiment of the present application does not limit this.
[0150] Optionally, the fourth field effect transistor M4 may be an N-channel switch transistor, such as an NMOS transistor. In this case, the first electrode, the second electrode and the control electrode of the fourth field effect transistor M4 may be a drain electrode, a source electrode and a gate electrode, respectively.
[0151] It can be understood that when the control signal TMC is at a high level, the fourth field effect transistor M4 is turned on, and the first capacitor C2 can be connected to the first compensation unit 311 .
[0152] Specifically, see Figure 4 The second compensation unit 312 includes: a second capacitor C4 and a fifth field effect transistor M5.
[0153] One end of the second capacitor C4 is connected to the second oscillation branch 34 , and the other end of the second capacitor C4 is connected to the first electrode of the fifth field effect transistor M5 .
[0154] The control electrode of the fifth field effect transistor M5 is connected to the output end of the temperature compensation control module 20 , and the second electrode of the fifth field effect transistor M5 is grounded.
[0155] Optionally, the capacitance of the second capacitor C4 can be selected according to actual needs, and this embodiment of the present application does not limit this.
[0156] Optionally, the fifth field effect transistor M5 may be an N-channel switch transistor, such as an NMOS transistor. In this case, the first electrode, the second electrode and the control electrode of the fifth field effect transistor M5 may be a drain electrode, a source electrode and a gate electrode, respectively.
[0157] It can be understood that when the control signal TMC is at a high level, the fifth field effect transistor M5 is turned on, and the second capacitor C4 can be connected to the second compensation unit 312 .
[0158] In a possible implementation, see Figure 4 In this embodiment, the first oscillation branch 33 may specifically include a switch tube M9, a controllable switch S1, a controllable switch S2, a capacitor C1, a first comparator COMP1 and an AND gate circuit.
[0159] The switch tube M9 is a PMOS tube. The controllable switch S1 and the controllable switch S2 can be any possible switch devices, and the controllable switch S1 and the controllable switch S2 are respectively controlled by the signal CLK_1 and the signal CLK_2 output by the oscillation signal output unit 35 .
[0160] In this embodiment, the second oscillation branch 34 may specifically include a switch tube M10 , a controllable switch S3 , a controllable switch S4 , a capacitor C3 , a second comparator COMP2 , and an OR gate circuit.
[0161] The switch tube M10 is a PMOS tube. The controllable switch S3 and the controllable switch S4 can be any possible switch devices, and the controllable switch S3 and the controllable switch S4 are respectively controlled by the signal CLK_2 and the signal CLK_1 output by the oscillation signal output unit 35 .
[0162] It can be understood that the switch tube M9 and the switch tube M10 can be used as a current mirror to map the first current IPTAT and amplify it by M times.
[0163] In this embodiment, the oscillation signal output unit 35 may specifically include a register RS_latch and a buffer.
[0164] The R end of the register RS_latch is connected to the output end of the AND gate circuit, the S end of the register RS_latch is connected to the output end of the OR gate circuit, and the output end of the register RS_latch is connected to the input end of the buffer.
[0165] The output end of the register RS_latch is used to output the signal CLK_1; the primary output end of the buffer is used to output the signal CLK_2; and the secondary output end of the buffer is used to output the signal CLK_OUT.
[0166] The phases of the signal CLK_2 and the signal CLK_1 are opposite, but the period is the same; the phase and period of the signal CLK_OUT and the signal CLK_1 are the same.
[0167] Moreover, the register RS_latch has a default state output. In practical applications, the AND gate circuit and the OR gate circuit can input a pair of opposite enable signals EN and EN_N respectively. In the initial state, the enable signal is in the off state, that is, EN is 0 and EN_N is 1. At this time, the AND gate circuit ignores the input at the other end and forces the output to be 0, that is, the reset end (R end) of the register RS_latch is set to 0; at the same time, the OR gate circuit also ignores the input at the other end and forces the output to be 1, and the set end (S end) of the register RS_latch is set to 1, so that the register RS_latch has a default state, and the register RS_latch outputs CLK1 to be 0 and CLK0 to be 1, which is the default value. When working, the enable signal is turned on, EN=1, EN_N=0, and the outputs of the AND gate circuit and the OR gate circuit are controlled by the input at the other end (one end connected to the comparator), and the circuit starts normal conversion. This part of the circuit is only used to provide the initial state or default state assignment, and does not affect the logic conversion of the overall circuit. The EN signal and EN_N signal can be provided by any possible external device.
[0168] It should be noted that when CLK_1 is 0 and CLK_2 is 1, the controllable switch S3 is disconnected, the controllable switch S4 is turned on, the upper plate of the capacitor C3 is grounded, the capacitor C3 is discharged rapidly, the positive terminal voltage of the comparator COMP2 is pulled low, the comparator COMP2 outputs a low level, and the set terminal S of the register RS_latch is set to 0; at the same time, the controllable switch S1 is turned on, the controllable switch S2 is disconnected, the current source MI (that is, the switch tube M9) charges the capacitor C1, the positive terminal voltage of the comparator COMP1 increases to be greater than the VREF voltage, the comparator COMP1 outputs a high level, and the reset terminal R of the register RS_latch is set to 1. At this time, the register RS_latch outputs CLK_1 as 1 and CLK_2 as 0.
[0169] When CLK_1 is 1 and CLK_2 is 0, the controllable switch S1 is disconnected, the controllable switch S2 is turned on, the upper plate of the capacitor C1 is grounded, the capacitor C1 is discharged quickly, the positive terminal voltage of the comparator COMP1 is pulled down, the comparator COMP1 outputs a low level, and the reset terminal R of the register RS_latch is set to 0. At the same time, the controllable switch S3 is turned on, the controllable switch S4 is disconnected, the current source MI (that is, the switch tube M10) charges the capacitor C3, the positive terminal voltage of the comparator COMP2 increases, increases to a voltage greater than the VREF voltage, the comparator COMP outputs a high level, and the set terminal S of the register RS_latch is set to 1. At this time, the register RS_latch outputs CLK_1 as 0 and CLK_2 as 1. The relaxation oscillator circuit provided in the embodiment of the present application can complete an oscillation cycle so far, repeat the above process, alternately control the charging and discharging process of the capacitors C1 and C3, and realize the output of the oscillation frequency.
[0170] The entire oscillation process is mainly determined by the resistor R and the capacitor C. The oscillation frequency can be calculated based on the following formula:
[0171]
[0172] Among them, M is the proportional coefficient and has nothing to do with temperature. The resistance R is a negative temperature coefficient resistor, which decreases with increasing temperature. The capacitance C is a negative temperature coefficient capacitor, which becomes smaller with increasing temperature. Therefore, the frequency f increases with increasing temperature.
[0173] Furthermore, as the temperature increases, the positive temperature coefficient current I increases, and the current NI (N times the mirror current of the first current IPTAT) also increases, so the voltage VB of the first transistor Q1 increases, and the on-voltage VBE of the first transistor Q1 decreases as the temperature increases. For example, when the temperature is higher than 70°C, the voltage VB is greater than the on-voltage VBE, the first transistor Q1 is completely turned on, the control signal TMC is high, the fourth field effect transistor M4 and the fifth field effect transistor M5 are turned on, the first capacitor C2 and the second capacitor C4 are connected to the circuit, the total capacitance C of the capacitor in the relaxation oscillation module 30 increases, and the frequency f decreases, thereby compensating for the increase in frequency caused by the increase in temperature.
[0174] When the temperature changes from high to low, the NI current decreases accordingly, and the voltage VB of the first transistor Q1 decreases accordingly. The on-state voltage VBE of the first transistor Q1 increases as the temperature decreases. For example, when the temperature changes from high to low to 55°C, the voltage of VB is less than VBE, the first transistor Q1 is turned off, the control signal TMC is at a low level, the fourth field effect transistor M4 and the fifth field effect transistor M5 are turned off, the first capacitor C2 and the second capacitor C4 are not connected to the circuit, and the temperature drops normally at this time, and no compensation is required.
[0175] Specifically, the waveform of the above oscillation working process is as follows: Figure 5 As shown, Figure 5 VREF1 is input to the negative input terminal of the second comparator COMP2. Figure 5 VREF2 is input to the negative input terminal of the first comparator COMP1. This embodiment of the present application will not be described in detail.
[0176] It is worth noting that the specific connection relationship between the components in the first oscillation branch 33, the second oscillation branch 34, and the oscillation signal output unit 35 is as follows: Figure 4 As shown, the embodiments of the present application are not described in detail here.
[0177] An embodiment of the present application also provides an integrated circuit. The electronic device may include any one of the relaxation oscillator circuits provided in the multiple embodiments above.
[0178] An embodiment of the present application further provides an electronic device, which may include any one of the relaxation oscillator circuits provided by a plurality of the above embodiments, or include the integrated circuit provided by the above embodiments.
[0179] It is understandable that the electronic device provided in the embodiment of the present application may also include any other possible devices to achieve corresponding functions, and the embodiment of the present application does not limit this.
[0180] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0181] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A relaxation oscillator circuit, characterized in that: The relaxation oscillator circuit comprises at least: a current output module (10), a temperature compensation control module (20), and a relaxation oscillation module (30); a compensation module (31) is provided in the relaxation oscillation module (30); The current output module (10) is connected to the temperature compensation control module (20) and the relaxation oscillation module (30) respectively, and is used to output a first current to the temperature compensation control module (20) and the relaxation oscillation module (30), and the current output by the current output module (10) is positively correlated with the temperature of the environment in which the relaxation oscillator circuit is located; The temperature compensation control module (20) is connected to the compensation module (30) and is used to output a control signal based on the voltage generated by the received first current when the temperature of the environment in which the relaxation oscillator circuit is located reaches a preset threshold, so as to control the compensation module (31) to compensate the frequency of the relaxation oscillation module (30), wherein the on-voltage of the temperature compensation control module (20) is negatively correlated with the temperature.
2. The relaxation oscillator circuit according to claim 1, wherein: The current output module (10) comprises: A first amplifier (11), a first field effect transistor (M1), and a first resistor (R1); the resistance value of the first resistor (R1) is negatively correlated with temperature; The negative end of the first amplifier (11) is used to connect to a reference voltage, and the positive end of the first amplifier (11) is respectively connected to one end of a first resistor (R1) and a second electrode of a first field effect transistor (M1); the output end of the first amplifier (11) is connected to a control electrode of the first field effect transistor (M1), and the output end of the first amplifier (11) is also connected to the temperature compensation control module (20) and the relaxation oscillation module (30); the first amplifier (11) is used to output a first current to the temperature compensation control module (20) and the relaxation oscillation module (30); The first electrode of the first field effect tube (M1) is connected to a power supply voltage; the second electrode of the first field effect tube (M1) is connected to one end of the first resistor (R1); The other end of the first resistor (R1) is grounded.
3. The relaxation oscillator circuit according to claim 1, wherein: The temperature compensation control module (20) comprises: A first current mirror unit (21), a first transistor (Q1), an inverter (22) and a second resistor (R2); the on-state voltage of the first transistor (Q1) is negatively correlated with temperature; The power supply end of the first current mirror unit (21) is connected to the power supply voltage; the control electrode of the first current mirror unit (21) is connected to the control end of the first field effect transistor (M1); the first output end of the first current mirror unit (21) is respectively connected to one end of the second resistor (R2) and the control electrode of the first transistor (Q1); the second output end of the first current mirror unit (21) is respectively connected to the first electrode of the first transistor (Q1) and the input end of the inverter (22); The second electrode of the first transistor (Q1) is grounded; The output end of the inverter (22) is connected to the compensation module (31), and the inverter (22) is used to output a first level when the first transistor (Q1) is turned off, and to output a second level when the first transistor (Q1) is turned on.
4. The relaxation oscillator circuit according to claim 3, characterized in that The first current mirror unit (21) comprises: A first current mirror (211), a second current mirror (212); A first electrode of the first current mirror (211) is connected to a power supply voltage, and a second electrode of the first current mirror (211) is respectively connected to one end of the second resistor (R2) and a control electrode of the first transistor (Q1); The first electrode of the second current mirror (212) is connected to the power supply voltage, and the second electrode of the second current mirror (212) is connected to the first electrode of the first transistor (Q1) and the input end of the inverter (22).
5. The relaxation oscillator circuit according to claim 4, characterized in that The temperature compensation control module further includes: a hysteresis unit (23); The hysteresis unit (23) is respectively connected to the other end of the second resistor (R2), the second electrode of the first transistor (Q1), the output end of the inverter (22), and the third output end of the first current mirror unit (21), and is used to increase the resistance of the path where the second resistor (R2) is located under the control of the second level output by the inverter.
6. The relaxation oscillator circuit according to claim 5, characterized in that The hysteresis unit (23) comprises: A third resistor (R3), a second field effect transistor (M2), and a third field effect transistor (M3); One end of the third resistor (R3) is respectively connected to the other end of the second resistor (R2) and the first electrode of the second field effect transistor (M2); the other end of the third resistor (R3) is respectively connected to the second electrode of the second field effect transistor (M2), the second electrode of the first transistor (Q1), and the second electrode of the third field effect transistor (M3); The control electrode of the second field effect transistor (M2) is connected to the third output end of the first current mirror unit (21) and the first electrode of the third field effect transistor (M3); The control electrode of the third field effect transistor (M3) is connected to the output end of the inverter (22), and the first electrode of the third field effect transistor (M3) is connected to the third output end of the first current mirror unit (21).
7. The relaxation oscillator circuit according to claim 6, wherein: The first current mirror unit (21) further includes: a third current mirror (213); The first electrode of the third current mirror (213) is connected to the power supply voltage, and the second electrode of the third current mirror (213) is respectively connected to the control electrode of the second field effect transistor (M2) and the first electrode of the third field effect transistor (M3).
8. The relaxation oscillator circuit according to any one of claims 1 to 7, characterized in that: The relaxation oscillation module (30) comprises: a first oscillation branch (33), a second oscillation branch (34), and an oscillation signal output unit (35); the output end of the temperature compensation control module (20) is respectively connected to the input ends of the first oscillation branch (33) and the second oscillation branch (34); the output ends of the first oscillation branch (33) and the second oscillation branch (34) are connected to the input end of the oscillation signal output unit (35); the output end of the oscillation signal output unit (35) is connected to the input ends of the first oscillation branch (33) and the second oscillation branch (34), and is also used to output an oscillation signal; The compensation module (31) comprises a first compensation unit (311) and a second compensation unit (312); the first compensation unit (311) is connected to the first oscillation branch (33), and the second compensation unit (312) is connected to the second oscillation branch (34); The temperature compensation control module (20) is connected to the first compensation unit (311) and the second compensation unit (312) respectively; Wherein, under the action of the control signal output by the temperature compensation control module (20), the first compensation unit (311) is controlled to compensate the capacitance of the first oscillation branch (33), and the second compensation unit (313) is controlled to compensate the capacitance of the second oscillation branch (34).
9. The relaxation oscillator circuit according to claim 8, characterized in that The first compensation unit (311) comprises: a first capacitor (C2) and a fourth field effect transistor (M4); one end of the first capacitor (C2) is connected to the first oscillation branch (33), and the other end of the first capacitor (C2) is connected to the first electrode of the fourth field effect transistor (M4); the control electrode of the fourth field effect transistor (M4) is connected to the output end of the temperature compensation control module (20); and the second electrode of the fourth field effect transistor (M4) is grounded; The second compensation unit (312) comprises: a second capacitor (C4) and a fifth field effect transistor (M5); one end of the second capacitor (C4) is connected to the second oscillation branch (34), and the other end of the second capacitor (C4) is connected to the first electrode of the fifth field effect transistor (M5); the control electrode of the fifth field effect transistor (M5) is connected to the output end of the temperature compensation control module (20); and the second electrode of the fifth field effect transistor (M5) is grounded.
10. An integrated circuit, characterized in that: The integrated circuit comprises a relaxation oscillator circuit as claimed in any one of claims 1 to 9.
11. An electronic device, characterized in that: The electronic device comprises the relaxation oscillator circuit according to any one of claims 1 to 9, or comprises the integrated circuit according to claim 10.