A switching power supply circuit and control method

By introducing the load voltage detection module and oscillator module into the switching power supply circuit, and using the error amplifier and level time sampling module, the problems of low noise immunity and low sampling current accuracy are solved, and accurate monitoring of the load current is achieved. and the dynamic balance of the output voltage, which enhances the circuit's anti-noise capability and accuracy.

CN114094824BActive Publication Date: 2024-08-30SHENZHEN NSIWAY TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111406603.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-08-30
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

The existing switching power supply circuit has low noise immunity and low sampling current accuracy, resulting in inaccurate calculation of the output load current.

Method used

A switching power supply circuit including a load voltage detection module, an oscillator module and a logic control module is designed. The error amplifier outputs the error voltage, generates a comparison voltage based on the error voltage, adjusts the oscillator pulse signal level, and samples through level time. The module detects the pulse signal level time in real time to achieve accurate monitoring of the load current and dynamic balance of the output voltage.

Benefits of technology

It improves the monitoring accuracy of the load current and the adjustment accuracy of the load voltage, enhances the anti-noise ability, and ensures the dynamic balance of the output voltage and load protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114094824B
    Figure CN114094824B
Patent Text Reader

Abstract

The present invention discloses a switching power supply circuit and control method, including an input power supply and a power switch and an energy storage element connected to the input power supply in sequence, and also including a load voltage detection module for collecting the load connected to the input voltage, an oscillator module for outputting a pulse signal and adjusting the level of the pulse signal, and a logic control module for controlling the opening and closing of the power switch; the output end of the load voltage detection module is connected to the input end of the oscillator module, the output end of the oscillator module is connected to the logic control module, and the oscillator module has a level time threshold; the logic control module is connected to the control end of the power switch, and when the load current is less than the reference current, the level of the pulse signal is adjusted, and when the level time of the adjusted pulse signal is greater than the level time threshold, the logic control module turns off the power switch. The present invention can more accurately monitor the load current and adjust the load voltage by adjusting the pulse signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of switching power supplies, and in particular relates to a switching power supply circuit and a control method. Background Art

[0002] In recent years, information technology has developed rapidly. With the improvement of people's living standards, portable electronic products such as Bluetooth headset charging boxes, mobile power supplies, portable lithium battery devices, etc. have been increasingly used in transportation, mobile data collection, and personal information services. The characteristics of portable electronic products require that their power supply method should be mainly miniaturized power supplies. Due to the reasons of miniaturization and lightness, the battery capacity of portable electronic products is usually relatively small. Therefore, how to more accurately detect when the battery is fully charged or discharged directly affects the user's use time of the portable device, thereby affecting the experience and the service life of the portable device.

[0003] The switching power supply circuit of the prior art generally includes an inductor, a switch, an oscillator, and a load. The oscillator can generate a pulse signal of a fixed frequency to control the switch between the switching power supply and the load to achieve a dynamic balance of the output voltage. In conventional load current detection, the oscillator frequency is usually kept unchanged, and the output load current can be inferred by detecting the peak-to-peak value of the inductor current. However, when the peak-to-peak value of the inductor current is detected to be less than the set value, the system sets the switch to be closed. Since the sampled inductor current is a high-speed and weak current signal, it is very susceptible to noise interference. Therefore, the circuit has a low noise resistance and the accuracy of the sampled current is not high. Summary of the invention

[0004] Aiming at the problem that the switching power supply circuit in the prior art has low anti-noise capability and low sampling current accuracy, resulting in inaccurate calculation of output load current, the present invention proposes a switching power supply circuit and a control method. To solve the above technical problems, the technical solutions adopted by the present invention are as follows:

[0005] In a first aspect, an embodiment of the present application provides a switching power supply circuit, including an input power supply and a power switch and an energy storage element connected to the input power supply in sequence, and also including a load voltage detection module for collecting a load connected to the input power supply, an oscillator module for outputting a pulse signal and adjusting the level of the pulse signal, and a logic control module for controlling the power switch to be turned on or off;

[0006] The output end of the load voltage detection module is connected to the input end of the oscillator module, and the output end of the oscillator module is connected to the logic control module, and the oscillator module has a level time threshold; the logic control module is connected to the control end of the power switch, when the load current is greater than the reference current, the logic control module adjusts the on-time of the power switch so that the on-time of the power switch is proportional to the change of the load current, when the load current is less than the reference current, adjusts the level of the pulse signal, when the level time of the adjusted pulse signal is greater than the level time threshold, the logic control module turns off the power switch.

[0007] In one embodiment, the load voltage detection module includes a resistor R1, a resistor R2, an error amplifier and a detection control module, one end of the resistor R1 is connected to an end of the load RL close to the power switch, the other end of the resistor R1 is connected to one end of the resistor R2 and the inverting input end of the error amplifier, and the other end of the resistor R2 and the other end of the load RL are grounded; the non-inverting input end of the error amplifier receives a reference voltage signal, and the output end of the error amplifier outputs an error voltage based on the voltage division signal on the resistor R2 and the reference voltage signal; the detection control module has an error voltage threshold, and the detection control module outputs a control level to the input end of the oscillator module based on the error voltage threshold and the error voltage. When the load current is less than the reference current, the output of the oscillator module is adjusted by changing the potential of the control level to turn off the power switch.

