A switching power supply and a control method thereof

By designing the output voltage detection module, control output module and energy adjustment module in the switching power supply, adjusting the energy output, the problem of unbalanced output voltage ripple in light and heavy load states is solved, and a more stable voltage output is achieved.

CN114499131BActive Publication Date: 2025-04-15ACTIONS ZHUHAI TECH CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011145158.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-23
Publication Date
2025-04-15
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

Under the same input power supply voltage, the energy output of the switching power supply during light load and heavy load is unbalanced, resulting in a much larger ripple of the output voltage in the light load state than a much higher ripple of the output voltage in the heavy load state.

Method used

A switching power supply and its control method are designed, including an output voltage detection module, a control output module and an energy adjustment module. By detecting the voltage output from the load, a control signal is generated and the energy output is adjusted to reduce the transfer of energy to the output capacitor in a light load state.

Benefits of technology

It effectively reduces the ripple of the output voltage in the light load state, and solves the problem of large gap in output voltage ripple in the light load and heavy load states in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114499131B_ABST
    Figure CN114499131B_ABST
Patent Text Reader

Abstract

The present invention discloses a switching power supply and a control method thereof. When a first control signal is determined according to a first voltage output to a load, whether energy needs to be controlled can be determined according to the first control signal and the energy output by a control output module. When it is determined that control is needed, a second control signal is generated so that the control output module stops outputting energy to the load when receiving the second control signal, that is, when the energy output to the load is sufficient, the energy output to the load is stopped to avoid more energy being transferred to the output capacitor when the load is in a light-load state, that is, reducing the energy transferred to the output capacitor in parallel with the load, thereby reducing the ripple of the output first voltage, and solving the problem in the prior art that the ripple of the first voltage in a light-load state is relatively different from the ripple of the first voltage in a heavy-load state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Usually, under the same input power supply voltage, the energy output by the switching power supply in a certain period is the same under light load and heavy load. Under heavy load, most of the energy can be transferred to the load due to the large load, and only a small part of the energy is transferred to the output capacitor, but under light load, most of the energy is transferred to the output capacitor due to the small load, and a small part of the energy is transferred to the load. This may cause the output voltage ripple under light load to be much larger than the output voltage ripple under heavy load.

[0003] Based on this, how to solve the problem that the ripple of the output voltage in a light load state is much larger than that in a heavy load state is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The embodiment of the present invention provides a switching power supply and a control method thereof, which are used to solve the problem that the ripple of the output voltage in a light-load state is much larger than the ripple of the output voltage in a heavy-load state.

[0005] In a first aspect, an embodiment of the present invention provides a switching power supply, comprising: an output voltage detection module, a control output module, and an energy adjustment module;

[0006] The output voltage detection module is used to: determine a first control signal according to a first voltage output to the load, and transmit the first control signal to the control output module and the energy adjustment module respectively;

[0007] The energy adjustment module is used to: when it is determined that the energy needs to be controlled according to the energy output by the control output module and the first control signal, generate a second control signal and transmit the second control signal to the control output module;

[0008] The control output module is used to: stop outputting energy to the load when the second control signal is received; or output energy to the load when the second control signal is not received and the first control signal is received.

[0009] In a second aspect, an embodiment of the present invention provides a control method of the switching power supply as provided in the embodiment of the present invention, comprising:

[0010] The control output module determines whether the second control signal output by the energy adjustment module is received when receiving the first control signal output by the output voltage detection module;

[0011] If so, stop outputting energy to the load;

[0012] If not, outputting energy to the load;

[0013] Among them, the first control signal is: the output voltage detection module determines the first voltage output to the load, and the second control signal is: the signal generated by the energy adjustment module when it is determined that the energy needs to be controlled based on the energy output by the control output module and the first control signal.

[0014] The beneficial effects of the present invention are as follows:

[0015] A switching power supply and a control method thereof provided by an embodiment of the present invention can determine whether energy needs to be controlled based on the first control signal and the energy output by the control output module when a first control signal is determined according to a first voltage output to a load, and generate a second control signal when it is determined that control is needed, so that the control output module stops outputting energy to the load when receiving the second control signal, that is, when the energy output to the load is sufficient, stop outputting energy to the load to avoid more energy being transferred to the output capacitor when the load is in a light load state, that is, reduce the energy transferred to the output capacitor in parallel with the load, thereby reducing the ripple of the output first voltage, and solving the problem in the prior art that the ripple of the first voltage in a light load state is relatively large compared with the ripple of the first voltage in a heavy load state. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of the structure of a switching power supply provided in an embodiment of the present invention;

[0017] Figure 2 A schematic diagram of the structure of another switching power supply provided in an embodiment of the present invention;

[0018] Figure 3 A schematic diagram of a specific structure of an energy adjustment module provided in an embodiment of the present invention;

[0019] Figure 4 A schematic diagram of the specific structure of another energy adjustment module provided in an embodiment of the present invention;

[0020] Figure 5 A schematic diagram of a specific structure of another energy adjustment module provided in an embodiment of the present invention;

[0021] Figure 6 A schematic diagram of the specific structure of another energy adjustment module provided in an embodiment of the present invention;

[0022] Figure 7 A timing diagram provided in an embodiment of the present invention;

[0023] Figure 8 Another timing diagram provided in an embodiment of the present invention;

[0024] Fig. 9 A schematic diagram of a specific structure of a switching power supply provided in an embodiment of the present invention;

[0025] Fig.10 A schematic diagram of the specific structure of another switching power supply provided in an embodiment of the present invention;

[0026] Fig.11 Another timing diagram provided in an embodiment of the present invention;

[0027] Fig.12 Another timing diagram provided in an embodiment of the present invention;

[0028] Fig.13 The present invention provides a flow chart of a method for controlling a switching power supply.

[0029] Among them, 10-output voltage detection module, 10a-third comparator, 20-control output module, 21-controller, 22-driver, 30-energy adjustment module, 30a-first signal processing unit, 30b-second signal processing unit, 30c-logic unit, 31-logic circuit, 32-trigger circuit, 33-clock circuit, 34-current collector, 34a-switch sub-circuit, 35-first comparator, 36-second comparator, 37-signal generator, 40-peripheral circuit. DETAILED DESCRIPTION

[0030] The following will be combined with the accompanying drawings to describe in detail the specific implementation of a switching power supply and a control method thereof provided by an embodiment of the present invention. It should be noted that 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] The embodiment of the present invention provides a switching power supply, such as Figure 1 As shown, it may include: an output voltage detection module 10, a control output module 20, and an energy adjustment module 30;

[0032] The output voltage detection module 10 is used to: L The output first voltage (such as V1) determines the first control signal (such as CTL1), and transmits the first control signal CTL1 to the control output module 20 and the energy adjustment module 30 respectively;

[0033] The energy adjustment module 30 is used to: when it is determined that the energy needs to be controlled according to the energy output by the control output module 20 and the first control signal CTL1, generate a second control signal (such as CTL2) and transmit the second control signal CTL2 to the control output module 20;

[0034] The control output module 20 is used to stop supplying power to the load R upon receiving the second control signal CTL2. L Output energy; or, when the second control signal CTL2 is not received and the first control signal CTL1 is received, to the load R L Output energy.

[0035] In this way, when the first control signal is determined according to the first voltage output to the load, it can be determined whether the energy needs to be controlled according to the first control signal and the energy output by the control output module. When it is determined that control is needed, a second control signal is generated to cause the control output module to stop outputting energy to the load when receiving the second control signal, that is, when the energy output to the load is sufficient, stop outputting energy to the load to avoid more energy being transferred to the output capacitor when the load is in a light load state, that is, reduce the energy transferred to the output capacitor in parallel with the load, thereby reducing the ripple of the first output voltage, and solving the problem in the prior art that there is a large difference between the ripple of the first voltage in a light load state and the ripple of the first voltage in a heavy load state.

