RC oscillator

By employing a combination of bias currents with positive and negative temperature coefficients in the RC oscillator, the temperature effect of logic delay is compensated, the temperature sensitivity of the oscillation frequency is reduced, and the stability and accuracy of the RC oscillator are improved.

CN118282325BActive Publication Date: 2026-11-27GIGADEVICE SEMICON (BEIJING) INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211709872.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2026-11-27
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

The oscillation frequency of existing RC oscillators is greatly affected by temperature, resulting in significant frequency differences at different temperatures, which affects the function and performance of the chip.

Method used

A bias circuit is used to generate a first bias current with a positive temperature coefficient and a second bias current with a negative temperature coefficient. The sum of these two bias currents is used as the charging current of the oscillation circuit. The voltage of one of these bias currents is used as a reference voltage and compared with the charging voltage on the capacitor to compensate for the positive temperature coefficient of the logic delay and reduce the temperature sensitivity of the oscillation frequency.

Benefits of technology

By adjusting the ratio of bias currents, a negative temperature coefficient is achieved for the capacitor charging time, which effectively reduces the temperature sensitivity of the oscillation frequency and improves the stability and accuracy of the RC oscillator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118282325B_ABST
    Figure CN118282325B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an RC oscillator, comprising: a bias circuit configured to generate a first bias current and a second bias current, and output a charging current proportional to a total bias current being a sum of the first bias current and the second bias current, wherein a ratio of the first bias current to the second bias current has a positive temperature coefficient; and an oscillation circuit configured to periodically charge a capacitance with the charging current output by the bias circuit, and compare a charging voltage on the capacitance with a reference voltage being a voltage across a resistance through which a current proportional to the second bias current flows, thereby obtaining a clock signal periodically oscillating. The present disclosure employs such two bias currents to obtain the charging current of the capacitance and the reference for comparison with the charging voltage, which can make the charging time of the capacitance have a negative temperature coefficient, compensate for a positive temperature coefficient of a subsequent circuit delay, and realize an RC oscillator with low temperature drift.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of integrated circuits, and in particular to an RC oscillator. Background Technology

[0002] On-chip RC oscillators are widely used in biomedicine, MCUs, and wireless sensing fields due to their advantages such as low cost and low power consumption. The oscillation frequency of existing RC oscillators is related to the delay of their included comparators and digital logic circuits. However, this delay is greatly affected by temperature, resulting in significant frequency differences at different temperatures, which may affect the overall function and performance of the chip.

[0003] Therefore, a low-temperature drift RC oscillator is needed. Summary of the Invention

[0004] One technical problem this disclosure aims to solve is to provide a cryogenic RC oscillator.

[0005] According to a first aspect of this disclosure, an RC oscillator is provided, comprising: a bias circuit configured to generate a first bias current and a second bias current, and output a charging current proportional to a total bias current which is the sum of the first bias current and the second bias current, wherein the ratio of the first bias current to the second bias current has a positive temperature coefficient; and an oscillation circuit configured to periodically charge a capacitor using the charging current output by the bias circuit, and to compare the voltage across a resistor flowing through the second bias current or a current proportional to it as a reference voltage with the charging voltage on the capacitor to obtain a periodically oscillating clock signal.

[0006] Optionally, the bias circuit includes: a first bias current module that generates a first bias current having a positive temperature coefficient or a current proportional to the first bias current; and a second bias current module that generates a second bias current having a negative temperature coefficient or a current proportional to the second bias current.

[0007] Optionally, the first bias current module generates the first bias current or a current proportional to the first bias current across the first bias resistor using the gate-source voltage difference of the two transistors, and the second bias current module generates the second bias current or a current proportional to the second bias current across the second bias resistor using the gate-source voltage of one transistor.

[0008] Optionally, the first bias current module outputs the first bias current to the second bias current module, and the second bias current module adds the first bias current and the second bias current to generate the total bias current.

[0009] Optionally, the first bias current module includes: a first current mirror, a first bias resistor coupled to the first current mirror, a first transistor, and a second transistor, wherein the channel types of the first transistor and the second transistor are opposite to those of the transistors in the first current mirror, and the voltage across the first bias resistor is equal to the gate-source voltage difference between the first transistor and the second transistor; and a third transistor for forming a second current mirror with the transistors in the first current mirror, the first transistor, or the second transistor, wherein a third bias current is generated across the first bias resistor, and the third transistor outputs a current proportional to the third bias current as the first bias current.

[0010] Optionally, the second bias current module includes: a third current mirror, and a second bias resistor and a fourth transistor respectively coupled to two branches of the third current mirror, wherein the channel type of the fourth transistor is opposite to that of the transistor of the third current mirror, and the voltage across the second bias resistor is equal to the gate-source voltage of the fourth transistor, thereby generating the second bias current across the second bias resistor.

[0011] Optionally, the transistor that outputs the first bias current in the first bias current module is coupled in parallel with the second bias resistor to one branch of the third current mirror, so that the fourth transistor coupled to the other branch of the third current mirror generates the total bias current.

[0012] Optionally, the first bias current module includes: a first PMOS current mirror, a first bias resistor coupled to the first PMOS current mirror, a first NMOS transistor, and a second NMOS transistor, wherein the voltage across the first bias resistor is equal to the gate-source voltage difference between the first NMOS transistor and the second NMOS transistor, and a third NMOS transistor, which, together with the first NMOS transistor or the second NMOS transistor, forms a second current mirror, wherein a third bias current is generated across the first bias resistor, and the third NMOS transistor outputs a current proportional to the third bias current as the first bias current; and the second bias current module includes: a third PMOS current mirror, and a first bias resistor coupled to the first PMOS current mirror, a first NMOS transistor, and a second NMOS transistor, respectively coupled to the first NMOS transistor. The second bias resistor and the fourth NMOS transistor are two branches of the three PMOS current mirror, wherein the voltage across the second bias resistor is equal to the gate-source voltage of the fourth NMOS transistor, thereby generating the second bias current across the second bias resistor. The second bias resistor and the third NMOS transistor are coupled in parallel to one branch of the third PMOS current mirror, such that the fourth NMOS transistor coupled to the other branch of the third PMOS current mirror generates the total bias current. The bias circuit also includes a fifth PMOS transistor for forming a fourth current mirror with the transistors in the third PMOS current mirror, and the fifth PMOS transistor outputs a charging current proportional to the total bias current.

[0013] Optionally, the oscillation circuit includes: a capacitor charging / discharging module configured to control the on / off state of a switch coupled to the capacitor using the clock signal, so as to alternately discharge the capacitor to ground potential and charge the capacitor with the charging current; a comparison module configured to compare the charging voltage on the capacitor with the reference voltage, thereby outputting a comparison signal as the comparison result; and a clock signal generation module configured to shape the comparison signal into the clock signal.