[0008] In one embodiment, the error amplifier includes a field effect transistor MP1, the gate of the field effect transistor MP1 receives the voltage division signal on the resistor R2, the source of the field effect transistor MP1 is connected to the input current IB and the source of the field effect transistor MP2, the drain of the field effect transistor MP1 is connected to the drain of the field effect transistor MN1, the gate of the field effect transistor MN5 of the detection control module, the gate of the field effect transistor MN2, and the gate of the field effect transistor MN1, and the gate of the field effect transistor MP2 is used to receive the reference voltage signal; the drain of the field effect transistor MN2 is connected to the field effect transistor The drain of MP2, the gate of the field effect transistor MN3, and the gate of the field effect transistor MN4 are connected, the drain of the field effect transistor MN3 is connected, and the drain of the field effect transistor MN4 is connected to the input current m*IB and the input end of the detection control module; the source of the field effect transistor MN1, the source of the field effect transistor MN2, the source of the field effect transistor MN3, and the source of the field effect transistor MN4 are all grounded, and the field effect transistors MP1 and MP2 are PMOS, and the field effect transistors MN1, MN2, MN3, and MN4 are NMOS.

[0009] In one embodiment, the detection control module includes a clamp circuit, a first input end of the clamp circuit receives an error voltage threshold, a second input end of the clamp circuit is used to receive the error voltage, a first output end of the clamp circuit is connected to the drain of the field effect transistor MP3, the gate of the field effect transistor MP3, and the gate of the field effect transistor MP4, a second output end of the clamp circuit is connected to the source of the field effect transistor MP5 and the second input end of the clamp circuit, the gate of the field effect transistor MP5 is connected to the startup circuit; the source of the field effect transistor MP3 is connected to the source of the field effect transistor MP4 The gate of the field effect transistor MN5 is connected to the drain of the field effect transistor MP1 of the error amplifier; the drain of the field effect transistor MP5, the source of the field effect transistor MN5 and the other end of the capacitor C2 are all grounded, and the field effect transistors MP5, MP3 and MP4 are PMOS, and the field effect transistor MN5 is NMOS.

[0010] In one embodiment, the clamping circuit includes a first comparator and a field effect transistor MN6, the inverting input terminal of the first comparator is connected to the drain of the field effect transistor MN4 of the error amplifier, the non-inverting input terminal of the first comparator receives the error voltage threshold, and the output terminal of the first comparator is connected to the gate of the field effect transistor MN6; the source of the field effect transistor MN6 is connected to the source of the field effect transistor MP5, the drain of the field effect transistor MN6 is connected to the drain of the field effect transistor MP3, and the field effect transistor MN6 is an NMOS.

[0011] In one embodiment, the oscillator module includes a level time sampling module and an oscillator, the input end of the oscillator is connected to the output end of the load voltage detection module, and the output end of the oscillator is connected to the input end of the level time sampling module and the logic control module; the level time sampling module has a level time threshold, when the load current is greater than the reference current, the oscillator outputs a pulse signal to the level time sampling module and the logic control module, when the load current is less than the reference current, the level of the pulse signal is adjusted, the level time sampling module samples the level time of the adjusted pulse signal, and when the level time of the adjusted pulse signal is greater than the level time threshold, the level time sampling module outputs a shutdown signal to the logic control module to turn off the power switch.

[0012] In one embodiment, the level time sampling module includes a field effect transistor MP6, the gate of the field effect transistor MP6 is connected to the gate of the field effect transistor MN6 and the output end of the oscillator, the source of the field effect transistor MP6 is connected to the input current n*IB, the drain of the field effect transistor MP6 is connected to the drain of the field effect transistor MN6, one end of the capacitor C3, and the input end of the Schmitt trigger, the source of the field effect transistor MN6 is grounded through the current source IB1, and the field effect transistor MP6 is a PMOS, and the field effect transistor MN6 is an NMOS; the output end of the Schmitt trigger is connected to the input end of the second logic circuit, the output end of the second logic circuit is connected to the logic control module, and the other end of the capacitor C3 is grounded; a voltage threshold is provided in the Schmitt trigger, and when the voltage of the capacitor C3 is greater than the voltage threshold, the second logic circuit outputs a shutdown signal.

[0013] In one of the embodiments, a voltage comparison module is provided between the logic control module and the error amplifier, and the voltage comparison module generates a comparison voltage based on the error voltage and the voltage drop of the power switch. When the load current is greater than the reference current, the logic control module adjusts the on-time of the power switch based on the comparison voltage and the pulse signal so that the on-time of the power switch is proportional to the change of the load current.

[0014] In one embodiment, the voltage comparison module includes a voltage generation module and a second comparator, the input end of the voltage generation module is connected to the output end of the error amplifier, the output end of the voltage generation module outputs a VCS voltage proportional to the error voltage to the non-inverting input end of the second comparator, the inverting input end of the second comparator receives the voltage drop of the power switch, and the output end of the second comparator outputs the comparison voltage to the logic control module.

[0015] The second aspect of the embodiment of the present application further provides a control method for a switching power supply circuit, wherein the circuit includes an input power supply and a power switch and an energy storage element connected to the input power supply in sequence, and also includes a load voltage detection module for collecting a load connected to the input power supply, an oscillator module for outputting a pulse signal and adjusting the level of the pulse signal, and a logic control module for controlling the power switch to be turned on or off; the control method includes:

[0016] Turn on the input power supply to provide input voltage to the load;

[0017] The power switch is periodically turned on and off by the pulse signal output by the oscillator module;

[0018] The load voltage detection module collects the voltage signal of the load, compares the voltage signal of the load with the reference voltage signal in the load voltage detection module, and outputs the control level according to the comparison result;

[0019] When the load current is greater than the reference current, the logic control module adjusts the on-time of the power switch so that the on-time of the power switch is proportional to the change of the load current;

[0020] When the load current is less than the reference current, the level of the pulse signal is adjusted by adjusting the potential of the control level. When the level time of the adjusted pulse signal is greater than the level time threshold in the oscillator module, the logic control module turns off the power switch.

[0021] Beneficial effects of the present invention:

[0022] The present invention utilizes an error amplifier to output an error voltage based on a voltage-dividing signal of a load and a reference voltage signal, generates a comparison voltage through a voltage comparison module based on the error voltage, generates a control level for adjusting the level of an oscillator pulse signal through a detection control module, and when the load current is greater than the reference current, the comparison voltage and the pulse signal are used to comprehensively adjust the on-time of a power switch to achieve a dynamic balance of the output voltage; when the load current is less than the reference current, the control level is used to change the level of the pulse signal, and a level time sampling module is used to detect the level time of the pulse signal in real time; when the level time of the pulse signal is greater than the level time threshold, a shutdown signal is output, and the power switch is turned off to form a protection mechanism for the load; the monitoring of the load current and the regulation of the load voltage can be achieved more accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 The figure is a structural block diagram of a peak current detection system for a switching power supply in the prior art.

[0025] Figure 2 The figure is a structural block diagram of the switching power supply circuit of the present invention.

[0026] Figure 3 This is the circuit diagram of the load voltage detection module.

[0027] Figure 4 It is the waveform diagram of control level and pulse signal.

[0028] Figure 5 This is the circuit diagram of the level time sampling module.

[0029] 1 is the input power supply, 2 is the power switch, 3 is the error amplifier, 4 is the detection control module, 4-1 is the first comparator, 4-2 is the start-up circuit, 4-3 is the first logic circuit, 5 is the oscillator, 6 is the level time sampling module, 6-1 is the Schmitt trigger, 6-2 is the second logic circuit, 7 is the logic control module, 8 is the voltage generation module, and 9 is the second comparator. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] like Figure 1 The figure shows the detection structure block diagram of the peak current of the switching power supply. In the figure, the inductor current works in the discontinuous conduction mode. Assuming that the efficiency of the switching power supply is η, the input power is Pin, and the output power is Pout, then:

[0032] η=P out / P in ; (1-1)

[0033] Known: P out =V out *I out , P in =1 / 2*L*I Lmax 2*F,

[0034] Therefore, formula (1-1) is rewritten as:

[0035] V out *I out / η=1 / 2*L*I Lmax 2*F; (1-2)

[0036] Where V out is the output voltage, I out is the output load current, L is the inductance value, I Lmax is the peak-to-peak value of the inductor, and F is the oscillator frequency of the OSC module.

[0037] In conventional current detection, according to formula (1-2), the oscillator frequency of the OSC module is usually kept unchanged and the inductor current I is detected. max It can be inferred that I out Electric current.

[0038] When no protection mechanism is triggered, the working state is as follows: FB voltage is V outThe voltage is divided by resistors R1 and R2, which are connected to the inverting terminal of EA (error amplifier). out When the voltage is lower than the set output voltage, the FB voltage is equal to the reference voltage V ref The comparison difference VY is amplified, and the VY voltage is compared with the inductor current during the conduction period of the sampling circuit sampling switch MO and the output value VX of the slope compensation superimposed circuit. The comparison result is input into the logic module. After processing, the output of the logic module adjusts the conduction time of the switch MO, V out The voltage is increased and fed back to V out The output is balanced.

[0039] When the load current iL is less than a certain value, the system detects that the peak-to-peak value of the inductor current is less than the set value, and the system sets the switch tube MO to turn off. Since the sampled current signal is a high-speed and weak current signal, it is easily interfered by noise. Therefore, the system's anti-noise ability is reduced, and the sampled current accuracy is not high.

[0040] Because I Lmax =V in *T on / L, F = 1 / T,

[0041] So we can rewrite formula (1-2) as:

[0042] V out *I out / η=1 / 2*L*(V in *T on / L) 2 / T; (1-3)

[0043] Where T is the oscillation period of the oscillator module, T on is the on-time of the power switch.

[0044] By rearranging formula (1-3), we can get:

[0045] V out *I out / η=1 / 2 / L*V in 2 / T*T on 2 ; (1-4)

[0046] Therefore, I out =1 / 2 / L*V in 2 / T*T on 2 *η / V out (1-5).

[0047] Since V in formula (1-5) out is a dynamic balance parameter, the dynamic change is small and can be ignored, η is the efficiency of the switching power supply, which is a constant parameter after the device is set, L is the set inductance value, which is constant, and since the inductor current works in the discontinuous working mode, T can be ignored on The load current I can be characterized by the small change of the OSC module oscillator period T out size.

[0048] Embodiment 1: A switching power supply circuit, such as Figure 2 As shown, the circuit includes an input power supply 1 and an energy storage element and a power switch 2 connected to the input power supply 1 in sequence, and also includes a load voltage detection module for collecting the load RL connected to the input power supply, an oscillator module for outputting a pulse signal clk and adjusting the level of the pulse signal clk, and a logic control module 7 for controlling the opening and closing of the power switch 2; the energy storage element includes an inductor L1 and a capacitor C1, the power switch 2 can be an NMOS tube or a PMOS tube, and the present embodiment is a PMOS tube, and the input power supply 1 provides an input voltage V for the load RL in The positive electrode of the input power supply 1 is connected to the source electrode of the power switch 2, the drain electrode of the power switch 2 is connected to one end of the inductor L1 and the negative electrode of the diode D1, the positive electrode of the diode D1 is connected to one end of the capacitor C1, one end of the resistor R1, and one end of the load resistor RL, the other end of the resistor R1 is connected to one end of the resistor R2 and the first input end of the load voltage detection module, the second input end of the load voltage detection module receives the reference voltage signal Vref, the other end of the resistor R2, the other end of the load resistor RL, the other end of the capacitor C1, the other end of the inductor L1, and the negative electrode of the input power supply 1 are all grounded, wherein the resistor R1 and the resistor R2 are both sampling resistors, and the diode D1 is a freewheeling diode.

[0049] The output end of the load voltage detection module is connected to the input end of the oscillator module, and the output end of the oscillator module is connected to the input end of the logic control module 7, and the oscillator module has a level time threshold; the output end of the logic control module 7 is connected to the gate of the power switch 2. When the load current is greater than the reference current, if the load current at the current moment is greater than the load current at the previous moment, the logic control module 7 adjusts the on-time of the power switch 2 to increase the on-time of the power switch 2 to increase the output voltage V out If the load current at the current moment is less than the load current at the previous moment, the logic control module 7 adjusts the on-time of the power switch 2 to reduce the on-time of the power switch 2 to reduce the output voltage V out , thereby making the circuit in dynamic balance, the dynamic balance refers to the output voltage V outWhen the load current is less than the reference current, the level of the pulse signal is adjusted, and when the level duration of the adjusted pulse signal is greater than the level time threshold, the logic control module 7 turns off the power switch 2. In actual conditions, the reference current value can be set according to the detected load.

[0050] like Figure 3 As shown, the load voltage detection module includes an error amplifier 3 and a detection control module 4, the inverting input terminal of the error amplifier 3 receives the voltage-dividing signal FB of the resistor R2, the non-inverting input terminal of the error amplifier 3 receives the reference voltage signal Vref, and the output terminal of the error amplifier 3 outputs an error voltage VY based on the voltage-dividing signal FB on the resistor R2 and the reference voltage signal Vref; the detection control module 4 has an error voltage threshold VR, and the detection control module 4 outputs a control level light to the input terminal of the oscillator module based on the error voltage threshold VR and the error voltage VY, the control level light is used to adjust the level of the pulse signal clk, that is, to change the output of the oscillator module, when the load current is less than the reference current, the output of the oscillator module can be adjusted by changing the potential of the control level light, and when the potential of the control level light remains unchanged, the output of the oscillator module remains unchanged, that is, the pulse signal clk is continuously output. When designing a specific circuit, the control level light can be set to a low level without affecting the output of the oscillator module, or it can be set to a high level without affecting the output of the oscillator module. In this embodiment, the control level light is high and does not affect the output of the oscillator module. At this time, the circuit works normally and will not trigger the logic control module 7 to execute the protection mechanism. When the control level light is low, the output of the oscillator module changes.

[0051] The error amplifier 3 includes a field effect transistor MP1, the gate of the field effect transistor MP1 receives the voltage division signal on the resistor R2, the source of the field effect transistor MP1 is connected to the input current IB and the source of the field effect transistor MP2, the drain of the field effect transistor MP1 is connected to the drain of the field effect transistor MN1, the gate of the field effect transistor MN5 of the detection control module 4, the gate of the field effect transistor MN2, and the gate of the field effect transistor MN1, and the gate of the field effect transistor MP2 is used to receive the reference voltage signal Vref; the drain of the field effect transistor MN2 is connected to the field effect transistor MP2 The drain of the field effect tube MN1, the gate of the field effect tube MN3, and the gate of the field effect tube MN4 are connected, the drain of the field effect tube MN3 is connected, and the drain of the field effect tube MN4 is connected to the input current m*IB and the input end of the detection control module 4; the source of the field effect tube MN1, the source of the field effect tube MN2, the source of the field effect tube MN3, and the source of the field effect tube MN4 are all grounded, and the field effect tubes MP1 and MP2 are PMOS, and the field effect tubes MN1, MN2, MN3, and MN4 are NMOS. The drain of the field effect tube MN4 outputs the error voltage VY to the detection control module 4. The field effect tubes MP1 and MP2 are full differential inputs of the error amplifier 3, and the field effect tubes MN1, MN2, and MN3 are all load tubes.

[0052] The detection control module 4 includes a clamping circuit, a first input end of the clamping circuit receives an error voltage threshold VR, a second input end of the clamping circuit is used to receive an error voltage VY, a first output end of the clamping circuit is connected to the drain of the field effect tube MP3, the gate of the field effect tube MP3, and the gate of the field effect tube MP4, a second output end of the clamping circuit is connected to the source of the field effect tube MP5 and the second input end of the clamping circuit, and the gate of the field effect tube MP5 is connected to the starting circuit. In this embodiment, the starting circuit is a soft start circuit, which is a prior art and will not be described in detail in the present invention. It is mainly to prevent load current overshoot and surge. After the soft start is completed, the field effect tube MP5 is turned off; the source of the field effect tube MP3 is connected to the field effect tube The source of the field effect transistor MP4 is connected, the drain of the field effect transistor MP4 is connected to the drain of the field effect transistor MN5, one end of the capacitor C2, and the input end of the first logic circuit 4-3, the output end of the first logic circuit 4-3 outputs the control level light to the input end of the oscillator module, the gate of the field effect transistor MN5 is connected to the drain of the field effect transistor MP1 of the error amplifier 3, when the soft start is over, the field effect transistor MP3 and the field effect transistor MP4 start to have current, and this current will change according to the size of the load current; the drain of the field effect transistor MP5, the source of the field effect transistor MN5, and the other end of the capacitor C2 are all grounded, and the field effect transistors MP5, MP3, and MP4 are PMOS, and the field effect transistor MN5 is NMOS.

[0053] The clamping circuit includes a first comparator 4-1 and a field effect transistor MN6, the inverting input terminal of the first comparator 4-1 is connected to the drain of the field effect transistor MN4 of the error amplifier 3, the non-inverting input terminal of the first comparator 4-1 receives the error voltage threshold VR, and the output terminal of the first comparator 4-1 is connected to the gate of the field effect transistor MN6; the source of the field effect transistor MN6 is connected to the source of the field effect transistor MP5, the drain of the field effect transistor MN6 is connected to the drain of the field effect transistor MP3, and the field effect transistor MN6 is an NMOS.

[0054] In the load voltage detection module, field effect transistors MN1, MN2, and MN5 form a group of current mirrors, field effect transistors MN3 and MN4 form a group of current mirrors, and field effect transistors MP3 and MP4 form a group of current mirrors. The current amplification factor ratios of the current mirrors are as follows:

[0055] (W / L) MN1 :(W / L) MN2: (W / L) NM5 =1:a1:a2;(2-1)

[0056] (W / L) MN3 :(W / L) MN4 =1:b1;(2-2)

[0057] (W / L) MP3 :(W / L) MP4 =1:c1;(2-3)

[0058] Assuming that the base current of field effect transistor MN1 is Ix, according to the current mirror principle, we have:

[0059] I MN2 =a1*Ix; (2-4)

[0060] I MN3 =IB-(I MN2 +I MN1 )=IB-(1+a1)*Ix; (2-5)

[0061] I MN4 =b1*I MN3 =b1*(IB-(1+a1)*Ix); (2-6)

[0062] I MN5 =a2*Ix (2-7);

[0063] In the formula, I MN2 Represents the drain current of field effect transistor MN2, I MN3 Represents the drain current of field effect transistor MN3, I MN4Represents the drain current of field effect transistor MN4, I MN5 Represents the drain current of field effect transistor MN5, I MN1 represents the drain current of the field effect transistor MN1, and IB represents the current value of the input current IB.

[0064] When the load current is greater than the reference current, the output voltage V out is relatively small, at this time the output voltage V out The voltage divided by the resistor R2 is smaller than the reference voltage signal Vref, so the error voltage VY is larger than the error threshold voltage VR, and the first comparator 4-1 outputs a low level VZ, which is smaller than the threshold voltage VTH6 of the field effect transistor MN6, so the field effect transistor MN6 is in the off state, so no current flows through the field effect transistors MP3 and MP4. The field effect transistor MN5 connected to the current mirror voltage VBIAS directly controls the control level light output by the first logic circuit 4-3 to be high level, such as Figure 4 As shown, when the control level light is high, it has no effect on the output of the oscillator module, the waveform of the pulse signal clk1 output by the oscillator module is consistent with the waveform of the pulse signal clk, and the circuit still works in a dynamic equilibrium state. In this embodiment, the first logic circuit 4-3 is used to process the analog signal transmitted by the field effect transistor MP4 and the field effect transistor MN5, convert the analog signal into a digital signal, and then output the control level light.

[0065] When the load current is less than the reference current, the output voltage V out is relatively large, at this time the output voltage V out The voltage divided by the resistor R2, that is, the voltage FB on the resistor R2 is greater than the reference voltage signal Vref, so the error voltage VY is less than the error threshold voltage VR, and the first comparator 4-1 outputs a high level VZ, and the high level VZ is greater than the threshold voltage VTH6 of the field effect transistor MN6, so the field effect transistor MN6 works normally, so the field effect transistor MP3 and the field effect transistor MP4 have current flowing through, and the field effect transistor MN5 is turned off. At this time, the drain currents of the field effect transistor MP3 and the field effect transistor MP4 are respectively:

[0066] I MP3 =I MN4- m*IB=b1*(IB-(1+a1)*Ix)-m*IB; (2-8)

[0067] I MP4 =c1*I MP3 =c1*(b1*(IB-(1+a1)*Ix)-m*IB); (2-9)

[0068] In the formula, I MP3 Represents the drain current of field effect transistor MP3, IMP4 represents the drain current of the field effect transistor MP4, and m*IB represents the current value of the input current m*IB.

[0069] At this time, the drain current I MN5 The drain current I of the field effect transistor MP4 MP4 In comparison, there are MP4 >I MN5 , only then can the control level light output by the first logic circuit 4-3 be low. When the control level light is low, it affects the output of the oscillator 5, and the pulse signal clk changes. The time when the control level light is low is determined by formula (1-5).

[0070] The oscillator module includes a level time sampling module 6 and an oscillator 5. The input end of the oscillator 5 is connected to the output end of the load voltage detection module, that is, the output end of the first logic circuit 4-3, so as to receive the control level light. The output end of the oscillator 5 is connected to the input end of the level time sampling module 6 and the first pin of the logic control module 7. The level time sampling module 6 has a level time threshold. When the specific circuit is designed, it can be set to a low level time threshold or a high level time threshold. This is related to the setting of the components in the circuit. In this embodiment, the level time threshold is a low level time threshold T1. When the load current is greater than the reference current, the oscillator 5 outputs a pulse signal clk to the level time sampling module 6 and the logic control module 7. When the load current is less than the reference current, the control level light is low to adjust the level of the pulse signal clk. The output signal of the oscillator jumps to a low level signal such as Figure 4 As shown in clk2, the level time sampling module 6 samples the low level duration of clk2. When the low level duration of clk2 is greater than the low level time threshold T1, the level time sampling module 6 outputs a closing signal close to the logic control module 7 to execute the protection mechanism to close the power switch 2.

[0071] like Figure 5As shown, the level time sampling module 6 includes a field effect transistor MP6, the gate of the field effect transistor MP6 is connected to the gate of the field effect transistor MN6 and the output end of the oscillator 5 to facilitate receiving the pulse signal clk, the source of the field effect transistor MP6 is connected to the input current n*IB, the drain of the field effect transistor MP6 is connected to the drain of the field effect transistor MN6, one end of the capacitor C3, and the input end of the Schmitt trigger 6-1, the source of the field effect transistor MN6 is grounded through the current source IB1, and the field effect transistor MP6 is a PMOS, and the field effect transistor MN6 is an NMOS; the Schmitt trigger The output end of the device SMIT is connected to the input end of the second logic circuit 6-2, the output end of the second logic circuit 6-2 is connected to the second pin of the logic control module 7, and the other end of the capacitor C3 is grounded; the Schmitt trigger 6-1 is provided with a voltage threshold VTH1, when the voltage of the capacitor C3 is greater than the voltage threshold VTH1, the Schmitt trigger 6-1 outputs a closing signal close, the second logic circuit 6-2 delays the closing signal close and then inputs it to the second pin of the logic control module 7, and closes the power switch 2 through the fourth pin of the logic control module 7. The time when the voltage on the capacitor C3 reaches the voltage threshold VTH1 is the low level time threshold T1, and the low level duration of the pulse signal clk is less than the low level time threshold T1.

[0072] When the pulse signal clk is low and lasts for t1, the field effect transistor MP6 is turned on, the field effect transistor MN6 is turned off, and the capacitor C3 is charged. According to the formula V=C*Q and Q=i*t, during the time t1 when the pulse signal clk is low, the voltage V1 charged to the capacitor C3 is:

[0073] V1=C3*n*IB*t1; (3-1)

[0074] In the formula, C3 represents the capacitance of capacitor C3, and n*IB represents the current value of input current n*IB.

[0075] When the pulse signal clk is at a high level and lasts for t2, the field effect transistor MP6 is turned off, the field effect transistor MN6 is turned on, and the capacitor C3 is discharged. According to the formula V=C*Q and Q=i*t, during the time t2 when the pulse signal clk is at a high level, the discharge voltage V2 of the capacitor C3 is:

[0076] V2=C3*IB1*t2; (3-2)

[0077] Wherein, IB1 represents the current value of the current source IB1.

[0078] When the load current is small, the charging voltage V1 must be greater than the discharging voltage V2, that is,

[0079] C3*n*IB*t1>C3*IB1*t2 (3-3);

[0080] Within a certain time t, t=y*(t1+t2)=y*T, where y is a constant, which can make y*(V1-V2) greater than or equal to the voltage threshold VTH1 of the Schmitt trigger 6-1. The Schmitt trigger 6-1 outputs a low level and enters the second logic circuit 6-2. After delay and other signal processing, it outputs a closing signal close. The output closing signal close enters the second logic circuit 6-2 and executes the protection mechanism through the logic control module 7 to control the power switch 2 to be turned off.

[0081] A voltage comparison module is also provided between the logic control module 7 and the error amplifier 3. The voltage comparison module generates a comparison voltage VX based on the error voltage VY and the voltage drop Vds of the power switch 2. The comparison voltage VX is chopped and input to the logic control module 7 to facilitate the logic control module 7 to control the on and off time of the power switch 2. The voltage comparison module includes a voltage generation module 8 and a second comparator 9. The input end of the voltage generation module 8 is connected to the output end of the error amplifier 3 to receive the error voltage VY. The output end of the voltage generation module 8 outputs a vcs voltage proportional to the error voltage VY to the in-phase input end of the second comparator 9. The inverting input end of the second comparator 9 receives the voltage drop vds of the power switch 2, that is, the voltage between the drain and the source. The output end of the second comparator 9 outputs the comparison voltage VX to the third pin of the logic control module 7. When the load current is greater than the reference current, the output voltage V out The voltage division, that is, the voltage on the resistor R2 is less than the reference voltage signal Vref, so that the error voltage VY is greater than the error voltage threshold VR, the potential of the control level light remains unchanged, and the output of the oscillator is not changed. If the load current at the current moment is greater than the load current at the previous moment, the error voltage VY increases. At this time, the error voltage VY is processed by the voltage generation module to generate a vcs voltage that increases, and then is compared by the second comparator 9 to generate a comparison voltage VX. The logic control module 7 adjusts the on-time of the power switch 2 based on the comparison voltage VX and the pulse signal clk to increase the on-time of the power switch 2, so as to reduce the load current and increase the output voltage V out If the load current at the current moment is less than the load current at the previous moment, the error voltage VY decreases. The error voltage VY is processed by the voltage generation module to generate a vcs voltage that decreases. The comparison voltage VX is then generated by the second comparator 9. The logic control module 7 adjusts the on-time of the power switch 2 based on the comparison voltage VX and the pulse signal clk to reduce the on-time of the power switch 2, thereby increasing the load current and reducing the output voltage V out , and then reach the output voltage V out Dynamic balance. When the load current is less than the reference current, the output voltage V outThe voltage division, that is, the voltage on the resistor R2 is greater than the reference voltage signal Vref, so that the error voltage VY is less than the error voltage threshold VR, and the control level light output by the detection control module is low level, the output of the oscillator 5 is changed, and the level time sampling module 6 samples the low level duration of the adjusted pulse signal clk2. When the low level duration of the adjusted pulse signal clk2 is greater than the low level time threshold T1, the Schmitt trigger 6-1 outputs the closing signal close, and the 4th pin of the logic control module 7 turns off the power switch 2.

[0082] Embodiment 2: A control method for a switching power supply circuit as described in Embodiment 1, wherein the circuit comprises an input power supply 1, and a power switch 2 and an energy storage element connected to the input power supply 1 in sequence, and further comprises a load voltage detection module for collecting a load RL connected to the input power supply 1, an oscillator module for outputting a pulse signal and adjusting the level of the pulse signal, and a logic control module 7 for controlling the power switch to be turned on or off; the control method comprises:

[0083] Turn on the input power supply 1 to provide input voltage to the load;

[0084] The power switch 2 is periodically turned on and off by the pulse signal output by the oscillator module;

[0085] The load voltage detection module collects the voltage signal of the load RL, compares the voltage signal of the load RL with the reference voltage signal in the load voltage detection module, and outputs the control level according to the comparison result;

[0086] When the load current is greater than the reference current, the logic control module 7 adjusts the on-time of the power switch 2 so that the on-time of the power switch 2 is proportional to the change of the load current;

[0087] When the load current is less than the reference current, the level of the pulse signal is changed by adjusting the potential of the control level. When the low level duration of the changed pulse signal is greater than the low level time threshold T1 in the oscillator module, the logic control module 7 turns off the power switch 2.

[0088] The control method in the present invention is described using a buck-boost topology structure, and can also be applied to a buck topology structure and a boost topology structure. The buck-boost topology structure refers to an output voltage V out It can be greater than the input voltage V in , or it can be less than the input voltage V in , the buck topology refers to the output voltage V out Less than the input voltage V in , the boost topology refers to the output voltage V out Greater than the input voltage V in .

[0089] Embodiment 3: A portable electronic device comprises the switching power supply circuit as described in Embodiment 1, and the switching power supply circuit is connected to a battery of the portable electronic device, that is, the load RL is replaced by a battery, and the battery can be powered by the switching power supply circuit.

[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A switching power supply circuit, comprising an input power supply (1) and a power switch (2) and an energy storage element connected to the input power supply (1) in sequence, characterized in that: It also includes a load voltage detection module for collecting the load connected to the input power supply (1), an oscillator module for outputting a pulse signal and adjusting the level of the pulse signal, and a logic control module (7) for controlling the power switch (2) to be turned on or off; The output end of the load voltage detection module is connected to the input end of the oscillator module, and the output end of the oscillator module is connected to the logic control module (7), and the oscillator module has a level time threshold; the logic control module (7) is connected to the control end of the power switch (2), when the load current is greater than the reference current, the logic control module (7) adjusts the on-time of the power switch (2) so that the on-time of the power switch (2) is proportional to the change of the load current, when the load current is less than the reference current, the level of the pulse signal is adjusted, and when the level time of the adjusted pulse signal is greater than the level time threshold, the logic control module (7) turns off the power switch (2); The load voltage detection module comprises a resistor R1, a resistor R2, an error amplifier (3) and a detection control module (4); one end of the resistor R1 is connected to one end of the load RL close to the power switch (2); the other end of the resistor R1 is connected to one end of the resistor R2 and the inverting input end of the error amplifier (3); the other end of the resistor R2 and the other end of the load RL are both grounded; the non-inverting input end of the error amplifier (3) receives a reference voltage signal; the output end of the error amplifier (3) outputs an error voltage based on a voltage division signal on the resistor R2 and the reference voltage signal; the detection control module (4) has an error voltage threshold; the detection control module (4) outputs a control level to the input end of the oscillator module based on the error voltage threshold and the error voltage; when the load current is less than the reference current, the output of the oscillator module is adjusted by changing the potential of the control level to turn off the power switch (2); The error amplifier (3) comprises a field effect tube MP1, the gate of the field effect tube MP1 receives a voltage division signal on a resistor R2, the source of the field effect tube MP1 is connected to an input current IB and a source of the field effect tube MP2, the drain of the field effect tube MP1 is connected to a drain of the field effect tube MN1, a gate of the field effect tube MN5 of the detection control module, a gate of the field effect tube MN2, and a gate of the field effect tube MN1, the gate of the field effect tube MP2 is used to receive a reference voltage signal; the drain of the field effect tube MN2 is connected to the drain of the field effect tube MP2 , the gate of the field effect transistor MN3 and the gate of the field effect transistor MN4 are connected, the drain of the field effect transistor MN3 is connected, and the drain of the field effect transistor MN4 is connected to the input current m*IB and the input end of the detection control module (4); the source of the field effect transistor MN1, the source of the field effect transistor MN2, the source of the field effect transistor MN3, and the source of the field effect transistor MN4 are all grounded, and the field effect transistors MP1 and MP2 are PMOS, and the field effect transistors MN1, MN2, MN3, and MN4 are NMOS; The detection control module (4) comprises a clamp circuit, wherein a first input end of the clamp circuit receives an error voltage threshold, a second input end of the clamp circuit is used to receive the error voltage, a first output end of the clamp circuit is connected to the drain of the field effect transistor MP3, the gate of the field effect transistor MP3, and the gate of the field effect transistor MP4, a second output end of the clamp circuit is connected to the source of the field effect transistor MP5 and a second input end of the clamp circuit, and the gate of the field effect transistor MP5 is connected to a start-up circuit (4-2); The source of the field effect transistor MP3 is connected to the source of the field effect transistor MP4, the drain of the field effect transistor MP4 is connected to the drain of the field effect transistor MN5, one end of the capacitor C2, and the input end of the first logic circuit (4-3), the output end of the first logic circuit (4-3) outputs the control level to the input end of the oscillator module, the gate of the field effect transistor MN5 is connected to the drain of the field effect transistor MP1 of the error amplifier (3); the drain of the field effect transistor MP5, the source of the field effect transistor MN5, and the other end of the capacitor C2 are all grounded, and the field effect transistor MP5, the field effect transistor MP3, and the field effect transistor MP4 are PMOS, and the field effect transistor MN5 is NMOS.

2. The switching power supply circuit according to claim 1, characterized in that: The clamping circuit comprises a first comparator (4-1) and a field effect transistor MN6, wherein the inverting input terminal of the first comparator (4-1) is connected to the drain of the field effect transistor MN4 of the error amplifier (3), the non-inverting input terminal of the first comparator (4-1) receives the error voltage threshold, and the output terminal of the first comparator (4-1) is connected to the gate of the field effect transistor MN6; the source of the field effect transistor MN6 is connected to the source of the field effect transistor MP5, the drain of the field effect transistor MN6 is connected to the drain of the field effect transistor MP3, and the field effect transistor MN6 is an NMOS.

3. The switching power supply circuit according to claim 1, characterized in that: The oscillator module comprises a level time sampling module (6) and an oscillator (5); the input end of the oscillator (5) is connected to the output end of the load voltage detection module, and the output end of the oscillator (5) is connected to the input end of the level time sampling module (6) and the logic control module (7); the level time sampling module (6) has a level time threshold; when the load current is greater than the reference current, the oscillator (5) outputs a pulse signal to the level time sampling module (6) and the logic control module (7); when the load current is less than the reference current, the level of the pulse signal is adjusted; when the level time of the adjusted pulse signal is greater than the level time threshold, the level time sampling module (6) outputs a shutdown signal to the logic control module (7) to shut down the power switch (2).

4. The switching power supply circuit according to claim 3, characterized in that: The level time sampling module (6) comprises a field effect transistor MP6, the gate of the field effect transistor MP6 is connected to the gate of the field effect transistor MN6 and the output end of the oscillator (5), the source of the field effect transistor MP6 is connected to the input current n*IB, the drain of the field effect transistor MP6 is connected to the drain of the field effect transistor MN6, one end of the capacitor C3, and the input end of the Schmitt trigger (6-1), the source of the field effect transistor MN6 is grounded through the current source IB1, the field effect transistor MP6 is a PMOS, and the field effect transistor MN6 is an NMOS; the output end of the Schmitt trigger (6-1) is connected to the input end of the second logic circuit (6-2), the output end of the second logic circuit (6-2) is connected to the logic control module (7), and the other end of the capacitor C3 is grounded; a voltage threshold is provided in the Schmitt trigger (6-1), and when the voltage of the capacitor C3 is greater than the voltage threshold, the second logic circuit (6-2) outputs a shutdown signal.

5. The switching power supply circuit according to claim 1, characterized in that: A voltage comparison module is provided between the logic control module (7) and the error amplifier (3), and the voltage comparison module generates a comparison voltage based on the error voltage and the voltage drop of the power switch (2). When the load current is greater than the reference current, the logic control module (7) adjusts the on-time of the power switch (2) based on the comparison voltage and the pulse signal so that the on-time of the power switch (2) is proportional to the change in the load current.

6. The switching power supply circuit according to claim 5, characterized in that: The voltage comparison module comprises a voltage generation module (8) and a second comparator (9), wherein the input end of the voltage generation module (8) is connected to the output end of the error amplifier (3), the output end of the voltage generation module (8) outputs a VCS voltage proportional to the error voltage to the in-phase input end of the second comparator (9), the inverting input end of the second comparator (9) receives the voltage drop of the power switch (2), and the output end of the second comparator (9) outputs a comparison voltage to the logic control module (7).

7. A control method for a switching power supply circuit, characterized in that: A switching power supply circuit applied to any one of claims 1 to 6, the switching power supply circuit comprising an input power supply (1) and a power switch (2) and an energy storage element connected to the input power supply (1) in sequence, and further comprising a load voltage detection module for collecting a load connected to the input power supply (1), an oscillator module for outputting a pulse signal and adjusting the level of the pulse signal, and a logic control module (7) for controlling the power switch (2) to be turned on or off; the control method comprising: Turn on the input power supply (1) to provide input voltage to the load; The power switch (2) is periodically turned on and off by a pulse signal output by the oscillator module; The load voltage detection module collects the voltage signal of the load, compares the voltage signal of the load with the reference voltage signal in the load voltage detection module, and outputs the control level according to the comparison result; When the load current is greater than the reference current, the logic control module (7) adjusts the on-time of the power switch (2) so that the on-time of the power switch (2) is proportional to the change in the load current; When the load current is less than the reference current, the level of the pulse signal is adjusted by adjusting the potential of the control level, and when the level time of the adjusted pulse signal is greater than the level time threshold in the oscillator module, the logic control module (7) turns off the power switch (2).

Citation Information

Patent Citations

  • Switching power supply circuit and portable electronic device

    CN216672859U