Oscillator frequency setting circuit using external resistor or same-frequency external clock
By designing an oscillator frequency setting circuit that utilizes external resistors or homogeneous external clocks, the problem of insufficient frequency setting flexibility and synchronization in automotive applications is solved, and the flexible frequency setting and EMI performance improvement is achieved. A same frequency signal is provided for ramp compensation.
Patent Information
- Application Number
- CN202411021609.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In automotive applications, existing DC to DC chips are difficult to flexibly set the switching frequency of multiple chips, and cannot synchronize the externally given switching frequency, affecting EMI performance.
An oscillator frequency setting circuit is designed, using external resistors or a homofrequency external clock, and the on-state of the switching device is controlled through a clock detector to achieve flexible setting and synchronization of the oscillator frequency, including an external resistor unit and an external clock unit. Frequency locking is achieved using Schmitt trigger and frequency phase detector.
It realizes the flexibly setting the oscillator frequency according to the external resistor or external clock to meet different application needs, and generates a ramp signal of the same frequency when synchronizing the external clock. It is used for ramp compensation in peak current mode, improving EMI performance.
Smart Images

Figure CN119010891A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit structures, in particular to the technical field of oscillator circuit structures, and specifically refers to an oscillator frequency setting circuit using an external resistor or an external clock of the same frequency. Background Art
[0002] Currently, DC-DC chips can only set the switching frequency based on external resistors. However, in the current application of DC-DC chips, especially in the automotive application field, users often want multiple chips to work at the set frequency to improve EMI performance. Therefore, it is particularly important for DC-DC chips to be able to synchronize external clocks.
[0003] Therefore, how to provide a frequency setting circuit that can flexibly set different switching frequencies according to external resistances and conveniently synchronize with externally given switching frequencies to meet different application requirements has become an urgent problem to be solved in the field. Summary of the invention
[0004] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide an oscillator frequency setting circuit which can set the frequency by resistors and synchronize with an external clock.
[0005] In order to achieve the above-mentioned purpose, the oscillator frequency setting circuit using an external resistor or an external clock of the same frequency of the present invention has the following structure:
[0006] It includes:
[0007] The external resistor unit has an input terminal connected to a first reference voltage V REF1 , whose output end is connected to the input end of the oscillator control circuit and the first capacitor C1 through the first switch device S1;
[0008] An external clock unit, whose input end is connected to an external clock signal CLK, and whose output end is connected to the input end of the oscillator control circuit and the first capacitor C1 through a second switch device S2;
[0009] A clock detector is used to generate a corresponding frequency synchronization mode signal SYNC_MODE according to whether the input end of the clock detector is connected to the external clock signal CLK, and the frequency synchronization mode signal SYNC_MODE is connected to the second switch device S2. The frequency synchronization mode signal SYNC_MODE is also connected to the first switch device S1 through an inverter INV; control one of the first switch device S1 and the second switch device S2 to be turned on and the other to be turned off; when the first switch device S1 is turned on, the oscillator frequency is set by the external resistance unit; when the second switch device S2 is turned on, the oscillator frequency is set by the external clock unit.
[0010] In the oscillator frequency setting circuit using an external resistor or a same-frequency external clock, the clock detector includes a third NMOS transistor MN3, the gate end of the third NMOS transistor MN3 is connected to the external clock signal CLK, the source end of the third NMOS transistor MN3 is connected to the power supply VDD through the first resistor R1, and is also connected to the input end of the Schmitt trigger SCHMIT through the second resistor R2; the input end of the Schmitt trigger SCHMIT is also connected to one end of the third capacitor C3; the drain end of the third NMOS transistor MN3 and the other end of the third capacitor C3 are both grounded; the output end of the Schmitt trigger SCHMIT provides the same-frequency mode signal SYNC_MODE;
[0011] When the external clock signal CLK is not connected, the signal received by the gate end of the third NMOS transistor MN3 is low, so that the synchronous mode signal SYNC_MODE output by the Schmitt trigger SCHMIT is at a low level, the second switch device S2 is controlled to be turned off, and the first switch device S1 is turned on, so that the oscillator frequency setting circuit works in the external resistor setting frequency mode;
[0012] When the external clock signal CLK is connected, the signal received by the gate end of the third NMOS tube MN3 is high, so that the synchronous mode signal SYNC_MODE output by the Schmitt trigger SCHMIT is high, the second switch device S2 is controlled to be turned on, and the first switch device S1 is turned off, so that the oscillator frequency setting circuit works in the synchronous external clock mode.
[0013] In the oscillator frequency setting circuit using an external resistor or an external clock of the same frequency, the external clock signal CLK is sequentially connected to the fifth inverter INV5 through the first inverter INV1, the second inverter INV2, the third inverter INV3 and the NAND gate INV4, the other input end of the NAND gate INV4 is directly connected to the external clock signal CLK, and the output end of the first inverter INV1 is also grounded through the second capacitor C2;
[0014] When the external clock signal CLK is connected, the output end of the fifth inverter INV5 continuously outputs a high pulse signal H_PULSE to the gate end of the third NMOS transistor MN3.
[0015] In the oscillator frequency setting circuit using an external resistor or an external clock of the same frequency, the external clock unit includes a frequency detector and a voltage-controlled current source, the input end of the frequency detector is respectively connected to the external clock signal CLK and the output signal OSC of the oscillator control circuit, the output end of the frequency detector provides a voltage signal VCO to the voltage-controlled current source, the output current I2 of the voltage-controlled current source is connected to one input end of the oscillator control circuit through the second switch device S2, and the other input end of the oscillator control circuit is connected to a second reference voltage V REF2 Another high pulse output signal ONE-SHOT of the oscillator control circuit is connected to the gate end of the second NMOS tube, and the source and drain ends of the second NMOS tube are respectively connected to the two ends of the first capacitor C1;
[0016] The phase frequency detector, the voltage-controlled current source and the oscillator control circuit form a phase-locked loop to achieve frequency locking with the external clock signal CLK.
[0017] In the oscillator frequency setting circuit using an external resistor or an external clock with the same frequency, the external resistor unit includes an external resistor R EXT and an operational amplifier AMP, wherein the positive input terminal of the operational amplifier AMP is connected to the first reference voltage V REF1 The negative input terminal of the operational amplifier AMP is connected to the drain terminal of the first NMOS tube MN1 and the external resistor R EXT One end of the external resistor R EXT The other end of the operational amplifier AMP is grounded; the output end of the operational amplifier AMP is connected to the gate end of the first NMOS tube MN1, the source end of the first NMOS tube MN1 is connected to the gate end and the drain end of the first PMOS tube MP1, the gate end of the first PMOS tube MP1 is connected to the gate end of the second PMOS tube MP2, the source ends of the first PMOS tube MP1 and the second PMOS tube MP2 are both connected to the power supply VDD, and the drain end of the second PMOS tube MP2 provides an output current I1 and is connected to the input end of the oscillator control circuit and the first capacitor C1 through the first switch device S1.
[0018] The oscillator frequency setting circuit using external resistors or the same frequency external clock of the invention is adopted. Its clock detector generates a corresponding same frequency mode signal SYNC_MODE according to whether the external clock signal CLK is connected to control one of the first switch device and the second switch device to be turned on, so that the circuit switches between setting the oscillator frequency using an external resistor unit and setting the oscillator frequency using an external clock unit. Therefore, different switching frequencies can be flexibly set according to the external resistor, and the switching frequency given externally can be conveniently synchronized, so as to meet the needs of application diversity. In addition, while synchronizing the external clock, a ramp signal with the same frequency as the external clock is generated internally. The peak value of the ramp signal is fixed, and the slope increases with the increase of frequency. Therefore, it can also be used as a slope compensation for a peak current mode DC converter. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a structural block diagram of an oscillator frequency setting circuit using an external resistor or an external clock of the same frequency according to the present invention;
[0020] Figure 2 The schematic diagram of the circuit structure of the clock detector in the oscillator frequency setting circuit of the present invention is shown in FIG. DETAILED DESCRIPTION
[0021] In order to more clearly understand the technical content of the present invention, the following embodiments are given in detail.
[0022] See also Figure 1 As shown, it is a structural block diagram of the oscillator frequency setting circuit using an external resistor or an external clock of the same frequency according to the present invention.
[0023] In one embodiment, the oscillator frequency setting circuit includes:
[0024] The external resistor unit has an input terminal connected to a first reference voltage V REF1 , whose output end is connected to the input end of the oscillator control circuit and the first capacitor C1 through the first switch device S1;
[0025] An external clock unit, whose input end is connected to an external clock signal CLK, and whose output end is connected to the input end of the oscillator control circuit and the first capacitor C1 through a second switch device S2;
[0026] A clock detector is used to generate a corresponding frequency synchronization mode signal SYNC_MODE according to whether the input end of the clock detector is connected to the external clock signal CLK, and the frequency synchronization mode signal SYNC_MODE is connected to the second switch device S2. The frequency synchronization mode signal SYNC_MODE is also connected to the first switch device S1 through an inverter INV; control one of the first switch device S1 and the second switch device S2 to be turned on and the other to be turned off; when the first switch device S1 is turned on, the oscillator frequency is set by the external resistance unit; when the second switch device S2 is turned on, the oscillator frequency is set by the external clock unit.
[0027] In a preferred embodiment, Figure 2 As shown, the clock detector includes a third NMOS transistor MN3, the gate end of the third NMOS transistor MN3 is connected to the external clock signal CLK, the source end of the third NMOS transistor MN3 is connected to the power supply VDD through the first resistor R1, and is also connected to the input end of the Schmitt trigger SCHMIT through the second resistor R2; the input end of the Schmitt trigger SCHMIT is also connected to one end of the third capacitor C3; the drain end of the third NMOS transistor MN3 and the other end of the third capacitor C3 are both grounded; the output end of the Schmitt trigger SCHMIT provides the same frequency mode signal SYNC_MODE;
[0028] When the external clock signal CLK is not connected, the signal received by the gate end of the third NMOS transistor MN3 is low, so that the synchronous mode signal SYNC_MODE output by the Schmitt trigger SCHMIT is at a low level, the second switch device S2 is controlled to be turned off, and the first switch device S1 is turned on, so that the oscillator frequency setting circuit works in the external resistor setting frequency mode;
[0029] When the external clock signal CLK is connected, the signal received by the gate end of the third NMOS tube MN3 is high, so that the synchronous mode signal SYNC_MODE output by the Schmitt trigger SCHMIT is high, the second switch device S2 is controlled to be turned on, and the first switch device S1 is turned off, so that the oscillator frequency setting circuit works in the synchronous external clock mode.
[0030] In a further preferred embodiment, Figure 2As shown, the external clock signal CLK is sequentially connected to the fifth inverter INV5 through the first inverter INV1, the second inverter INV2, the third inverter INV3 and the NAND gate INV4, the other input end of the NAND gate INV4 is directly connected to the external clock signal CLK, and the output end of the first inverter INV1 is also grounded through the second capacitor C2; when the external clock signal CLK is connected, the output end of the fifth inverter INV5 continuously outputs a high pulse signal H_PULSE to the gate end of the third NMOS tube MN3.
[0031] In another preferred embodiment, Figure 1 As shown, the external clock unit includes a phase frequency detector and a voltage-controlled current source. The input end of the phase frequency detector is respectively connected to the external clock signal CLK and the output signal OSC of the oscillator control circuit. The output end of the phase frequency detector provides a voltage signal VCO to the voltage-controlled current source. The output current I2 of the voltage-controlled current source is connected to one input end of the oscillator control circuit through the second switch device S2. The other input end of the oscillator control circuit is connected to a second reference voltage V REF2 Another high pulse output signal ONE-SHOT of the oscillator control circuit is connected to the gate end of the second NMOS tube, and the source and drain ends of the second NMOS tube are respectively connected to the two ends of the first capacitor C1;
[0032] The phase frequency detector, the voltage-controlled current source and the oscillator control circuit form a phase-locked loop to achieve frequency locking with the external clock signal CLK.
[0033] In a more preferred embodiment, the external resistor unit includes an external resistor R EXT and an operational amplifier AMP, wherein the positive input terminal of the operational amplifier AMP is connected to the first reference voltage V REF1 The negative input terminal of the operational amplifier AMP is connected to the drain terminal of the first NMOS tube MN1 and the external resistor R EXT One end of the external resistor R EXT The other end of the operational amplifier AMP is grounded; the output end of the operational amplifier AMP is connected to the gate end of the first NMOS tube MN1, the source end of the first NMOS tube MN1 is connected to the gate end and the drain end of the first PMOS tube MP1, the gate end of the first PMOS tube MP1 is connected to the gate end of the second PMOS tube MP2, the source ends of the first PMOS tube MP1 and the second PMOS tube MP2 are both connected to the power supply VDD, and the drain end of the second PMOS tube MP2 provides an output current I1 and is connected to the input end of the oscillator control circuit and the first capacitor C1 through the first switch device S1.
[0034] In the practical application of the present invention, Figure 1 As shown, R EXT is an external resistor used to set the oscillator's charging current value for capacitor C1, which is:
[0035]
[0036] in Figure 1 The clock detector is Figure 2 shown.
[0037] When there is no external clock signal, the gate voltage clock of MN3 is low. Figure 2 The upper plate of capacitor C3 in the circuit is charged to VDD, and the output SYNC_MODE signal of Schmitt trigger SCHMIT is low. When SYNC_MODE is low, Figure 1 S2 is turned off and S1 is turned on. The oscillator works in the mode where the frequency is set by external resistors.
[0038] In the external resistor frequency setting mode, the current I1 charges the capacitor C1. When the voltage on the capacitor plate reaches the reference voltage V REF2 When the charging stops, the charging time can be calculated as:
[0039]
[0040] When the voltage on the upper plate of capacitor C1 reaches V REF2 When , a ONE-SHOT high pulse is generated, pulling the upper plate voltage of capacitor C1 to 0.
[0041] The duration of the high pulse is t1, so the period T of the oscillator is:
[0042]
[0043] When the external clock CLK is continuously input, Figure 2 In the process, INV5 will have a continuous high pulse signal output. After multiple high pulses, Figure 2 The upper plate of C3 in the circuit is pulled low. This makes the SCHMIT output SYNC_MODE high. When SYNC_MODE is high, Figure 1 S2 is turned on and S1 is turned off. The circuit works in the synchronous external clock mode.
[0044] Figure 1The OSC signal and the external clock CLK signal are input into the frequency detector. When the frequency of the OSC signal is lower than the frequency of CLK, the voltage signal VCO output by the frequency detector becomes higher, the current I2 output by the voltage-controlled current source becomes larger, and the charging speed of the capacitor C1 becomes faster, so that the frequency of the output oscillator signal OSC becomes higher. If the frequency of OSC is higher than the external clock signal OSC, the VCO voltage becomes lower, the current I2 becomes lower, and the frequency of OSC also becomes lower. Through such a negative feedback method, it is ensured that the frequency of OSC is equal to the frequency of the external clock CLK, that is, the function of synchronizing the external clock is realized. In fact, the frequency detector, the voltage-controlled current source and the oscillator control circuit form a phase-locked loop, which can lock the external clock at the same frequency.
[0045] The present invention discloses an oscillator that can set the frequency with an external resistor and synchronize with an external clock. Through an external clock detector, it can automatically identify whether an external clock is connected, and generate a corresponding same-frequency mode signal to control one of the first switch device and the second switch device to turn on. When it is detected that there is no external clock connected, it works in the mode of setting the frequency with an external resistor. When an external clock is connected, it can automatically work in the mode of synchronizing with the external clock. Therefore, the oscillator can meet the diverse requirements of applications. While synchronizing the external clock, a ramp signal with the same frequency as the external clock is generated internally. The peak value of the ramp signal is fixed, and the slope increases with the increase of frequency. Therefore, it can be used as a slope compensation for a peak current mode DC converter, and slope compensation is indispensable for a peak current mode DC converter. This is also another embodiment of the value of the invention.
[0046] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.
Claims
1. An oscillator frequency setting circuit using an external resistor or an external clock of the same frequency, characterized in that: include: The external resistor unit has an input terminal connected to a first reference voltage V REF1 , whose output end is connected to the input end of the oscillator control circuit and the first capacitor C1 through the first switch device S1; An external clock unit, whose input end is connected to an external clock signal CLK, and whose output end is connected to the input end of the oscillator control circuit and the first capacitor C1 through a second switch device S2; A clock detector is used to generate a corresponding frequency synchronization mode signal SYNC_MODE according to whether the input end of the clock detector is connected to the external clock signal CLK, and the frequency synchronization mode signal SYNC_MODE is connected to the second switch device S2. The frequency synchronization mode signal SYNC_MODE is also connected to the first switch device S1 through an inverter INV; control one of the first switch device S1 and the second switch device S2 to be turned on and the other to be turned off; when the first switch device S1 is turned on, the oscillator frequency is set by the external resistance unit; when the second switch device S2 is turned on, the oscillator frequency is set by the external clock unit.
2. The oscillator frequency setting circuit using an external resistor or an external clock of the same frequency according to claim 1, characterized in that: The clock detector includes a third NMOS transistor MN3, a gate end of the third NMOS transistor MN3 is connected to the external clock signal CLK, a source end of the third NMOS transistor MN3 is connected to the power supply VDD through a first resistor R1, and is also connected to the input end of a Schmitt trigger SCHMIT through a second resistor R2; the input end of the Schmitt trigger SCHMIT is also connected to one end of a third capacitor C3; the drain end of the third NMOS transistor MN3 and the other end of the third capacitor C3 are both grounded; the output end of the Schmitt trigger SCHMIT provides the same frequency mode signal SYNC_MODE; When the external clock signal CLK is not connected, the signal received by the gate end of the third NMOS transistor MN3 is low, so that the synchronous mode signal SYNC_MODE output by the Schmitt trigger SCHMIT is at a low level, the second switch device S2 is controlled to be turned off, and the first switch device S1 is turned on, so that the oscillator frequency setting circuit works in the external resistor setting frequency mode; When the external clock signal CLK is connected, the signal received by the gate end of the third NMOS tube MN3 is high, so that the synchronous mode signal SYNC_MODE output by the Schmitt trigger SCHMIT is high, the second switch device S2 is controlled to be turned on, and the first switch device S1 is turned off, so that the oscillator frequency setting circuit works in the synchronous external clock mode.
3. The oscillator frequency setting circuit using an external resistor or an external clock of the same frequency according to claim 2, characterized in that: The external clock signal CLK is connected to the fifth inverter INV5 in sequence through the first inverter INV1, the second inverter INV2, the third inverter INV3 and the NAND gate INV4, the other input end of the NAND gate INV4 is directly connected to the external clock signal CLK, and the output end of the first inverter INV1 is also grounded through the second capacitor C2; When the external clock signal CLK is connected, the output end of the fifth inverter INV5 continuously outputs a high pulse signal H_PULSE to the gate end of the third NMOS transistor MN3.
4. The oscillator frequency setting circuit using an external resistor or an external clock of the same frequency according to any one of claims 1 to 3, characterized in that: The external clock unit includes a phase frequency detector and a voltage-controlled current source. The input end of the phase frequency detector is respectively connected to the external clock signal CLK and the output signal OSC of the oscillator control circuit. The output end of the phase frequency detector provides a voltage signal VCO to the voltage-controlled current source. The output current I2 of the voltage-controlled current source is connected to one input end of the oscillator control circuit through the second switch device S2. The other input end of the oscillator control circuit is connected to a second reference voltage V REF2 Another high pulse output signal ONE-SHOT of the oscillator control circuit is connected to the gate end of the second NMOS tube, and the source and drain ends of the second NMOS tube are respectively connected to the two ends of the first capacitor C1; The phase frequency detector, the voltage-controlled current source and the oscillator control circuit form a phase-locked loop to achieve frequency locking with the external clock signal CLK.
5. The oscillator frequency setting circuit using an external resistor or an external clock of the same frequency according to claim 4, characterized in that: The external resistor unit includes an external resistor R EXT and an operational amplifier AMP, wherein the positive input terminal of the operational amplifier AMP is connected to the first reference voltage V REF1 The negative input terminal of the operational amplifier AMP is connected to the drain terminal of the first NMOS tube MN1 and the external resistor R EXT One end of the external resistor R EXT The other end of the operational amplifier AMP is grounded; the output end of the operational amplifier AMP is connected to the gate end of the first NMOS tube MN1, the source end of the first NMOS tube MN1 is connected to the gate end and the drain end of the first PMOS tube MP1, the gate end of the first PMOS tube MP1 is connected to the gate end of the second PMOS tube MP2, the source ends of the first PMOS tube MP1 and the second PMOS tube MP2 are both connected to the power supply VDD, and the drain end of the second PMOS tube MP2 provides an output current I1 and is connected to the input end of the oscillator control circuit and the first capacitor C1 through the first switch device S1.
Citation Information
Patent Citations
Battery protection circuit, system and method for battery standby control
CN114142577A
Switching converter and clock synchronization circuit thereof
CN114465620A
Resistor and external clock dual-mode frequency modulation oscillator circuit sharing input end
CN117081586A
Reset circuit
CN206672033U
Switching transistor driver circuit
US20070210780A1
