A clock signal generating circuit and a clock signal generating method

By using current generation circuit, voltage regulation circuit and switching control circuit in the clock signal generation circuit, combined with frequency division circuit, the problem of clock cycle extension and frequency instability of the relaxation oscillator in low power consumption mode is solved, and high accuracy is achieved , high-frequency clock signal output.

CN118157632BActive Publication Date: 2024-11-08UNISEMI POWER INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311779570.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2024-11-08
Estimated Expiration
2043-12-21

AI Technical Summary

Technical Problem

Existing comparator-based relaxation oscillators are difficult to shorten clock cycles in low power mode, and the offset voltage of the comparator will affect the accuracy of the oscillator output, resulting in frequency instability.

Method used

The clock signal generation circuit is adopted, including current generation circuit, voltage regulation circuit, oscillator and switch control circuit, and the oscillator frequency output is realized through integrator and switch control circuit, and the integrator input voltage is adjusted through the charging and discharging of the capacitor, so that it can be adjusted with the The reference voltage is equal, and the output frequency is adjusted using the first and second frequency division circuits.

Benefits of technology

The stable high-frequency clock signal output is realized in the low-power mode, which reduces the sensitivity of frequency to voltage, improves the accuracy of the clock signal, and maintains the stability of the output frequency when the temperature changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118157632B_ABST
    Figure CN118157632B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a clock signal generating circuit and a clock signal generating method, wherein the circuit includes a current generating circuit, a voltage regulating circuit, an oscillator and a switch control circuit; the voltage regulating circuit includes an integrator, a first switch, a second switch, a third switch and a capacitor; the clock signal is output through the second output terminal of the oscillator; the switch control circuit is respectively connected to the first switch, the second switch and the third switch, and the first switch, the second switch and the third switch are controlled to be turned on or off through the switch control circuit, so that the current generated by the current generating circuit is charged to the capacitor, and then discharged to the integrator through the capacitor so that the input voltage of the first input terminal of the integrator is equal to the reference voltage of the second input terminal of the integrator; the present application utilizes the integrator to realize the frequency output of the oscillation circuit through loop modulation of the switch control circuit, and at the same time realizes the clamping of the integrator input voltage through the charging and discharging of the capacitor, and adjusts the output frequency of the oscillation circuit through the first frequency dividing circuit and the second frequency dividing circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the technical field of oscillation circuits, and in particular, relate to a clock signal generating circuit and a clock signal generating method. Background Art

[0002] With the development of industrial and automotive electronics, the systems on chips have put forward higher and higher requirements on the clocks they use. Figure 1 As shown, the relaxation oscillation circuit based on comparator A in the prior art generates a clock signal, and its working principle is: when the circuit is in phase 1, the capacitor C1 is charged by the current Icharge, and when the voltage of the upper plate of the capacitor reaches vrefh, the comparator flips, and the control signals phase1 and phase2 are switched through the control logic B of the subsequent stage, so that the circuit enters phase 2; when the circuit is in phase 2, the capacitor C1 is discharged by the current Idischarge, and when the voltage of the upper plate of the capacitor is lower than vrefl, the comparator flips, and the control signals phase1 and phase2 are switched through the control logic B of the subsequent stage, so that the circuit returns to phase 1; so far, a cycle T is completed, wherein the control signals phase1 and phase2 are both clock signals with a period of T. In this way, the circuit is able to generate a stable clock signal by repeating the cycle. Ideally, its clock period is T = (vrefh-vrefl)*C1 / Icharge+(vrefh-vrefl)*C1 / Idischarge.

[0003] There are two main disadvantages for the relaxation oscillator based on comparator: First, the period T of the relaxation oscillator is not only determined by vrefh, vrefl, C1, Icharge, and Idischarge, but also, from the perspective of actual engineering implementation, the comparator's own flip delay and the delay of the subsequent control logic need to be considered. If the clock period is to be shortened, it is not possible in low-power mode. Second, the comparator itself has an offset voltage voffset, which will cause the comparator to reverse only when the voltage difference at the differential input of the comparator is greater than voffset. This part of the error will be converted into the output frequency of the oscillator, and voffset will change with temperature, which will affect the accuracy of the oscillator output. Summary of the invention

