CN114665820A - Oscillator circuit - Google Patents

Oscillator circuit Download PDF

Info

Publication number
CN114665820A
CN114665820A CN202111537641.7A CN202111537641A CN114665820A CN 114665820 A CN114665820 A CN 114665820A CN 202111537641 A CN202111537641 A CN 202111537641A CN 114665820 A CN114665820 A CN 114665820A
Authority
CN
China
Prior art keywords
circuit
transistor
trimming
current
comparison
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111537641.7A
Other languages
Chinese (zh)
Inventor
过伟
何满杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Siruida Microelectronics Co ltd
Original Assignee
Shenzhen Siruida Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Siruida Microelectronics Co ltd filed Critical Shenzhen Siruida Microelectronics Co ltd
Priority to CN202111537641.7A priority Critical patent/CN114665820A/en
Publication of CN114665820A publication Critical patent/CN114665820A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03BGENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
    • H03B5/00Generation of oscillations using amplifier with regenerative feedback from output to input
    • H03B5/08Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance
    • H03B5/12Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device
    • H03B5/1206Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device using multiple transistors for amplification
    • H03B5/1218Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device using multiple transistors for amplification the generator being of the balanced type
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03BGENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
    • H03B5/00Generation of oscillations using amplifier with regenerative feedback from output to input
    • H03B5/08Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance
    • H03B5/12Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device
    • H03B5/1228Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device the amplifier comprising one or more field effect transistors

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

The invention discloses an oscillator circuit, comprising: a bias circuit for providing a bias voltage; the switch control circuit is used for generating a first switch control signal and a second switch control signal according to the first control signal; the ramp voltage generating circuit is used for generating a ramp voltage under the control of the second switch control signal; the first comparison circuit is used for searching a corresponding first comparison result which enables the voltages of the first input point and the second input point to be equal according to the bias voltage and the ramp voltage under the control of the first switch control signal; the first input point and the second input point are two input points which are arranged in the first comparison circuit in advance; the second comparison circuit is used for comparing the reference voltage with the ramp voltage according to a second control signal to generate a second comparison result; and the clock signal output circuit is used for generating a clock signal according to the first comparison result and the second comparison result. The invention can accurately control the end point of the generation of the ramp voltage and solve the problem of charge and discharge which is easy to occur in the traditional oscillator circuit.

Description