[0014] Optionally, the comparison module includes at least one current comparator that uses the total bias current as a bias current.

[0015] Optionally, the oscillation circuit includes: a capacitor charging / discharging module configured to control the on / off state of a switch coupled to the capacitor using the clock signal, so as to alternately discharge the capacitor to ground potential and charge the capacitor with the charging current; a comparison module configured to compare the charging voltage on the capacitor with the reference voltage, thereby outputting a comparison signal as the comparison result; and a clock signal generation module configured to shape the comparison signal into the clock signal.

[0016] Optionally, the comparison module includes a comparator, wherein the comparator uses the total bias current as a bias current such that the flip voltage of the comparator is equal to the gate-source voltage of the fourth NMOS transistor, wherein the comparator includes: a sixth PMOS transistor for forming a fifth current mirror with the transistor in the third PMOS current mirror and outputting the total bias current; and a seventh NMOS transistor matched with the fourth NMOS transistor, with its drain coupled to the drain of the sixth PMOS transistor, its source grounded, and its gate coupled to the drain of the fifth PMOS transistor, thereby outputting the comparison signal from the drain of the seventh NMOS transistor.

[0017] Optionally, the capacitor charging and discharging module includes: a first capacitor and a second capacitor as the capacitor, a first switch coupled in parallel with the first capacitor and a second switch coupled between the first capacitor and the drain of the fifth PMOS transistor, a third switch coupled in parallel with the second capacitor and a fourth switch coupled between the second capacitor and the drain of the fifth PMOS transistor, wherein the first switch to the fourth switch is controlled by the clock signal or its inverted signal, such that the second switch and the third switch are turned on when the first switch and the fourth switch are turned off, and the first switch and the fourth switch are turned on when the second switch and the third switch are turned off.

[0018] Optionally, the clock signal generation module includes: an inverter to invert the comparison signal, and a D flip-flop, the data input of which is coupled to its inverted output, the clock input of which is coupled to the output of the inverter, and the output of which outputs the clock signal and its inverted signal respectively.

[0019] Optionally, the comparison module includes a first comparator and a second comparator, wherein both the first and second comparators utilize the total bias current as a bias current so that their switching voltage is equal to the gate-source voltage of the fourth NMOS transistor. The first comparator includes: a sixth PMOS transistor, configured to form a fifth current mirror with the transistor in the third PMOS current mirror and output the total bias current; and a seventh NMOS transistor, matched with the fourth NMOS transistor, with its drain coupled to the drain of the sixth PMOS transistor, its source grounded, and its gate coupled to the charging voltage on the first capacitor, thereby outputting the first comparison signal from the drain of the seventh NMOS transistor. The second comparator includes: an eighth PMOS transistor, configured to form a sixth current mirror with the transistor in the third PMOS current mirror and output the total bias current; and a ninth NMOS transistor, matched with the fourth NMOS transistor, with its drain coupled to the drain of the eighth PMOS transistor, its source grounded, and its gate coupled to the charging voltage on the second capacitor, thereby outputting the second comparison signal from the drain of the ninth NMOS transistor.

[0020] Optionally, the capacitor charging and discharging module includes: a first capacitor and a second capacitor as the capacitor, a first switch coupled in parallel with the first capacitor and a second switch coupled between the first capacitor and the drain of the fifth PMOS transistor, a third switch coupled in parallel with the second capacitor and a fourth switch coupled between the second capacitor and the drain of the fifth PMOS transistor, wherein the first switch to the fourth switch is controlled by the clock signal or its inverted signal, such that the second switch and the third switch are turned on when the first switch and the fourth switch are turned off, and the first switch and the fourth switch are turned on when the second switch and the third switch are turned off.

[0021] Optionally, the clock signal generation module includes: a first inverter and a second inverter, which respectively invert the first comparison signal and the second comparison signal, and an RS flip-flop, the input terminals of which are respectively coupled to the output terminals of the first inverter and the second inverter, and output the clock signal and its inverted signal.

[0022] Optionally, the resistance values ​​of the first bias resistor and the second bias resistor do not change with temperature.

[0023] Therefore, this disclosure uses a current proportional to the sum of two bias currents as the charging current of the capacitor in the oscillation circuit, uses a voltage related to one of the two bias currents as a reference for comparison with the charging voltage, and makes the ratio of the two bias currents have a positive temperature coefficient, thereby making the charging time of the capacitor have a negative temperature coefficient. This positive temperature coefficient can compensate for the logic delay of subsequent circuits (such as comparators and clock signal shaping circuits), reduce the temperature sensitivity of the oscillation frequency, and realize a low-temperature drift RC oscillator. Attached Figure Description

[0024] The above and other objects, features and advantages of this disclosure will become more apparent from the more detailed description of exemplary embodiments thereof taken in conjunction with the accompanying drawings, wherein like reference numerals generally denote like parts.

[0025] Figure 1 A schematic diagram of a typical RC oscillator is shown.

[0026] Figure 2 The diagram shows some voltage and signal waveform examples from a typical RC oscillator.

[0027] Figure 3A and Figure 3B Schematic diagrams of the composition of RC oscillators according to some embodiments of the present invention are shown.

[0028] Figure 4 The diagram shows waveform examples of some voltages and signals in an RC oscillator according to an embodiment of the present invention.

[0029] Figure 5A and Figure 5B Schematic diagrams of the composition of the first bias current module according to some embodiments of the present invention are shown.

[0030] Figure 6 A schematic diagram of the composition of a second bias current module according to an embodiment of the present invention is shown. Detailed Implementation

[0031] Preferred embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0032] Figure 1 A schematic diagram of a typical RC oscillator is shown.

[0033] like Figure 1As shown, the RC oscillator 100 includes a bias circuit 110 and an oscillation circuit 120, wherein the bias circuit 110 provides the oscillation circuit 120 with a charging current I for charging the capacitor. C and the reference voltage V used as a comparison benchmark R The oscillation circuit 120 uses a clock signal and its inverting signal to control the periodic charging and discharging of the capacitor, and compares the charging voltage on the capacitor with the reference voltage V. R The comparison is performed, and the periodic oscillation signal, which is the result of the comparison, is shaped to obtain a clock signal CLK with suitable waveform and duty cycle.

[0034] Specifically, the bias circuit 110 includes an amplifier AMP, resistors R61 and R62, and PMOS transistors M61, M62, and M63. The bias circuit 110 operates as follows: a bias current = VREF / R1 is generated across resistor R61 using a reference voltage VREF (where R1 is the resistance value of R61). This bias current is replicated by a PMOS current mirror composed of transistors M61 and M62, flowing through resistor R62, thereby generating a reference voltage V across resistor R62. R =VREF*R2 / R1 (where R2 is the resistance value of R62), and this bias current is replicated using a PMOS current mirror composed of transistors M61 / M63 as the charging current I. C Provided to oscillation circuit 120, thereby I C =VREF / R1.

[0035] The oscillation circuit 120 includes capacitors C61 and C62, switches S61, S62, S63, and S64, a comparator COMP, and a D flip-flop D61. Capacitors C61 and C62 have the same capacitance value C, and switches S61-S64 are all NMOS transistors. Switches S61 and S63 are respectively connected to the aforementioned current mirror to output the charging current I. C The terminals are connected between capacitors C61 and C62, and switches S62 and S64 are connected in parallel with capacitors C61 and C62, respectively. The clock signal CLK output by the D flip-flop is connected to the control terminals of switches S61 and S64, while the inverted clock signal CLKB output by the D flip-flop is connected to the control terminals of switches S62 and S63. Therefore, the clock signal CLK and its inverted signal CLKB can be used to control the alternating on and off of switches S61, S64 and S62, S63, thereby controlling the alternating charging and discharging of capacitors C61 and C62. The comparator COMP measures the charging voltage V on capacitors C61 and C62. C With the reference voltage V provided by the bias circuit 110 R The comparison is performed, and the comparison signal VCOM, which is the comparison result, is output to the clock input terminal of the D flip-flop D61. The inverting output terminal of the D flip-flop D61... Connect to the data input terminal D, so that the output signal CLK and its inverted signal CLKB are level-flipped at the rising edge of the clock input signal (i.e., the comparator signal VCOM).

[0036] Figure 2 Waveform examples of some key voltages and signals in this typical RC oscillator 100 are shown.

[0037] The following reference Figure 1 and Figure 2 To describe the working process of the oscillator circuit 120.

[0038] When the output CLK of the D flip-flop D61 is low and the inverted output CLKB is high, switches S61 and S64 are off, and switches S62 and S63 are on. Capacitor C61 is pulled down (discharged) to ground potential GND, and the charging current I... C When capacitor C62 is charged, V C It is equal to the charging voltage across capacitor C62, that is... Figure 2 The V shown C The ramp signal has a slope of I. C / C. For example... Figure 2 As shown, after time T C The charging voltage V on the rear capacitor C62 C Exceeding the reference voltage V R Therefore, the comparator COMP output signal VCOM goes high, causing the output CLK and inverted output CLKB of D flip-flop D61 to flip, i.e., CLK goes high and CLKB goes low. At this time, switches S61 and S64 are turned on, and switches S62 and S63 are turned off. C The initial voltage GND of the capacitor C61 is pulled down, and the charging current I is... C The capacitor C61 begins charging. The output VCOM of comparator COMP goes low until time T elapses again. C The charging voltage V on the rear capacitor C61 C Exceeding the reference voltage V R When the voltage returns to high, the output of D flip-flop D61 flips again, meaning CLK goes low and CLKB goes high. Then, oscillator circuit 120 continuously repeats the above process.

[0039] Please note, such as Figure 2 As shown, at charging voltage V C Exceeding the reference voltage V R Subsequently, due to the total delay T of the comparator COMP, D flip-flop D61, and switches S61-S64 in the subsequent work... d Therefore, after a total delay T dOnly after all the above signal flips and capacitor discharges are completed does the capacitor charging period begin again. In other words, the oscillation period is 2(T). C +T d ).

[0040] like Figure 2 As shown, T C equals V R Divide by slope I C / C, and as mentioned before, V R =VREF*R2 / R1, I C =VREF / R1, from which T can be derived C =R2C.

[0041] Therefore, the expression for the oscillation frequency (which can also be described as the clock frequency of the output clock signal) is:

[0042]

[0043] As can be seen from formula (1), the clock frequency is not only related to the time constant R2C, but also to the total logic delay T of the comparator, D flip-flop, and switch. d Related. However, usually T d It is very sensitive to temperature, and as the temperature rises, T d As the clock frequency increases, the total logic delay T decreases. d It has a positive temperature coefficient, which makes the clock frequency exhibit a large temperature dependence across the entire temperature range.

[0044] In view of this, the present invention proposes an improved RC oscillator, which adjusts the charging time T of the capacitor by appropriately setting two bias currents. C It has a suitable negative temperature coefficient to compensate for the total logic delay T. d The positive temperature coefficient reduces the temperature sensitivity of the clock frequency.

[0045] Specifically, the bias circuit of the RC oscillator according to the present invention can generate two different bias currents (as described later, I). a I b The circuit outputs a current proportional to the sum of these two bias currents as the charging current for the capacitor in the oscillation circuit. Furthermore, the oscillation circuit according to the invention can utilize one of these two bias currents (I0, I ...) to charge the capacitor in the oscillation circuit. b The voltage across a resistor whose current is proportional to the current is used as a reference voltage for comparison with the charging voltage across the capacitor. As discussed earlier, the charging time T of the capacitor... C This is equal to the comparison reference voltage divided by the slope of the charging voltage rise, where the slope is the ratio of the charging current to the capacitance value. From this, the T value according to the present invention can be derived. CIn addition to being related to the product of capacitance and resistance, it is also related to the ratio of the two bias currents generated by the bias circuit (I0). a / I b The ratio of the two bias currents is inversely proportional (see formula (11) below). Therefore, this invention sets the ratio of the two bias currents to have a positive temperature coefficient, so that the charging time T of the capacitor is... C It has a negative temperature coefficient, thereby compensating for the logic delay T of subsequent circuits. d The positive temperature coefficient, for example, can be achieved by adjusting the circuit parameters to achieve the ratio of the two bias currents (I0). a / I b Thus, T is compensated. d The positive temperature coefficient reduces the temperature sensitivity of the clock frequency.

[0046] Some preferred embodiments of the present invention will now be described with reference to the accompanying drawings.

[0047] Figure 3A and Figure 3B Schematic diagrams of the composition of RC oscillators according to some embodiments of the present invention are shown. For example... Figure 3A and Figure 3B As shown, the RC oscillator 300 or 300' includes a bias circuit 310 and an oscillation circuit 320 or 320', respectively. Figure 3A and Figure 3B The difference lies in the implementation of the oscillation circuit, while the bias circuit 310 in both is the same. The following section will use... Figure 3A The bias circuit 310 is introduced as an example.

[0048] The bias circuit 310 generates a first bias current I. a Second bias current I b And the output is related to the total bias current I. s (=I a +I b The charging current I is proportional to (N times) L Among them, as will be explained in detail later, I a / I b It has a positive temperature coefficient.

[0049] In some embodiments, the bias circuit 310 may include a first bias current module and a second bias current module to generate two different bias currents. For example, a first bias current with a positive temperature coefficient and a second bias current with a negative temperature coefficient may be generated, such that the ratio of the first bias current to the second bias current has a positive temperature coefficient.

[0050] In some embodiments, the first bias current module can generate a bias current across the first bias resistor using the gate-source voltage difference between the two transistors. The second bias current module can generate another bias current across the second bias resistor using the gate-source voltage of one transistor.

[0051] The two bias currents can be added together using a separate current summing module to obtain the total bias current, or preferably, it can be done as follows: Figure 3A As shown, the bias current I generated by the first bias current module 311 is... a The output is sent to the second bias current module 312, which also has a current summing function, to convert the first bias current I... a With the second bias current I b The summation produces the total bias current I. s .

[0052] In some embodiments, the first bias current module may include: a first current mirror, a first bias resistor coupled to the first current mirror, a first transistor, and a second transistor. The channel types of the first and second transistors are opposite to those of the transistors in the first current mirror, and the voltage across the first bias resistor is equal to the gate-source voltage difference between the first and second transistors, thereby generating a third bias current across the first bias resistor. The first bias current module may further include a third transistor for forming a second current mirror with the transistors in the first current mirror, the first transistor, or the second transistor, thereby outputting a current proportional to the third bias current as the first bias current. For example, the first and second current mirrors may be NMOS or PMOS current mirrors, respectively. For example, the first and second current mirrors may be common-source and common-gate current mirrors or other suitable current mirrors, respectively.

[0053] In some embodiments, the second bias current module may include a third current mirror, and a second bias resistor and a fourth transistor respectively coupled to two branches of the third current mirror. The channel type of the fourth transistor is opposite to that of the transistor in the third current mirror, and the voltage across the second bias resistor is equal to the gate-source voltage of the fourth transistor, thereby generating a second bias current across the second bias resistor. Additionally, in some embodiments, the transistor in the first bias current module that outputs the first bias current may be coupled in parallel with the aforementioned second bias resistor to one branch of the third current mirror, such that the fourth transistor coupled to the other branch of the third current mirror generates a total bias current; that is, the second bias current module also functions as a current summing module. For example, the third current mirror may be an NMOS current mirror or a PMOS current mirror. For example, the third current mirror may be a cascode current mirror or other suitable current mirror.

[0054] Of course, those skilled in the art will understand that the bias circuit of the present invention is not limited to the bias current generation method described above, and the first bias current module and the second bias current module are not limited to... Figure 3A The circuit structure shown is not the only one, but includes its various variations, such as subsequent... Figures 5A-5B and Figure 6 The structure shown is shown.

[0055] The following is based on Figure 3A The operation of the bias circuit 310 according to the present invention will be explained in detail using the circuit structure as an example.

[0056] The first bias current module 311 includes PMOS transistors M0 and M1 constituting a current mirror, NMOS transistors M7 and M9 coupled to two branches of the current mirror, and a bias resistor R1. The sources of NMOS transistors M7 and M9 are both grounded, while their gates are connected to both ends of the bias resistor R1. That is, the current I flowing through the bias resistor R1... p Equal to the difference between the gate-source voltages of NMOS transistors M9 and M7 and the resistance R1. s The ratio of . Equal current I flows through the two branches of current mirror M0 / M1. p That is, current I p These are also the drain currents of NMOS transistors M7 and M9, from which we can deduce:

[0057]

[0058] Where, μ n For electron mobility, C ox Let K be the gate oxide capacitance per unit area, and K be the ratio of the width to the length of transistors M7 and M9, i.e. Due to μ n Having a negative temperature coefficient, its capacitance is minimally affected by temperature, while the bias resistor R1 can be composed of two resistors with opposite temperature coefficients, resulting in a total resistance R. S The temperature coefficient is close to 0 (i.e., the resistance of bias resistor R1 is R). S (It does not change with temperature), therefore the bias current I p It has a positive temperature coefficient.

[0059] The first bias current module 311 also includes an NMOS transistor M10 that forms a current mirror with transistor M9, which replicates the bias current I at a certain ratio M. p Thus, the first bias current I is obtained. a as follows:

[0060]

[0061] Due to bias current I pIt has a positive temperature coefficient, therefore the first bias current I a It also has a positive temperature coefficient.

[0062] like Figure 3A As shown, the second bias current module 312 includes PMOS transistors M2 and M3 constituting a current mirror, and bias resistors R2 and NMOS transistor M11 respectively coupled to the two branches of the PMOS current mirror. The source of NMOS transistor M11 is grounded, and its gate is coupled to one end of bias resistor R2, while the other end of bias resistor R2 is grounded. Therefore, the gate-source voltage V of NMOS transistor M11 is... GS11 This is equal to the voltage across the bias resistor R2. In other words, the gate-source voltage of the NMOS transistor M11 generates a second bias current I across the bias resistor R2 as follows: b :

[0063]

[0064] Where R is the resistance value of the bias resistor R2. Similar to the aforementioned bias resistor R1, the bias resistor R2 can also be composed of two resistors with opposite temperature coefficients, so that the temperature coefficient of the resistance value R is close to 0 (i.e., the resistance value R of the bias resistor R2 does not change with temperature), therefore I b The temperature coefficient is determined by V GS11 The determination is usually a negative temperature coefficient.

[0065] In conjunction with the above, the first bias current I a It has a positive temperature coefficient, and the second bias current I b Having a negative temperature coefficient, and based on the derivation of formulas (12) to (15) below, it can be seen that the first bias current I a With the second bias current I b The ratio of I a / I b It also has a positive temperature coefficient.

[0066] Figure 3A The second bias current module 312 also includes an NMOS transistor M8, which is provided to enable the bias circuit to function properly.

[0067] In addition, the second bias current module 312 also has a current summing function, wherein the bias resistor R2 and the first bias current I output from the first bias current module 311 are added together. a The transistor M10 is connected in parallel to one branch of the current mirror, such that the branch current of the current mirror is the total bias current I, which is the sum of the two bias currents. s As shown below:

[0068] I s = a +b (5)

[0069] The current mirror will measure the total bias current I s The transistor is copied to another branch, therefore the drain current of transistor M11 is also I. s Therefore, we can conclude that:

[0070]

[0071] Among them, (W / L) 11 V represents the aspect ratio of transistor M11. TH This is the threshold voltage of transistor M11.

[0072] In addition, the bias circuit 310 also includes a PMOS transistor M6 that forms a current mirror with the transistor in the current mirror of the second bias current module 312. M6 replicates the total bias current at a certain ratio N to obtain the charging current of the capacitor as follows:

[0073] I L =N*I s (7)

[0074] The following are respectively based on Figure 3A and Figure 3B Let's take an example to discuss the oscillation circuit.

[0075] In some embodiments, the oscillation circuit includes a capacitor charging / discharging module, a comparison module, and a clock signal generation module, for example... Figure 3A and Figure 3B shown.

[0076] The capacitor charging / discharging module is configured to control the on / off state of a switch coupled to the capacitor using a clock signal, so as to alternately discharge the capacitor to ground potential and charge it with a charging current I provided by a bias circuit. L The capacitor is charged. In some embodiments, this can be achieved by, for example... Figure 3A The capacitor charging and discharging module 321 shown (which is similar to the aforementioned) Figure 1 The two capacitors S62 and S64 used, along with their control switches S61-S64, have the same structure, or as... Figure 3B The capacitor charging and discharging module 321' shown can control two symmetrical capacitors to charge and discharge alternately. Of course, those skilled in the art will understand that the function of this capacitor charging and discharging module can be achieved using only one capacitor and its control switch, as needed.

[0077] The comparison module is configured to compare the charging voltage on the capacitor in the capacitor charge / discharge module with a reference voltage provided by the bias circuit, thereby outputting a comparison signal as the comparison result. In some embodiments, the comparison module may include at least one current comparator that uses the total bias current generated by the bias circuit as the bias current. For example, Figure 3A The comparison module 322 in the middle includes a current comparator, while Figure 3B The comparison module 322' includes two current comparators, both of which use the total bias current I. s As a bias current, the switching voltage of these comparators is equal to the gate-source voltage V of the NMOS transistor M11. GS11 That is, the voltage across the second bias resistor R2. In some embodiments, it can be as follows: Figure 1 The voltage comparator COMP shown implements this comparison function. Of course, those skilled in the art will understand that one or two comparators can be used to implement this comparison function as needed.

[0078] The clock signal generation module is configured to shape the comparison signal output by the comparison module into a clock signal. In some embodiments, such as... Figure 3A The clock signal generation module 323 shown (including an inverter that inverts the comparison signal and a D flip-flop) implements this shaping function to obtain a clock signal with a suitable waveform and duty cycle. In some embodiments, a clock signal with a suitable waveform and duty cycle can be used. Figure 3B The clock signal generation module 323' shown (including two inverters and an RS flip-flop), or as shown in the figure, is a clock signal generation module 323' (including two inverters and an RS flip-flop), or as shown in the figure. Figure 1 The D flip-flop D61 shown is used to implement this shaping function to obtain a clock signal with a suitable waveform and duty cycle. Of course, those skilled in the art will understand that any other suitable shaping circuit can be used to implement this shaping function as needed.

[0079] The following is based on Figure 3A The operation of the oscillation circuit 320 according to the present invention will be described in detail using the circuit structure as an example.

[0080] like Figure 3A As shown, the oscillation circuit 320 includes a capacitor charging and discharging module 321, a comparison module 322, and a clock signal generation module 323.

[0081] The capacitor charging and discharging module 321 includes a first capacitor C0 and a second capacitor C1, and switches M14-M17 coupled to capacitors C0 and C1 respectively. Capacitors C0 and C1 have the same capacitance value and are preferably matched (i.e., have the same design, such as structure and size). Switches M14-M17 are all NMOS transistors. The gate voltages of transistors M14-M17 are respectively connected to a subsequently generated non-overlapping clock signal CLK and its inverted signal CLKB, thereby controlling the on / off state of each switch by the clock signal CLK and its inverted signal CLKB. Specifically, when the clock signal CLK is low, switch M14 coupled between the first capacitor C0 and the drain of transistor M6 and switch M17 connected in parallel with the second capacitor C1 are turned on, while switch M15 coupled between the second capacitor C1 and the drain of transistor M6 and switch M16 connected in parallel with the first capacitor C0 are turned off, thereby causing the first capacitor C0 to be charged by the charging current I. L The first capacitor C0 is charged while the second capacitor C1 discharges to ground. Conversely, when the clock signal CLK is high, switches M14 and M17 are open, and switches M15 and M16 are open, causing the first capacitor C0 to discharge to ground while the second capacitor C1 is charged by the current I. L Charging. Actually... Figure 3A The capacitor charging and discharging module 321 is similar to the aforementioned Figure 1 The two capacitors S62 and S64, along with their control switches S61-S64, have the same structure; details of their operation can be found in the previous sections. Figure 1-2 And related descriptions.

[0082] Comparison module 322 includes a comparator (also called an inverter) composed of PMOS transistor M5 and NMOS transistor M13. PMOS transistor M5 and PMOS transistor M2 form a current mirror, thereby outputting the total bias current I. s The bias current of the comparator is used to make the flip voltage of the comparator equal to the gate-source voltage V of the NMOS transistor M11. GS11 NMOS transistor M13 is matched with NMOS transistor M11, and its drain is coupled to the drain of transistor M5, its source is grounded, and its gate is coupled to the charging voltage Vcap on the capacitor (which is also the drain of PMOS transistor M6), thereby outputting the comparison signal Vcom from the drain of NMOS transistor M13.

[0083] This comparator can be considered a current comparator, which compares the bias current (i.e., the total bias current I). sThe magnitude of the drain current of transistor M13 and the drain current of transistor M13 are considered. When the drain current of transistor M13 is less than the bias current, the output Vcom is high; when they are equal, the output flips. PMOS transistors M5 and M2 have a 1:1 width-to-length ratio and are matched. NMOS transistors M13 and M11 also have a 1:1 width-to-length ratio and are matched. The bias current (i.e., the total bias current I) is... s The difference between the drain current and the bias current of transistor M13 is equal to the drain current of transistor M11. Therefore, comparing the drain current and the bias current of transistor M13 is equivalent to comparing the gate-source voltage (i.e., charging voltage Vcap) of transistor M13 with the gate-source voltage V of transistor M11 after the bias circuit 310 has stabilized. GS11 The comparator compares the gate-source voltage V of transistor M11. In other words, the comparator compares the gate-source voltage V of transistor M11. GS11 (=I b *R (as mentioned above) is used as a reference voltage to compare with the charging voltage Vcap on the capacitor, thereby outputting a comparison signal Vcom.

[0084] The clock signal generation module 323 includes an inverter INV4 and a D flip-flop. The inverter INV4 inverts the comparison signal Vcom output by the comparison module 322, thus converting the negative pulse of Vcom into a positive pulse. The waveform of Vcom after passing through the inverter INV4 is similar to... Figure 2 Similar to VCOM, the subsequent operation of the D trigger is also the same. Figure 1 and Figure 2 The same as in. With Figure 1 Similarly, the data input of the D flip-flop is coupled to its inverted output, the clock input of the D flip-flop is coupled to the output of the inverter, and the output of the D flip-flop outputs the clock signal CLK and its inverted signal CLKB, respectively.

[0085] in short, Figure 3A The oscillating circuit 320 has the same characteristics as described above. Figure 1 A similar structure, except that a current comparator and its subsequent inverter replace the voltage comparator; therefore, Figure 3A The working principle and process of the oscillator circuit 320 are combined with the previous ones. Figure 1 and Figure 2 The descriptions are similar, so I will not repeat them here.

[0086] The following is based on Figure 3B The operation of the oscillation circuit 320' according to the present invention will be explained in detail using the circuit structure as an example.

[0087] like Figure 3B As shown, the oscillation circuit 320' includes a capacitor charging and discharging module 321', a comparison module 322', and a clock signal generation module 323'.

[0088] The capacitor charging and discharging module 321' includes a first capacitor C0 and a second capacitor C1, and switches M14-M17 coupled to capacitors C0 and C1 respectively. Capacitors C0 and C1 have the same capacitance value and are preferably matched (i.e., have the same design, such as structure and size). Switches M14 and M15 are PMOS transistors, and M16 and M17 are NMOS transistors. The gate voltages of transistors M14-M17 are respectively connected to a subsequently generated non-overlapping clock signal CLK and its inverted signal CLKB, thereby controlling the on / off state of each switch by the clock signal CLK and its inverted signal CLKB. Specifically, when the clock signal CLK is high, switch M14 coupled between the first capacitor C0 and the drain of transistor M6 and switch M17 connected in parallel with the second capacitor C1 are turned on, while switch M15 coupled between the second capacitor C1 and the drain of transistor M6 and switch M16 connected in parallel with the first capacitor C0 are turned off, thereby allowing the first capacitor C0 to be charged by the charging current I. L The first capacitor C0 is charged while the second capacitor C1 discharges to ground. Conversely, when the clock signal CLK is low, switches M14 and M17 are open, and switches M15 and M16 are open, causing the first capacitor C0 to discharge to ground while the second capacitor C1 is charged by the current I. L Charge.

[0089] Comparison module 322' includes a first comparator composed of PMOS transistor M5 and NMOS transistor M13, and a second comparator composed of PMOS transistor M4 and NMOS transistor M12. PMOS transistors M4 and M5 form current mirrors with PMOS transistor M2, respectively, and both output a total bias current I. s The bias currents for these two comparators ensure that their switching voltages are equal to the gate-source voltage V of the NMOS transistor M11. GS11 NMOS transistor M13 is matched with NMOS transistor M11, and its drain is coupled to the drain of transistor M5. Its source is grounded, and its gate is coupled to the charging voltage V0 on the first capacitor C0, thereby outputting the first comparison signal V2 from the drain of transistor M13. NMOS transistor M12 is matched with NMOS transistor M11, and its drain is coupled to the drain of transistor M4. Its source is grounded, and its gate is coupled to the charging voltage V1 on the second capacitor C1, thereby outputting the second comparison signal V3 from the drain of transistor M12.

[0090] Both of these comparators (also called inverters) can be considered as current comparators, comparing the bias current (i.e., the total bias current I). sThe magnitude of the drain current of transistors M12 or M13 determines the output level V3 or V2. When the drain current of transistor M12 or M13 is less than the bias current, the output flips. PMOS transistors M4, M5, and M2 have a width-to-length ratio of 1:1:1 and are matched. NMOS transistors M12, M13, and M11 also have a width-to-length ratio of 1:1:1 and are matched. The bias current (i.e., the total bias current I) is... s The difference between the drain current of transistor M12 or M13 and the bias current is equal to the difference between the gate-source voltage (i.e., charging voltage V1 or V0) of transistor M12 or M13 and the gate-source voltage V of transistor M11 after the bias circuit 310 has stabilized. GS11 The comparison. In other words, the two comparators compare the gate-source voltage V of transistor M11. GS11 (=I b *R (as mentioned above) is used as a reference voltage to compare with the charging voltage V0 or V1 on the two capacitors, thereby outputting a comparison signal V2 or V3.

[0091] As mentioned above, Figure 3A or Figure 3B The comparator structure described is only a preferred embodiment, and the invention is not limited thereto. For example, it can be used with... Figure 1 The implementation method is similar, using the voltage across the bias resistor R2 as the comparison reference for the voltage comparator, or using the second bias current I. b Alternatively, a proportional current flows through another resistor, and the voltage across that resistor is used as a reference for a voltage comparator, which then compares it with the charging voltage across the capacitor.

[0092] The clock signal generation module 323 includes two inverters, INV3 and INV4, and an RS flip-flop, RS1. The two inverters, INV3 and INV4, invert the two comparison signals V2 and V3 output from the comparison module 322, respectively, so as to invert the negative pulses of V2 and V3 into positive pulses. The input of the RS flip-flop RS1 is coupled to the outputs of the two inverters, and outputs a clock signal CLK and its inverted signal CLKB.

[0093] In short, the oscillation circuit 320 generates non-overlapping upward pulses at nodes V4 and V5 by alternately charging and discharging capacitors C0 and C1, respectively. This causes the RS flip-flop RS1 to generate a pair of non-overlapping clock signals CLK and CLKB. The clock signals CLK and CLKB are then coupled to the control terminal of the switch that controls the charging and discharging of capacitors C0 and C1, thereby controlling the charging and discharging of the capacitors.

[0094] Figure 4Waveform examples of some key voltages and signals in an RC oscillator 300' according to an embodiment of the present invention are shown.

[0095] The following reference Figure 3B and Figure 4 To describe the working process of the oscillator circuit 320'.

[0096] After the entire RC oscillator 300' is powered on, the bias circuit 310 operates, generating a bias current I. a I b I s and output charging current I L At time t0, the outputs of RS flip-flop RS1 are CLK=0 and CLKB=1, therefore switches M15 and M16 are turned on, and switches M14 and M17 are turned off. The upper plate of capacitor C0 is grounded, and the voltage V0 is pulled down to 0. Constant current source I L As capacitor C1 is linearly charged, its voltage V1 increases linearly. At time t1, the voltage V1 increases to the switching voltage V of the second comparator. GS11 The output V3 of the second comparator flips. The total logic delay T after passing through the second comparator, inverter INV3, and RS flip-flop RS1 is... d Then, at time t2, the clock signal CLK is set to 1, and CLKB becomes 0. At this time, switches M14 and M17 are turned on, and switches M15 and M16 are turned off. The upper plate of capacitor C1 is grounded, and voltage V1 is pulled down to 0. Constant current source I L As capacitor C0 is linearly charged, its voltage V0 increases linearly. At time t3, voltage V0 increases to the switching voltage V of the first comparator. GS11 The output V2 of the first comparator flips. The total logic delay T after passing through the first comparator, inverter INV4, and RS flip-flop RS1 is... d Then, at time t4, the clock signal CLK is reset to 0, and CLKB becomes 1.

[0097] The process from time t0 to time t4 constitutes one oscillation cycle of the oscillating circuit 320', and the circuit then repeats the above process continuously. Therefore, the oscillation period T is equal to the charging time T of the capacitor. c Delay T with subsequent circuit d twice the sum, that is

[0098] T = 2(T) c + d (8)

[0099] The capacitor charging time from time t0 to time t1 is

[0100]

[0101] Where C represents the capacitance values ​​of capacitors C0 and C1.

[0102] Combining the previous formulas (5) and (7), we can obtain

[0103]

[0104] Combining the previous formulas (4) and (10), we can obtain the following:

[0105]

[0106] As mentioned earlier, since the three parameters N, R, and C are only slightly affected by temperature, therefore T c The ratio of temperature coefficient to bias current (I) a / I b The temperature coefficient of I is negatively correlated. a / I b The temperature coefficient is positive, therefore, T c It has a negative temperature coefficient and can compensate for T d The positive temperature coefficient reduces the temperature drift of the RC oscillator.

[0107] The following will combine the preceding discussion to give I. a / I b A more detailed reasoning process for having a positive temperature coefficient.

[0108] Combining the previous formulas (5) and (6), we can obtain

[0109]

[0110] Combining the previous formulas (4) and (12), we can obtain

[0111]

[0112] Let α = n C ox (W / L) 11 R 2 I a After sorting, we can obtain

[0113]

[0114] As can be seen from formula (14), α is the product of the ratio of the transistor width to the length and the ratio of the resistance, so α is independent of temperature.

[0115] Combining formulas (13) and (14), we can obtain

[0116]

[0117] Due to μ n and V THIt has a negative temperature coefficient, and as mentioned earlier, the resistance and capacitance values ​​are minimally affected by temperature. It has a positive temperature coefficient. Therefore, as mentioned earlier, T C It has a negative temperature coefficient. By properly adjusting I... a and I b The ratio can compensate for T d The positive temperature coefficient causes the oscillation frequency to exhibit low temperature drift characteristics throughout the entire temperature range.

[0118] Figure 5A and Figure 5B The embodiments of the present invention are shown respectively. Figure 3A A schematic diagram of some alternative implementations of the first bias current module 311 in the diagram.

[0119] Figure 5A The first bias current module 511 and Figure 3A The main difference is that the bias resistor R1 is moved between the source and ground of the NMOS transistor M7. However, the voltage across the bias resistor R1 remains equal to the difference between the gate-source voltages of NMOS transistors M9 and M7. Bias current I p Formula (2) above still applies.

[0120] Figure 5B The first bias current module 511' and Figure 3A The main difference is that the bias resistor R1 is moved between the source of the PMOS transistor M0 and the power supply voltage VDD, while NMOS transistors M9 and M7 form a current mirror, replacing the PMOS current mirror. The voltage across the bias resistor R1 is equal to the difference between the gate-source voltages of PMOS transistors M1 and M0. Figure 5B The bias circuit structure (excluding M10) can be considered as... Figure 5A The same principle applies, except for the channel type of each transistor. Therefore, the bias current I can be derived. p The formula is similar to formula (2) above.

[0121] Figure 6 An embodiment of the present invention is shown as Figure 3A A schematic diagram of an alternative implementation of the second bias current module 312 in the diagram.

[0122] Figure 6 The second bias current module 612 and Figure 3AThe main difference in the second bias current module 312 is the addition of an NMOS transistor M18 between the source of NMOS transistor M11 and ground. Furthermore, the gate of NMOS transistor M11 is connected to the gate of NMOS transistor M8. NMOS transistors M11 and M8 are matched (same width-to-length ratio), and a bias resistor R2 is connected between the source of NMOS transistor M8 and ground. Therefore, the voltage across the bias resistor R2 is equal to the gate-source voltage V of NMOS transistor M18. GS18 The total bias current I s This is the drain current of the NMOS transistor M18. In other words, V in the formula discussed earlier... GS11 Replace with V GS18 Applicable to Figure 6 The circuit.

[0123] Additionally, although not shown, in some embodiments, Figures 3A-3B , Figures 5A-5B and Figure 6 The PMOS current mirror in the circuit can have other circuit structures, such as a common-source cascode current mirror. Additionally, in some embodiments, an NMOS current mirror can be used instead. Figures 3A-3B , Figures 5A-5B and Figure 6 Each PMOS current mirror in the invention. Those skilled in the art will understand that appropriate modifications can be made to the various circuit structures of the present invention as needed, and all such modifications are within the scope of protection of the present invention.

[0124] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. An RC oscillator, comprising: A bias circuit is configured to generate a first bias current and a second bias current, and to output a charging current proportional to a total bias current which is the sum of the first bias current and the second bias current, wherein the ratio of the first bias current to the second bias current has a positive temperature coefficient. as well as An oscillation circuit is configured to periodically charge a capacitor using the charging current output by the bias circuit, and to compare the voltage across a resistor through which the second bias current or a current proportional to it flows as a reference voltage with the charging voltage on the capacitor, thereby obtaining a periodically oscillating clock signal. The bias circuit includes: A first bias current module includes a first bias resistor, a first transistor, and a second transistor, and is configured to generate a first bias current or a current proportional to the first bias current across the first bias resistor. The first bias current has a positive temperature coefficient, and the voltage across the first bias resistor is equal to the gate-source voltage difference between the first transistor and the second transistor. The second bias current module includes a second bias resistor and a fourth transistor, and is configured to generate a second bias current or a current proportional to the second bias current across the second bias resistor. The second bias current has a negative temperature coefficient, and the voltage across the second bias resistor is equal to the gate-source voltage of the fourth transistor. The first bias current module outputs the first bias current to the second bias current module. The second bias current module adds the first bias current and the second bias current to generate the total bias current.

2. The RC oscillator according to claim 1, wherein, The first bias current module further includes: First current mirror and third transistor, The first bias resistor, the first transistor, and the second transistor are coupled to the first current mirror, wherein the channel types of the first transistor and the second transistor are opposite to those of the transistors in the first current mirror. The third transistor is used to form a second current mirror with the transistor in the first current mirror, the first transistor, or the second transistor. Specifically, a third bias current is generated across the first bias resistor, and the third transistor outputs a current proportional to the third bias current as the first bias current.

3. The RC oscillator according to claim 1, wherein, The second bias current module also includes a third current mirror. The second bias resistor and the fourth transistor are respectively coupled to two branches of the third current mirror, wherein the channel type of the fourth transistor is opposite to that of the transistor in the third current mirror, and the second bias current is generated on the second bias resistor.

4. The RC oscillator according to claim 3, wherein, The transistor that outputs the first bias current in the first bias current module is coupled in parallel with the second bias resistor to one branch of the third current mirror, so that the fourth transistor coupled to the other branch of the third current mirror generates the total bias current.

5. The RC oscillator according to claim 1, wherein, The first transistor and the second transistor are respectively a first NMOS transistor and a second NMOS transistor, and the fourth transistor is a fourth NMOS transistor. The first bias current module further includes: First PMOS current mirror and third NMOS transistor. The first bias resistor, the first NMOS transistor, and the second NMOS transistor are coupled to the first PMOS current mirror, and The third NMOS transistor, together with the first NMOS transistor or the second NMOS transistor, forms a second current mirror. Specifically, a third bias current is generated across the first bias resistor, and the third NMOS transistor outputs a current proportional to the third bias current as the first bias current; and The second bias current module also includes a third PMOS current mirror. The second bias resistor and the fourth NMOS transistor are respectively coupled to the two branches of the third PMOS current mirror, and the second bias current is generated in the second bias resistor. The second bias resistor is coupled in parallel with the third NMOS transistor to one branch of the third PMOS current mirror, causing the fourth NMOS transistor, coupled to the other branch of the third PMOS current mirror, to generate the total bias current; and The bias circuit further includes a fifth PMOS transistor for forming a fourth current mirror with the transistor in the third PMOS current mirror, the fifth PMOS transistor outputting the charging current proportional to the total bias current.

6. The RC oscillator according to any one of claims 1-4, wherein, The oscillation circuit includes: A capacitor charging / discharging module is configured to control the on / off state of a switch coupled to the capacitor using the clock signal, so as to alternately discharge the capacitor to ground potential and charge the capacitor with the charging current. The comparison module is configured to compare the charging voltage on the capacitor with the reference voltage, thereby outputting a comparison signal as the comparison result. A clock signal generation module is configured to shape the comparison signal into the clock signal.

7. The RC oscillator according to claim 6, wherein, The comparison module includes: At least one current comparator that uses the total bias current as the bias current.

8. The RC oscillator according to claim 5, wherein, The oscillation circuit includes: A capacitor charging / discharging module is configured to control the on / off state of a switch coupled to the capacitor using the clock signal, so as to alternately discharge the capacitor to ground potential and charge the capacitor with the charging current. The comparison module is configured to compare the charging voltage on the capacitor with the reference voltage, thereby outputting a comparison signal as the comparison result. A clock signal generation module is configured to shape the comparison signal into the clock signal.

9. The RC oscillator according to claim 8, wherein, The comparison module includes a comparator, wherein the comparator uses the total bias current as a bias current such that the flip voltage of the comparator is equal to the gate-source voltage of the fourth NMOS transistor, wherein the comparator includes: The sixth PMOS transistor is used to form a fifth current mirror with the transistor in the third PMOS current mirror, and outputs the total bias current. The seventh NMOS transistor is matched with the fourth NMOS transistor, and its drain is coupled to the drain of the sixth PMOS transistor, its source is grounded, and its gate is coupled to the drain of the fifth PMOS transistor, thereby outputting the comparison signal from the drain of the seventh NMOS transistor.

10. The RC oscillator according to claim 9, wherein, The capacitor charging and discharging module includes: The first capacitor and the second capacitor are the capacitors mentioned above. A first switch coupled in parallel with the first capacitor and a second switch coupled between the first capacitor and the drain of the fifth PMOS transistor, and A third switch coupled in parallel with the second capacitor and a fourth switch coupled between the second capacitor and the drain of the fifth PMOS transistor. The first to the fourth switches are controlled by the clock signal or its inverted signal, such that when the first and fourth switches are off, the second and third switches are on, and when the second and third switches are off, the first and fourth switches are on.

11. The RC oscillator according to claim 9, wherein, The clock signal generation module includes: An inverter inverts the comparison signal, and The D flip-flop has its data input coupled to its inverted output, its clock input coupled to the output of the inverter, and its output outputs the clock signal and its inverted signal, respectively.

12. The RC oscillator according to claim 8, wherein, The comparison module includes: A first comparator and a second comparator, wherein both the first comparator and the second comparator use the total bias current as a bias current so that their switching voltage is equal to the gate-source voltage of the fourth NMOS transistor. The first comparator includes: The sixth PMOS transistor is used to form a fifth current mirror with the transistor in the third PMOS current mirror, and outputs the total bias current. A seventh NMOS transistor is matched with the fourth NMOS transistor, and its drain is coupled to the drain of the sixth PMOS transistor. Its source is grounded, and its gate is coupled to the charging voltage on the first capacitor, thereby outputting a first comparison signal from the drain of the seventh NMOS transistor. The second comparator includes: The eighth PMOS transistor is used to form a sixth current mirror with the transistor in the third PMOS current mirror, and outputs the total bias current. The ninth NMOS transistor is matched with the fourth NMOS transistor, and its drain is coupled to the drain of the eighth PMOS transistor. Its source is grounded, and its gate is coupled to the charging voltage on the second capacitor, thereby outputting a second comparison signal from the drain of the ninth NMOS transistor.

13. The RC oscillator according to claim 12, wherein, The capacitor charging and discharging module includes: The first capacitor and the second capacitor are the capacitors mentioned above. A first switch coupled in parallel with the first capacitor and a second switch coupled between the first capacitor and the drain of the fifth PMOS transistor, and A third switch coupled in parallel with the second capacitor and a fourth switch coupled between the second capacitor and the drain of the fifth PMOS transistor. The first to the fourth switches are controlled by the clock signal or its inverted signal, such that when the first and fourth switches are off, the second and third switches are on, and when the second and third switches are off, the first and fourth switches are on.

14. The RC oscillator according to claim 12, wherein, The clock signal generation module includes: The first inverter and the second inverter respectively invert the first comparison signal and the second comparison signal, and An RS flip-flop has its inputs coupled to the outputs of the first inverter and the second inverter, respectively, and outputs the clock signal and its inverted signal.

15. The RC oscillator according to claim 1, wherein, The resistance values ​​of the first bias resistor and the second bias resistor do not change with temperature.

Citation Information

Patent Citations

  • Adjustable current mode relaxation oscillator

    CN113452352A