[0036] It should be noted that, optionally, the ripple of the first voltage can be understood as:

[0037] Energy transferred to a second capacitor in a peripheral circuit connected to the load (the second capacitor is described later and is connected in parallel with the load);

[0038] If the energy transferred to the second capacitor is larger, it means that the ripple of the first voltage is larger; if the energy transferred to the second capacitor is smaller, it means that the ripple of the first voltage is smaller.

[0039] Furthermore, for the load, if the load is in a light load state, the energy transferred to the load is less, that is, the first voltage output to the load is smaller. If the energy transferred to the second capacitor is larger at this time, the ripple of the first voltage will be larger.

[0040] At this time, if the energy output by the control output module is less, then when the energy transferred to the load remains unchanged, the energy transferred to the second capacitor will be less, thereby reducing the ripple of the first voltage.

[0041] Therefore, the ripple value of whether the load is in a light load state or a heavy load state can be judged by the first voltage, and then the energy output by the control output module can be controlled to reduce the energy output to the load in the light load state, thereby reducing the ripple of the first voltage in the light load state.

[0042] Optionally, in the embodiment of the present invention, controlling the energy output by the output module includes:

[0043] Control the output current of the output module, or control the effective time of the output current of the output module.

[0044] Among them, when controlling energy, the control form of energy (or it can also be called control mode) can be set to current, that is, the current value is controlled, and the current can be a peak current or an average current, which can be selected according to actual needs; or, the control form of energy can also be set to the effective time of the output current, that is, the output time of the current is controlled.

[0045] In this way, the form of energy can be selected according to actual needs, thereby meeting the needs of various application scenarios and improving the flexibility of design.

[0046] Optionally, in an embodiment of the present invention, if Figure 2 As shown, the energy adjustment module 30 includes: a first signal processing unit 30a and a second signal processing unit 30b;

[0047] The first signal processing unit 30a is electrically connected to the output voltage detection module 10 and the second signal processing unit 30b, respectively, and is used to: output a first processing signal (such as X1) to the second signal processing unit 30b according to the first control signal CTL1 output by the output voltage detection module 10;

[0048] The second signal processing unit 30b is electrically connected to the control output module 20, and is used for:

[0049] Whether the current needs to be controlled is determined based on the energy output by the control output module 20, the first processed signal X1, and the determined energy threshold; when it is determined that the current needs to be controlled, a second control signal CTL2 is generated and transmitted to the control output module 20.

[0050] Wherein, when the energy control mode that the energy adjustment module needs to control is the output current, the corresponding energy threshold at this time may be the current threshold; accordingly, the energy may be controlled according to the relationship between the current output by the control output module, the first processing signal, and the current threshold;

[0051] Alternatively, when the energy control method that the energy adjustment module needs to control is the effective time of the output current, the corresponding energy threshold can be a time threshold; accordingly, the energy can be controlled based on the relationship between the effective time of the output current controlled by the output module, the first processing signal, and the time threshold.

[0052] In this way, the function of the energy adjustment module can be realized by the coordinated use of the first signal processing unit and the second signal processing unit, thereby controlling the energy output by the control output module, which is beneficial to reducing the ripple of the first voltage.

[0053] The following introduces the specific structure of the energy adjustment module according to the energy control method.

[0054] Case 1: The energy output by the output module is controlled by current.

[0055] Optionally, in an embodiment of the present invention, the energy output by the output module is controlled by controlling the current output by the output module, and the energy threshold is the current threshold;

[0056] The second signal processing unit is specifically used for:

[0057] Determining a current threshold from a preset first current threshold and a preset second current threshold according to the first processing signal;

[0058] Collect and control the current output by the output module;

[0059] And, according to the collected current and the determined current threshold, it is determined whether the current needs to be controlled; when it is determined that the current needs to be controlled, a second control signal is generated and the second control signal is transmitted to the control output module.

[0060] That is to say, when the energy output by the control output module is current, one of the first current threshold and the second current threshold can be selected as the current threshold based on the first processing signal, and then the collected current can be compared with the current threshold to determine whether the current needs to be controlled, thereby achieving control of the energy output by the control output module, which is beneficial to reducing the ripple of the first voltage.

[0061] Specifically, in the embodiment of the present invention, when setting the structure of the energy adjustment module, the following methods may be included:

[0062] Method 1:

[0063] Optionally, in an embodiment of the present invention, if Figure 3As shown, the first signal processing unit 30a includes a logic circuit 31, a trigger circuit 32 and a clock circuit 33, and the second signal processing unit 30b includes a current collector 34 and a first comparator 35;

[0064] The clock circuit 33 is electrically connected to the trigger circuit 32 and is used to: provide a clock cycle signal (such as CK) to the trigger circuit 32;

[0065] The trigger circuit 32 is also electrically connected to the output voltage detection module 10 and the logic circuit 31 respectively, and is used to: determine the second processing signal (such as X2) according to the received clock cycle signal CK and the first control signal CTL1 and transmit it to the logic circuit 31;

[0066] The logic circuit 31 is also electrically connected to the output voltage detection module 10 and the first comparator 35, respectively, and is used to: determine whether the first control signal CTL1 and the second processing signal X2 are both high level, if so, output the first sub-processing signal to the first comparator 35, if not, output the second sub-processing signal to the first comparator 35; the first processing signal X1 includes the first sub-processing signal and the second sub-processing signal;

[0067] The current collector 34 is electrically connected to the first comparator 35 and the control output module 20 respectively, and is used to: transmit the collected current output by the control output module 20 to the first comparator 35;

[0068] The first comparator 35 is also electrically connected to the control output module 20, and is used to:

[0069] According to the pre-stored correspondence between the first sub-processing signal, the second sub-processing signal, the first current threshold and the second current threshold, when the first sub-processing signal is received, the first current threshold is determined as the current threshold, or when the second sub-processing signal is received, the second current threshold is determined as the current threshold; the first current threshold is greater than the second current threshold;

[0070] And, when the received current is greater than the determined current threshold, it is determined that the current needs to be controlled, and a second control signal CTL2 is generated and transmitted to the control output module 20 .

[0071] In this way, through the structural setting of the energy adjustment module, the function of the energy adjustment module can be realized, which is beneficial to reduce the ripple of the output first voltage and solve the problem in the prior art that there is a large difference between the ripple of the first voltage in a light load state and the ripple of the first voltage in a heavy load state.

[0072] Specifically, the logic circuit may be any structure known to those skilled in the art that can realize the function of the logic circuit, such as but not limited to an AND gate, and may be configured according to actual needs and is not limited here.

[0073] The trigger circuit can be any structure known to those skilled in the art that can realize the function of the trigger circuit, such as but not limited to a D-flip-flop, and can be configured according to actual needs and is not limited here.

[0074] Furthermore, when the trigger circuit is a D-flip-flop, in order to realize the function of the D-flip-flop, a reset signal terminal RST is usually provided. Figure 3 As shown, the reset signal provided to the reset signal terminal RST can be provided by the control output module 20, and the control output module 20 can be used to: when stopping outputting energy to the load, provide a reset signal to the reset signal terminal RST of the D-flip-flop, so that the D-flip-flop inputs a reset signal to the logic circuit 31, or stops inputting a signal to the logic circuit 31.