[0004] The purpose of the present invention is to solve or alleviate the technical problems in the prior art. In a first aspect, an embodiment of the present invention provides a clock signal generating circuit, including: a current generating circuit, a voltage regulating circuit, an oscillator and a switch control circuit;

[0005] The voltage regulating circuit includes an integrator, a first switch, a second switch, a third switch and a capacitor;

[0006] The current generating circuit is connected to one end of the first switch, one end of the second switch and one end of the capacitor are respectively connected to the common end between the other end of the first switch and one end of the third switch, and the other end of the capacitor and the other end of the second switch are connected to the ground end;

[0007] The first input terminal of the integrator is connected to the other end of the third switch, the output terminal of the integrator is connected to the gate of the PMOS tube, the drain of the PMOS tube is connected to the oscillator, and the source of the PMOS tube is connected to the current source;

[0008] The first output terminal of the oscillator is connected to the switch control circuit so as to output the switch control circuit input signal, and the clock signal is output through the second output terminal of the oscillator;

[0009] The switch control circuit is connected to the first switch, the second switch and the third switch respectively, and the switch control circuit controls the on or off of the first switch, the second switch and the third switch, so that the input voltage of the first input terminal of the integrator is equal to the reference voltage of the second input terminal of the integrator after the current generated by the current generating circuit charges the capacitor and discharges the integrator through the capacitor.

[0010] As a preferred embodiment of the present application, the circuit generation circuit includes an operational amplifier, an NMOS tube, a first resistor and a current mirror;

[0011] The first input terminal of the operational amplifier is connected to the output terminal of the negative temperature coefficient voltage generating circuit, and the negative temperature coefficient voltage is generated as the input negative temperature coefficient voltage to the operational amplifier. The second input terminal of the operational amplifier is connected to the source of the NMOS tube and the common terminal between the first resistor, the output terminal of the operational amplifier is connected to the gate of the NMOS tube, and the drain of the NMOS tube is connected to the current mirror, and the current is output through the current mirror.

[0012] As a preferred embodiment of the present application, a second resistor is provided between the source of the PMOS tube and the current source.

[0013] As a preferred embodiment of the present application, the switch control circuit includes a first switch control subcircuit, a second switch control subcircuit and a third switch control subcircuit;

[0014] The first switch control subcircuit comprises a signal processing circuit and a first frequency dividing circuit which are connected to each other in sequence; the input end of the signal processing circuit is connected to the first output end of the oscillator, and the output signal of the output end of the first frequency dividing circuit is transmitted to the first switch to control the turning off and on of the first switch;

[0015] The third switch control subcircuit comprises a delay circuit and a first AND gate; the output signal of the output end of the signal processing circuit is transmitted to the input end of the delay circuit and the first input end of the first AND gate, the output signal of the output end of the delay circuit is transmitted to the second input end of the first AND gate, the output end of the first frequency dividing circuit is transmitted to the third input end of the first AND gate through the output signal of the output end of the inverting circuit, and the output signal of the output end of the first AND gate is transmitted to the third switch for controlling the turning off and on of the third switch;

[0016] The second switch control subcircuit includes a NOR gate and a second AND gate; the output signal of the output end of the signal processing circuit is transmitted to the first input end of the NOR gate, the output signal of the output end of the delay circuit is transmitted to the second input end of the NOR gate, the output signal of the output end of the NOR gate is transmitted to the first input end of the second AND gate, the output signal of the output end of the inverting circuit is transmitted to the second input end of the second AND gate, and the output signal of the output end of the second AND gate is transmitted to the second switch for controlling the turning off and on of the second switch.

[0017] As a preferred embodiment of the present application, the signal processing circuit includes a first buffer, a second frequency dividing circuit and a first level conversion circuit which are sequentially connected to each other;

[0018] The first buffer input terminal is connected to the first output terminal of the oscillator, and the first level conversion circuit output terminal is connected to the first frequency division circuit input terminal.

[0019] As a preferred embodiment of the present application, the first buffer and the second frequency dividing circuit are also connected to the drain of the NMOS tube;

[0020] The first level conversion circuit, the first frequency division circuit, the inverting circuit, the delay circuit, the AND gate, the NOR gate and the AND gate are also connected to the second buffer.