Oscillator circuit
Technical Field
The invention belongs to the technical field of electronic circuits, and particularly relates to an oscillator circuit.
Background
In recent society, people are increasingly unable to keep away from various electronic products in their lives, and the electronic products need to supply power, so that the market demand for high-quality switching power supplies is increasing, and meanwhile, research on various technologies applied to the switching power supplies is becoming more and more important. As a product widely applied to the fields of computers, aerospace, communication, consumer electronics and the like, the switching power supply has a great deal of technical and variety development with social progress and further development in the field of power electronics. In a switching power supply chip, based on the principle of Pulse Width Modulation (PWM), an oscillator is an indispensable component, and the chip needs the oscillator to generate an accurate clock signal. The oscillator has a great influence on the performance of the circuit signal processing.
At present, a conventional oscillator circuit is proposed as shown in fig. 1, in which a capacitor C is provided0For charging and discharging the capacitor, IBiasFor bias current (a and b are bias coefficients), voltage VH、VLThe set high and low threshold voltages are inputted to the comparators CMP1 and CMP2, respectively. Capacitor C0At a high threshold voltage VHAnd a low threshold voltage VLPeriodically changing the state of the latch and controlling the switches K respectively1And switch K2Finally, an oscillation output clock signal is formed. From fig. 1, it can be seen that: the frequency of the square wave signal output by the oscillator circuit is inversely proportional to the capacitance C0Is proportional to the bias current IBiasThe value of (c). However, the conventional oscillator circuit shown in fig. 1 needs two comparators, which increases the area and power consumption of the system, and thus another conventional oscillator circuit shown in fig. 2 has been proposed, which only needs one comparator CMP and controls the switch K by sampling the state of the output of the comparator CMP through a monostable flip-flop1And finally, oscillating and outputting a clock signal. From fig. 2, it can be seen that: the square wave signal frequency output by the oscillator is inversely proportional to the capacitance C0Is proportional to the bias current IBiasThe value of (c).
However, in the conventional oscillator circuit shown in FIG. 2, the ramp voltage V in the circuit of FIG. 2 is caused by the delay relationship between the comparator CMP and the one-shot flip-flopTriThere are overcharge and overdischarge problems that affect the accuracy with which the oscillator circuit ultimately outputs a clock signal.
Disclosure of Invention
In order to solve the above problems in the prior art, the present invention provides an oscillator circuit. The technical problem to be solved by the invention is realized by the following technical scheme:
an embodiment of the present invention provides an oscillator circuit, including: a bias circuit, a switch control circuit, a ramp voltage generating circuit, a first comparing circuit, a second comparing circuit and a clock signal output circuit, wherein,
the bias circuit is used for providing a bias voltage;
the switch control circuit is used for generating a first switch control signal and a second switch control signal according to the first control signal;
the ramp voltage generating circuit is connected with the switch control circuit and is used for generating a ramp voltage under the control of the second switch control signal;
the first comparison circuit is connected with the bias circuit, the switch control circuit and the ramp voltage generation circuit and used for searching corresponding output voltages which enable voltages of a first input point and a second input point to be equal according to the bias voltage and the ramp voltage under the control of the first switch control signal to serve as a first comparison result; the first input point and the second input point are two input points which are arranged in the first comparison circuit in advance;
the second comparison circuit is connected with the ramp voltage generation circuit and used for comparing a reference voltage with the ramp voltage according to the second control signal to generate a second comparison result; wherein the second control signal and the first control signal are opposite-phase signals;
the clock signal output circuit is connected with the first comparison circuit and the second comparison circuit and is used for generating a final clock signal according to the first comparison result and the second comparison result;
the switch control circuit is connected with the clock signal output circuit and is also used for updating a first switch control signal and a second switch control signal according to the first control signal and the clock signal.
In the bookIn one embodiment of the invention, the switch control circuit comprises a NOT gate1And NAND gate NAND1Wherein, in the process,
the NOT1Is connected to the input of the first control signal and the first comparison circuit, and the NOT gate NOT1And the NAND gate1The first input end of the NAND gate is connected with1The second input end of the NAND gate is connected with the clock signal output circuit1Is connected to the ramp voltage generating circuit.
In one embodiment of the present invention, the ramp voltage generating circuit includes a transistor N3Transistor N4Capacitor C0And a current generating circuit, wherein,
the transistor N3Gate of (1), the transistor N4Is connected with the switch control circuit, the transistor N3Is connected to the first comparison circuit, the transistor N3And the transistor N4Drain electrode of (1), the capacitor C0Is connected to the current generating circuit and the second comparing circuit, the transistor N4Source electrode of, the capacitor C0And the other end thereof is connected to the ground GND.
In one embodiment of the present invention, the current generation circuit includes: a trimming switch generating circuit, a band gap reference circuit, a voltage-current converting circuit, a trimming circuit and a trimming current output circuit,
the trimming switch generating circuit is used for generating M +1 first trimming switch signals and N +1 second trimming switch signals, and M, N are integers which are larger than 0;
the band-gap reference circuit is connected with the trimming switch generating circuit and is used for generating reference voltage under the control of the M +1 first trimming switch signals;
the voltage-current conversion circuit is connected with the band-gap reference circuit and is used for converting the reference voltage into reference current;
the trimming circuit is connected with the voltage-current conversion circuit and the trimming switch generating circuit and is used for trimming the reference current under the control of the N +1 second trimming switch signals;
and the trimming current output circuit is connected with the trimming circuit and used for outputting the trimmed reference current by using the current mirror image to obtain the trimming current.
In one embodiment of the invention, the bandgap reference circuit comprises a reference circuit with trim function and M +1 first trim switches, wherein,
one end of each of the M +1 first trimming switches is correspondingly connected with the output end of the reference circuit with the trim trimming function and the output end of the trimming switch generating circuit, and the other end of each of the M +1 first trimming switches is connected with the voltage-current conversion circuit.
In one embodiment of the present invention, the trimming circuit includes an N +1 current mirror circuit and N +1 second trimming switches, wherein,
one end of each of the N +1 second trimming switches is connected with a corresponding current mirror circuit in the N +1 current mirror circuits, and the other end of each of the N +1 second trimming switches is connected with the trimming current output circuit; wherein, the ratio of the output currents of the adjacent current mirror circuits is 2.
In one embodiment of the invention, the first comparison circuit comprises a transistor P1~P6Transistor N1Transistor N2Resistance R0And a schmitt trigger SMT, in which,
the transistor P1Source electrode of, the transistor P2Are all connected with a power supply VDD, and the transistors P1Of the transistor P2Of the transistor P3Of the transistor P4Is connected to the bias circuit, the transistor P1And the transistor P3The source of the transistor P2And the transistor P4The source of the transistor P3And the transistorP5The source of the transistor P4And the transistor P6Of said transistor P, said transistor P5Of the transistor P6Is connected to the switch control circuit, the transistor P5And the transistor N1Drain electrode of (1), the transistor N1Gate of (1), the transistor N2The gate of the transistor P6And the transistor N2Is connected with one end of the Schmitt trigger SMT, the transistor N1Source electrode of and the resistor R0Is connected to one terminal of the transistor N2Is connected with the ramp voltage generating circuit, the resistor R0The other end of the Schmitt trigger SMT is connected with the ground GND, and the other end of the Schmitt trigger SMT is connected with the clock signal output circuit.
In one embodiment of the present invention, the first input point and the second input point are two input points which are previously set in the first comparison circuit, and include:
the first input point is preset in the first comparison circuit and the transistor N1Source electrode of and the resistor R0To (c) to (d);
the second input point is preset in the first comparison circuit and the transistor N2And the ramp voltage generating circuit.
In one embodiment of the present invention, the second comparing circuit is a comparator.
In one embodiment of the present invention, the clock signal output circuit is a D flip-flop.
The invention has the beneficial effects that:
the oscillator circuit provided by the invention can accurately control the end point of ramp voltage generation, and solves the charge and discharge problem easily occurring in the traditional oscillator circuit, and the embodiment of the invention introduces a ramp voltage generation circuit and a first comparison circuit in the oscillator circuit, the ramp voltage generation circuit generates ramp voltage, searches corresponding first comparison results when the voltages of a first input point and a second input point are equal in the first comparison circuit through the ramp voltage, outputs a second comparison result under the action of the ramp voltage, and finally outputs a clock signal under the combined action of the first comparison result and the second comparison result, the clock signal controls the ramp voltage generation circuit to generate the ramp voltage again, the ramp voltage controls the first comparison circuit and the second comparison circuit to output the first comparison result and the second comparison result respectively, and the process of outputting the clock signal under the combined action of the first comparison result and the second comparison result is repeated, the end point of the generation of the slope voltage is accurately controlled, so that the problem of charge and discharge of a traditional oscillator circuit, which is easy to occur, is solved, and the accuracy of the clock signal output by the oscillator circuit is improved.
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Drawings
Fig. 1 is a schematic circuit diagram of a conventional oscillator circuit;
FIG. 2 is a schematic diagram of another conventional oscillator circuit;
FIG. 3 is a schematic diagram of an operating waveform of the corresponding conventional oscillator circuit of FIG. 2;
fig. 4 is a schematic structural diagram of an oscillator circuit according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a specific circuit structure of an oscillator circuit according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an operating waveform of an oscillator circuit according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a current generation circuit in an oscillator circuit according to an embodiment of the present invention;
fig. 8 is a schematic circuit diagram of a specific circuit structure of a current generating circuit according to an embodiment of the present invention.
Description of reference numerals:
10-a bias circuit; 20-a switch control circuit; 30-a ramp voltage generating circuit; 40-a first comparison circuit; 50-a second comparison circuit; 60-a clock signal output circuit; 301-a current generating circuit; 3011-trimming switch generating circuit; 3012-bandgap reference circuit; 3013-a voltage to current converter circuit; 3014-a trimming circuit; 3015-trimming current output circuit.
Detailed Description
The present invention will be described in further detail with reference to specific examples, but the embodiments of the present invention are not limited thereto.
Example one
From the above, the ramp voltage V in the conventional oscillator circuit shown in fig. 2TriThere are problems of overcharge and overdischarge, and for the reason, see fig. 3. As shown in fig. 3, resulting in a ramp voltage VTriThere are two cases of overcharge and overdischarge correspondence:
in one case, see the left hand side of FIG. 3, at t1Time of day, ramp voltage VTriIs charged to a reference voltage VRefAt this time, the comparator CMP is inverted, the monostable flip-flop samples the rising edge of the output of the comparator CMP, inverts its output CLKN to a high level, and the switch K is turned on1On, ramp voltage VTriThe discharge is started. At t2Time of day, ramp voltage VTriDischarge to zero, but due to delay of the monostable flip-flop, until t3At that time, the output CLKN of the monostable flip-flop is only flipped to a low level, i.e., the ramp voltage VTriAt t3Charging is started at that moment.
Alternatively, referring to the right-hand diagram of FIG. 3, the ramp voltage V is caused to flip-flop firstTriThe charge is started again when the charge is not discharged to zero, and the original ramp voltage VTriShould be at t5The moment discharges to zero, but because the monostable trigger firstly turns over, the discharge is at t6Switch K is turned off at any moment1Resulting in frequency error.
From the above analysis, it can be seen that the conventional oscillator circuit shown in FIG. 2 is not controllable due to the off-time of the switch in the oscillator circuit, and the ramp voltage VTriThe problems of overcharge and overdischarge exist, so that the performance of the oscillator circuit is unstable, and the output clock signal of the oscillator circuit has large errors.
To avoid the above problem, referring to fig. 4, an embodiment of the present invention provides an oscillator circuit, including: a bias circuit 10, a switch control circuit 20, a ramp voltage generating circuit 30, a first comparing circuit 40, a second comparing circuit 50, and a clock signal output circuit 60, wherein,
a bias circuit 10 for providing a bias voltage;
a switch control circuit 20 for generating a first switch control signal SW according to a first control signal ENP1And a second switch control signal SW2
A ramp voltage generating circuit 30 connected to the switch control circuit 20 for generating the second switch control signal SW2Under the control of (3), generating a ramp voltage VTri
A first comparison circuit 40 connected to the bias circuit 10, the switch control circuit 20 and the ramp voltage generation circuit 30 for generating a first switch control signal SW1According to the bias voltage and the ramp voltage VTriSearching an output voltage corresponding to the first input point and the second input point when the voltages are equal to each other as a first comparison result; wherein, the first input point and the second input point are two input points which are set in the first comparison circuit 40 in advance;
a second comparison circuit 50 connected to the ramp voltage generation circuit 30 for comparing the reference voltage V according to the second control signal ENNRefAnd a ramp voltage VTriGenerating a second comparison result; the second control signal ENN and the first control signal ENP are mutually opposite signals;
a clock signal output circuit 60 connected to the first comparison circuit 40 and the second comparison circuit 50, for generating a final clock signal according to the first comparison result and the second comparison result;
the switch control circuit 20 is connected to the clock signal output circuit 60, and further configured to update the first switch control signal and the second switch control signal according to the first control signal and the clock signal.
Next, the embodiments of the present invention will describe each part of the circuit in detail.
The embodiment of the invention provides an offsetAlternative to the circuit 10, see fig. 5, the bias circuit 10 comprises a transistor P7Transistor P8A bias current source IBiasWherein the transistor P7Is connected with a power supply VDD and a transistor P7Gate of and transistor P8Is connected to the first comparison circuit 40, transistor P8Gate of and transistor P8Drain electrode of (1), bias current source IBiasIs connected to a first comparison circuit 40, a bias current source IBiasThe output terminal of (2) is grounded GND. At a bias current source IBiasThe bias circuit 10 generates a bias voltage.
Preferably, the transistor P7Transistor P8Are all PMOS tubes.
Further, an alternative to the switch control circuit 20 is provided by the embodiment of the present invention, and referring back to fig. 5, the switch control circuit 20 includes a NOT gate NOT1And NAND gate NAND1Wherein, NOT is NOT1Is connected to the input of the first control signal, to the first comparison circuit 40, and is NOT-gated1And NAND gate1Is connected with the first input terminal of NAND gate1Is connected to the clock signal output circuit 60, NAND gate NAND1Is connected to the ramp voltage generating circuit 30. In the initial working stage of the oscillator circuit, the switch control circuit 20 generates the first switch control signal SW according to the first control signal ENP1And a second switch control signal SW2At this time, the clock signal output circuit 60 sets an initial value according to actual needs, for example, the initial value is 0; in the operating stage of the oscillator circuit, the first switch control signal SW is updated according to the real-time output of the clock signal output circuit 60 and the first control signal ENP1And a second switch control signal SW2. Subsequently controlling the signal SW through the first switch1And a second switch control signal SW2The operating states of the first comparison circuit 40 and the ramp voltage generation circuit 30 are controlled separately. Wherein the first switch control signal SW1Is the first control signal ENP.
In the embodiment of the present invention, the first control signal ENP determines the working state of the entire oscillator circuit, when the first control signal ENP is at a high level, the entire oscillator circuit outputs a constant clock signal CLK, and when the first control signal ENP is at a low level, the entire oscillator circuit enables the first comparison circuit 40, the second comparison circuit 50 and the ramp voltage generation circuit 30, so as to accurately control the end point of ramp voltage generation, and solve the charge and discharge problems that occur easily in the conventional oscillator circuit.
Further, the embodiment of the present invention provides an alternative to the ramp voltage generating circuit 30, and referring to fig. 5 again, the ramp voltage generating circuit 30 includes a transistor N3Transistor N4Capacitor C0And a current generation circuit 301, in which a transistor N3Gate of (1), transistor N4NAND gate NAND in the gate-and-switch control circuit 201Is connected to the output terminal of transistor N3Is connected to a first comparison circuit 40, a transistor N3Source of and transistor N4Drain electrode of (1), capacitor C0Is connected to the current generation circuit 301 and the second comparison circuit 50, and the transistor N4Source electrode and capacitor C0And the other end thereof is connected to the ground GND. The ramp voltage generating circuit 30 of the embodiment of the invention outputs the second switch control signal SW in the switch control circuit 202Under control, the transistor N is switched3Transistor N4And the current generation circuit 301 is used to realize the pair of capacitors C0Charging and discharging of (3), finally outputting a ramp voltage VTri
Preferably, the transistor N3Transistor N4Are all NMOS tubes.
Further, an alternative to the first comparison circuit 40 is provided in the embodiment of the present invention, and referring back to fig. 5, the first comparison circuit 40 includes a transistor P1~P6Transistor N1Transistor N2Resistance R0And Schmitt trigger SMT, in which a transistor P1Source electrode of (1), transistor P2The source electrodes of the transistors are all connected with a power supply VDD and a transistor P1Gate of (1), transistor P2Gate and bias circuit of10 transistor P7Of the transistor P3Gate of (1), transistor P4Gate of and bias circuit 108Of the transistor P1And the drain of the transistor P3Of the transistor P2And the drain of the transistor P4Of the transistor P3And the drain of the transistor P5Of the transistor P4And a transistor P6Of the transistor P5Gate of (1), transistor P6And NOT gate NOT in the switch control circuit 201Is connected to the input terminal of a transistor P5And transistor N1Drain electrode of (1), transistor N1Gate of (1), transistor N2Of the transistor P6And transistor N2Is connected with one end of the Schmitt trigger SMT, and a transistor N1Source and resistor R of0Is connected to a transistor N2And the transistor N in the ramp voltage generating circuit 303Is connected to the drain of the resistor R0The other end of the schmitt trigger SMT is connected to the ground GND, and the other end of the schmitt trigger SMT is connected to the clock signal output circuit 60. In the embodiment of the present invention, the first comparison circuit 40 controls the signal SW at the first switch1Under control, according to the bias voltage and the ramp voltage VTriFinding the output voltage corresponding to the voltage equality of the first input point and the second input point as a first comparison result VO1. Wherein, the first input point and the second input point are two input points preset in the first comparison circuit 40, and the embodiment of the present invention specifically includes: the first input point is preset in the first comparison circuit 40 by the transistor N1Source and resistor R of0Point a as shown in fig. 5; the second input point is preset in the first comparison circuit 40 by the transistor N2And the ramp voltage generating circuit 30, as shown at point B in fig. 5.
Preferably, the transistor P1~P6Are all PMOS tubes; transistor N1Transistor N2Are all NMOS tubes.
Further, embodiments of the present inventionThe second comparator circuit 50 is a comparator, and referring to fig. 5, the positive input terminal of the comparator is connected to the reference voltage VRefIs connected to the input terminal of the comparator, and the inverting input terminal of the comparator is connected to the current generating circuit 301 and the capacitor C in the ramp voltage generating circuit 300One terminal of (1), transistor N3And transistor N4The control terminal of the comparator is connected to the input terminal of the second control signal ENN, and the output terminal of the comparator is connected to the clock signal output circuit 60. In the embodiment of the present invention, the second control signal ENN and the first control signal ENP are opposite phase signals, and the second comparison circuit 50 compares the reference voltage V under the control of the second control signal ENNRefAnd a ramp voltage VTriFinally, the second comparison result V is outputO2
Further, the clock signal output circuit 60 according to the embodiment of the present invention may be a D flip-flop, as shown in fig. 5, where the D flip-flop includes a NOT gate2NAND gate2NAND gate3NOT and AND gate3Wherein, NOT is NOT2Is connected to one end of the schmitt trigger SMT in the first comparison circuit 40, and is NOT-gated2And NAND gate NAND2Is connected with the first input end of the NAND gate2And NAND gate NAND3Output terminal of, NOT gate3Is connected with NAND gate2And NAND gate NAND3Is connected with the first input terminal of NAND gate3Is connected to the output of the second comparison circuit 50, NOT-gate NOT3Is the output of the final clock signal. The clock signal output circuit 60 of the embodiment of the present invention finally outputs the clock signal CLK.
Based on the above circuit design, the operating waveform of the oscillator circuit provided in the embodiment of the present invention is as shown in fig. 6, specifically:
in the initial working phase of the oscillator circuit, the first control signal ENP is set to be at a low level, and the corresponding second control signal ENN is set to be at a high level, at this time, the entire oscillator circuit is in a working state, including the first comparison circuit 40 and the second comparison circuit 50, which are both in an enabled state.
In the operating phase of the oscillator circuit, at t1Time of day, ramp voltage VTriRising to a reference voltage VRefAt this time, the second comparison result V outputted from the comparator CMP in the second comparison circuit 50O2Is turned over to low level, and the second comparison result VO2The final clock signal CLK of the clock signal output circuit 60 is forced to also flip to the low level. At this time, the clock signal CLK of low level acts on the switch control circuit 20, and also forces the second switch control signal SW output from the switch control circuit 202Is inverted to a high level when the transistor N of the ramp voltage generating circuit 30 is turned over3And transistor N4On, the capacitance C0The discharge is started so that the voltage at the point B of the second input point in the first comparison circuit 40 starts to drop, and when the voltage at the point B of the second input point drops to be equal to the voltage at the point A of the first input point, the voltage V output by the point C in the first comparison circuit 40 is startedO3And turning over and beginning to slowly descend. Since the time for the voltage to drop from the second input point B to the first input point a is about several ns, such a change is not shown in fig. 6.
At t2At the moment, V is outputted from point C in the first comparison circuit 40O3Falls to make the Schmitt trigger SMT flip, the first comparison circuit 40 outputs a first comparison result VO1First comparison result VO1After the clock signal CLK is inverted to a high level by the clock signal output circuit 60, the second switch control signal SW is turned on by the clock signal CLK being inputted to the switch control circuit 202Inverted to low level, transistor N3And transistor N4Turn off, at which time the current I is trimmedOSCStart to supply the capacitor C0Charging, ramp voltage VTriStarts to rise gradually, corresponding to V outputted from point C of the first comparison circuit 40O3It also begins to rise slowly.
At t3V output at time, CO3Rises to a level that causes the Schmitt trigger SMT output to flip, corresponding to V output at point D in clock signal output circuit 60O4Toggling to a high level.
At t4At the time of day, the user may,the voltages at the first input point a and the second input point B of the first comparing circuit 40 are equal, and the reference voltage V is the same in the embodiment of the present inventionRef0Can take the voltage value of the first input point A, and the ramp voltage V is at the momentTriRises again until the reference voltage VRefRepeating the above t1~t3In the process, the time sequence is controlled to pass through the capacitor C0Ramp voltage V generated by charging and dischargingTriThe problems of overcharge and overdischarge are avoided, so that the stability of the output clock signal of the oscillator circuit is ensured, and the generation of frequency errors is avoided.
To overcome Process, Voltage and temperature (PVT) vs. capacitance C0In the ramp voltage generating circuit 30 according to the embodiment of the present invention, the current generating circuit 301 with the trimming function is selected so as to cover the process, voltage and PVT pair capacitor C0The influence of (c). Specifically, the embodiment of the present invention provides an alternative solution for the current generating circuit 301, referring to fig. 7, the current generating circuit 301 includes: a trimming switch generating circuit 3011, a bandgap reference circuit 3012, a voltage-to-current converting circuit 3013, a trimming circuit 3014, and a trimming current output circuit 3015, wherein,
a trimming switch generating circuit 3011, configured to generate M +1 first trimming switch signals and N +1 second trimming switch signals, M, N being integers greater than 0;
the band-gap reference circuit 3012 is connected to the trimming switch generating circuit 3011 and configured to generate a reference voltage under the control of the M +1 first trimming switch signals;
a voltage-current conversion circuit 3013 connected to the bandgap reference circuit 3012 and configured to convert the reference voltage into a reference current;
the trimming circuit 3014 is connected to the voltage-to-current conversion circuit 3013 and the trimming switch generation circuit 3011, and configured to trim the reference current under the control of the N +1 second trimming switch signals;
and the trimming current output circuit 3015 is connected to the trimming circuit 3014 and configured to output the trimmed reference current by using a current mirror image to obtain a trimming current.
Next, each circuit in the current generation circuit 301 will be described in detail.
Referring to fig. 8, the trimming switch generating circuit 3011 may be implemented by using an existing circuit as long as M +1 first trimming switch signals and N +1 second trimming switch signals can be generated, and a specific circuit structure is not limited, for example, M +1 first trimming switch signals and N +1 second trimming switch signals may be formed by outputting high and low electrical signals according to actual requirements.
Further, an alternative of the voltage-current conversion circuit 3013 is provided in the embodiments of the present invention, please refer to fig. 8, in which the voltage-current conversion circuit 3013 includes an amplifier AMP and a transistor Q0Resistance R1Transistor M1~M4Wherein the non-inverting input terminal of the amplifier AMP is connected to the output terminal of the bandgap reference circuit 3012, and the inverting input terminal of the amplifier AMP is connected to the transistor Q0Source electrode, resistance R1Is connected to the output terminal of the amplifier AMP and the transistor Q0Is connected to the gate of, and a resistor R1Is grounded to GND, a transistor Q0And the transistor M1Drain electrode of (1), transistor M1Gate of (1), transistor M2Is connected to the gate of transistor M1Source and transistor M3Drain electrode of (1), transistor M3Gate of (1), transistor M4Is connected to the gate of transistor M2Is connected with the trimming circuit 3014, and the transistor M2Source and transistor M4Of the transistor M3Source electrode of (1), transistor M4The sources of the first and second transistors are all connected with a power supply VDD.
Preferably, the transistor Q0Is an NMOS tube; transistor M1~M4Are all PMOS tubes.
The embodiment of the invention can know that the reference current I is based on the basic principle of a V (voltage) -I (current) conversion circuitTrimCan be expressed as:
Figure BDA0003413453460000131
as can be seen, the reference current ITrimBy resistance R0Has a large influence on the resistance R in order to overcome the process0Based on the voltage-to-current conversion circuit 3013, the embodiment of the present invention proposes to use a bandgap reference circuit 3012 with a trimming function, specifically:
referring to fig. 8 again, the bandgap reference circuit 3012 includes a reference circuit with trim function and M +1 first trimming switches S0~SMOne end of each of the M +1 first trimming switches is correspondingly connected to an output end of the reference circuit with the trim trimming function and an output end of the trimming switch generating circuit 3011, and the other end of each of the M +1 first trimming switches is connected to the voltage-to-current conversion circuit 3013. The reference circuit with trim function can be realized by adopting the existing circuit, can output M +1 different reference voltages, and is provided with M +1 first trim switches S0~SMUnder the control of the control circuit, a plurality of reference voltages are extracted to form the reference voltage V finally generated by the embodiment of the inventionTrim. Extracting different reference voltages under different processes to generate final reference voltage VTrimEquivalent to overcoming the process pair resistance R0The influence caused by the current I is further obtainedTrim
Further, the capacitance C is aimed at0The embodiment of the present invention proposes to design the trimming circuit 3014 to trim the current before outputting the current. Referring to fig. 8 again, the trimming circuit 3014 mainly includes an N +1 current mirror circuit and N +1 second trimming switches F0~FNWherein, one end of the N +1 second trimming switches is connected with the corresponding current mirror circuit in the N +1 current mirror circuits, the other end of the N +1 second trimming switches is connected with the trimming current output circuit 3015, and each current mirror circuit includes a transistor Q3Transistor Q4All transistors Q3Are interconnected, all transistors Q4Are interconnected, all transistors Q3The drain electrode of the second trimming switch is connected with one end of the corresponding second trimming switch, and all the crystalsTube Q3And corresponding transistor Q4Drain electrode of (2), all transistors Q4The source of the second trimming switch is grounded, and the other ends of all the second trimming switches are connected with the trimming current output circuit 3015; the trimming circuit 3014 further includes a transistor Q1Transistor Q2Transistor Q5Transistor Q6Wherein the transistor Q1Gate of and transistor Q1Drain electrode of (1), and transistor Q3Gate of (3), transistor M in voltage circuit conversion circuit2Of the transistor Q1Source and transistor Q of2Drain electrode of (1), and transistor Q2Gate of (2), transistor Q4Of the transistor Q2Source of (1) is grounded GND, transistor Q5Gate of and transistor Q3Of the transistor Q5Source and transistor Q of6Of the transistor Q5Is connected with the trimming current output circuit 3015, and a transistor Q6Gate of and transistor Q4Of the transistor Q6Is connected to ground GND. The output current ratio of adjacent current mirror circuits is 2, and the difference of the trimming current of each current mirror circuit is doubled. Reference current I in the embodiments of the present inventionTrimAfter trimming, the process can be overcome for the capacitor C0While the trimming circuit 3014 can overcome the problem of the transistor M in the voltage circuit switching circuit1~M4The error possibly brought by the formed current mirror image can be obtained, and then the reference current I of the high-precision oscillator required by the system can be obtainedTrim
Preferably, the transistor Q1Transistor Q2Transistor Q5Transistor Q6Are all NMOS tubes; transistor Q in each current mirror circuit3Transistor Q4Are all NMOS tubes.
Further, an alternative of the trimming current output circuit 3015 is provided in the embodiments of the present invention, in which the trimming current is outputted by using a current mirror image, referring to fig. 8 again, the trimming current output circuit 3015 includes a transistor M5~M8Wherein the transistor M5Source electrode of (1), transistor M6The source electrodes of the transistors M are all connected with a power supply VDD5Gate of and transistor M5Drain electrode of (1), transistor M6Gate of (1), transistor M7Of transistor M6And the transistor M8Of transistor M7Gate of and transistor M7Drain electrode of (1), transistor M8And a second trimming switch F in the trimming circuit 30140~FNTransistor Q5Of the transistor M8And the transistor N in the ramp voltage generating circuit 303Source electrode of (1), transistor N4Drain electrode of (1), capacitor C0And the inverting input of the second comparison circuit 50. Similarly, the current mirror error can be adjusted by the trimming circuit 3014, so as to output the high-precision oscillator trimming current I required by the systemOSC
Preferably, the transistor M5~M8Are all PMOS tubes.
In summary, the oscillator circuit provided in the embodiments of the present invention can precisely control the ramp voltage VTriThe generated end point solves the charge and discharge problem of the traditional oscillator circuit, and specifically, in the embodiment of the invention, the ramp voltage generating circuit 30 and the first comparison circuit 40 are introduced into the oscillator circuit, and the ramp voltage generating circuit 30 generates the ramp voltage VTriBy a ramp voltage VTriFinding a corresponding first comparison result V when the voltages of the first input point A and the second input point B are equal in the first comparison circuit 40O1And the second comparison circuit 50 is at the ramp voltage VTriUnder the action of the first comparison result V, outputting a second comparison result VO2Finally, from the first comparison result VO1And a second comparison result VO2The clock signal CLK is outputted in cooperation, and the ramp voltage generating circuit 30 is controlled again by the clock signal CLK to generate the ramp voltage VTriFrom a voltage ramp VTriRespectively controlling the first comparison circuit 40 and the second comparison circuit 50 to output a first comparison result VO1And a second comparison result VO2Repeating such a comparison from the first comparison result VO1And a secondComparison result VO2The process of outputting the clock signal CLK under the combined action realizes the accurate control of the ramp voltage VTriThe generated end point is used for solving the charge and discharge problem which is easy to occur in the traditional oscillator circuit, thereby improving the accuracy of the clock signal CLK output by the oscillator circuit.
Meanwhile, for the influence caused by the process, the temperature and the like, the current generating circuit 301 adopted in the ramp voltage generating circuit 30 according to the embodiment of the present invention has the trimming function, and the specific bandgap reference circuit 3012 and the trimming circuit 3014 respectively control different trimming switch combinations, so that the current generating circuit 301 generates the high-precision trimming current I required by the systemOSCFor a ramp voltage VTriThereby improving the accuracy of the oscillator circuit outputting the clock signal CLK.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples described in this specification can be combined and combined by those skilled in the art.
While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. An oscillator circuit, comprising: a bias circuit, a switch control circuit, a ramp voltage generating circuit, a first comparing circuit, a second comparing circuit and a clock signal output circuit, wherein,
the bias circuit is used for providing a bias voltage;
the switch control circuit is used for generating a first switch control signal and a second switch control signal according to the first control signal;
the ramp voltage generating circuit is connected with the switch control circuit and is used for generating a ramp voltage under the control of the second switch control signal;
the first comparison circuit is connected with the bias circuit, the switch control circuit and the ramp voltage generation circuit and used for searching corresponding output voltages which enable voltages of a first input point and a second input point to be equal according to the bias voltage and the ramp voltage under the control of the first switch control signal to serve as a first comparison result; the first input point and the second input point are two input points which are arranged in the first comparison circuit in advance;
the second comparison circuit is connected with the ramp voltage generation circuit and used for comparing a reference voltage with the ramp voltage according to the second control signal to generate a second comparison result; wherein the second control signal and the first control signal are opposite-phase signals;
the clock signal output circuit is connected with the first comparison circuit and the second comparison circuit and is used for generating a final clock signal according to the first comparison result and the second comparison result;
the switch control circuit is connected with the clock signal output circuit and is also used for updating a first switch control signal and a second switch control signal according to the first control signal and the clock signal.
2. The oscillator circuit of claim 1, wherein the switch control circuit comprises a NOT gate NOT1And NAND gate NAND1Wherein, in the step (A),
the NOT1Is connected to the input of the first control signal and the first comparison circuit, and the NOT gate NOT1And the NAND gate1The first input end of the NAND gate is connected with1The second input end of the NAND gate is connected with the clock signal output circuit1Is connected to the ramp voltage generating circuit.
3. The oscillator circuit of claim 1, wherein the ramp voltage generation circuit comprises a transistor N3Transistor N4Capacitor C0And a current generating circuit, wherein,
the transistor N3Gate of (1), the transistor N4Is connected with the switch control circuit, the transistor N3Is connected to the first comparison circuit, the transistor N3And the transistor N4Drain electrode of (1), the capacitor C0One end of, theThe current generating circuit is connected with the second comparison circuit, and the transistor N4Source electrode of, the capacitor C0And the other end thereof is connected to the ground GND.
4. The oscillator circuit of claim 3, wherein the current generation circuit comprises: a trimming switch generating circuit, a band gap reference circuit, a voltage current converting circuit, a trimming circuit and a trimming current output circuit, wherein,
the trimming switch generating circuit is used for generating M +1 first trimming switch signals and N +1 second trimming switch signals, M, N are integers which are larger than 0;
the band-gap reference circuit is connected with the trimming switch generating circuit and is used for generating reference voltage under the control of the M +1 first trimming switch signals;
the voltage-current conversion circuit is connected with the band-gap reference circuit and is used for converting the reference voltage into reference current;
the trimming circuit is connected with the voltage-current conversion circuit and the trimming switch generating circuit and is used for trimming the reference current under the control of the N +1 second trimming switch signals;
and the trimming current output circuit is connected with the trimming circuit and used for outputting the trimmed reference current by using the current mirror image to obtain the trimming current.
5. The oscillator circuit of claim 4, wherein the bandgap reference circuit comprises a reference circuit with trim function and M +1 first trim switches, wherein,
one end of each of the M +1 first trimming switches is correspondingly connected with the output end of the reference circuit with the trim trimming function and the output end of the trimming switch generating circuit, and the other end of each of the M +1 first trimming switches is connected with the voltage-current conversion circuit.
6. The oscillator circuit of claim 4, wherein the trimming circuit comprises an N +1 circuit current mirror circuit and N +1 second trimming switches, wherein,
one end of each of the N +1 second trimming switches is connected with a corresponding current mirror circuit in the N +1 current mirror circuits, and the other end of each of the N +1 second trimming switches is connected with the trimming current output circuit; wherein, the ratio of the output currents of the adjacent current mirror circuits is 2.
7. The oscillator circuit of claim 1, wherein the first comparison circuit comprises a transistor P1~P6Transistor N1Transistor N2Resistance R0And a schmitt trigger SMT, wherein,
the transistor P1Source electrode of, the transistor P2Are all connected with a power supply VDD, and the transistors P1Of the transistor P2Of the transistor P3Of the transistor P4Is connected to the bias circuit, the transistor P1And the transistor P3The source of the transistor P2And the transistor P4The source of the transistor P3And the transistor P5The source of the transistor P4And the transistor P6The source of the transistor P5Of the transistor P6Is connected to the switch control circuit, the transistor P5And the transistor N1Drain electrode of (1), the transistor N1Gate of (1), the transistor N2Of the transistor P, the transistor P6And the transistor N2Is connected to one end of the Schmitt trigger SMT, the transistor N1Source electrode of and the resistor R0Is connected to one terminal of the transistor N2Is connected with the ramp voltage generating circuit, the resistor R0Is connected to the ground GND, and the other end of the schmitt trigger SMT is connected to the clock signal inputAnd (4) outputting the circuit connection.
8. The oscillator circuit according to claim 7, wherein the first input point and the second input point are two input points previously set in the first comparison circuit, and include:
the first input point is preset in the first comparison circuit and the transistor N1Source electrode of and the resistor R0To (c) to (d);
the second input point is preset in the first comparison circuit and the transistor N2And the ramp voltage generating circuit.
9. The oscillator circuit of claim 1, wherein the second comparison circuit is a comparator.
10. The oscillator circuit of claim 1, wherein the clock signal output circuit is a D flip-flop.
CN202111537641.7A 2021-12-15 2021-12-15 Oscillator circuit Pending CN114665820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111537641.7A CN114665820A (en) 2021-12-15 2021-12-15 Oscillator circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111537641.7A CN114665820A (en) 2021-12-15 2021-12-15 Oscillator circuit