[0075] Specifically, for a D-flip-flop, when generating the second processing signal according to the clock cycle signal and the first control signal, the specific generation process of the second processing signal can be implemented according to the working principle of the D-flip-flop, which will not be described in detail here.

[0076] The clock circuit can be any structure known to those skilled in the art that can realize the function of the clock circuit, such as but not limited to a clock signal generator, and can be configured according to actual needs and is not limited here.

[0077] For the current collector, its specific structure can be any structure that can realize the current collection function, such as but not limited to components including transistors and resistors, and can be set according to actual needs, which is not limited here.

[0078] For the first comparator, if Figure 3 As shown, the control terminal k0 can be electrically connected to the logic circuit 31, the first input terminal is electrically connected to the current collector 34, the second input terminal is electrically connected to the first reference signal terminal s1 for providing a first reference signal, the third input terminal is electrically connected to the second reference signal terminal s2 for providing a second reference signal, and the output terminal is electrically connected to the control output module 20; wherein the first reference signal is greater than the second reference signal.

[0079] Optionally, in the embodiment of the present invention, the first control signal, the first processing signal, and the second processing signal may all be level signals consisting of a high level and a low level.

[0080] That is to say, only when the first control signal and the second processing signal are both high levels, the logic circuit outputs the first sub-processing signal to the first comparator, so that the first comparator selects the first current threshold with a larger value as the current threshold; when at least one of the first control signal and the second processing signal is a low level, the logic circuit outputs the second sub-processing signal to the first comparator, so that the first comparator selects the second current threshold with a smaller value as the current threshold.

[0081] Among them, the first sub-processing signal can be a high-level signal, and the second sub-processing signal can be a low-level signal; or, the first sub-processing signal can be a low-level signal, and the second sub-processing signal can be a high-level signal; it can be set according to actual needs and is not limited here.

[0082] Method 2:

[0083] Optionally, for the energy adjustment module, Figure 3 The structure shown in the figure is simply adjusted to obtain Figure 4 The structure shown, in which Figure 4 and Figure 3 The structures shown differ in that:

[0084] exist Figure 4 In the structure shown, the logic circuit 31 is electrically connected to the current collector 34 , and the logic circuit 31 is not electrically connected to the first comparator 35 .

[0085] Specifically, the current collector 34 may include a first resistor (ie, a variable resistor) R1 and a switch subcircuit 34a, and the first comparator 35 is only electrically connected to the output end of the current collector 34 and the first reference signal end s1;

[0086] At this time, the logic circuit 31 is electrically connected to the control end of the first resistor R1 to adjust the resistance value of the first resistor R1.

[0087] That is, when the logic circuit 31 inputs the first sub-processing signal (assuming it is a high-level signal) to the control end of the first resistor R1, the resistance of the first resistor R1 can be increased, and when other structures and parameters remain unchanged, the current flowing through the first resistor R1 becomes smaller, that is, a smaller second current threshold is selected as a reference;

[0088] When the logic circuit 31 inputs the second sub-processing signal (assuming it is a low-level signal) to the control end of the first resistor R1, the resistance of the first resistor R1 can be reduced. When other structures and parameters remain unchanged, the current flowing through the first resistor R1 increases, that is, a larger first current threshold is selected as a reference.

[0089] In short, in actual situations, based on this situation 1, for the energy adjustment module, you can choose Figure 3 The structure shown can also be selected Figure 4 The structure shown can be selected and set according to actual conditions and is not limited here.

[0090] Case 2: The energy control method determined by the energy adjustment module is to control the effective time of the output current of the output module.

[0091] Optionally, in an embodiment of the present invention, the control method of controlling the energy output by the output module is to control the effective time of the output current of the output module, and the energy threshold is a time threshold;

[0092] The second signal processing unit is also electrically connected to the output voltage detection module, and is specifically used for:

[0093] Determining a time threshold from a preset first time threshold and a preset second time threshold according to the first control signal;

[0094] And, counting the effective pulse time in the first processing signal, and determining whether it is necessary to control the current based on the counted effective pulse time and the determined time threshold; when it is determined that the current needs to be controlled, generating a second control signal, and transmitting the second control signal to the control output module.

[0095] The first processed signal may be a level signal composed of a high level and a low level, so the effective pulse time in the first processed signal may be understood as: a high level time or a low level time.

[0096] That is to say, when the energy output by the control output module is the effective time of the output current, one of the first time threshold and the second time threshold can be selected as the time threshold based on the first control signal, and then the effective pulse time in the statistical first processed signal can be compared with the time threshold to determine whether the current needs to be controlled, thereby achieving control of the energy output by the control output module, which is beneficial to reducing the ripple of the first voltage.

[0097] Specifically, in the embodiment of the present invention, the structure of the energy adjustment module can also be set in the following ways:

[0098] Method 1:

[0099] Optionally, in an embodiment of the present invention, if Figure 5 As shown, the first signal processing unit 30a includes a signal generator 37, and the second signal processing unit 30b includes a second comparator 36;

[0100] The signal generator 37 is electrically connected to the output voltage detection module 10 and the second comparator 36, respectively, and is used to: if the first control signal CTL1 is at a high level, output the third sub-processing signal to the second comparator 36; if a reset signal input from an external source is received, output the fourth sub-processing signal to the second comparator 36; the first processing signal X1 includes the third sub-processing signal and the fourth sub-processing signal;

[0101] The second comparator 36 is also electrically connected to the output voltage detection module 10 and the control output module 20, respectively, for:

[0102] If the first control signal CTL1 is at a high level, the first time threshold is determined as the time threshold; or, if the first control signal CTL1 is at a low level, the second time threshold is determined as the time threshold; the first time threshold is greater than the second time threshold;

[0103] And, when the time of receiving the third sub-processing signal is greater than the determined time threshold, it is determined that the current needs to be controlled, and a second control signal CTL2 is generated and transmitted to the control output module 20 .

[0104] Among them, the first processing signal can also be a level signal composed of a high level and a low level; correspondingly, the third sub-processing signal can be a high level signal, and the fourth sub-processing signal can be a low level signal; or, the third sub-processing signal can be a low level signal, and the fourth sub-processing signal can be a high level signal; it can be set according to actual needs and is not limited here.

[0105] In this way, through the structural setting of the energy adjustment module, the function of the energy adjustment module can be realized, which is beneficial to reduce the ripple of the output first voltage and solve the problem in the prior art that there is a large difference between the ripple of the first voltage in a light load state and the ripple of the first voltage in a heavy load state.

[0106] Specifically, in the embodiment of the present invention, the signal generator can be any structure known to those skilled in the art that can realize the function of the signal generator, such as but not limited to a charging current source, a capacitor and a switch, and can be configured according to actual needs and is not limited here.

[0107] For the second comparator, if Figure 5 As shown, the first input terminal is electrically connected to the signal generator 37, the second input terminal is electrically connected to the third reference signal terminal s3 for providing a third reference signal, the third input terminal is electrically connected to the fourth reference signal terminal s4 for providing a fourth reference signal, the control terminal k0 is electrically connected to the output voltage detection module 10, and the output terminal is electrically connected to the control output module 20.

[0108] Method 2:

[0109] Optionally, in an embodiment of the present invention, Figure 5 On the basis of the structure shown, the energy adjustment module may further include:

[0110] The filter unit arranged between the output voltage detection module and the second signal processing unit and between the output voltage detection module and the first signal processing unit is used to filter the first control signal output by the output voltage detection module.

[0111] In this way, glitches and interference in the first control signal can be eliminated, making the first control signal more accurate, thereby facilitating improving the control accuracy of the subsequent energy adjustment module and reducing errors caused by glitches and interference.

