Oscillator circuit and quick starting method thereof
By using loop self-biasing high current acceleration in the oscillator circuit and entering low power mode, the problem of prolonged start time of low power oscillator is solved, and the balance between fast start and low power consumption is achieved, and the system is improved reliability and efficiency.
Patent Information
- Application Number
- CN202411114942.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-19
AI Technical Summary
The existing low-power oscillators have extended startup time in the chip, resulting in extended system startup time and timing problems.
Design an oscillator circuit, including voltage supply module, frequency voltage conversion module, fast start module, voltage and current conversion module and ring oscillator module, shorten the start-up by using loop self-biased large current acceleration loop during the startup stage and after the end, turn off the fast start module and enter low power mode.
Effectively shortens the start time of the oscillator, while reducing power consumption in low power consumption mode, improving reliability, and not limited by process and temperature conditions.
Smart Images

Figure CN118984141A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of integrated circuit design, and in particular relates to an oscillator circuit and a quick start method thereof. Background Art
[0002] Oscillators are an important part of analog integrated circuit design, which can provide stable and accurate clock signals for various modules of the chip. At present, the low-power design of chips has gradually become a hot research issue, and the low-power design of oscillators is also more common in chips; however, lower power consumption will make the oscillator loop slow to establish, and the oscillator startup time will be extended, which may lead to timing problems and prolong the system startup time. Therefore, providing an oscillator circuit with lower power consumption and shortened startup time is a technical problem that technicians in this field are eager to solve.
[0003] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present invention and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because these solutions are described in the background technology section of the present invention. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide an oscillator circuit and a quick start method thereof, so as to solve the problem of prolonged start-up time of the existing low-power oscillator.
[0005] To achieve the above-mentioned object and other related objects, the present invention provides an oscillator circuit, including a voltage supply module, a frequency-voltage conversion module, a fast start module, a voltage-current conversion module and a ring oscillator module;
[0006] The voltage providing module is used to provide a first voltage;
[0007] The frequency-to-voltage conversion module is connected to the ring oscillator module and is used to convert the oscillation frequency of the clock signal into a second voltage;
[0008] The fast start module is connected to the ring oscillator module and is used to count the clock signal and generate a control signal according to the counting result;
[0009] The voltage-current conversion module is connected to the voltage providing module, the frequency-voltage conversion module and the fast starting module, and is used to adjust the output current according to the comparison result of the first voltage and the second voltage or the control signal;
[0010] The ring oscillator module is connected to the voltage-current conversion module and is used to adjust the oscillation frequency of the clock signal according to the output current.
[0011] Optionally, the voltage providing module includes a first resistor and a second resistor, the first end of the first resistor is connected to the power supply voltage, the second end of the first resistor is connected to the reference ground via the second resistor and serves as the output end of the voltage providing module.
[0012] Optionally, the frequency-voltage conversion module includes a switch control unit and a switch capacitor unit;
[0013] The switch control unit is connected to the ring oscillator module, and is used to generate a first switch signal and a second switch signal according to the clock signal, wherein the first switch signal and the second switch signal are inverted signals to each other;
[0014] The switch capacitor unit is connected to the switch control unit and is controlled by the first switch signal and the second switch signal to perform capacitor charging and discharging operations so as to convert the oscillation frequency of the clock signal into the second voltage.
[0015] Optionally, the switch capacitor unit includes a first switch, a second switch, a first capacitor, a second capacitor and a third resistor, the first end of the first switch is connected to the power supply voltage, the second end of the first switch is connected to the reference ground via the first capacitor and connected to the first end of the second switch, the control end of the first switch is connected to the first switch signal, the second end of the second switch is connected to the reference ground via the second capacitor and the third resistor respectively and serves as the output end of the frequency-to-voltage conversion module, and the control end of the second switch is connected to the second switch signal.
[0016] Optionally, the quick start module includes a start control unit and a low power output unit;
[0017] The startup control unit is connected between the ring oscillator module and the voltage-current conversion module, and is used to generate a first control signal when the startup signal is valid, and to count the clock signal and generate a second control signal when the counting result reaches a startup preset value;
[0018] The low-power output unit is connected to the ring oscillator module and the startup control unit respectively, and is used to count the clock signal and generate a count reset signal when the counting result reaches a stable preset value, so as to perform a count reset operation on the startup control unit and the low-power output unit, and generate a clock output at the same time.
[0019] Optionally, the startup control unit includes a monostable trigger, a first D trigger, a second D trigger and a first counter, the input end of the monostable trigger is connected to the startup signal, the output end of the monostable trigger is connected to the clock end of the first D trigger, the data end of the first D trigger is connected to the power supply voltage, the reset end of the first D trigger is connected to the inverting output end of the second D trigger, the output end of the first D trigger serves as the output end of the fast startup module, the clock end of the second D trigger is connected to the output end of the first counter, the data end of the second D trigger is connected to the power supply voltage, the reset end of the second D trigger is connected to the startup signal, the input end of the first counter is connected to the output end of the ring oscillator module, and the reset end of the first counter is connected to the output end of the low-power output unit.
[0020] Optionally, the low-power output unit includes a second counter, a third D flip-flop, a first inverter, a first AND gate and a second AND gate, the input end of the second counter is connected to the output end of the ring oscillator module, the reset end of the second counter is connected to the clock end of the third D flip-flop, the data end of the third D flip-flop is connected to the power supply voltage, the reset end of the third D flip-flop is connected to the start signal, the output end of the third D flip-flop is connected to the first input end of the first AND gate via the first inverter, the output end of the third D flip-flop is also connected to the first input end of the second AND gate, the second input end of the first AND gate is connected to the start signal, the output end of the first AND gate serves as the output end of the low-power output unit, the second input end of the second AND gate is connected to the output end of the ring oscillator module, and the output end of the second AND gate serves as the output end of the oscillator circuit.
[0021] Optionally, when the startup control unit includes a first counter and the low power output unit includes a second counter, a third counter is used to replace the first counter and the second counter. In this case, the startup control unit and the low power output unit share the third counter.
[0022] Optionally, the voltage-current conversion module includes an amplifier, a first PMOS tube, a second PMOS tube, an NMOS tube, a fourth resistor and a fifth resistor, the first input end of the amplifier is connected to the output end of the voltage providing module, the second input end of the amplifier is connected to the output end of the frequency-voltage conversion module, the power supply end of the amplifier is connected to the drain of the first PMOS tube, the output end of the amplifier is connected to the gate of the second PMOS tube, the gate of the first PMOS tube is connected to the gate of the second PMOS tube, the source of the first PMOS tube is connected to the power supply voltage via the fourth resistor, the gate of the second PMOS tube is connected to the drain of the NMOS tube, the drain of the second PMOS tube serves as the output end of the voltage-current conversion module, the source of the second PMOS tube is connected to the power supply voltage via the fifth resistor, the gate of the NMOS tube is connected to the output end of the quick start module, and the source of the NMOS tube is connected to the reference ground.
[0023] Optionally, the voltage-current conversion module further includes a third capacitor, a fourth capacitor and a sixth resistor, and the third capacitor and the sixth resistor are connected in series and connected in parallel with the fourth capacitor between the output end of the amplifier and the power supply voltage.
[0024] Optionally, the ring oscillator module includes an oscillation unit and a level conversion unit;
[0025] The oscillation unit is connected to the voltage-current conversion module, and is used to generate the clock signal and adjust the oscillation frequency of the clock signal according to the output current;
[0026] The level conversion unit is connected to the oscillation unit and is used to raise the level of the clock signal to the power supply voltage.
[0027] Optionally, the oscillation unit includes a plurality of second inverters, each of which is connected end to end to form an oscillation loop and the power supply end of each of the second inverters is connected to the output end of the voltage-current conversion module, wherein the number of the second inverters is an odd number greater than or equal to 3.
[0028] Optionally, the oscillation unit further includes a fifth capacitor, a first end of the fifth capacitor is connected to a power supply end of each of the second inverters, and a second end of the fifth capacitor is connected to a reference ground.
[0029] The present invention also provides a quick start method of the oscillator circuit as described in any one of the above items, comprising:
[0030] Start after power-on initialization;
[0031] Adjust the output current to the maximum value, and thereby adjust the oscillation frequency of the clock signal to the maximum value;
[0032] Counting the clock signal, and when the counting result reaches a start preset value, reducing the output current to a fixed value;
[0033] The clock signal continues to be counted, and when the counting result reaches a stable preset value, the counting result is cleared and a clock output is generated.
[0034] Optionally, the output current of the voltage-current conversion module is adjusted to a maximum value through a fast start module, and the output current is adjusted to a fixed value through an amplifier in the voltage-current conversion module. The voltage-current conversion module also accelerates the establishment of the amplifier through the maximum value of the output current.
[0035] As described above, the oscillator circuit and the quick start method thereof of the present invention, through the design of the voltage supply module, the frequency voltage conversion module, the quick start module, the voltage current conversion module and the ring oscillator module, use the loop self-biasing large current to accelerate the loop establishment in the startup phase, greatly shorten the startup time, and after the startup phase, turn off the quick start module to enter the low power consumption mode, effectively reducing power consumption; and, use the loop self-bias to provide current bias for the amplifier, without the need for additional current bias, which can further reduce power consumption. The quick start of the present invention is not limited by process and temperature conditions, has high reliability, and has good practical value. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 Shown is a schematic structural diagram of the oscillator circuit of the present invention.
[0037] Figure 2 Shown is a specific circuit diagram of the oscillator circuit of the present invention.
[0038] Figure 3 Another specific circuit diagram of the oscillator circuit of the present invention is shown.
[0039] Figure 4 Shown is a flow chart of a quick startup method for an oscillator circuit according to the present invention.
[0040] Figure 5 Shown is a waveform diagram of key nodes of the oscillator circuit of the present invention.
[0041] Figure 6 It is a schematic diagram showing simulation results of the present invention and the traditional oscillator circuit during the startup process.
[0042] Component number description
[0043] 100 Oscillator Circuit
[0044] 110 Voltage supply module
[0045] 120 frequency voltage conversion module
[0046] 121 Switch control unit
[0047] 122 Switched Capacitor Unit
[0048] 130 Quick Start Module
[0049] 131 Start control unit
[0050] 131a Monostable trigger
[0051] 132 Low power output unit
[0052] 140 Voltage-current conversion module
[0053] 150 Ring Oscillator Module
[0054] 151 Oscillation unit
[0055] 152 Level Shifter Unit DETAILED DESCRIPTION
[0056] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0057] See also Figures 1 to 6 It should be noted that the illustrations provided in this embodiment are only used to illustrate the basic concept of the present invention in a schematic manner, and the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the form, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0058] like Figure 1 As shown, this embodiment provides an oscillator circuit 100, including a voltage supply module 110, a frequency-voltage conversion module 120, a fast start module 130, a voltage-current conversion module 140 and a ring oscillator module 150; wherein the above modules constitute a negative feedback loop.
[0059] The voltage providing module 110 is used to provide a first voltage V1.
[0060] In one embodiment, Figure 2As shown, the voltage providing module 110 includes a first resistor R1 and a second resistor R2; wherein the first end of the first resistor R1 is connected to the power supply voltage VDD, and the second end of the first resistor R1 is connected to the reference ground via the second resistor R2 and serves as the output end of the voltage providing module 110 to generate a first voltage V1.
[0061] In the voltage providing module 110 of the above embodiment, the power supply voltage VDD is divided by the first resistor R1 and the second resistor R2 to generate the first voltage V1, which satisfies the formula Wherein, V1 is the value of the first voltage, VDD is the value of the power supply voltage, R1 is the value of the first resistor, and R2 is the value of the second resistor.
[0062] In practical applications, in order to achieve the adjustability of the first voltage V1, the resistance value of the second resistor R2 is usually set to be adjustable. For example, the second resistor R2 is set to a resistor array with adjustable resistance, and different first voltages V1 are obtained by adjusting the resistance value of the second resistor R2, thereby achieving the purpose of regulating the oscillation frequency of the clock signal; of course, it is also feasible to set the resistance value of the first resistor R1 to be adjustable, or even to set the resistance values of both resistors to be adjustable.
[0063] The frequency-to-voltage conversion module 120 is connected to the ring oscillator module 150 and is used to convert the oscillation frequency of the clock signal CLK into a second voltage V2.
[0064] In one embodiment, Figure 2 As shown, the frequency-to-voltage conversion module 120 includes a switch control unit 121 and a switch capacitor unit 122. Wherein:
[0065] The switch control unit 121 is connected to the ring oscillator module 150, and is used to generate a first switch signal ph1 and a second switch signal ph2 according to the clock signal CLK, wherein the first switch signal ph1 and the second switch signal ph2 are inverted signals of each other; in an example, the first switch signal ph1 is a same-phase signal of the clock signal CLK, and the second switch signal ph2 is an inverted signal of the clock signal CLK.
[0066] In practical applications, the switch control unit 121 can be implemented by an inverter, wherein the input end of the inverter is connected to the output end of the ring oscillator module 150 and serves as the first output end of the switch control unit 121 to generate a first switch signal ph1, and the output end of the inverter serves as the second output end of the switch control unit 121 to generate a second switch signal ph2; of course, the switch control unit 121 can also be implemented in other ways, which is not limited to this.
[0067] The switch capacitor unit 122 is connected to the switch control unit 121 and is controlled by the first switch signal ph1 and the second switch signal ph2 to perform capacitor charging and discharging operations to convert the oscillation frequency fclk of the clock signal into the second voltage V2.
[0068] In one example, the switch capacitor unit 122 includes a first switch S1, a second switch S2, a first capacitor C1, a second capacitor C2 and a third resistor R3; wherein the first end of the first switch S1 is connected to the power supply voltage VDD, the second end of the first switch S1 is connected to the reference ground via the first capacitor C1 and connected to the first end of the second switch S2, the control end of the first switch S1 is connected to the first switch signal ph1, the second end of the second switch S2 is connected to the reference ground via the second capacitor C2 and the third resistor R3 respectively and serves as the output end of the frequency-to-voltage conversion module 120 to generate the second voltage V2, and the control end of the second switch S2 is connected to the second switch signal ph2.
[0069] In the above-mentioned example of the switched capacitor unit 122, the first switch S1, the second switch S2 and the first capacitor C1 form a switched capacitor circuit, which satisfies the formula Thus, the second voltage V2 satisfies the formula Wherein, Reff is the value of the equivalent resistance of the switched capacitor circuit, fclk is the value of the oscillation frequency of the clock signal, C1 is the value of the first capacitor, V2 is the value of the second voltage, and R3 is the value of the third resistor.
[0070] In addition, after the circuit stabilizes, V1 = V2, then get make Then there is It can be seen that when the first resistor R1 and the second resistor R2 are of the same device type and the third resistor R3 is a zero temperature coefficient resistor, the sensitivity of the clock signal oscillation frequency fclk to temperature can be reduced.
[0071] The fast start module 130 is connected to the ring oscillator module 150 and is used to count the clock signal CLK and generate a control signal START according to the counting result.
[0072] In one embodiment, Figure 2 As shown, the quick start module 130 includes a start control unit 131 and a low power output unit 132. Among them:
[0073] The start control unit 131 is connected between the ring oscillator module 150 and the voltage-current conversion module 140, and is used to generate a first control signal when the start signal EN is valid, and to count the clock signal CLK and generate a second control signal when the counting result reaches the start preset value (for example, count the clock signal CLK, generate a start completion signal start_det when the counting result reaches the start preset value, and generate a second control signal according to the start completion signal start_det).
[0074] In one example, the startup control unit 131 includes a monostable trigger 131a, a first D trigger DFF1, a second D trigger DFF2 and a first counter COUNT1; wherein the input end of the monostable trigger 131a is connected to the start signal EN, the output end of the monostable trigger 131a is connected to the clock end of the first D trigger DFF1, the data end of the first D trigger DFF1 is connected to the power supply voltage VDD, the reset end of the first D trigger DFF1 is connected to the inverting output end of the second D trigger DFF2, and the output end of the first D trigger DFF1 serves as the output end of the fast startup module 130 to generate the first control signal or the second The control signal, the inverting output terminal of the first D flip-flop DFF1 is suspended, the clock terminal of the second D flip-flop DFF2 is connected to the output terminal of the first counter COUNT to receive the start completion signal start_det, the data terminal of the second D flip-flop DFF2 is connected to the power supply voltage VDD, the reset terminal of the second D flip-flop DFF2 is connected to the start signal EN, the output terminal of the second D flip-flop DFF2 is suspended, the input terminal of the first counter COUNT is connected to the output terminal of the ring oscillator module 150 to receive the clock signal CLK, and the reset terminal of the first counter COUNT is connected to the output terminal of the low power output unit 132 to receive the count reset signal.
[0075] In the startup control unit 131 of the above example, the monostable trigger 131a is triggered to generate a narrow pulse signal when the startup signal EN arrives. The narrow pulse signal serves as the clock of the first D trigger DFF1, so that the first D trigger DFF1 samples the power supply voltage VDD and outputs a high level (i.e., the first control signal) to control the NMOS tube M3 in the voltage-current conversion module 140 to be turned on, which indicates that the circuit startup phase begins; the first counter COUNT1 divides and counts the clock signal CLK and generates a startup completion signal start_det as the clock of the second D trigger DFF2 when the counting result reaches the startup preset value, so that the second D trigger DFF2 samples the power supply voltage VDD and outputs a low level, and the low level resets the first D trigger DFF1 and outputs a low level (i.e., the second control signal) to control the NMOS tube M3 in the voltage-current conversion module 140 to be turned off, which indicates that the circuit startup phase ends.
[0076] The low-power output unit 132 is respectively connected to the ring oscillator module 150 and the start-up control unit 131, and is used to count the clock signal CLK and generate a count clear signal CLR when the count result reaches a stable preset value, so as to perform a count clear operation on the start-up control unit 131 and the low-power output unit 132, and generate a clock output CKO at the same time (for example, count the clock signal CLK and generate a frequency stable signal ready_det when the count result reaches a stable preset value, and generate a count clear signal CLR and a clock output CKO according to the frequency stable signal ready_det).
[0077] In one example, the low power output unit 132 includes a second counter COUNT2, a third D flip-flop DFF3, a first inverter INV1, a first AND gate AND1, and a second AND gate AND2; wherein the input end of the second counter COUNT2 is connected to the output end of the ring oscillator module 150 to receive the clock signal CLK, the reset end of the second counter COUNT2 is connected to the output end of the first AND gate AND1 to receive the count reset signal CLR, the output end of the second counter COUNT2 generates a frequency stable signal ready_det and inputs it to the clock end of the third D flip-flop DFF3, the data end of the third D flip-flop DFF3 is connected to the power supply voltage VDD, and the reset end of the third D flip-flop DFF3 is connected to the power supply voltage VDD. The bit end is connected to the start signal EN, the output end of the third D flip-flop DFF3 is connected to the first input end of the first AND gate AND1 via the first inverter INV1, the output end of the third D flip-flop DFF3 is also connected to the first input end of the second AND gate AND2, the inverting output end of the third D flip-flop DFF3 is suspended, the second input end of the first AND gate AND1 is connected to the start signal EN, the output end of the first AND gate AND1 serves as the output end of the low power output unit 132 to generate a count reset signal, the second input end of the second AND gate AND2 is connected to the output end of the ring oscillator module 150 to receive the clock signal CLK, and the output end of the second AND gate AND2 serves as the output end of the oscillator circuit 100 to generate a clock output CKO.
[0078] In the low-power output unit 132 of the above example, the second counter COUNT2 divides and counts the clock signal CLK and generates a frequency stable signal ready_det as the clock of the third D flip-flop DFF3 when the counting result reaches a stable preset value, so that the third D flip-flop DFF3 samples the power supply voltage VDD and outputs a high level, which is changed to a low level (i.e., a count clearing signal CLR) after passing through the first inverter INV1 and performing an AND logic operation with the start signal EN, so as to count and clear the first counter COUNT1 and the second counter COUNT2 respectively. At this time, the fast start module 130 has almost no power consumption and enters a low power mode. In addition, the high level is also ANDed with the clock signal CLK to generate a stable clock output CKO. It should be noted that the second counter CONUT2 starts counting synchronously with the first counter COUNT1, and the stable preset value is greater than the start preset value.
[0079] In practical applications, in order to simplify circuit design, the third counter COUNT3 is usually used to replace the first counter COUNT1 and the second counter COUNT2. At this time, the start control unit 131 and the low power output unit 132 share the third counter COUNT3. Figure 3 As shown; wherein, the input end of the third counter COUNT3 is connected to the output end of the ring oscillator module 150 to receive the clock signal CLK, the reset end of the third counter COUNT3 is connected to the output end of the first AND gate AND1, the first output end of the third counter COUNT3 is connected to the clock end of the second D flip-flop DFF2 to generate a start completion signal start_det, and the second output end of the third counter COUNT3 is connected to the clock end of the third D flip-flop DFF3 to generate a frequency stable signal ready_det.
[0080] The voltage-to-current conversion module 140 is connected to the voltage providing module 110, the frequency-to-voltage conversion module 120 and the fast start-up module 130, and is used to adjust the output current Ic according to the comparison result between the first voltage V1 and the second voltage V2 or the control signal START; for example, in the startup phase, the output current Ic is adjusted to a maximum value according to the control signal START, and after the startup phase, the output current Ic is adjusted to a fixed value according to the comparison result between the first voltage V1 and the second voltage V2, wherein the fixed value is determined by the adaptation of the negative feedback loop.
[0081] In one embodiment, Figure 2As shown, the voltage-current conversion module 140 includes an amplifier OP, a first PMOS tube M1, a second PMOS tube M2, an NMOS tube M3, a fourth resistor R4 and a fifth resistor R5; wherein a first input terminal (e.g., a negative input terminal) of the amplifier OP is connected to an output terminal of the voltage providing module 110 to receive a first voltage V1, a second input terminal (e.g., a positive input terminal) of the amplifier OP is connected to an output terminal of the frequency-voltage conversion module 120 to receive a second voltage V2, a power supply terminal of the amplifier OP is connected to a drain of the first PMOS tube M1, an output terminal of the amplifier OP is connected to a gate of the second PMOS tube M2, and a first PMOS tube M3 is connected to a gate of the second PMOS tube M4. The gate of M1 is connected to the gate of the second PMOS tube M2, the source of the first PMOS tube M1 is connected to the power supply voltage VDD via the fourth resistor R4, the gate of the second PMOS tube M2 is connected to the drain of the NMOS tube M3, the drain of the second PMOS tube M2 is used as the output end of the voltage-current conversion module 140 to generate the output current Ic, the source of the second PMOS tube M2 is connected to the power supply voltage VDD via the fifth resistor R5, the gate of the NMOS tube M3 is connected to the output end of the fast start module 130 to receive the control signal START (i.e., the first control signal or the second control signal), and the source of the NMOS tube M3 is connected to the reference ground. Further, the voltage-current conversion module 140 also includes a third capacitor C3, a fourth capacitor C4 and a sixth resistor R6, the third capacitor C3 and the sixth resistor R6 are connected in series and connected in parallel with the fourth capacitor C4 between the output end of the amplifier OP and the power supply voltage VDD, and are used to compensate the output pole of the amplifier OP, so that it becomes the main pole of the negative feedback loop, thereby meeting the stability requirement.
[0082] In the voltage-current conversion module 140 of the above embodiment, when the fast start module 130 outputs a high level (i.e., the first control signal), the NMOS tube M3 is turned on and pulls the gate potential of the second PMOS tube M2 to the reference ground. At this time, the conduction degree of the second PMOS tube M2 is maximum, and the output current Ic generated is also maximum; and when the fast start module 130 outputs a low level (i.e., the second control signal), the NMOS tube M3 is turned off, and the gate potential of the second PMOS tube M2 is controlled by the amplifier OP. Under the action of the negative feedback loop, the gate potential of the second PMOS tube M2 increases and remains unchanged when V1=V2. Correspondingly, the conduction degree of the second PMOS tube M2 decreases, and the output current Ic generated also decreases and is minimized when V1=V2. The first PMOS tube M1 and the second PMOS tube M2 form a common-source common-gate current mirror, and the current flowing through the second PMOS tube M2 is copied to the power supply end of the amplifier OP by the first PMOS tube M1 according to a certain mirror ratio M as the self-bias current of the amplifier OP, so that the amplifier OP is quickly established and enters a stable stage after the startup is completed, wherein the fourth resistor R4 and the fifth resistor R5 are used as current limiting resistors.
[0083] The ring oscillator module 150 is connected to the voltage-current conversion module 140 and is used to adjust the oscillation frequency fclk of the clock signal CLK according to the output current Ic to generate a stable clock output.
[0084] In one embodiment, Figure 2 As shown, the ring oscillator module 150 includes an oscillation unit 151 and a level conversion unit 152. Among them:
[0085] The oscillation unit 151 is connected to the voltage-current conversion module 140, and is used to generate a clock signal CLK, and adjust the oscillation frequency fclk of the clock signal CLK according to the output current Ic. In one example, the oscillation unit 151 includes a plurality of second inverters INV2; each second inverter INV2 is connected end to end to form an oscillation loop and the power supply end of each second inverter INV2 is connected to the output end of the voltage-current conversion module 140 to receive the output current Ic, wherein the number of the second inverters INV2 is an odd number greater than or equal to 3. Further, the oscillation unit 151 also includes a fifth capacitor C5; wherein the first end of the fifth capacitor C5 is connected to the power supply end of each second inverter INV2, and the second end of the fifth capacitor C5 is connected to the reference ground.
[0086] In the oscillation unit 151 of the above example, each second inverter INV2 forms an oscillation loop and generates a clock signal CLK. Since the output current Ic output by the voltage-current conversion module 140 is reduced from a maximum value to a fixed value and stabilized at a fixed value, the oscillation frequency of the clock signal CLK generated by the oscillation loop is also reduced from a maximum value to a target value and stabilized at the target value; wherein the oscillation frequency of the clock signal satisfies the formula N is the number of second inverters in the oscillation loop, Td is the delay time of a single second inverter, Ic is the value of the output current, Cl is the total capacitance of the output node of each second inverter, and Vc is the node voltage of the fifth capacitor C5.
[0087] The level conversion unit 152 is connected to the oscillation unit 151 and is used to raise the level of the clock signal CLK to the power supply voltage VDD. In practical applications, the level conversion unit 152 can adopt any circuit structure that can achieve the level raising function, and there is no limitation on this.
[0088] like Figure 4 As shown, this embodiment also provides a quick start method of an oscillator circuit, comprising the following steps; wherein the oscillator circuit is implemented using the circuit structure described above.
[0089] S1, start after power-on initialization. Specifically, during the power-on initialization process, the fast start module 130 is reset, the start signal EN is invalidated and the counting result is cleared; during the start process, the start signal EN is enabled, for example, the start signal EN is changed to a high level.
[0090] S2: Adjust the output current Ic to a maximum value, and thereby adjust the oscillation frequency fclk of the clock signal to a maximum value. Specifically, the output current Ic of the voltage-current conversion module 140 is adjusted to a maximum value through the first control signal of the fast startup module 130, and the oscillation frequency fclk of the clock signal of the ring oscillator module 150 is adjusted to a maximum value through the output current Ic of the voltage-current conversion module 140; in addition, the voltage-current conversion module 130 also accelerates the establishment of the amplifier OP through the maximum value of the output current Ic.
[0091] S3: Count the clock signal CLK, and when the counting result reaches the startup preset value, reduce the output current Ic to a fixed value; for example, count the clock signal, and determine whether the counting result reaches the startup preset value. When the counting result does not reach the startup preset value, jump to S2, and when the counting result reaches the startup preset value, reduce the output current Ic to a fixed value. Specifically, the output current Ic is adjusted to a fixed value by the amplifier OP in the voltage-current conversion module 140; for example, when the counting result reaches the startup preset value, the fast start module 130 generates a start completion signal start_det, and generates a second control signal to invalidate the first control signal. At this time, the fast start module 130 no longer adjusts the output current Ic, but adjusts the output current Ic through the amplifier OP in the voltage-current conversion module 140, and the amplifier OP adjusts the output current Ic to a fixed value based on the negative feedback loop, wherein the fixed value is determined by the self-adaptation of the negative feedback loop.
[0092] S4: Continue to count the clock signal CLK, and when the counting result reaches the stable preset value, clear the counting result and generate the clock output CKO; for example, continue to judge whether the counting result reaches the stable preset value, and when the counting result does not reach the stable preset value, continue to judge whether the counting result reaches the stable preset value, and when the counting result reaches the stable preset value, clear the counting result and generate the clock output CKO. Specifically, the count is cleared and the clock output CKO is generated by the fast start module 130; for example, the clock signal CLK is continuously counted by the fast start module 130 and a frequency stable signal ready_det is generated when the counting result reaches the stable preset value, and a count clearing signal is generated to perform a count clearing operation, and in addition, the clock output CKO is also generated.
[0093] Next, combine Figure 3 and Figure 5 , the startup process of the oscillator circuit of this embodiment is described in detail; wherein the startup process is divided into three stages, an initialization stage, a startup stage and a stabilization stage.
[0094] During the initialization phase, the quick start module 130 is reset to invalidate the start signal EN and clear the counting result.
[0095] In the startup phase, the startup signal EN becomes high level and triggers the monostable trigger 131a to generate a narrow pulse signal as the clock of the first D flip-flop DFF1, so that the first D flip-flop DFF1 outputs a high level first control signal to control the NMOS tube M3 to turn on, thereby lowering the gate potential of the second PMOS tube M2, and the second PMOS tube M2 starts to pass a large current (i.e., the maximum value of the output current Ic); the first PMOS tube M1 mirrors the large current passing through the second PMOS tube M2 to the power supply end of the amplifier OP to accelerate the establishment of the amplifier OP; the ring oscillator module 150 starts to generate the clock signal CLK under the action of the large current, and the oscillation frequency of the clock signal CLK also has a maximum value, the third counter COUNT3 starts to count the clock signal CLK and generates a startup completion signal start_det as the clock of the second D flip-flop DFF2 when the counting result reaches the startup preset value, so that the second D flip-flop DFF2 outputs a low level to reset the first D flip-flop DFF1, so that the first D flip-flop DFF1 outputs a low level second control signal to control the NMOS tube M3 to turn off, and the startup phase is completed.
[0096] In the stable stage, since the NMOS tube M3 is turned off, the gate potential of the second PMOS tube M2 is controlled by the amplifier OP; the frequency-voltage conversion module 120 converts the oscillation frequency fclk of the clock signal into the second voltage V2, and under the action of the negative feedback loop, the second voltage V2 gradually approaches the first voltage V1 until the two are equal, at this time, the current through the second PMOS tube M2 gradually tends to be stable (that is, drops from the maximum value to the fixed value), and the oscillation frequency of the clock signal output by the ring oscillator module 150 also gradually tends to be stable (that is, drops from the maximum value to the target value), until the counting result of the third counter COUNT3 reaches the stable preset value, the third counter COUNT3 generates a frequency stabilization signal ready_det as the clock of the third D flip-flop DFF3, so that the third D flip-flop DFF3 outputs a high level, and the high level passes through the first inverter INV1 and the first AND gate AND1 to generate a low-level count reset signal to count and reset the third counter COUNT3, thereby resetting all D flip-flops. At this time, the fast start module 130 has almost no power consumption and generates a stable clock output CKO.
[0097] The startup process of the oscillator circuit of this embodiment and the traditional low-power oscillator circuit are simulated, wherein the traditional low-power oscillator circuit uses an additional current source to provide bias current for the amplifier. The simulation results are as follows: Figure 6As shown; it can be seen from the figure that compared with the traditional low-power oscillator circuit, the oscillator circuit of this embodiment can shorten the startup time by more than half.
[0098] In summary, an oscillator circuit and a quick start method thereof of the present invention, through the design of a voltage supply module, a frequency voltage conversion module, a quick start module, a voltage current conversion module and a ring oscillator module, uses a large loop self-bias current to accelerate loop establishment during the startup phase, which greatly shortens the startup time. After the startup phase, the quick start module is turned off to enter a low power mode, effectively reducing power consumption; moreover, the loop self-bias is used to provide current bias for the amplifier, and no additional current bias is required, which can further reduce power consumption. The quick start of the present invention is not limited by process and temperature conditions, has high reliability, and has good practical value. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.
[0099] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An oscillator circuit, characterized in that: It includes a voltage supply module, a frequency voltage conversion module, a fast start module, a voltage current conversion module and a ring oscillator module; The voltage providing module is used to provide a first voltage; The frequency-to-voltage conversion module is connected to the ring oscillator module and is used to convert the oscillation frequency of the clock signal into a second voltage; The fast start module is connected to the ring oscillator module and is used to count the clock signal and generate a control signal according to the counting result; The voltage-current conversion module is connected to the voltage providing module, the frequency-voltage conversion module and the fast start module, and is used to adjust the output current according to the comparison result of the first voltage and the second voltage or the control signal; The ring oscillator module is connected to the voltage-current conversion module and is used to adjust the oscillation frequency of the clock signal according to the output current.
2. The oscillator circuit according to claim 1, characterized in that The voltage providing module includes a first resistor and a second resistor. The first end of the first resistor is connected to the power supply voltage. The second end of the first resistor is connected to the reference ground via the second resistor and serves as the output end of the voltage providing module.
3. The oscillator circuit according to claim 1, characterized in that The frequency-to-voltage conversion module includes a switch control unit and a switch capacitor unit; The switch control unit is connected to the ring oscillator module, and is used to generate a first switch signal and a second switch signal according to the clock signal, wherein the first switch signal and the second switch signal are inverted signals to each other; The switch capacitor unit is connected to the switch control unit and is controlled by the first switch signal and the second switch signal to perform capacitor charging and discharging operations so as to convert the oscillation frequency of the clock signal into the second voltage.
4. The oscillator circuit according to claim 3, characterized in that The switch capacitor unit includes a first switch, a second switch, a first capacitor, a second capacitor and a third resistor. The first end of the first switch is connected to the power supply voltage, the second end of the first switch is connected to the reference ground via the first capacitor and connected to the first end of the second switch, the control end of the first switch is connected to the first switch signal, the second end of the second switch is connected to the reference ground via the second capacitor and the third resistor respectively and serves as the output end of the frequency-to-voltage conversion module, and the control end of the second switch is connected to the second switch signal.
5. The oscillator circuit according to claim 1, characterized in that The quick start module includes a start control unit and a low power output unit; The startup control unit is connected between the ring oscillator module and the voltage-current conversion module, and is used to generate a first control signal when the startup signal is valid, and to count the clock signal and generate a second control signal when the counting result reaches a startup preset value; The low-power output unit is connected to the ring oscillator module and the startup control unit respectively, and is used to count the clock signal and generate a count reset signal when the counting result reaches a stable preset value, so as to perform a count reset operation on the startup control unit and the low-power output unit, and generate a clock output at the same time.
6. The oscillator circuit according to claim 5, characterized in that The startup control unit includes a monostable trigger, a first D trigger, a second D trigger and a first counter, the input end of the monostable trigger is connected to the startup signal, the output end of the monostable trigger is connected to the clock end of the first D trigger, the data end of the first D trigger is connected to the power supply voltage, the reset end of the first D trigger is connected to the inverting output end of the second D trigger, the output end of the first D trigger serves as the output end of the fast startup module, the clock end of the second D trigger is connected to the output end of the first counter, the data end of the second D trigger is connected to the power supply voltage, the reset end of the second D trigger is connected to the startup signal, the input end of the first counter is connected to the output end of the ring oscillator module, and the reset end of the first counter is connected to the output end of the low power output unit.
7. The oscillator circuit according to claim 5 or 6, characterized in that: The low-power output unit includes a second counter, a third D flip-flop, a first inverter, a first AND gate and a second AND gate, the input end of the second counter is connected to the output end of the ring oscillator module, the reset end of the second counter is connected to the clock end of the third D flip-flop, the data end of the third D flip-flop is connected to the power supply voltage, the reset end of the third D flip-flop is connected to the start signal, the output end of the third D flip-flop is connected to the first input end of the first AND gate via the first inverter, the output end of the third D flip-flop is also connected to the first input end of the second AND gate, the second input end of the first AND gate is connected to the start signal, the output end of the first AND gate serves as the output end of the low-power output unit, the second input end of the second AND gate is connected to the output end of the ring oscillator module, and the output end of the second AND gate serves as the output end of the oscillator circuit.
8. The oscillator circuit according to claim 7, characterized in that When the startup control unit includes a first counter and the low power output unit includes a second counter, a third counter is used to replace the first counter and the second counter. At this time, the startup control unit and the low power output unit share the third counter.
9. The oscillator circuit according to claim 1, characterized in that The voltage-current conversion module includes an amplifier, a first PMOS tube, a second PMOS tube, an NMOS tube, a fourth resistor and a fifth resistor. The first input end of the amplifier is connected to the output end of the voltage providing module, the second input end of the amplifier is connected to the output end of the frequency-voltage conversion module, the power supply end of the amplifier is connected to the drain of the first PMOS tube, the output end of the amplifier is connected to the gate of the second PMOS tube, the gate of the first PMOS tube is connected to the gate of the second PMOS tube, the source of the first PMOS tube is connected to the power supply voltage via the fourth resistor, the gate of the second PMOS tube is connected to the drain of the NMOS tube, the drain of the second PMOS tube serves as the output end of the voltage-current conversion module, the source of the second PMOS tube is connected to the power supply voltage via the fifth resistor, the gate of the NMOS tube is connected to the output end of the fast start module, and the source of the NMOS tube is connected to the reference ground.
10. The oscillator circuit according to claim 9, characterized in that The voltage-current conversion module further includes a third capacitor, a fourth capacitor and a sixth resistor. The third capacitor and the sixth resistor are connected in series and connected in parallel with the fourth capacitor between the output end of the amplifier and the power supply voltage.
11. The oscillator circuit according to claim 1, characterized in that The ring oscillator module includes an oscillation unit and a level conversion unit; The oscillation unit is connected to the voltage-current conversion module, and is used to generate the clock signal and adjust the oscillation frequency of the clock signal according to the output current; The level conversion unit is connected to the oscillation unit and is used to raise the level of the clock signal to the power supply voltage.
12. The oscillator circuit according to claim 11, characterized in that The oscillation unit includes a plurality of second inverters, each of which is connected end to end to form an oscillation loop and a power supply end of each of the second inverters is connected to an output end of the voltage-current conversion module, wherein the number of the second inverters is an odd number greater than or equal to 3.
13. The oscillator circuit according to claim 12, characterized in that The oscillation unit further includes a fifth capacitor, a first end of the fifth capacitor is connected to the power supply end of each of the second inverters, and a second end of the fifth capacitor is connected to a reference ground.
14. A fast starting method of an oscillator circuit as claimed in any one of claims 1 to 13, characterized in that: include: Start after power-on initialization; Adjust the output current to the maximum value, and thereby adjust the oscillation frequency of the clock signal to the maximum value; Counting the clock signal, and when the counting result reaches a start preset value, reducing the output current to a fixed value; The clock signal continues to be counted, and when the counting result reaches a stable preset value, the counting result is cleared and a clock output is generated.
15. The fast startup method of an oscillator circuit according to claim 14, characterized in that: The output current of the voltage-current conversion module is adjusted to a maximum value through a fast start module, and the output current is adjusted to a fixed value through an amplifier in the voltage-current conversion module. The voltage-current conversion module also accelerates the establishment of the amplifier through the maximum value of the output current.
