High-precision on-chip oscillator
By using the voltage and current generation module and the switched capacitor equivalent resistance module in the on-chip oscillator, the output of high-precision clock signals is achieved, which solves the problem of dependence on reference voltage and current in traditional technology, reduces cost and power consumption, and improves Improves the stability and interference immunity of the clock signal.
Patent Information
- Application Number
- CN201811283014.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2038-10-31
AI Technical Summary
In the existing technology, traditional on-chip oscillators require accurate reference voltages and reference currents when achieving high-precision clock signal output, resulting in increased cost and circuit complexity. At the same time, the electrical parameters of the clock cycle cannot be dynamically adjusted, affecting stability.
Adopt high-precision on-chip oscillator design, including voltage and current generation module, clock signal processing module, switched capacitor equivalent resistance module, clock frequency-current conversion module, current comparison module and clock oscillation module, and generate non-overlapping switches through the clock signal processing module signal, use the switched capacitor equivalent resistance module to obtain the equivalent impedance, combine the reference voltage of the voltage and current generation module and the clock frequency-current conversion module to obtain the proportional current, perform current comparison, and use the negative feedback of the comparison result to dynamically adjust the oscillation frequency.
It achieves high-precision on-chip clock output, reduces the cost and power consumption of the chip, eliminates the need for high-precision bandgap reference voltage and reference current, simplifies the circuit structure, and improves the stability and interference immunity of the clock signal.
Smart Images

Figure CN109194328B
Abstract
Description
Technical Field
[0001] The invention relates to the field of integrated circuits, and in particular to a high-precision on-chip oscillator. Background Art
[0002] On-chip oscillators are as ubiquitous as power supplies in electronic systems. Some people believe that they are as important as power supplies and can be found in any product that requires a timing signal. Therefore, research on on-chip oscillators has never stopped.
[0003] Prior art "Krishnakumar Sundaresan, Keith C. Brouse, Kongpop U-Yen, Farrokh Ayazi, Phillip E. Allen. 'A 7-MHz Process, Temperature and Supply Compensated Clock Oscillator in 0.25μm CMOS'" studied a traditional relaxation oscillator, whose clock cycle is composed of capacitor charging time, comparator delay, etc. Among them, the capacitor charging and discharging time is the main part of the clock cycle. In order to obtain a stable charge and discharge time, an accurate discrimination voltage and an accurate charging current are required to ensure that the charging time does not change with the power supply voltage and temperature, so as to obtain a stable on-chip clock signal. However, the traditional technology does not dynamically adjust the electrical parameters that determine the clock cycle: the discrimination voltage and the charging current according to the clock signal.
[0004] Chinese patents CN102882471A and CN102882471B use feedback technology to convert the clock frequency into voltage, and then use an integral circuit to achieve frequency control of the voltage-controlled oscillator. If it is a current-controlled oscillator, the integrated voltage output needs to be converted into current to control the oscillation frequency of the ICO (I-controlled oscillator). Since the output frequency is proportional to the absolute value of the voltage-controlled voltage or current, the voltage-current conversion in this technology and the integrator reference input need to use an accurate reference voltage. In addition, there is one more voltage-to-current conversion in the ICO architecture, which increases the cost and circuit complexity. Summary of the invention
[0005] The object of the present invention is to provide a high-precision on-chip oscillator to achieve high-precision on-chip clock output and, at the same time, reduce the cost and power consumption of the chip.
[0006] In order to solve the above technical problems, the present invention provides a high-precision on-chip oscillator, comprising:
[0007] A voltage and current generating module, a clock signal processing module, a switch capacitor equivalent resistance module, a clock frequency-current conversion module, a current comparison module, and a clock oscillation module;
[0008] The clock signal processing module generates a two-phase non-overlapping switching signal according to the initial clock signal of the clock oscillation module, and transmits it to the switch capacitor equivalent resistance module to obtain an equivalent impedance. The equivalent impedance is combined with the reference voltage generated by the voltage and current generating module to obtain a proportional current in the clock frequency-current conversion module. The proportional current and the reference current generated by the voltage and current generating module are compared in the current comparison module, and the comparison result is negatively fed back to dynamically control the oscillation frequency of the initial signal of the clock oscillation module.
[0009] Optionally, for the high-precision on-chip oscillator, the voltage and current generating module includes: NMOS tube MNAT0, NMOS tube MNAT1, the source of NMOS tube MNAT0 is grounded, the drain is connected to the gate, and the drain is also connected to one end of a plurality of resistors connected in series, the other ends of the plurality of resistors connected in series are connected to the power supply voltage, the reference voltage is drawn from a node in the resistor string, the source of NMOS tube MNAT1 is grounded, the gate is connected to the gate of NMOS tube MNAT0, the gate of PMOS tube MP0 and the gate of PMOS tube MP1 are connected to the drain of NMOS tube MNAT1, the source of PMOS tube MP0 and the source of PMOS tube MP1 are connected to the power supply voltage, the drain of PMOS tube MP0 is connected to the source of PMOS tube MP2, the drain of PMOS tube MP1 is connected to the source of PMOS tube MP3, the gate of PMOS tube MP2 and the gate of PMOS tube MP3 are connected to the first bias voltage, and the drain of PMOS tube MP2 is connected to the drain of NMOS tube MNAT1, thereby drawing a reference current at the drain of PMOS tube MP3.
[0010] Optionally, for the high-precision on-chip oscillator, the clock signal processing module generates an output clock signal with a duty cycle of 50%, and generates the two-phase non-overlapping clock switch signal based on the output clock signal.
[0011] Optionally, for the high-precision on-chip oscillator, the clock signal processing module includes a clock duty cycle adjustment module and a non-overlapping switching signal generating module, the clock duty cycle adjustment module generates an output clock signal with a duty cycle of 50%, and the non-overlapping switching signal generating module generates the two-phase non-overlapping clock switching signal based on the output clock signal.
[0012] Optionally, for the high-precision on-chip oscillator, the switched capacitor equivalent resistance module includes a first terminal, a second terminal, an NMOS tube MN0, an NMOS tube MN1, an NMOS tube MN2, an NMOS tube MN3, a first capacitor and a second capacitor; the drain of the NMOS tube MN0 and the drain of the NMOS tube MN1 are connected to the first terminal, the source of the NMOS tube MN0, the drain of the NMOS tube MN2 and one end of the first capacitor are connected, the source of the NMOS tube MN1, the drain of the NMOS tube MN3 and one end of the second capacitor are connected, the source of the NMOS tube MN2, the source of the NMOS tube MN3, the other end of the first capacitor and the other end of the second capacitor are connected to the second terminal, the gate of the NMOS tube MN0 and the gate of the NMOS tube MN3 are connected to a one-phase clock switch signal, and the gate of the NMOS tube MN1 and the gate of the NMOS tube MN2 are connected to another phase clock switch signal.
[0013] Optionally, for the high-precision on-chip oscillator, the oscillation frequency is f clk , with a period of T clk , the capacitance of the first capacitor and the second capacitor are both C s , the two-phase non-overlapping clock switch signal conduction time is T clk / 2, the charge is Q, the current is I, and the reference voltage is V ref , then the equivalent impedance Z between the first terminal and the second terminal is calculated as follows:
[0014] Q=C S *V ref ,
[0015]
[0016] Optionally, for the high-precision on-chip oscillator, the clock frequency-current conversion module includes an NMOS tube MN4, a PMOS tube MP4, a PMOS tube MP5, an amplifier and a switch capacitor equivalent resistor, the gate of the NMOS tube MN4 is connected to the output end of the amplifier, the source of the NMOS tube MN4 is connected to the negative input end of the amplifier and one end of the switch capacitor equivalent resistor, the other end of the switch capacitor equivalent resistor is grounded, the two-phase non-overlapping clock switching signal is applied to the negative input end of the amplifier through the switch capacitor equivalent resistor, and the positive input end of the amplifier is connected to the reference voltage V generated by the voltage and current generation module ref, the drain of the NMOS tube MN4 is connected to the drain and gate of the PMOS tube MP4, the source of the PMOS tube MP4 is connected to the power supply voltage, the gate of the PMOS tube MP4 is also connected to the gate of the PMOS tube MP5, the source of the PMOS tube MP5 is connected to the power supply voltage, and the source of the PMOS tube MP5 outputs the proportional current; then
[0017] Among them I clk is the proportional current.
[0018] Optionally, for the high-precision on-chip oscillator, the current comparison module includes NMOS tube MN5, NMOS tube MN6, NMOS tube MN7, NMOS tube MN8, NMOS tube MN9, PMOS tube MP6 and PMOS tube MP7, the drain of the NMOS tube MN7 is connected to the bias current, the source of the NMOS tube MN5 is connected to the drain of the NMOS tube MN6, the gate of the NMOS tube MN5 is connected to its own drain and the gate of the NMOS tube MN6, and a second bias voltage of the gate of the NMOS tube MN6 is generated, the source of the NMOS tube MN6 is grounded, the drain of the NMOS tube MN7 is connected to the reference current, the gate of the NMOS tube MN7 is connected to its own drain, the source of the NMOS tube MN7 is grounded, and the gate of the NMOS tube MN8 is connected to the reference current. The gate of the NMOS tube MN7 is connected to the gate of the NMOS tube MN7, the source of the NMOS tube MN8 is grounded, the drain of the NMOS tube MN8 is connected to the source of the NMOS tube MN9, the gate of the NMOS tube MN9 is connected to the second bias voltage, the drain of the NMOS tube MN9 is connected to the drain of the PMOS tube MP6, the source of the PMOS tube MP6 is connected to the power supply voltage, the gate of the PMOS tube MP6 is connected to the gate of the PMOS tube MP7, the source of the PMOS tube MP7 is connected to the power supply voltage, the drain of the PMOS tube MP7 is connected to its own gate and grounded, and the proportional current is connected to the drain of the PMOS tube MP7, thereby realizing the comparison between the reference current and the proportional current, and leading out the third bias voltage between the NMOS tube MN9 and the PMOS tube MP6.
[0019] Optionally, for the high-precision on-chip oscillator, the clock oscillation module includes N inverting amplifiers whose input terminals and output terminals are connected in sequence, and N third capacitors, the third capacitors corresponding to the inverting amplifiers one by one, one end of each third capacitor is connected to the output terminal of a corresponding inverting amplifier, the other end of each third capacitor is grounded, the output terminal of the Nth inverting amplifier is connected to an input terminal of a NAND gate, the other input terminal of the NAND gate is enabled, the output terminal of the NAND gate generates the initial signal, and a bias terminal of each of the inverting amplifiers is connected to a third bias voltage, and the other bias terminal is connected to a fourth bias voltage.
[0020] Optionally, for the high-precision on-chip oscillator,
[0021] I clk =K0*I ref , V ref =K2*R*I ref ,
[0022] I clk =2C s *f ckl *V ref ,
[0023] K0*I ref =2C s *f clk *K2*R*I ref ,
[0024]
[0025] Where K0, K1, K2 are constants, VDD is the power supply voltage, and R is the resistance.
[0026] In the high-precision on-chip oscillator provided by the present invention, a switched capacitor equivalent resistance module is used, and the on-chip resistance (i.e., equivalent impedance) is realized by utilizing the oscillator clock output, and then a reference voltage is used to realize voltage-current conversion, and a current proportional to the clock frequency, referred to as proportional current, is obtained. The reference current is then compared with the proportional current, and the comparison result is used for negative feedback to dynamically adjust the oscillation frequency of the initial clock signal of the clock oscillation module, thereby realizing high-precision on-chip clock output.
[0027] The present invention eliminates the need for high-precision bandgap reference voltage and high-precision reference current of traditional high-precision on-chip oscillators, so a bandgap reference source is not required, thereby reducing the silicon chip area and eliminating the large static power consumption of the corresponding structure. While achieving high-precision clock signal generation, the cost and power consumption of the chip are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of a reference voltage and reference current generating module in the prior art;
[0029] Figure 2 A schematic diagram of a high-precision on-chip oscillator according to an embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of a voltage and current generating module in one embodiment of the present invention;
[0031] Figure 4 is a schematic diagram of a clock signal processing module in one embodiment of the present invention;
[0032] Figure 5 Schematic diagram of a switched capacitor equivalent resistance module according to an embodiment of the present invention;
[0033] Figure 6 Schematic diagram of a clock frequency-current conversion module in one embodiment of the present invention;
[0034] Figure 7 is a schematic diagram of a current comparison module in one embodiment of the present invention;
[0035] Figure 8 FIG. 4 is a schematic diagram of a clock oscillation module according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The high-precision on-chip oscillator of the present invention will be described in more detail below in conjunction with a schematic diagram, wherein a preferred embodiment of the present invention is shown, and it should be understood that those skilled in the art may modify the present invention described herein while still achieving the advantageous effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art and not as a limitation of the present invention.
[0037] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. The advantages and features of the present invention will become more apparent from the following description and claims. It should be noted that the drawings are in very simplified form and in non-precise proportions, and are only used to facilitate and clearly assist in illustrating the purpose of the embodiments of the present invention.
[0038] like Figure 1The schematic diagram of the reference voltage and reference current generating module in the prior art is shown. It includes two transistors Q0 and Q1, the base and collector of the transistors are grounded, the emitter of the transistor Q0 is connected to the drain of the PMOS tube T0 through two series-connected resistors R0 and R2, the emitter of the transistor Q1 is connected to the source of the PMOS tube T1 through the resistor R1, and also includes a plurality of other PMOS tubes T2 ... T(n+2) sharing the same gate with the PMOS tubes T0 and T1, wherein the reference voltage VREF is drawn from the middle of the resistor string of resistor R0, and the reference current can be drawn from the source of the PMOS tubes MP2 ... MP(n+2) respectively.
[0039] However, in order to obtain a more stable reference voltage and reference current, a clamp-amp needs to be added. The positive input end is set between the resistor R0 and the resistor R1, the negative input end is set between the resistor R1 and the emitter of the transistor Q1, and the output end is set at the gate of the PMOS tube.
[0040] After research, the inventor found that such a structure is bloated and complex, consumes a lot of power, and occupies a large area. To improve this situation, the present invention proposes a high-precision on-chip oscillator.
[0041] like Figure 2 As shown, the high-precision on-chip oscillator according to an embodiment of the present invention comprises:
[0042] A voltage and current generating module, a clock signal processing module, a switch capacitor equivalent resistance module, a clock frequency-current conversion module, a current comparison module, and a clock oscillation module;
[0043] The clock signal processing module generates a two-phase non-overlapping switching signal according to the initial signal of the clock oscillation module, and transmits it to the switch capacitor equivalent resistance module to obtain an equivalent impedance. The equivalent impedance is combined with the reference voltage generated by the voltage and current generating module to obtain a proportional current in the clock frequency-current conversion module. The proportional current and the reference current generated by the voltage and current generating module are compared in the current comparison module. The comparison result is negatively fed back to dynamically adjust the oscillation frequency of the initial clock signal of the clock oscillation module.
[0044] The present invention mainly converts the output of the clock oscillation module into a proportional current of corresponding proportion, compares it with a reference current, and gives an error signal (ie, a comparison result) to dynamically feedback control and adjust the output clock frequency of the clock oscillation module.
[0045] Deviations in the process can be corrected by fine-tuning device parameters, while clock deviations and jitters caused by temperature and voltage are corrected in real time by dynamic monitoring and feedback of clock frequency in the present invention, thus achieving good clock accuracy. The specific implementation scheme is as follows:
[0046] (1) generating an output clock signal with a duty cycle of 50% through a clock signal processing module, and generating a two-phase non-overlapping clock switch signal from the output clock signal;
[0047] (2) The two-phase non-overlapping clock switch signals generated control the switch capacitor equivalent resistance module to achieve an equivalent impedance of the switch capacitor related to the clock frequency;
[0048] (3) The equivalent impedance is combined with the reference voltage generated by the voltage and current generating module and applied to the clock frequency-current conversion module to generate a current signal related to the clock frequency, which is called the proportional current. The proportional current is compared with the reference current, and the error signal (i.e., the comparison result) is dynamically feedback controlled to adjust the output clock frequency of the clock oscillation module. When the oscillation frequency increases, the equivalent impedance decreases, and the corresponding proportional current increases. The proportional current is greater than the reference current, and the output error signal level increases. If the error signal controls the P-type device of the clock oscillation module, the oscillation frequency will decrease. Vice versa.
[0049] In short, the error signal always negatively feeds back to dynamically adjust the oscillation frequency of the output clock signal until the output error signal is close to 0, at which point the oscillation frequency is almost perfectly close to the target clock frequency. When disturbance factors affect the clock frequency balance again, negative feedback will work again until the clock frequency stabilizes.
[0050] It is found through actual testing that the stability of the oscillation frequency is below 0.5%.
[0051] Furthermore, it can be seen from the above description that the present invention does not require Figure 1 The clamping amplifier shown in the figure can reduce the actual occupied area by 50% to 75%, and the power consumption can also be reduced by more than 50%. For example, if the switch capacitor equivalent resistance module adopts MIM capacitor or MOM capacitor, it can be realized with the help of top metal or sub-top metal without occupying additional chip cost.
[0052] The specific structure of each module in the present invention is illustrated below by way of example, and those skilled in the art can flexibly make adjustments and improvements based on the following description.
[0053] In the following figures, the labels of various devices can be understood according to the common knowledge in the art. For example, "MP*" can represent a PMOS transistor, and "*" is a serial number, such as R represents a resistor, and so on.
[0054] like Figure 3As shown, in one embodiment of the present invention, the voltage and current generating module mainly includes: NMOS tube MNAT0, NMOS tube MNAT1, the source of the NMOS tube MNAT0 is grounded, the drain is connected to the gate, and the drain is also connected to one end of a plurality of (n in the figure, n=1, 2, 3...) series-connected resistors, the plurality of resistors can be consistent, and the other end of the plurality of series-connected resistors is connected to the power supply voltage, thereby realizing voltage division through the resistors, and the reference voltage V ref It is derived from a node in the resistor string, and the node can be adjusted according to actual needs. The source of the NMOS tube MNAT1 is grounded, and the gate is connected to the gate of the NMOS tube MNAT0, thereby achieving mirroring. The gate of the PMOS tube MP0 and the gate of the PMOS tube MP1 are connected to the drain of the NMOS tube MNAT1, the source of the PMOS tube MP0 and the source of the PMOS tube MP1 are connected to the power supply voltage, the drain of the PMOS tube MP0 is connected to the source of the PMOS tube MP2, the drain of the PMOS tube MP1 is connected to the source of the PMOS tube MP3, the gate of the PMOS tube MP2 and the gate of the PMOS tube MP3 are connected to the first bias voltage VCSP, and the drain of the PMOS tube MP2 is connected to the drain of the NMOS tube MNAT1, thereby drawing a reference current I at the drain of the PMOS tube MP3 ref .
[0055] It can be seen that the voltage and current generating module in the present invention does not require a clamping amplifier, and the voltage-dividing resistors of the reference voltage and reference current are only related to the resistor ratio and have nothing to do with the absolute value. Resistors with smaller widths can be used as long as the total area of the resistors meets the matching requirements.
[0056] In the present invention, the clock signal processing module generates an output clock signal with a duty cycle of 50%, and generates the two-phase non-overlapping clock switch signal according to the output clock signal.
[0057] For details, please refer to Figure 4 The clock signal processing module includes a clock duty cycle adjustment module and a non-overlapping switch signal generation module. The clock duty cycle adjustment module generates an output clock signal with a duty cycle of 50%, and the non-overlapping switch signal generation module generates the two-phase non-overlapping clock switch signals Sw0 and Sw1 according to the output clock signal.
[0058] The specific structure of the clock signal processing module including the clock duty cycle adjustment module and the non-overlapping switch signal generation module is not given as an example here, and those skilled in the art can easily provide a specific design structure under the above requirements.
[0059] Please refer to Figure 5In one embodiment of the present invention, the switch capacitor equivalent resistance module includes a first terminal A, a second terminal B, an NMOS tube MN0, an NMOS tube MN1, an NMOS tube MN2, an NMOS tube MN3, a first capacitor C0 and a second capacitor C1; the drain of the NMOS tube MN0 and the drain of the NMOS tube MN1 are connected to the first terminal A, the source of the NMOS tube MN1, the drain of the NMOS tube MN2 and one end of the first capacitor C0 are connected, the source of the NMOS tube MN1, the drain of the NMOS tube MN3 and one end of the second capacitor C1 are connected, the source of the NMOS tube MN2, the source of the NMOS tube MN3, the other end of the first capacitor C0 and the other end of the second capacitor C1 are connected to the second terminal B, the gate of the NMOS tube MN0 and the gate of the NMOS tube MN3 are connected to a one-phase clock switch signal Sw0, and the gate of the NMOS tube MN1 and the gate of the NMOS tube MN2 are connected to another phase clock switch signal Sw1.
[0060] Therefore, if the oscillation frequency is denoted as f clk , with a period of T clk , the capacitance of the first capacitor and the second capacitor are both C s , the two-phase non-overlapping clock switch signal conduction time is T clk / 2, the charge is Q, the current is I, and the reference voltage is V ref , then the equivalent impedance Z between the first terminal and the second terminal is calculated as follows:
[0061] Q=C S *V ref ,
[0062]
[0063] Next, please refer to Figure 6 In one embodiment of the present invention, the clock frequency-current conversion module includes an NMOS tube MN4, a PMOS tube MP4, a PMOS tube MP5, an amplifier AMP0 and a switch capacitor equivalent resistor R0, and the switch capacitor equivalent resistor R0 is, for example Figure 5The equivalent impedance of the switch capacitor equivalent resistance module shown in the figure is Z as mentioned above. The gate of the NMOS tube MN4 is connected to the output end of the amplifier, the source of the NMOS tube MN4 is connected to the negative input end of the amplifier AMP0 and one end of the switch capacitor equivalent resistance R0, the other end of the switch capacitor equivalent resistance R0 is grounded, the two-phase non-overlapping clock switching signals Sw0 and Sw1 are applied to the negative input end of the amplifier AMP0 through the switch capacitor equivalent resistance R0, and the positive input end of the amplifier AMP0 is connected to the reference voltage V generated by the voltage and current generating module. ref The drain of the NMOS tube MN4 is connected to the drain and gate of the PMOS tube MP4, the source of the PMOS tube MP4 is connected to the power supply voltage, the gate of the PMOS tube MP4 is also connected to the gate of the PMOS tube MP5, the source of the PMOS tube MP5 is connected to the power supply voltage, and the drain of the PMOS tube MP5 outputs the proportional current I clk ; then there is
[0064]
[0065] Next, please refer to Figure 7 In one embodiment of the present invention, the current comparison module includes NMOS tube MN5, NMOS tube MN6, NMOS tube MN7, NMOS tube MN8, NMOS tube MN9, PMOS tube MP6 and PMOS tube MP7, and the drain of the NMOS tube MN7 is connected to the bias current I bias , the source of the NMOS tube MN5 is connected to the drain of the NMOS tube MN6, the gate of the NMOS tube MN5 is connected to its own drain and the gate of the NMOS tube MN6, and a second bias voltage VSCN (taking an N-type cascode device as an example) is generated at the gate of the NMOS tube MN6, the source of the NMOS tube MN6 is grounded, and the drain of the NMOS tube MN7 is connected to the reference current I ref , the gate of the NMOS tube MN7 is connected to its own drain, the source of the NMOS tube MN7 is grounded, the gate of the NMOS tube MN8 is connected to the gate of the NMOS tube MN7, the source of the NMOS tube MN8 is grounded, the drain of the NMOS tube MN8 is connected to the source of the NMOS tube MN9, the gate of the NMOS tube MN9 is connected to the second bias voltage, the drain of the NMOS tube MN9 is connected to the drain of the PMOS tube MP6, the source of the PMOS tube MP6 is connected to the power supply voltage, the gate of the PMOS tube MP6 is connected to the gate of the PMOS tube MP7, the source of the PMOS tube MP7 is connected to the power supply voltage, the drain of the PMOS tube MP7 is connected to its own gate, and the proportional current I clkThe reference current I ref and proportional current I clk and a third bias voltage VBP (taking the P-type structure as an example, that is, the bias voltage of the P-type current source) can be drawn between the NMOS tube MN9 and the PMOS tube MP6.
[0066] Please refer to Figure 8 After obtaining the comparison result, the third bias voltage VBP can be applied to the ring oscillator, that is, in one embodiment of the present invention, the clock oscillation module includes N inverting amplifiers A1 whose input terminals and output terminals are connected in sequence, N third capacitors C3, the third capacitors C3 correspond to the inverting amplifiers A1 one by one, one end of each third capacitor C3 is connected to the output terminal of a corresponding inverting amplifier A1, the other end of each third capacitor C3 is grounded, one bias terminal of each inverting amplifier A1 is connected to the third bias voltage VBP, and the other bias terminal is connected to the fourth bias voltage VBN, the output terminal of the Nth inverting amplifier A1 is connected to an input terminal of a NAND gate G1, the other input terminal of the NAND gate of each inverting amplifier is enabled EN, and the output terminal of the NAND gate generates the initial signal CLK.
[0067] It can be seen that in this way, an oscillating clock signal can be generated, and current control or voltage control can be adopted according to requirements.
[0068] Specifically, the clock oscillation frequency can be expressed as follows:
[0069] I clk =K0*I ref , V ref =K2*R*I ref ,
[0070] I clk =2C s *f ckl *V ref ,
[0071] K0*I ref =2C s *f clk *K2*R*I ref ,
[0072]
[0073] K0, K1, and K2 are constants, which are only related to the current mirror ratio and device ratio of the circuit design, and have nothing to do with the absolute value of the device parameters. VDD is the power supply voltage, and R is the resistance value.
[0074] To summarize, in the high-precision on-chip oscillator provided by the present invention, a switched capacitor equivalent resistance module is used, and the on-chip resistance (i.e., equivalent impedance) is realized by utilizing the oscillator clock output, and then the voltage-to-current conversion is realized by utilizing the reference voltage to obtain a current proportional to the clock frequency, referred to as proportional current. The reference current is then compared with the proportional current, and the comparison result is used for negative feedback to dynamically control the oscillation frequency of the initial signal of the clock oscillation module, thereby realizing high-precision on-chip clock output.
[0075] The present invention eliminates the need for high-precision bandgap reference voltage and high-precision reference current in traditional high-precision on-chip oscillators, so there is no need for a bandgap reference source, which can reduce the silicon chip area and eliminate the large static power consumption of the traditional corresponding structure. While achieving high-precision clock signal generation, the cost and power consumption of the chip are reduced. Specifically, the design structure of the present invention saves two comparators compared to the prior art, and also saves the power consumption of the two comparators, while saving the power consumption of the complex reference system.
[0076] In addition, the present invention can realize a clock signal with a wide frequency range. The oscillator clock period realized by the present invention does not depend on the charging time of the capacitor, but only on the delay of the ring oscillator, which is very small, so a clock signal with a very wide frequency can be realized.
[0077] The present invention can also correct the clock accuracy in a variety of ways: for example, the clock frequency can be corrected by correcting the size of the voltage divider resistor, the switch capacitor, and the ratio of the mirror current.
[0078] The present invention realizes dynamic adjustment of clock frequency through real-time dynamic feedback technology, and improves the clock's ability to resist interference from external factors such as power supply voltage and temperature.
[0079] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A high-precision on-chip oscillator, characterized in that: include: A voltage and current generating module, a clock signal processing module, a switch capacitor equivalent resistance module, a clock frequency-current conversion module, a current comparison module, and a clock oscillation module; The clock signal processing module generates a two-phase non-overlapping switch signal according to the initial clock signal of the clock oscillation module, and transmits it to the switch capacitor equivalent resistance module to obtain an equivalent impedance. The equivalent impedance is combined with the reference voltage generated by the voltage and current generation module to obtain a proportional current in the clock frequency-current conversion module. The proportional current and the reference current generated by the voltage and current generation module are compared in the current comparison module. The comparison result is negatively fed back to dynamically control the oscillation frequency of the initial signal of the clock oscillation module. The switch capacitor equivalent resistance module includes a first capacitor and a second capacitor, wherein the first capacitor and the second capacitor are symmetrically arranged to realize a full-duplex switch capacitor circuit under the control of a two-phase non-overlapping clock switch signal; The oscillation frequency is f clk , with a period of T clk , the capacitance of the first capacitor and the second capacitor are both C s , the two-phase non-overlapping clock switch signal conduction time is T clk / 2, the charge is Q, the current is I, and the reference voltage is V ref , then the equivalent impedance Z of the switch capacitor equivalent resistance module is calculated as follows:
2. The high-precision on-chip oscillator according to claim 1, characterized in that: The voltage and current generating module comprises: an NMOS tube MNAT0 and an NMOS tube MNAT1, wherein the source of the NMOS tube MNAT0 is grounded, the drain is connected to the gate, and the drain is also connected to one end of a plurality of resistors connected in series, the other ends of the plurality of resistors connected in series are connected to a power supply voltage, a reference voltage is drawn from a node in the resistor string, the source of the NMOS tube MNAT1 is grounded, the gate is connected to the gate of the NMOS tube MNAT0, the gate of the PMOS tube MP0 and the gate of the PMOS tube MP1 are connected to the drain of the NMOS tube MNAT1, the source of the PMOS tube MP0 and the source of the PMOS tube MP1 are connected to the power supply voltage, the drain of the PMOS tube MP0 is connected to the source of the PMOS tube MP2, the drain of the PMOS tube MP1 is connected to the source of the PMOS tube MP3, the gate of the PMOS tube MP2 and the gate of the PMOS tube MP3 are connected to a first bias voltage, and the drain of the PMOS tube MP2 is connected to the drain of the NMOS tube MNAT1, thereby drawing a reference current at the drain of the PMOS tube MP3.
3. The high-precision on-chip oscillator according to claim 1 or 2, characterized in that: The clock signal processing module generates an output clock signal with a duty cycle of 50%, and generates the two-phase non-overlapping clock switch signal according to the output clock signal.
4. The high-precision on-chip oscillator according to claim 3, characterized in that: The clock signal processing module includes a clock duty cycle adjustment module and a non-overlapping switch signal generation module. The clock duty cycle adjustment module generates an output clock signal with a duty cycle of 50%, and the non-overlapping switch signal generation module generates the two-phase non-overlapping clock switch signal according to the output clock signal.
5. The high-precision on-chip oscillator according to claim 1, characterized in that: The switch capacitor equivalent resistance module includes a first terminal, a second terminal, an NMOS tube MN0, an NMOS tube MN1, an NMOS tube MN2, an NMOS tube MN3, a first capacitor and a second capacitor; the drain of the NMOS tube MN0 and the drain of the NMOS tube MN1 are connected to the first terminal, the source of the NMOS tube MN0, the drain of the NMOS tube MN2 and one end of the first capacitor are connected, the source of the NMOS tube MN1, the drain of the NMOS tube MN3 and one end of the second capacitor are connected, the source of the NMOS tube MN2, the source of the NMOS tube MN3, the other end of the first capacitor and the other end of the second capacitor are connected to the second terminal, the gate of the NMOS tube MN0 and the gate of the NMOS tube MN3 are connected to a one-phase clock switch signal, and the gate of the NMOS tube MN1 and the gate of the NMOS tube MN2 are connected to another phase clock switch signal.
6. The high-precision on-chip oscillator according to claim 1, characterized in that: The clock frequency-current conversion module includes an NMOS tube MN4, a PMOS tube MP4, a PMOS tube MP5, an amplifier and a switch capacitor equivalent resistor. The gate of the NMOS tube MN4 is connected to the output end of the amplifier, the source of the NMOS tube MN4 is connected to the negative input end of the amplifier and one end of the switch capacitor equivalent resistor, the other end of the switch capacitor equivalent resistor is grounded, the two-phase non-overlapping clock switch signal is applied to the negative input end of the amplifier through the switch capacitor equivalent resistor, the positive input end of the amplifier is connected to the reference voltage Vref generated by the voltage and current generating module, the drain of the NMOS tube MN4 is connected to the drain and gate of the PMOS tube MP4, the source of the PMOS tube MP4 is connected to the power supply voltage, the gate of the PMOS tube MP4 is also connected to the gate of the PMOS tube MP5, the source of the PMOS tube MP5 is connected to the power supply voltage, and the source of the PMOS tube MP5 outputs the proportional current; then Among them I clk is the proportional current.
7. The high-precision on-chip oscillator according to claim 6, characterized in that: The current comparison module includes NMOS tube MN5, NMOS tube MN6, NMOS tube MN7, NMOS tube MN8, NMOS tube MN9, PMOS tube MP6 and PMOS tube MP7, the drain of the NMOS tube MN7 is connected to the bias current, the source of the NMOS tube MN5 is connected to the drain of the NMOS tube MN6, the gate of the NMOS tube MN5 is connected to its own drain and the gate of the NMOS tube MN6, and a second bias voltage of the gate of the NMOS tube MN6 is generated, the source of the NMOS tube MN6 is grounded, the drain of the NMOS tube MN7 is connected to the reference current, the gate of the NMOS tube MN7 is connected to its own drain, the source of the NMOS tube MN7 is grounded, and the gate of the NMOS tube MN8 is connected to the NMOS The gate of the NMOS tube MN7 is connected to the gate of the NMOS tube MN8, the source of the NMOS tube MN8 is grounded, the drain of the NMOS tube MN8 is connected to the source of the NMOS tube MN9, the gate of the NMOS tube MN9 is connected to the second bias voltage, the drain of the NMOS tube MN9 is connected to the drain of the PMOS tube MP6, the source of the PMOS tube MP6 is connected to the power supply voltage, the gate of the PMOS tube MP6 is connected to the gate of the PMOS tube MP7, the source of the PMOS tube MP7 is connected to the power supply voltage, the drain of the PMOS tube MP7 is connected to its own gate and grounded, and the proportional current is connected to the drain of the PMOS tube MP7, thereby realizing the comparison between the reference current and the proportional current, and leading out the third bias voltage between the NMOS tube MN9 and the PMOS tube MP6.
8. The high-precision on-chip oscillator according to claim 7, characterized in that: The clock oscillation module includes N inverting amplifiers whose input terminals and output terminals are connected in sequence, and N third capacitors, wherein the third capacitors correspond to the inverting amplifiers one by one. One end of each third capacitor is connected to the output end of a corresponding inverting amplifier, and the other end of each third capacitor is grounded. The output end of the Nth inverting amplifier is connected to an input end of a NAND gate, the other input end of the NAND gate is enabled, and the output end of the NAND gate generates the initial signal. A bias end of each of the inverting amplifiers is connected to a third bias voltage, and the other bias end is connected to a fourth bias voltage.
9. The high-precision on-chip oscillator according to claim 8, characterized in that: I clk =K0*I ref , V ref =K2*R*I ref ,I clk =2C s *f ckl *V ref , K0*I ref =2C s *f clk *K2*R*I ref , Where K0, K1, K2 are constants, VDD is the power supply voltage, and R is the resistance.