[0112] The specific structure of the filtering unit may be any structure known to those skilled in the art that can realize the filtering function, such as but not limited to a filtering unit composed of an inverter and an AND gate, as long as the filtering function can be realized, and is not limited here.

[0113] Furthermore, in this mode 2, the specific implementation of the first signal processing unit and the second signal processing unit can refer to the content of mode 1 in situation 2, and the repeated parts will not be repeated.

[0114] Method 3:

[0115] Optionally, in an embodiment of the present invention, Figure 5 Based on the structure shown, Figure 6 As shown, the energy adjustment module 30 may further include: a logic unit 30c;

[0116] The logic unit 30c is electrically connected to the output voltage detection module 10, the first signal processing unit 30a and the second signal processing unit 30b respectively, and is used for:

[0117] Receive the first processed signal X1 output by the first signal processing unit 30a and the first control signal CTL1 output by the output voltage detection module 10;

[0118] If the first control signal CTL1 is at a high level and the first processing signal X1 is at a high level, a first logic value (such as logic value 1) is output to the second signal processing unit 30b; or, if the first control signal CTL1 is at a low level, a second logic value (such as logic value 0) is output to the second signal processing unit 30b;

[0119] At this time, the second signal processing unit 30b is used for:

[0120] If the first logic value is received, the first time threshold is determined as the time threshold; or if the second logic value is received, the second time threshold is determined as the time threshold;

[0121] And, counting the time of the received third sub-processing signal (i.e., the high level or low level in the first processing signal X1), when the time of the third sub-processing signal is greater than the determined time threshold, generating a second control signal CTL2, and transmitting the second control signal CTL2 to the control output module 20;

[0122] The first signal processing unit 30a is used for:

[0123] If the first control signal CTL1 is at a high level, the third sub-processing signal is output to the second signal processing unit 30b and the logic unit 30c respectively;

[0124] If a reset signal is received from the outside, the fourth sub-processing signal is stopped from being output to the second signal processing unit 30b and the logic unit 30c respectively.

[0125] Specifically, in the embodiment of the present invention, the specific implementation of the logic unit can refer to the specific embodiment of the logic circuit in the above-mentioned situation 1, and the repeated parts will not be repeated.

[0126] Specifically, the reset signal provided to the first signal processing unit (or signal generator) may be, but is not limited to, the second control signal (eg Figure 5 and Figure 6 As shown), when the second signal processing unit outputs the second control signal to the control output module, it indicates that the energy output by the control output module needs to be controlled, so the second control signal can be used to reset at this time, so that the first signal processing unit stops outputting the third sub-processing signal to the second signal processing unit, and outputs the fourth sub-processing signal at the same time.

[0127] In short, in actual situations, based on this situation 2, for the energy adjustment module, you can choose Figure 5 The structure shown can also be selected Figure 6 The structure shown can be selected and set according to actual conditions and is not limited here.

[0128] In specific implementation, in the embodiment of the present invention, the energy adjustment module is also used for:

[0129] adjusting the determined energy threshold according to the first control signal;

[0130] Among them, when the energy threshold is a current threshold, the preset first current threshold is adjusted, and the adjusted first current threshold is greater than the preset second current threshold; or, when the energy threshold is a time threshold, the preset first time threshold is adjusted, and the adjusted first time threshold is greater than the preset second time threshold.

[0131] This is done because:

[0132] Due to differences in peripheral circuits (when the peripheral circuits include inductors and capacitors, the inductors have different inductance values ​​and / or capacitance values), the ripple output to the load may be different, and the determined energy threshold may not be the optimal value.

[0133] Therefore, in order to make the determined energy threshold the optimal value, the energy threshold can be adjusted according to the first control signal so as to effectively suppress the ripple of the first voltage. Therefore, it is necessary to adjust the energy threshold according to the actual situation so that it can be accurately judged according to the energy threshold whether it is necessary to control the energy output by the control output module, thereby accurately and effectively suppressing the ripple of the first voltage.

[0134] Specifically, in the embodiment of the present invention, when the energy threshold is the current threshold, the energy adjustment module is specifically used to:

[0135] In a first cycle of a preset clock cycle signal, if the high level time of the first control signal is greater than the low level time of the second control signal, the determined first current threshold is kept unchanged;

[0136] Or, in the first cycle, if the high level time of the first control signal is less than or equal to the low level time of the second control signal, reducing the first current threshold;

[0137] Or, if the high level time of the first control signal is greater than the first period, the first current threshold is increased.

[0138] Among them, when determining the specific amount of reduction or increase of the first current threshold, it can be but is not limited to being set to: reduce or increase the first current threshold by 5%; for example, when the first current threshold is 200mA, each time the first current threshold is fine-tuned, only 10mA can be adjusted, that is, reduced or increased by 10mA.

[0139] Of course, the specific amount by which the first current threshold is reduced or increased is not limited to 5% of the first current threshold, and may also be set to 8%, 10% or 15%, etc., and may be set according to actual needs and is not limited here.

[0140] Specifically, the adjustment process of the first current threshold can be combined with Figure 7 The timing shown is explained.

[0141] The adjustment situations may include four situations, namely, a situation corresponding to case1_1, a situation corresponding to case1_2, a situation corresponding to case1_3, and a situation corresponding to case1_4.

[0142] Case 1_1: In a single first cycle (Tc1 as shown in the figure), the high level time of the first control signal CTL1 is greater than the low level time of the level signal CTL2 corresponding to the second control signal. This indicates that the energy output by the control output module to the load is within the design range and the first current threshold can be maintained. Therefore, the first current threshold can be kept unchanged at this stage.

[0143] case1_2: In a single first cycle, the high level time of the first control signal CTL1 is shorter than the low level time of the level signal CTL2 corresponding to the second control signal, indicating that the energy output to the load by the current control output module is too large and the energy output to the load needs to be reduced. Therefore, the first current threshold can be reduced in this stage;

[0144] Case 1_3, case 1_4: The high level time of the first control signal CTL1 is greater than the single first cycle, indicating that the energy output by the current control output module to the load is too small and the energy output to the load needs to be increased, so the first current threshold can be increased in this stage.

[0145] Specifically, in the embodiment of the present invention, the energy threshold is a time threshold; the energy adjustment module is specifically used to:

[0146] In the second cycle of the first control signal, when the high level time of the first control signal is greater than the second time threshold, the first time threshold is kept unchanged;

[0147] Or, in the second cycle, when the high level time of the first control signal is less than or equal to the second time threshold, the first time threshold is reduced;

[0148] Or, when the high level time of the first control signal is greater than the reference time, the first time threshold is increased; wherein the reference time is: the period of the level signal corresponding to the second time threshold.

[0149] Among them, when determining the specific amount of reduction or increase of the first time threshold, it can be but not limited to being set to: reduce or increase the first time threshold by 5%; for example, when the first current threshold is 200ns, each time the first current threshold is fine-tuned, only 10ns can be adjusted, that is, reduced or increased by 10ns.

[0150] Of course, the specific amount by which the first time threshold is reduced or increased is not limited to 5% of the first current threshold, and may also be set to 8%, 10% or 15%, etc., and may be set according to actual needs and is not limited here.

[0151] The specific adjustment process of the first time threshold can be combined with Figure 8 The timing shown is explained.

[0152] There are three adjustment situations, namely, a situation corresponding to case3_1, a situation corresponding to case3_2, and a situation corresponding to case3_3.

[0153] case3_1: In a single second cycle (such as Tc2 shown in the figure), the high level time of the first control signal CTL1 is greater than the second time threshold, that is, the high level time of the first control signal CTL1 is greater than the high level time in the level signal corresponding to the second time threshold (such as t01 shown in the figure). Since in the single second cycle, the first control signal CTL1 has been flipped from a high level to a low level, it means that the energy provided to the load is within the design range, so the first time threshold can be kept unchanged;

[0154] case3_2: In a single second cycle, the high level time of the first control signal CTL1 is less than the second time threshold, that is, the high level time of the first control signal CTL1 is less than the high level time in the level signal corresponding to the second time threshold (such as t01 shown in the figure), indicating that the energy provided to the load at this stage is too large, and the energy provided to the load needs to be reduced, so the first time threshold can be reduced;

[0155] case3_3: The high level time of the first control signal CTL1 is greater than the period of the level signal corresponding to the second time threshold (as shown in t02 in the figure), indicating that the energy provided to the load at this stage is too small and the energy provided to the load needs to be increased, so the first time threshold can be increased.

[0156] In specific implementation, in the embodiment of the present invention, as Fig. 9 and Fig.10 As shown, the control output module 20 includes: a controller 21, a driver 22, a P-type transistor M1 and an N-type transistor M2;

[0157] The source of the P-type transistor M1 is electrically connected to the power signal terminal Vin for providing electric energy, and the drain is electrically connected to the source of the N-type transistor M2 and the load R L Electrically connected, the drain of the N-type transistor M2 is grounded;

[0158] The first input terminal of the controller 21 is electrically connected to the output voltage detection module 10, the second input terminal is electrically connected to the energy adjustment module 30, and the output terminal is electrically connected to the input terminal of the driver 22, and is used to: output a third processing signal (such as X3) to the driver 22 when the second control signal CTL2 is received; or, output a fourth processing signal (such as X4) to the driver 22 when the second control signal CTL2 is not received and the first control signal CTL1 is received;

[0159] The output end of the driver 22 is electrically connected to the gate of the P-type transistor M1 and the gate of the N-type transistor M2, respectively, and is used to: when receiving the third processing signal X3, turn off the P-type transistor M1 and turn on the N-type transistor M2, so that the P-type transistor M1 stops transmitting the power provided by the power signal terminal Vin to the load R L Or, when receiving the fourth processing signal X4, the P-type transistor M1 is turned on and the N-type transistor M2 is kept off, so that the P-type transistor M1 transmits the power provided by the power signal terminal Vin to the load R L .

[0160] Among them, the third processed signal can be understood as a low-level signal, and the fourth processed signal can be understood as a high-level signal; or, the third processed signal can be understood as a high-level signal, and the fourth processed signal can be understood as a low-level signal. The specific settings can be made according to actual needs and are not limited here.

[0161] Furthermore, the specific structures of the controller and the driver may be any structures known to those skilled in the art that can realize the functions of the controller and the driver, and are not limited here.

[0162] In this way, by setting the above structure, the function of controlling the output module can be realized, so that under the control of the energy adjustment module, the energy output to the load is controlled, which is beneficial to reducing the ripple of the first voltage.

[0163] Optionally, in an embodiment of the present invention, if Figure 1 , Fig. 9 and Fig.10 As shown, a peripheral circuit 40 may be generally provided between the control output module 20 and the load, and the peripheral circuit 40 may include: an inductor L and a second capacitor C2 connected in series; one end of the inductor L is electrically connected to the output end of the control output module 20, and one end of the second capacitor C2 is grounded;

[0164] like Fig. 9 and Fig.10 As shown, the output voltage detection module 10 includes a third comparator 10a; a first input terminal of the third comparator 10a is connected to a load R L The second input terminal is electrically connected to the fifth reference signal terminal s5 providing the fifth reference signal, and the output terminal is electrically connected to the control output module 20 and the energy adjustment module 30 respectively, for: according to the load R L The difference between the output first voltage V1 and the fifth reference signal determines the first control signal CTL1.

[0165] The fifth reference signal may be a fifth reference voltage. In this case:

[0166] The third comparator can output a high level when it is determined that the difference between the first voltage and the fifth reference voltage is greater than a preset value, and can output a low level when it is determined that the difference between the first voltage and the fifth reference voltage is not greater than the preset value. Thus, the third comparator can determine the first control signal consisting of high and low levels according to the difference between the first voltage and the fifth reference voltage.

[0167] Of course, the specific setting of the preset value can be set according to actual needs and is not limited here.

[0168] In this way, by setting the above structure, the function of the output voltage detection module can be realized to output the first control signal, which is beneficial to the subsequent coordination of the energy adjustment module and the control output module to reduce the ripple of the first voltage.

[0169] It should be noted that the control output module can transfer the output energy to the second capacitor and store it. When the control output module stops outputting energy, the energy stored in the second capacitor can be output to the load, thereby providing energy to the load.

[0170] Of course, in actual situations, the specific structures of the output voltage detection module and the control output module are Fig. 9 and Fig.10 In addition to the structure shown, it can also be a structure that is well known to those skilled in the art and can achieve corresponding functions, which is not limited here.

[0171] The following is Fig. 9 The structure shown in the figure explains the working process of the switching power supply.

[0172] Combination Fig.11 The timing diagram is shown.

[0173] Among them, the first control signal is represented by CTL1, the clock cycle signal is represented by CK, the level signal corresponding to the second control signal is represented by CTL2, the second processing signal is represented by X2, the third processing signal is represented by X3, and the fourth processing signal is represented by X4. Taking the third processing signal X3 as a low-level signal and the fourth processing signal X4 as a high-level signal as an example, the level signal formed by the third processing signal X3 and the fourth processing signal X4 is represented by CTL3.

[0174] 1. In case 1:

[0175] In the first cycle of a single clock cycle signal (such as Fig.11 In Tc1 shown in FIG, the third comparator 10a can determine that the first control signal CTL1 changes from a high level → a low level → a high level according to the first voltage V1 and the fifth reference voltage (that is, the fifth reference signal provided by the fifth reference signal terminal s5). At this time:

[0176] If the first control signal CTL1 and the second processing signal X2 are both at high level, as shown in t1, it means that the energy stored in the second capacitor C2 is not enough, so that the energy stored in the second capacitor C2 is not enough to be supplied to the load R L The output energy is not enough, so the logic circuit 31 outputs the first sub-processing signal (i.e., high level) to the control terminal k0 of the first comparator 35, so that the first current threshold is selected as the current threshold, so the level signal corresponding to the first current threshold is high level during this time, and the level signal corresponding to the second current threshold is low level during this time; that is, the first current threshold is selected to be compared with the collected current, so at this time, more energy is allowed to be output to the second capacitor C2;

[0177] Furthermore, when the first comparator 35 is working, it selects the first reference signal provided by the first reference signal terminal s1 to compare with the voltage Vsense; wherein the first reference signal can be understood as: the voltage value corresponding to the first current threshold, also referred to as the first voltage threshold herein; the voltage Vsense can be understood as: the voltage corresponding to the current output by the collected control output module;

[0178] During the time t1, assuming that the voltage Vsense is initially smaller than the first voltage threshold, the first comparator 35 will not output the second control signal, that is, the first comparator 35 outputs a low level signal; as the voltage Vsense increases, when the voltage Vsense is greater than the first voltage threshold, the first comparator 35 outputs a high level signal (that is, the second control signal), so Fig.11 During the time t1 shown in FIG. 1 , the level of the level signal CTL2 corresponding to the second control signal is converted from a low level to a high level.

[0179] In addition, when the level signal CTL2 corresponding to the second control signal is at a low level, it means that there is no need to control and limit the current input to the inductor L, so the controller 21 outputs a fourth processing signal to the driver 22, that is, outputs a high level signal (as shown by the level CTL3); further, the driver 22 can control the P-type transistor M1 to turn on and the N-type transistor M2 to turn off, so that the P-type transistor M1 can transmit the electric energy provided by the power signal terminal Vin to the inductor L, and then output it to the second capacitor C2 through the inductor L;

[0180] When the level signal CTL2 corresponding to the second control signal is at a high level, it indicates that the current input to the inductor L needs to be controlled and limited, so the controller 21 outputs a third processing signal to the driver 22, that is, outputs a low level signal (as shown by the level CTL3); further, the driver 22 can control the P-type transistor M1 to be turned off and the N-type transistor M2 to be turned on, so as to stop transmitting the electric energy provided by the power signal terminal Vin to the inductor L, and further stop inputting electric energy to the second capacitor C2.

[0181] It should be noted that in this case 1, in the nth first cycle, if the level of the level signal CTL2 is converted from a low level to a high level, this high level can be maintained until the end of the first cycle, that is: when the rising edge of the n+1th first cycle arrives, regardless of whether the level of the first control signal CTL1 is high or low, the level of the level signal CTL2 will be converted from a high level to a low level.

[0182] The first current threshold may be, but is not limited to, set to 200 mA, and the corresponding first voltage threshold is 1.2 V; the second current threshold may be, but is not limited to, set to 100 mA, and the corresponding first voltage threshold is 0.6 V.

[0183] 2. In case 2:

[0184] In this stage, the first control signal CTL1 remains at a high level for a relatively long time, which is longer than a first period Tc1. Therefore, when the rising edge of the next first period Tc1 arrives, the first control signal CTL1 is still at a high level.

[0185] When the first control signal CTL1 changes from a high level to a low level, the second current threshold is selected as the current threshold, so the level height corresponding to the second current threshold changes from a low level to a high level;

[0186] If the collected current is less than the second current threshold when the first control signal CTL1 changes from high level to low level, it means that the energy provided to the second capacitor C2 is not enough and it is necessary to continue to provide energy to the second capacitor C2. Therefore, the first comparator 35 outputs a low level at this time, that is, does not output the second control signal; until the collected current is greater than the second current threshold, it means that the energy provided to the second capacitor C2 is sufficient, so the first comparator 35 outputs a high level, that is, outputs the second control signal. Fig.11 The enlarged view within the dashed box is shown;

[0187] If the collected current is greater than the second current threshold when the first control signal CTL1 changes from high level to low level, it means that the energy provided to the second capacitor C2 is sufficient, so the first comparator 35 directly outputs a high level, that is, directly outputs the second control signal.

[0188] Among them, when the first control signal CTL1 changes from high level to low level, the reasons for not directly turning off the P-type transistor M1 include:

[0189] Since the N-type transistor M2 is turned on when the P-type transistor M1 is turned off, before the P-type transistor M1 is turned off, if the current flowing through the inductor L is small, the P-type transistor M1 is turned off and the N-type transistor M2 is turned on, which will cause the current to flow into the ground terminal through the inductor L and the N-type transistor M2, so that the electric energy originally transferred to the second capacitor C2 is released. Obviously, such a result is not desirable.

[0190] If the current flowing through the inductor L is first determined before the P-type transistor M1 is turned off, and the P-type transistor M1 is turned off when the current flowing through the inductor L is greater than the current threshold (such as the second current threshold), the current flowing through the inductor L can be increased to avoid the current backflow to the ground terminal, thereby preventing the electric energy originally transferred to the second capacitor C2 from being released.

[0191] The following is Fig.10 The structure shown in the figure explains the working process of the switching power supply.

[0192] Combination Fig.12 The timing diagram is shown.

[0193] The first control signal is represented by CTL1, the first processing signal is represented by X1, the third processing signal is represented by X3, and the fourth processing signal is represented by X4. For example, the third processing signal X3 is a low level signal and the fourth processing signal X4 is a high level signal. Then, the level signal formed by the third processing signal X3 and the fourth processing signal X4 is represented by CTL3, and Fig.12 Only the first control signal, the second control signal, the level signal corresponding to the first time threshold, the level signal corresponding to the second time threshold, and the level signal CTL3 are shown.

[0194] 1. In case 3:

[0195] In a single second cycle (ie, the cycle of the first control signal CTL1), Fig.12 In Tc2 shown in FIG, the third comparator 10a can determine that the first control signal changes from a high level → a low level → a high level according to the first voltage V1 and the fifth reference voltage (that is, the fifth reference signal provided by the fifth reference signal terminal s5). At this time:

[0196] When the first control signal CTL1 is at a high level, and the level signal corresponding to the first time threshold is at a high level, as shown at t3, it means that the energy output to the second capacitor C2 is not enough, so the first time threshold is selected as the time threshold;

[0197] Furthermore, the second comparator 36 determines that the high level time (i.e., the third sub-processing signal) in the received first processing signal X1 does not exceed the first time threshold, so the second comparator 36 does not output the second control signal to the controller 21, so that the controller 21 outputs the fourth processing signal to the driver 22, i.e., outputs a high level signal (as shown by the level CTL3), and further controls the P-type transistor M1 to remain turned on within the time t3, so that the P-type transistor M1 can transmit the electric energy provided by the power signal terminal Vin to the inductor L, and then output it to the second capacitor C2 through the inductor L;

[0198] Or, when the first control signal CTL1 is at a low level and the level signal corresponding to the first time threshold is at a high level, as shown at t4, it means that the energy output to the second capacitor C2 is sufficient, so the second time threshold is selected as the time threshold;

[0199] However, since the second time threshold is less than the first time threshold, and the high level time (i.e., the third sub-processing signal) in the received first processing signal X1 counted by the second comparator 36 has exceeded the second time threshold, it is necessary to turn off the P-type transistor M1; at this time, the second comparator 36 outputs a second control signal to the controller 21, so that the controller 21 outputs a third processing signal to the driver 22, that is, outputs a low level signal (as shown by the level CTL3), and then, through the driver 22, the P-type transistor M1 can be controlled to be turned off and the N-type transistor M2 can be turned on, so as to stop transmitting the electric energy provided by the power signal terminal Vin to the inductor L, and then stop inputting electric energy into the second capacitor C2.

[0200] Among them, if the first time threshold is used as the time threshold, it corresponds to that the allowed input energy can last for 200ns; or, if the second time threshold is used as the time threshold, it corresponds to that the allowed input energy can last for 100ns; but in actual situations, the duration of the input energy is not limited to this, this is just an example.

[0201] It should be noted that in the level signal corresponding to the first time threshold and the level signal corresponding to the second time threshold, the high level respectively represents the time length corresponding to the first time threshold and the time length corresponding to the second time threshold.

[0202] 2. In case 4:

[0203] The first control signal CTL1 remains at a high level for a relatively long time, and is greater than a cycle period of a level signal corresponding to a first time threshold (as shown in t5);

[0204] Furthermore, in this stage, the level of the first control signal CTL1 changes from a high level to a low level, so the second time threshold can be selected as the time threshold.

[0205] Among them, when the level of the first control signal CTL1 changes from high level to low level in this stage, the level signal CTL3 is still at a high level, that is, the P-type transistor M1 is still controlled to be turned on. The reason is:

[0206] At this moment, the high level time (i.e., the third sub-processing signal) in the received first processing signal X1 counted by the second comparator is still less than the second time threshold, indicating that the power provided to the second capacitor C2 is not enough and needs to be continued, so at this time, the P-type transistor M1 needs to be kept in the on state to continue to transmit the power provided by the power signal terminal Vin to the second capacitor C2;

[0207] When the high level time (i.e., the third sub-processing signal) in the received first processing signal X1 counted by the second comparator is greater than the second time threshold, it means that the electric energy provided to the second capacitor C2 is sufficient and no longer needs to be provided, so it is necessary to turn off the P-type transistor M1 and stop transmitting the electric energy provided by the power signal terminal Vin to the second capacitor C2.

[0208] Based on the same inventive concept, an embodiment of the present invention provides a control method for a switching power supply. The specific implementation principle of the control method is similar to the implementation principle of the aforementioned switching power supply. The specific implementation method of the control method can refer to the specific embodiment of the aforementioned switching power supply, and the repeated parts will not be repeated.

[0209] Specifically, an embodiment of the present invention provides a control method for a switching power supply, such as Fig.13 As shown, it may include:

[0210] S1301, when the control output module receives the first control signal output by the output voltage detection module, it determines whether the second control signal output by the energy adjustment module is received; if so, execute S1302; if not, execute S1303;

[0211] S1302, stop outputting energy to the load;

[0212] S1303, outputting energy to the load;

[0213] Among them, the first control signal is: the output voltage detection module determines the first voltage output to the load, and the second control signal is: the energy adjustment module generates a signal when it determines that energy needs to be controlled based on the energy output by the control output module and the first control signal.

[0214] Optionally, in the embodiment of the present invention, determining whether energy needs to be controlled according to the energy output by the control output module and the first control signal includes:

[0215] determining an energy threshold according to the first control signal;

[0216] Determine whether the energy output by the control output module is greater than the energy threshold;

[0217] If it is greater than, it is determined that the energy needs to be controlled, and a second control signal is generated;

[0218] If it is not greater than, it is determined that the energy does not need to be controlled, and the generation of the second control signal is prohibited.

[0219] Among them, according to the energy threshold and the energy output by the control output module, it can be determined whether the energy output by the control output module is sufficient;

[0220] If the energy output by the control output module is greater than the energy threshold, it means that the energy output to the load is sufficient, so there is no need to output energy to the load in the future, and it can be determined that the energy needs to be controlled, so as to generate a second control signal to stop the control output module from outputting energy;

[0221] If the energy output by the control output module is not greater than the energy threshold, it means that the energy output to the load is not enough, so it is necessary to continue to output energy to the load. It can be determined that there is no need to control the energy, and thus the second control signal will not be generated to enable the control output module to continue to output energy.

[0222] In this way, whether the energy needs to be controlled and whether the second control signal needs to be generated can be determined based on the first control signal and the energy output by the control output module, thereby controlling the energy output by the control output module, which is beneficial to reducing the ripple of the first voltage.

[0223] Optionally, in an embodiment of the present invention, when the control mode of the energy output by the control output module is current and the energy threshold is a current threshold, the energy threshold is determined according to the first control signal, including: determining the second processing signal according to the first control signal and a preset clock cycle signal; judging whether the first control signal and the second processing signal are both high level; if so, determining the preset first current threshold as the current threshold; if not, determining the preset second current threshold as the current threshold; wherein the first current threshold is greater than the second current threshold;

[0224] Or, when the control method for controlling the energy output by the output module is the effective time of the output current, and the energy threshold is the time threshold, the energy threshold is determined according to the first control signal, including: if the first control signal is at a high level, the preset first time threshold is determined as the time threshold; or, when the first control signal is at a low level, the preset second time threshold is determined as the time threshold; wherein the first time threshold is greater than the second time threshold.

[0225] In this way, the current threshold can be determined according to the first control signal, or the corresponding time threshold can be selected only according to the level of the first control signal, so as to facilitate the subsequent judgment of the size between the energy output by the control output module and the energy threshold, thereby determining whether the energy output by the control output module needs to be controlled.

[0226] Optionally, in the embodiment of the present invention, it further includes:

[0227] adjusting the determined energy threshold according to the first control signal;

[0228] Among them, the energy threshold is a current threshold, and the current threshold is determined from a preset first current threshold and a preset second current threshold. When the first current threshold is greater than the second current threshold, the first current threshold is adjusted, and the adjusted first current threshold is greater than the second current threshold; or, the energy threshold is a time threshold, and the time threshold is determined from a preset first time threshold and a preset second time threshold. When the first time threshold is greater than the second time threshold, the first time threshold is adjusted, and the adjusted first time threshold is greater than the second time threshold.

[0229] Optionally, in an embodiment of the present invention, when the energy threshold is a current threshold, adjusting the determined energy threshold according to the first control signal includes:

[0230] In a first cycle of a preset clock cycle signal, if the high level time of the first control signal is greater than the low level time of the second control signal, the determined first current threshold is kept unchanged;

[0231] Or, in the first cycle, if the high level time of the first control signal is less than or equal to the low level time of the second control signal, reducing the first current threshold;

[0232] Or, if the high level time of the first control signal is greater than the first period, the first current threshold is increased.

[0233] Optionally, in the embodiment of the present invention, when the energy threshold is a time threshold, adjusting the determined energy threshold according to the first control signal includes:

[0234] In the second cycle of the first control signal, when the high level time of the first control signal is greater than the second time threshold, the first time threshold is kept unchanged;

[0235] Or, in the second cycle, when the high level time of the first control signal is less than or equal to the second time threshold, the first time threshold is reduced;

[0236] Or, when the high level time of the first control signal is greater than the reference time, the first time threshold is increased; wherein the reference time is: the period of the level signal corresponding to the second time threshold.

[0237] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A switching power supply, characterized in that: include: Output voltage detection module, control output module, and energy adjustment module; The output voltage detection module is used to: determine a first control signal according to a first voltage output to the load, and transmit the first control signal to the control output module and the energy adjustment module respectively; The energy adjustment module is used to: when it is determined that the energy needs to be controlled according to the energy output by the control output module and the first control signal, generate a second control signal and transmit the second control signal to the control output module; The control output module is used to: stop outputting energy to the load when the second control signal is received; or output energy to the load when the second control signal is not received and the first control signal is received.

2. The switching power supply according to claim 1, characterized in that: The energy output by the control output module includes: The current output by the control output module, or the effective time of the current output by the control output module.

3. The switching power supply according to claim 1, characterized in that: The energy adjustment module includes: a first signal processing unit and a second signal processing unit; Wherein, the first signal processing unit is electrically connected to the output voltage detection module and the second signal processing unit respectively, and is used to: output a first processing signal to the second signal processing unit according to the first control signal output by the output voltage detection module; The second signal processing unit is electrically connected to the control output module and is used for: Determine whether current needs to be controlled based on the energy output by the control output module, the first processing signal, and the determined energy threshold; when it is determined that current needs to be controlled, generate the second control signal and transmit the second control signal to the control output module.

4. The switching power supply according to claim 3, characterized in that: The energy output by the control output module is the current output by the control output module, and the energy threshold is the current threshold; The second signal processing unit is specifically used for: determining a current threshold from a preset first current threshold and a preset second current threshold according to the first processing signal; Collecting the current output by the control output module; and, determining whether the current needs to be controlled according to the collected current and the determined current threshold; When it is determined that the current needs to be controlled, the second control signal is generated and transmitted to the control output module.

5. The switching power supply according to claim 4, characterized in that: The first signal processing unit includes a logic circuit, a trigger circuit and a clock circuit, and the second signal processing unit includes a current collector and a first comparator; Wherein, the clock circuit is electrically connected to the trigger circuit and is used to: provide a clock cycle signal to the trigger circuit; The trigger circuit is also electrically connected to the output voltage detection module and the logic circuit respectively, and is used to: determine a second processing signal according to the received clock cycle signal and the first control signal and transmit the second processing signal to the logic circuit; The logic circuit is also electrically connected to the output voltage detection module and the first comparator, respectively, and is used to: determine whether the first control signal and the second processing signal are both high level, if so, output a first sub-processing signal to the first comparator, if not, output a second sub-processing signal to the first comparator; the first processing signal includes the first sub-processing signal and the second sub-processing signal; The current collector is electrically connected to the first comparator and the control output module respectively, and is used to: transmit the collected current output by the control output module to the first comparator; The first comparator is also electrically connected to the control output module, and is used to: According to the pre-stored correspondence between the first sub-processing signal, the second sub-processing signal, the first current threshold and the second current threshold, when the first sub-processing signal is received, the first current threshold is determined as the current threshold, or when the second sub-processing signal is received, the second current threshold is determined as the current threshold; the first current threshold is greater than the second current threshold; And, when the received current is greater than the determined current threshold, it is determined that the current needs to be controlled, and the second control signal is generated and transmitted to the control output module.

6. The switching power supply according to claim 3, characterized in that: The energy output by the control output module is the effective time of the output current of the control output module, and the energy threshold is the time threshold; The second signal processing unit is also electrically connected to the output voltage detection module, and is specifically used to: Determining a time threshold from a preset first time threshold and a preset second time threshold according to the first control signal; And, counting the effective pulse time in the first processing signal, and determining whether it is necessary to control the current based on the counted effective pulse time and the determined time threshold; when it is determined that the current needs to be controlled, generating the second control signal, and transmitting the second control signal to the control output module.

7. The switching power supply according to claim 6, characterized in that: The first signal processing unit includes a signal generator, and the second signal processing unit includes a second comparator; The signal generator is electrically connected to the output voltage detection module and the second comparator respectively, and is used to: output a third sub-processing signal to the second comparator if the first control signal is at a high level; output a fourth sub-processing signal to the second comparator if an external reset signal is received; the first processing signal includes the third sub-processing signal and the fourth sub-processing signal; The second comparator is also electrically connected to the output voltage detection module and the control output module respectively, and is used to: If the first control signal is at the high level, the first time threshold is determined as the time threshold; or if the first control signal is at a low level, the second time threshold is determined as the time threshold; the first time threshold is greater than the second time threshold; And, when the time of receiving the third sub-processing signal is greater than the determined time threshold, it is determined that the current needs to be controlled, and the second control signal is generated and transmitted to the control output module.

8. The switching power supply according to any one of claims 1 to 7, characterized in that: The control output module includes: a controller, a driver, a P-type transistor and an N-type transistor; The source of the P-type transistor is electrically connected to a power signal terminal for providing electric energy, the drain is electrically connected to the source of the N-type transistor and the load respectively, and the drain of the N-type transistor is grounded; The first input terminal of the controller is electrically connected to the output voltage detection module, the second input terminal is electrically connected to the energy adjustment module, and the output terminal is electrically connected to the input terminal of the driver, and is used to: output a third processing signal to the driver when the second control signal is received; or output a fourth processing signal to the driver when the second control signal is not received and the first control signal is received; The output end of the driver is electrically connected to the gate of the P-type transistor and the gate of the N-type transistor, respectively, and is used to: when receiving the third processing signal, turn off the P-type transistor and turn on the N-type transistor, so that the P-type transistor stops transmitting the electric energy provided by the power signal end to the load; or, when receiving the fourth processing signal, turn on the P-type transistor and keep the N-type transistor turned off, so that the P-type transistor transmits the electric energy provided by the power signal end to the load; The output voltage detection module includes a third comparator; the first input terminal of the third comparator is electrically connected to the load, the second input terminal is electrically connected to the fifth reference signal terminal providing the fifth reference signal, and the output terminal is electrically connected to the control output module, and is used to: determine the first control signal based on the difference between the first voltage output to the load and the fifth reference signal.

9. A method for controlling a switching power supply according to any one of claims 1 to 8, characterized in that: include: The control output module determines whether the second control signal output by the energy adjustment module is received when receiving the first control signal output by the output voltage detection module; If so, stop outputting energy to the load; If not, outputting energy to the load; Among them, the first control signal is: the output voltage detection module determines the first voltage output to the load, and the second control signal is: the signal generated by the energy adjustment module when it is determined that the energy needs to be controlled based on the energy output by the control output module and the first control signal.

10. The control method according to claim 9, characterized in that: Determining whether the energy needs to be controlled according to the energy output by the control output module and the first control signal includes: determining an energy threshold according to the first control signal; Determining whether the energy output by the control output module is greater than the energy threshold; If it is greater than, it is determined that the energy needs to be controlled, and the second control signal is generated; If it is not greater than, it is determined that the energy does not need to be controlled, and generation of the second control signal is prohibited.

11. The control method according to claim 10, characterized in that: When the energy output by the control output module is current and the energy threshold is a current threshold, determining the energy threshold according to the first control signal includes: determining a second processing signal according to the first control signal and a preset clock cycle signal; judging whether the first control signal and the second processing signal are both high level; if so, determining a preset first current threshold as the current threshold; if not, determining a preset second current threshold as the current threshold; wherein the first current threshold is greater than the second current threshold; Or, when the energy output by the control output module is the effective time of the output current and the energy threshold is a time threshold, the energy threshold is determined according to the first control signal, including: if the first control signal is at a high level, a preset first time threshold is determined as the time threshold; or, when the first control signal is at a low level, a preset second time threshold is determined as the time threshold; wherein the first time threshold is greater than the second time threshold.

12. The control method according to claim 10, characterized in that: Also includes: adjusting the determined energy threshold according to the first control signal; Among them, the energy threshold is a current threshold, and the current threshold is determined from a preset first current threshold and a preset second current threshold. When the first current threshold is greater than the second current threshold, the first current threshold is adjusted, and the adjusted first current threshold is greater than the second current threshold; or, the energy threshold is a time threshold, and the time threshold is determined from a preset first time threshold and a preset second time threshold. When the first time threshold is greater than the second time threshold, the first time threshold is adjusted, and the adjusted first time threshold is greater than the second time threshold.

13. The control method according to claim 12, characterized in that: When the energy threshold is a current threshold, adjusting the determined energy threshold according to the first control signal includes: In a first cycle of a preset clock cycle signal, if the high level time of the first control signal is greater than the low level time of the second control signal, the determined first current threshold is kept unchanged; or, in the first cycle, if the high level time of the first control signal is less than or equal to the low level time of the second control signal, reducing the first current threshold; Alternatively, if the high level time of the first control signal is greater than the first period, the first current threshold is increased.

14. The control method according to claim 12, characterized in that: When the energy threshold is a time threshold, adjusting the determined energy threshold according to the first control signal includes: In the second cycle of the first control signal, when the high level time of the first control signal is greater than the second time threshold, the first time threshold is kept unchanged; Or, in the second cycle, when the high level time of the first control signal is less than or equal to the second time threshold, reducing the first time threshold; Or, when the high level time of the first control signal is greater than the reference time, the first time threshold is increased; wherein the reference time is: the period of the level signal corresponding to the second time threshold.

Citation Information

Patent Citations

  • Control circuit based on ripple control, control method based on ripple control, and switching power supply

    CN104901523A

  • Buck DC (Direct Current)-DC light-load efficient and ripple control method capable of adopting pseudo fixed frequency adaptive conduction time

    CN109600029A