[0021] As a preferred embodiment of the present application, a second level conversion circuit is provided at the second output end of the oscillator.

[0022] Compared with the prior art, the embodiment of the present application provides a clock signal generating circuit, including a current generating circuit, a voltage regulating circuit, an oscillator and a switch control circuit; the voltage regulating circuit includes an integrator, a first switch, a second switch, a third switch and a capacitor; the clock signal is output through the second output terminal of the oscillator; the switch control circuit is respectively connected to the first switch, the second switch and the third switch, and the first switch, the second switch and the third switch are controlled to be turned on or off through the switch control circuit, so that the current generated by the current generating circuit is charged to the capacitor, and then discharged to the integrator through the capacitor so that the input voltage of the first input terminal of the integrator is equal to the reference voltage of the second input terminal of the integrator; the present application uses the integrator to realize the frequency output of the oscillator through the loop modulation of the switch control circuit, and at the same time realizes the clamping of the integrator input voltage through the charging and discharging of the capacitor, and adjusts the output frequency of the oscillator through the first frequency dividing circuit and the second frequency dividing circuit.

[0023] In a second aspect, an embodiment of the present application further provides a clock signal generating method, which is implemented by the clock signal generating circuit described in the first aspect, and the method includes:

[0024] obtaining a current output by a current generating circuit;

[0025] The first switch is controlled to be turned on by the first switch control subcircuit, the second switch is controlled to be turned off by the second switch control subcircuit, and the third switch is controlled to be turned off by the third switch control subcircuit, and the capacitor is charged;

[0026] The first switch is turned off by the first switch control subcircuit, the second switch is turned off by the second switch control subcircuit, and the third switch is turned on by the third switch control subcircuit, and the capacitor discharges the integrator to achieve equal voltages at the first input terminal and the second input terminal of the integrator;

[0027] After the voltage is output by the integrator, the power supply voltage of the oscillator is then adjusted through the PMOS tube;

[0028] The oscillator is controlled by the adjustment voltage to output a clock signal.

[0029] As a preferred embodiment of the present application, the method further includes:

[0030] The first switch is turned off by the first switch control subcircuit, the second switch is turned on by the second switch control subcircuit, and the third switch is turned off by the third switch control subcircuit, and the charge on the capacitor is cleared.

[0031] Compared with the prior art, the beneficial effects of a clock signal generating method provided in the second aspect are the same as those of the solution provided in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. Some specific embodiments of the present application will be described in detail in an illustrative and non-restrictive manner with reference to the drawings. The same reference numerals in the drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the drawings:

[0033] Figure 1 It is a schematic diagram of the structure of a clock signal generating circuit provided by the prior art;

[0034] Figure 2 is a schematic diagram of the structure of a clock signal generating circuit provided in an embodiment of the present application;

[0035] Figure 3 is a control signal waveform diagram generated by loop modulation provided in an embodiment of the present application;

[0036] Figure 4 This is a power-on waveform diagram after enabling provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.

[0038] like Figure 2 As shown, an embodiment of the present application provides a clock signal generating circuit, including: a current generating circuit, a voltage regulating circuit, an oscillator 12 and a switch control circuit;

[0039] The voltage regulating circuit includes an integrator 08, a first switch 05, a second switch 06, a third switch 07 and a capacitor 04;

[0040] The current generating circuit is connected to one end of the first switch 05, one end of the second switch 06 and one end of the capacitor 04 are respectively connected to the common end between the other end of the first switch 05 and one end of the third switch 07, and the other end of the capacitor 04 and the other end of the second switch 06 are connected to the ground end;

[0041] The first input terminal of the integrator 08 is connected to the other end of the third switch 07, the output terminal of the integrator 08 is connected to the gate of the PMOS tube 11, the drain of the PMOS tube 11 is connected to the input terminal of the oscillator 12, and the source of the PMOS tube 11 is connected to the current source 10;

[0042] The first output terminal of the oscillator 12 is connected to the switch control circuit so as to output the switch control circuit input signal, and the clock signal is output through the second output terminal of the oscillator 12;

[0043] The switch control circuit is connected to the first switch 05, the second switch 06 and the third switch 07 respectively, and the switch control circuit controls the on or off of the first switch 05, the second switch 06 and the third switch 07, so that the input voltage of the first input terminal of the integrator 08 is equal to the reference voltage of the second input terminal of the integrator 08 after the current generated by the current generating circuit charges the capacitor 04 and discharges the integrator 08 through the capacitor 04.