Publications (1)

Publication Number Publication Date
CN114665820A true CN114665820A (en) 2022-06-24

Family

ID=82026241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111537641.7A Pending CN114665820A (en) 2021-12-15 2021-12-15 Oscillator circuit

Country Status (1)

Country Link
CN (1) CN114665820A (en)

Similar Documents

Publication Publication Date Title
CN112290889B (en) On-chip RC oscillator, chip and communication terminal
CN110429915B (en) RC oscillating circuit
US6680656B2 (en) Function generator with adjustable oscillating frequency
US11245360B2 (en) Oscillator circuit, chip and electronic device
CN109690948B (en) Method and apparatus for low power relaxation oscillator
CN111404484B (en) RC oscillator and electric device
US9461632B2 (en) Oscillator circuit
JPS62149215A (en) Time constant circuit
US10483844B2 (en) Charge pump arrangement and method for operating a charge pump arrangement
CN112910446A (en) Oscillator
KR20080061217A (en) Temperature compensated cmos oscillator and compensation method thereof
JPH05111241A (en) Dc/dc converter
CN112953526A (en) Ring oscillation circuit, method and integrated chip
US20100141307A1 (en) Frequency multiplier and method for frequency multiplying
US20050094421A1 (en) Integrated charge pump voltage converter
CN114665820A (en) Oscillator circuit
US6909335B2 (en) Oscillator for DC—DC converter
CN108173520B (en) Temperature compensated oscillator circuit and method
CN115425925A (en) High-precision RC oscillator circuit
US20080309398A1 (en) Multiplier circuit
CN215072364U (en) Annular oscillation circuit and integrated chip
EP1109317A1 (en) A controller oscillator system and method
US6894574B2 (en) CR oscillation circuit
CN111884591A (en) High-precision low-temperature-drift oscillator
US20200021258A1 (en) Oscillator circuit using comparator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination