An oscillator with built-in compensation

By using MOS tubes to replace RC circuits in integrated circuits, combined with temperature compensation, high-precision oscillation frequency generation is achieved, solving the problem of low frequency accuracy of traditional oscillators and reducing the number of peripheral components and chip costs.

CN109951155BActive Publication Date: 2024-11-19SHENZHEN NEOTECWAY ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811542917.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-17
Publication Date
2024-11-19
Estimated Expiration
2038-12-17

AI Technical Summary

Technical Problem

In integrated circuits, traditional RC-based oscillators have low resistance and capacitance accuracy, resulting in low frequency accuracy of the oscillator, and external RC or low-temperature drift capacitors are required, reducing integration or increasing chip cost.

Method used

A fully integrated oscillator circuit is adopted, and a MOS tube is used to replace the RC circuit. A triangular wave signal is generated through capacitor charging and discharging. Combined with a temperature compensation circuit, a built-in compensation oscillator is eliminated to eliminate the dependence on external resistor capacitors.

Benefits of technology

The high-precision oscillation frequency generation in integrated circuits is achieved, the number of peripheral components is reduced, the chip cost is reduced, and the frequency accuracy is controlled within ±5% through reasonable temperature compensation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109951155B_ABST
    Figure CN109951155B_ABST
Patent Text Reader

Abstract

The present invention mainly proposes an oscillator with built-in compensation, comprising: an oscillation frequency generating circuit, wherein the oscillation frequency generating circuit comprises a first comparator, a second comparator and an R_S trigger; a first reference level VREF2P4 is connected to the in-phase input end of the first comparator, a second reference level VREF1P2 is connected to the out-of-phase input end of the second comparator, and a triangular wave signal is connected to the out-of-phase input end of the first comparator and the in-phase input end of the second comparator; the output ends of the first comparator and the second comparator are respectively connected to the R end and the S end of the trigger, and the R_S is connected to the Q end of the trigger to output an oscillation signal CLK; the triangular wave signal generator comprises a startup circuit, a bias current generating circuit, and a capacitor charging circuit; in the present invention, the RC circuit is replaced by a MOS tube, and an external RC circuit is not required.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of oscillators, in particular to an oscillator with built-in compensation, which is a fully integrated oscillator circuit. Background Art

[0002] The oscillator frequency generated by the traditional RC-based oscillator depends on the RC product, and the frequency accuracy depends on the accuracy of the RC resistor and capacitor. However, most BCD processes in integrated circuits do not support high-precision, low-temperature drift resistors and capacitors. Therefore, the oscillators in most DC voltage converters DCDC require external RC or additional masks to use low-temperature drift, high-precision capacitors or resistors. The former method reduces the integration and increases the number of peripheral components, while the latter method greatly increases the chip cost. Summary of the invention

[0003] The present invention provides an oscillator with built-in compensation based on the traditional RC-based oscillator DCDC which requires external resistors and capacitors, and adopts a fully integrated oscillator to replace the RC oscillator which requires external resistors and capacitors.

[0004] The technical solution adopted by the present invention to achieve its technical purpose is: an oscillator with built-in compensation, comprising: an oscillation frequency generating circuit, the oscillation frequency generating circuit comprising a first comparator, a second comparator and an R_S trigger; a first reference level VREF2P4 is connected to the in-phase input terminal of the first comparator, a second reference level VREF1P2 is connected to the out-of-phase input terminal of the second comparator, a triangular wave signal is connected to the out-of-phase input terminal of the first comparator and the in-phase input terminal of the second comparator; the output terminals of the first comparator and the second comparator are respectively connected to the R terminal and the S terminal of the trigger, and the R_S is connected to the Q terminal of the trigger to output an oscillation signal CLK;

[0005] The triangular wave signal generator comprises a starting circuit, a bias current generating circuit, and a capacitor charging circuit;

[0006] The startup circuit includes a MOS tube M3, a MOS tube M4, and a resistor R0; the S pole of the MOS tube M3 is connected to the S pole of the MOS tube M4, the G pole of the MOS tube M3 is connected to the D pole of the MOS tube M4, and the D pole of the MOS tube M4 is grounded via the resistor R0;

[0007] The bias current generating circuit comprises an operational amplifier, a MOS tube M5, a MOS tube M6, a MOS tube M18, a MOS tube M12, and a MOS tube M14; the non-inverting input terminal of the operational amplifier is connected to the third reference level, the output terminal is connected to the G pole of the MOS tube M18 and the D pole of the MOS tube M3, the D pole of the MOS tube M18 is respectively connected to the G poles of the MOS tubes M4, M5, and M6, and the D pole of the MOS tube M5, and the S poles of the MOS tubes M5 and M6 are connected to the S pole of the MOS tube M4; the S pole of the MOS tube M18 is connected to the inverting input terminal of the operational amplifier, and a clamping point A is formed at the S pole of the MOS tube M18; the clamping point A is grounded through a clamping resistor formed by the resistor connection mode of the MOS tube M12; the D pole of the MOS tube M6 is grounded through a clamping diode formed by the diode connection mode of the MOS tube M14;

[0008] The capacitor charging and discharging circuit realizes charging and discharging of the MOS tube M19, and comprises a current mirror composed of MOS tubes M5, M6, M8 and M9 and MOS tubes M15, M16 and M17; the D pole of the MOS tube M8 is grounded through a clamping diode formed by the diode connection mode of the MOS tube M15, the D pole of the MOS tube M9 in the current mirror is connected to the G pole of the MOS tube M19, the MOS tube M19 is charged and discharged, the D pole of M9 is connected to the D pole of the MOS tube D17, the G pole of the MOS tube M17 is connected to the Q-end of the trigger, the S pole is grounded through a clamping diode formed by the diode connection mode of the MOS tube M16, and the D and S poles of the MOS tube M19 are grounded respectively; a triangular wave signal is formed on the G pole and connected to the out-of-phase input end of the first comparator and the in-phase input end of the second comparator.

[0009] In the present invention, the RC circuit is replaced by a MOS tube, and an external RC circuit is not required.

[0010] Furthermore, in the above-mentioned oscillator with built-in compensation: a temperature compensation circuit is also included between the clamping resistor formed by the resistance connection mode of the MOS tube M12 and the ground, and the temperature compensation circuit includes a transistor Q0, and the clamping point A is connected to the c pole of the transistor Q0 through the clamping resistor formed by the resistance connection mode of the MOS tube M12, and the b and e poles of the transistor Q0 are grounded.

[0011] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Attached Figure 1 This is a schematic diagram of an oscillator circuit with built-in compensation according to Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0013] Embodiment 1: This embodiment is an oscillator with built-in compensation, which is suitable for integrated circuits, has no RC circuit, and uses the charging and discharging of the capacitor of the MOS tube to achieve oscillation. Figure 1 As shown, the built-in compensated oscillator of this embodiment is mainly composed of three parts: an oscillation frequency generating circuit, a capacitor charging and discharging circuit, a bias current and a starting circuit. When an angular wave signal is input to the oscillation frequency generating circuit, the oscillation frequency generating circuit outputs an oscillation signal CLK.

[0014] The oscillation frequency generating circuit includes a first comparator, a second comparator and an R_S trigger; the first reference level VREF2P4 is connected to the in-phase input terminal of the first comparator, the second reference level VREF1P2 is connected to the out-of-phase input terminal of the second comparator, and a triangular wave signal is connected to the out-of-phase input terminal of the first comparator and the in-phase input terminal of the second comparator; the output terminals of the first comparator and the second comparator are respectively connected to the R terminal and the S terminal of the trigger, and the R_S is connected to the Q terminal of the trigger to output the oscillation signal CLK; in this embodiment, the first reference level VREF2P4 is higher than the second reference level VREF1P2, and the triangular wave signal periodically changes between the first reference level VREF2P4 and the second reference level VREF1P2, so that the two comparators are flipped, and the oscillation signal CLK is generated through the R_S trigger, and the Q- of the R_S trigger can be used as a feedback signal to control the triangular wave signal.

[0015] The triangular wave signal generator comprises a bias current and starting circuit and a capacitor charging circuit, and the bias current and starting circuit consists of a starting circuit and a bias current generating circuit.

[0016] The startup circuit includes a MOS tube M3, a MOS tube M4, and a resistor R0; the S pole of the MOS tube M3 is connected to the S pole of the MOS tube M4, the G pole of the MOS tube M3 is connected to the D pole of the MOS tube M4, and the D pole of the MOS tube M4 is grounded via the resistor R0; the bias current generating circuit includes an operational amplifier, a MOS tube M5, a MOS tube M6, a MOS tube M18, a MOS tube M12, and a MOS tube M14; the non-inverting input terminal of the operational amplifier is connected to the third reference level, the output terminal is connected to the G pole of the MOS tube M18 and the D pole of the MOS tube M3, the MOS The D pole of the tube M18 is connected to the G poles of the MOS tube M4, the MOS tube M5, and the G poles of the MOS tube M6, and the D pole of the MOS tube M5, respectively. The S poles of the MOS tube M5 and the MOS tube M6 are connected to the S pole of the MOS tube M4; the S pole of the MOS tube M18 is connected to the inverting input terminal of the operational amplifier, and a clamping point A is formed at the S pole of the MOS tube M18; the clamping point A is grounded through a clamping resistor formed by the resistor connection mode of the MOS tube M12; the D pole of the MOS tube M6 is grounded through a clamping diode formed by the diode connection mode of the MOS tube M14. In this embodiment, a temperature compensation circuit is also included between the clamping resistor formed by the resistor connection mode of the MOS tube M12 and the grounding, and the temperature compensation circuit includes a transistor Q0, and the clamping point A is connected to the c pole of the transistor Q0 through the clamping resistor formed by the resistor connection mode of the MOS tube M12, and the b and e poles of the transistor Q0 are grounded.

[0017] The capacitor charging and discharging circuit realizes charging and discharging of the MOS tube M19, and includes a current mirror composed of MOS tubes M5, MOS tube M6, MOS tube M8, and MOS tube M9, and MOS tubes M15, MOS tube M16, and MOS tube 17; the D pole of the MOS tube M8 is grounded through a clamping diode formed by the diode connection mode of the MOS tube M15, and the D pole of the MOS tube M9 in the current mirror is connected to the G pole of the MOS tube M19, and the MOS tube M19 is charged and discharged, the D pole of M9 is connected to the D pole of the MOS tube D17, the G pole of the MOS tube M17 is connected to the Q-end of the trigger, the S pole is grounded through a clamping diode formed by the diode connection mode of the MOS tube M16, and the D and S poles of the MOS tube M19 are grounded respectively; a triangular wave signal is formed on the G pole and connected to the out-of-phase input terminal of the first comparator and the in-phase input terminal of the second comparator.

[0018] The working principle of the built-in compensation oscillator of this embodiment is as follows:

[0019] like Figure 1As shown, the non-inverting input terminal of the operational amplifier is connected to the third reference level, which is the second reference level VREF1P2 on the comparator, which is generally 1.2V DC. The VREF1P2 DC level is clamped to point A through the operational amplifier. Then the current flowing through the MOS tube M12 should be the VREF1P2 voltage divided by the impedance of M12, and the MOS tube M12 Vds is much smaller than its Vgs-Vt. The MOS tube M12 works in the linear region, and the small signal channel resistance of the MOS tube M12 is:

[0020]

[0021] In the above formula: Ron is the small signal channel resistance of MOS tube M12, L 12 is the channel length of MOS tube M12, W 12 is the channel width of the MOS tube M12, K is a process constant, Vgsm1 is the VGS voltage of the MOS tube M12, Vt is the threshold voltage, and Vds is the VDS voltage of the MOS tube M12.

[0022] The voltage at point A is VREF, and the MOS tube M18 is operated in the saturation region. Ignoring the channel modulation effect, the current formula of the MOS tube M18 is obtained as follows:

[0023]

[0024] In the above formula, Im18 is the current flowing through the MOS tube M18, W18 and L18 are the channel width and length of the MOS tube M18 respectively, and Vgsm18 is the VGS voltage of the MOS tube M18.

[0025] because:

[0026] Vgsm12=VA+Vgsm18=VREF+Vgsm18,Vds=VREF

[0027] so:

[0028]

[0029] Where VA is the voltage at point A.

[0030] When the circuit is working, the startup circuit composed of MOS tube M3, MOS tube M4, and resistor R0 first jumps over a DC degenerate point (the degenerate point of point A is 0), and also gives an excitation to the subsequent oscillation frequency generation circuit to start the oscillator. The current generated by the bias circuit charges and discharges the capacitor composed of MOS tube M19 through the capacitor charge and discharge control circuit. Its charge and discharge control is controlled by the subsequent oscillation frequency generation part. When the circuit is working, the circuit enters the charging state, MOS tube M17 is turned off, and MOS tube M9 copies the current generated by the previous bias circuit through the current mirror to charge the capacitor composed of MOS tube M19. When the voltage at point A rises to the DC potential of VREF2P4 over time, the comparator outputs a low level, so that the RS trigger output behind is high, turning on MOS tube M17. As long as the pull-up current capability of MOS tube M16 is set to be greater than the discharge current capability of MOS tube M9, point A will be pulled down (here, in order to obtain a duty cycle close to 50%, the current mirrored by MOS tube M16 is set to be twice that of MOS tube M9). At this time, the VREF2P4 comparator will return to a high level. Since the RS trigger latches the previous state, Q_ still outputs a high level to control MOS tube M17 to discharge MOS tube M19 until the level at point A drops to 1.2, triggering the VREF1P2 comparator to output a low level. At this time, the RS trigger is set to 0 to turn off MOS tube M17, and the MOS tube M19 capacitor enters the charging state again. The charging time formula is as follows:

[0031] Tcharge=Cm19*(VREF2P4-VREF1P2) / Im18

[0032] Where Cm19 is the capacitance value of MOS tube M19.

[0033] By always biasing M19 in the strong inversion layer, we can obtain:

[0034]

[0035] Where: Cgs is the equivalent capacitance from the gate end to the source end (S end) of MOS tube 19, and Cgd is the equivalent capacitance from the gate end to the drain end (D end) of MOS19

[0036] W 19 , L 19 They are the channel width and length of MOS tube M19, C OX It is the gate oxide layer capacitance of MOS tube 19.

[0037] Due to L D The channel caused by the overlap effect at the M19 gate end accounts for much less than 1% in modern processes, so:

[0038] K=aCox,

[0039] Where: a is the process constant

[0040] Assume: VREFD = VREF2P4 - VREF1P2

[0041]

[0042] The final expression shows that C is strongly correlated with the absolute value of process deviation. OX , Vt and other items have been eliminated, and the remaining are the relative values ​​of matching accuracy, as well as the absolute values ​​of voltages such as VREF and VREFD. The absolute values ​​of voltage can be obtained from the Bandgap bandgap reference to obtain a relatively accurate value, so the built-in MOS tube M12 and MOS tube M19 are matched and the relatively large channel width W and length L values ​​are taken, and the discharge time with an accuracy of ±5% can also be obtained. However, due to the positive temperature characteristics of the MOS tube temperature, there is no compensation, and there will still be ±35% in the temperature range of -40 to 125, so temperature compensation is still required for practical use. However, the general resistors and negative temperature coefficient devices such as bjt in most processes will have an absolute value deviation of more than ±20% due to the influence of the process. Therefore, for the total equivalent resistance of point A to ground, if an additional temperature compensation device is added, the resistance of the temperature compensation device will affect the accuracy of the entire system. Therefore, we select appropriate temperature coefficient devices so that their total resistance is within 10% of the total equivalent resistance of point A to ground. Even if the temperature compensation device itself has an absolute deviation of ±20%, its impact on the overall accuracy will only be an additional ±2%. After introducing a reasonable temperature compensation device, the accuracy can be controlled within ±5% under all PVT (process, voltage, temperature) conditions.

Claims

1. An oscillator with built-in compensation, comprising: An oscillation frequency generating circuit, characterized in that: the oscillation frequency generating circuit comprises a first comparator, a second comparator and an R_S trigger; a first reference level VREF2P4 is connected to the in-phase input terminal of the first comparator, a second reference level VREF1P2 is connected to the out-of-phase input terminal of the second comparator, a triangle wave signal is connected to the out-of-phase input terminal of the first comparator and the in-phase input terminal of the second comparator; the output terminals of the first comparator and the second comparator are respectively connected to the R terminal and the S terminal of the trigger, and the R_S is connected to the Q terminal of the trigger to output an oscillation signal CLK; The triangular wave signal generator comprises a starting circuit, a bias current generating circuit, and a capacitor charging and discharging circuit; The startup circuit includes a MOS tube M3, a MOS tube M4, and a resistor R0; the S pole of the MOS tube M3 is connected to the S pole of the MOS tube M4, the G pole of the MOS tube M3 is connected to the D pole of the MOS tube M4, and the D pole of the MOS tube M4 is grounded via the resistor R0; The bias current generating circuit comprises an operational amplifier, a MOS tube M5, a MOS tube M6, a MOS tube M18, a MOS tube M12, and a MOS tube M14; the non-inverting input terminal of the operational amplifier is connected to the third reference level, the output terminal is connected to the G pole of the MOS tube M18 and the D pole of the MOS tube M3, the D pole of the MOS tube M18 is respectively connected to the G poles of the MOS tubes M4, M5, and M6, and the D pole of the MOS tube M5, and the S poles of the MOS tubes M5 and M6 are connected to the S pole of the MOS tube M4; the S pole of the MOS tube M18 is connected to the inverting input terminal of the operational amplifier, and a clamping point A is formed at the S pole of the MOS tube M18; the clamping point A is grounded through a clamping resistor formed by the resistor connection mode of the MOS tube M12; the D pole of the MOS tube M6 is grounded through a clamping diode formed by the diode connection mode of the MOS tube M14; The capacitor charging and discharging circuit realizes charging and discharging of the MOS tube M19, and comprises a current mirror composed of MOS tubes M5, M6, M8 and M9 and MOS tubes M15, M16 and M17; the D pole of the MOS tube M8 is grounded through a clamping diode formed by the diode connection mode of the MOS tube M15, the D pole of the MOS tube M9 in the current mirror is connected to the G pole of the MOS tube M19, the MOS tube M19 is charged and discharged, the D pole of M9 is connected to the D pole of the MOS tube D17, the G pole of the MOS tube M17 is connected to the Q-end of the trigger, the S pole is grounded through a clamping diode formed by the diode connection mode of the MOS tube M16, and the D and S poles of the MOS tube M19 are grounded respectively; a triangular wave signal is formed on the G pole and connected to the out-of-phase input end of the first comparator and the in-phase input end of the second comparator.

2. The internally compensated oscillator according to claim 1, characterized in that: A temperature compensation circuit is also included between the clamping resistor formed by the resistor connection mode of the MOS tube M12 and the grounding. The temperature compensation circuit includes a transistor Q0. The clamping point A is connected to the c pole of the transistor Q0 through the clamping resistor formed by the resistor connection mode of the MOS tube M12, and the b and e poles of the transistor Q0 are grounded.