[0044] In the embodiment of the present application, the current generating circuit is mainly used to generate current for the voltage regulating circuit. The current generating circuit is equivalent to the current source of the voltage regulating circuit. The current is generated by the current generating circuit and then input into the voltage regulating circuit.

[0045] Specifically, the capacitor 04 is charged by controlling the first switch 05 to be turned on by the switch control circuit, the second switch 06 to be turned off by the switch control circuit, and the third switch 07 to be turned off by the switch control circuit; then, the first switch 05 is turned off by the switch control circuit, the second switch 06 is turned off by the switch control circuit, and the third switch 07 is turned on by the switch control circuit, and the capacitor 04 discharges the integrator 08 to achieve the voltage of the first input terminal and the second input terminal of the integrator 08 to be equal; the first switch 05 is turned off by the switch control circuit, the second switch 06 is turned on by the switch control circuit, and the third switch 07 is turned off by the switch control circuit, and the charge on the capacitor 04 is reset to zero and the charging and discharging process of the capacitor 04 in the next cycle is performed. The present application uses the integrator 08 to realize the frequency output of the oscillator 12 through the loop modulation of the switch control circuit, and at the same time realizes the method of equalizing the voltage of the second input terminal of the integrator 08 with the first input terminal of the integrator 08 through the charging and discharging of the capacitor 04. In the embodiment of the present application, the first input terminal of the integrator 08 is a positive input terminal, and the second input terminal of the integrator 08 is a negative input terminal.

[0046] In the embodiment of the present application, the first input terminal of the integrator 08 inputs a reference voltage of 1V, the second input terminal of the integrator 08 receives a regulated voltage output by a voltage regulating circuit, and the integrator 08 is also connected to the second buffer circuit 22, which can mainly enable the electronic device to operate under low voltage. The PMOS tube 11 is mainly used to output a controlled voltage for the oscillator 12, that is, the output voltage of the integrator 08 can be adjusted.

[0047] In the embodiment of the present application, a second resistor 02 is provided between the source of the PMOS tube 11 and the current source 10 , and the second resistor 02 is mainly used to make the output voltage change of the integrator 08 more linear.

[0048] In a preferred embodiment of the present application, the circuit generation circuit includes an operational amplifier 01, an NMOS tube 03, a first resistor 09 and a current mirror;

[0049] The first input terminal of the operational amplifier 01 is connected to the output terminal of the negative temperature coefficient voltage generating circuit, and the negative temperature coefficient voltage is input to the operational amplifier 01 through the negative temperature coefficient voltage generating circuit. The second input terminal of the operational amplifier 01 is connected to the source of the NMOS tube 03 and the common terminal between the first resistor 09. The output terminal of the operational amplifier 01 is connected to the gate of the NMOS tube 03. The drain of the NMOS tube 03 is connected to the current mirror, and the current is output through the current mirror.

[0050] Specifically, the negative temperature coefficient voltage is mainly obtained by the difference between the reference voltage on the chip and the positive temperature coefficient voltage of the chip, so that the first input terminal of the operational amplifier 01 can have a fixed negative temperature coefficient voltage. The voltage of the first input terminal and the second input terminal of the operational amplifier 01 is the same, so the voltage of the circuit where the second resistor 02 is located is also the input voltage of the first input terminal of the operational amplifier 01. The current is obtained according to Ohm's law through the input voltage of the first input terminal of the operational amplifier 01 and the second resistor 02. After the current is mirrored through a current mirror, the charging current of the capacitor 04 is obtained. The first output terminal of the operational amplifier 01 is the positive input terminal, and the second input terminal of the operational amplifier 01 is the negative input terminal.

[0051] The switch control circuit includes a first switch control subcircuit, a second switch control subcircuit and a third switch control subcircuit;

[0052] The first switch control subcircuit comprises a signal processing circuit and a first frequency dividing circuit 16 which are connected to each other in sequence; the input end of the signal processing circuit is connected to the first output end of the oscillator 12, and the output signal of the output end of the first frequency dividing circuit 16 is transmitted to the first switch 05 for controlling the turning on and off of the first switch 05;

[0053] The third switch control subcircuit includes a delay circuit 18 and a first AND gate 19; the output signal of the output end of the signal processing circuit is transmitted to the input end of the delay circuit 18 and the first input end of the first AND gate 19, the output signal of the output end of the delay circuit 18 is transmitted to the second input end of the AND gate, the output signal of the output end of the inverting circuit 17 is transmitted to the third input end of the first AND gate 19, and the output signal of the output end of the first AND gate 19 is transmitted to the second switch 06 for controlling the switching on and off of the third switch 07;

[0054] The second switch control subcircuit includes a NOR gate 20 and a second AND gate 21; the output signal of the output end of the signal processing circuit is transmitted to the first input end of the second NOR gate, the output signal of the output end of the delay circuit 18 is transmitted to the second input end of the NOR gate 20, the output signal of the output end of the NOR gate 20 is transmitted to the first input end of the second AND gate 21, the output signal of the output end of the first frequency dividing circuit 16 is transmitted to the second input end of the second AND gate 21 through the output signal of the output end of the inverting circuit 17, and the output signal of the output end of the second AND gate 21 is transmitted to the second switch 06 for controlling the turning off and on of the second switch 06.

[0055] As a preferred embodiment of the present application, the signal processing circuit includes a first buffer 13, a second frequency dividing circuit 14 and a first level conversion circuit 15 which are sequentially connected to each other;

[0056] The input end of the first buffer 13 is connected to the first output end of the oscillator 12 , and the output end of the first level conversion circuit 15 is connected to the input end of the first frequency division circuit 16 .

[0057] In the embodiment of the present application, the signal processing circuit in the first switch control subcircuit first shapes and transmits the signal output from the first output end of the oscillator 12 through the first buffer 13, and then performs frequency division processing through the second frequency division circuit 14. The main function of the second frequency division circuit 14 is to make the output signal frequency an integral fraction of the input signal frequency. For any N-times frequency divider, when the input signal remains unchanged, the output signal can have a phase of 2pi / N. In the embodiment of the present application, the second frequency division circuit 14 is mainly used to perform frequency division processing on the signal output through the first buffer 13. The signal processed by the second frequency division circuit 14 is then converted into a digital signal through the first level conversion circuit 15. This digital signal is divided again by the first frequency division circuit 16 and output to the inverting circuit 17 for phase inversion processing of the signal. The reversely processed digital signal is the control signal of the first switch 05, thereby controlling the turning off and on of the first switch 05. In addition, it should be noted that the first buffer 13 and the second frequency division circuit 14 are also connected to the drain of the NMOS tube 03, which can play a role in power supply.

[0058] In the third switch control subcircuit, the signal output by the first level conversion circuit 15 is first received through the delay circuit 18, and then the signal is delayed and output to the first AND gate 19. The first AND gate 19 determines whether the signals input to the first input terminal, the second input terminal and the third input terminal are high or low levels, and then outputs the control signal of the third switch 07 through the first AND gate 19 to control the turning off and on of the third switch 07.

[0059] In the second switch control subcircuit, the output signal is determined to be high or low by whether the signals at the first input terminal, the second input terminal and the third input terminal of the NOR gate are high or low levels, and then the output signal is transmitted to the second AND gate 21 through the NOR gate. The second AND gate 21 determines whether the output signal is high or low according to whether the signals at its first input terminal, the second input terminal and the second input terminal are high or low levels, and then outputs the control signal of the second switch 06 through the second AND gate 21 to control the turning off and on of the second switch 06.

[0060] In the embodiment of the present application, in order to make the entire circuit work in the low power consumption mode, the first level conversion circuit 15, the first frequency division circuit 16, the inverting circuit 17, the delay circuit 18, the first AND gate 19, the NOR gate 20 and the second AND gate 21 are also connected to the second buffer 22. Through the second buffer 22, the oscillation circuit of the embodiment of the present application can use the internal power supply, so the function of the clock signal generating circuit can be realized with lower power consumption.

[0061] As a preferred embodiment of the present application, the second output end of the oscillator circuit is provided with a second level conversion circuit 23, through which the level signal outputted from the second output end of the oscillator can be converted to output a clock signal.

[0062] In the embodiment of the present application, a negative temperature coefficient voltage vbg-vptat (vbg refers to the output voltage of a bandgap reference, a bandgap reference is a circuit that generates a zero-temperature voltage reference, and the output value generated by the bandgap reference is generally 1.2V, and vptat (ptat is proportional to absolute temperature) refers to a positive temperature coefficient voltage. The operational amplifier 01 can make the second input terminal of the operational amplifier 01 be clamped at a negative temperature coefficient voltage vbg-vptat. Then the current of the current generating circuit is I=(vbg-vptat) / R0, where R0 is the resistance value of the first resistor 09. The current I is mirrored k times by a current mirror to obtain Ichg=k*(vbg-vptat) / R0. Ichg is the current generated by the current generating circuit. The current Ichg is used to periodically charge and discharge the capacitor 04. The specific timing control logic is: the first switch 05 is turned on by controlling the output of the p1_pre signal of the first switch 05 control sub-circuit, the third switch 07 is turned off by controlling the output of the sw signal of the third switch 07 control sub-circuit, and the second switch 06 controls the sub-circuit The second switch 06 controlled by the output rst signal is turned off, and the current Ichg charges the upper plate of the capacitor 04 to the voltage vcap; the first switch 05 control sub-circuit outputs the p1_pre signal to control the first switch 05 to be turned off, and the third switch 07 control sub-circuit outputs the sw signal to control the third switch 07 to be turned on, and the second switch 06 control sub-circuit outputs the rst signal to control the second switch 06 to be turned off, and the vcap voltage is discharged to the integrator 08, and the discharge voltage is vint_n; the first switch 05 control sub-circuit outputs the p1_pre signal to control the first switch 05 to be turned off, and the third switch 07 control sub-circuit outputs the sw signal to control the third switch 07 to be turned off, and the second switch 06 control sub-circuit outputs the rst signal to control the second switch 06 to be turned on, and the charge on the capacitor 04 is discharged, and one cycle is completed.

[0063] The output end of the integrator 08 controls the gate of a PMOS tube 11 to generate the internal power supply voltage vctrl1 of the oscillator 12; the output frequency f of vco is the output frequency of the oscillator 12; the frequency is divided by the second frequency dividing circuit 14N to generate the third switch 07 control signal sw, the second switch 06 control signal rst and the first switch 05 control signal p1_pre. For example, when the vcap voltage is higher than vref_1v (the reference voltage input to the first input end of the integrator 08), vctrl1 increases, the oscillation frequency of the oscillator 12 increases, the charging time of the capacitor 04 in the next modulation cycle is shortened, and the vcap voltage decreases. After such negative feedback loop modulation, vint_n will eventually be clamped at a voltage of vref=1V.

[0064] In order to reduce the sensitivity of frequency to voltage, a second buffer 22 is added to convert the input power supply vdd_in into a 3.2V regulated power supply avdd to power the oscillation circuit.

[0065] Ichg=k*(vbg-vptat) / R0 is mainly used to compensate for the negative temperature coefficient of the second resistor 02. Secondly, the vptat voltage can be appropriately adjusted to compensate for the influence of the temperature coefficient of the leakage current of the capacitor 04 and the NMOS tube 03. Among them, the temperature coefficient of the second resistor 02 is about + / -2.5% (negative temperature coefficient); the temperature coefficient of the capacitor 04 is about -0.16%~0.39% (positive temperature coefficient), and the temperature coefficient of the leakage current of the NMOS tube 03 on the output frequency is about 0.35%.

[0066] Then the output frequency f_out of the oscillation circuit can be obtained by the following formula:

[0067] f_out=N*Ichg / C0 / Vref_1V, Ichg=k*(vbg-vptat) / R0, f_out=N*k*(vbg-vptat) / R0 / C0 / Vref_1V;

[0068] like Figure 3 As shown, y0 is the output clock signal after the second frequency division circuit 14 divides the clock signal by N; y0_d is the signal of y0 after being processed by a delay circuit; p1_pre is the signal of y0 after being divided by the first frequency division circuit 16; p1_pre_b is the signal after passing through the reverse circuit 17, and p1_pre_b is the inverted signal of p1_pre; sw is the output signal of p1_pre_b, y0 and y0_d after passing through the first AND gate 1919; rst is the output signal of y0 and y0_d after passing through the NOR gate and p1_pre_b after passing through the second AND gate. Among them, sw and rst are non-overlapping signals to ensure that the charge of the node vint_n will not be discharged through the switch controlled by the sw and rst signals.

[0069] like Figure 4As shown, when the en_osc signal turns from low level to high level, the internal second buffer 22 starts to output the internal power supply voltage avdd of 3.2V; the delay circuit is used to delay en_osc by 25us to generate the signal ena, so as to ensure that the internal power supply voltage avdd can be fully established; the delay circuit is used to delay ena by 45us to generate the signal enc, so as to ensure that the internal Ichg current and the integrator 08 can be fully established; after enc turns high, vco is enabled, the oscillator 12 starts to oscillate, and the clock signal is output. After a period of time, the output frequency remains stable, and the embodiment of the present application can achieve a high-frequency clock signal output of 40MHz. A high-precision clock signal output is achieved, that is, when the power supply voltage and temperature are changed, the oscillator circuit can still output a stable and accurate clock signal within a certain range.

[0070] The embodiment of the present application can effectively adjust the temperature coefficient of the output frequency of the clock signal generating circuit by adjusting the temperature coefficient of the Ichg current. After the clock signal generating circuit is trimmed at room temperature, the power supply voltage and temperature are changed. The output frequency of the clock signal generating circuit can be stabilized between 39.42MHz and 40.09MHz, and its accuracy is +0.225% to -1.45%; its power consumption is 162.5uA to 202.2uA; and it takes up to about 95.8us from enabling the clock signal generating circuit to completing the establishment of the clock output frequency.

[0071] In a second aspect, an embodiment of the present application further provides a clock signal generating method, which is implemented by the clock signal generating circuit according to any one of the first aspects, and the method includes:

[0072] obtaining a current output by a current generating circuit;

[0073] The first switch 05 is turned on by the first switch control subcircuit, the second switch 06 is turned off by the second switch control subcircuit, and the third switch 07 is turned off by the third switch control subcircuit, and the capacitor 04 is charged;

[0074] The first switch 05 is turned off by the first switch control subcircuit, the second switch 06 is turned off by the second switch control subcircuit, and the third switch 07 is turned on by the third switch control subcircuit, so that the capacitor 04 discharges the first input terminal of the integrator 08 to achieve equal voltages between the first input terminal and the second input terminal of the integrator 08;

[0075] After the voltage is outputted by the integrator 11, the power supply voltage of the oscillator 12 is then adjusted by the PMOS tube 11;

[0076] The oscillation circuit is controlled by the adjustment voltage to output a clock signal.

[0077] The method further comprises:

[0078] The first switch 05 is turned off by the first switch control subcircuit, the second switch 06 is turned on by the second switch control subcircuit, and the third switch 07 is turned off by the third switch control subcircuit, and the charge on the capacitor 04 is reset.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A clock signal generating circuit, characterized in that: include: Current generating circuit, voltage regulating circuit, oscillator and switch control circuit; The voltage regulating circuit includes an integrator, a first switch, a second switch, a third switch and a capacitor; The current generating circuit is connected to one end of the first switch, one end of the second switch and one end of the capacitor are respectively connected to the common end between the other end of the first switch and one end of the third switch, and the other end of the capacitor and the other end of the second switch are connected to the ground end; The first input terminal of the integrator is connected to the other end of the third switch, the output terminal of the integrator is connected to the gate of the PMOS tube, the drain of the PMOS tube is connected to the oscillator, and the source of the PMOS tube is connected to the current source; The first output terminal of the oscillator is connected to the switch control circuit so as to output the switch control circuit input signal, and the clock signal is output through the second output terminal of the oscillator; The switch control circuit is connected to the first switch, the second switch and the third switch respectively, and controls the on or off of the first switch, the second switch and the third switch through the switch control circuit, so that the input voltage of the first input terminal of the integrator is equal to the reference voltage of the second input terminal of the integrator after the current generated by the current generating circuit charges the capacitor and discharges the integrator through the capacitor; The switch control circuit includes a first switch control subcircuit, a second switch control subcircuit and a third switch control subcircuit; The first switch control subcircuit comprises a signal processing circuit and a first frequency dividing circuit which are connected to each other in sequence; the input end of the signal processing circuit is connected to the first output end of the oscillator, and the output signal of the output end of the first frequency dividing circuit is transmitted to the first switch to control the turning off and on of the first switch; The third switch control subcircuit comprises a delay circuit and a first AND gate; the output signal of the output end of the signal processing circuit is transmitted to the input end of the delay circuit and the first input end of the first AND gate, the output signal of the output end of the delay circuit is transmitted to the second input end of the first AND gate, the output end of the first frequency dividing circuit is transmitted to the third input end of the first AND gate through the output signal of the output end of the inverting circuit, and the output signal of the output end of the first AND gate is transmitted to the third switch for controlling the turning off and on of the third switch; The second switch control subcircuit includes a NOR gate and a second AND gate; the output signal of the output end of the signal processing circuit is transmitted to the first input end of the NOR gate, the output signal of the output end of the delay circuit is transmitted to the second input end of the NOR gate, the output signal of the output end of the NOR gate is transmitted to the first input end of the second AND gate, the output signal of the output end of the inverting circuit is transmitted to the second input end of the second AND gate, and the output signal of the output end of the second AND gate is transmitted to the second switch for controlling the turning off and on of the second switch.

2. A clock signal generating circuit as claimed in claim 1, characterized in that: The current generating circuit comprises an operational amplifier, an NMOS tube, a first resistor and a current mirror; The first input terminal of the operational amplifier is connected to the output terminal of the negative temperature coefficient voltage generating circuit, and the negative temperature coefficient voltage is input to the operational amplifier through the negative temperature coefficient voltage input circuit. The second input terminal of the operational amplifier is connected to the common terminal between the source of the NMOS tube and the first resistor, the output terminal of the operational amplifier is connected to the gate of the NMOS tube, and the drain of the NMOS tube is connected to the current mirror, and the current is output through the current mirror.

3. A clock signal generating circuit as claimed in claim 1, characterized in that: A second resistor is arranged between the source of the PMOS tube and the current source.

4. A clock signal generating circuit as claimed in claim 1, characterized in that: The signal processing circuit comprises a first buffer, a second frequency dividing circuit and a first level conversion circuit which are sequentially connected to each other; The first buffer input terminal is connected to the first output terminal of the oscillator, and the first level conversion circuit output terminal is connected to the first frequency division circuit input terminal.

5. A clock signal generating circuit as claimed in claim 4, characterized in that: The first buffer and the second frequency dividing circuit are also connected to the drain of the PMOS tube; The first level conversion circuit, the first frequency division circuit, the inverting circuit, the delay circuit, the first AND gate, the NOR gate and the second AND gate are also connected to the second buffer.

6. A clock signal generating circuit as claimed in claim 1, characterized in that: The second output terminal of the oscillator is provided with a second level conversion circuit.

7. A clock signal generating method, characterized in that: The method is implemented by the clock signal generating circuit according to any one of claims 1 to 6, comprising: obtaining a current output by a current generating circuit; The first switch is controlled to be turned on by the first switch control subcircuit, the second switch is controlled to be turned off by the second switch control subcircuit, and the third switch is controlled to be turned off by the third switch control subcircuit, and the capacitor is charged; The first switch is turned off by the first switch control subcircuit, the second switch is turned off by the second switch control subcircuit, and the third switch is turned on by the third switch control subcircuit, and the capacitor discharges the integrator to achieve equal voltages at the first input terminal and the second input terminal of the integrator; After the voltage is output by the integrator, the power supply voltage of the oscillator is then adjusted through the PMOS tube; The oscillator is controlled by adjusting the voltage to output the clock signal.

8. A clock signal generating method as claimed in claim 7, characterized in that: The method further comprises: The first switch is turned off by the first switch control subcircuit, the second switch is turned on by the second switch control subcircuit, and the third switch is turned off by the third switch control subcircuit, and the charge on the capacitor is cleared.

Citation Information

Patent Citations

  • Relaxation oscillator

    CN104579254A

  • Frequency-configurable oscillator circuit applied to switching power supply

    CN105634445A

  • Oscillation frequency adjustable signal generator and its method

    CN1354560A

  • Precision relaxation oscillator without comparator delay errors

    US20050237118A1