Disclosure of Invention
In order to reduce power loss in a switching power supply, a switching power supply switching control system and a switching power supply switching control chip are provided.
In a first aspect, the present application provides a switching power supply's turn light control system, which adopts the following technical scheme:
a turn light control system for a switching power supply, comprising:
the control module is arranged in the secondary side loop and used for detecting the charge state of the load and outputting a control signal;
the first indicator lamp is electrically connected between the control module and the secondary side loop and is used for displaying the charging state of the load;
the second indicator lamp is electrically connected between the control module and the secondary side loop and is used for displaying the full load state;
the control module comprises a detection input end, a sampling input end, an output connection end, a first comparator, a control tube and a lamp turning circuit,
the detection input end is connected to the secondary side loop and is used for acquiring an induced voltage signal of the secondary side loop and judging whether the primary side loop is conducted or not according to the voltage signal;
the sampling input end is connected to the secondary side loop and is used for obtaining an output voltage signal;
the control module acquires the working frequency of the switching power supply according to the induced voltage signal and the output voltage signal and outputs a control signal;
the output connection end is connected with the first indicator lamp and the second indicator lamp and is used for outputting control signals to control the first indicator lamp and the second indicator lamp;
the input end of the first comparator is respectively connected with the detection input end and the sampling input end and is used for acquiring the working frequency of the switching power supply;
the control electrode of the control tube is coupled to the output end of the first comparator and is used for responding to the working frequency of the switching power supply;
the turn light circuit (120) is coupled with the first comparator and the control tube, and judges the running state of the load according to the working frequency of the switching power supply so as to output a control signal.
Through adopting above-mentioned technical scheme, control module obtains the induced voltage signal in the secondary circuit through detecting the input, obtains output voltage signal through sampling input, obtains switching power supply's real-time operating frequency through induced voltage signal and output voltage signal, judges the running state of load according to switching power supply's operating frequency to output control signal controls first pilot lamp and second pilot lamp, control module obtains switching power supply's operating frequency through comparing induced voltage signal and output voltage signal in order to replace and obtain the running state of load through the current that the sampling resistor is obtained in the secondary circuit in series, has reduced switching power supply's power consumption component, thereby reduces power loss. The first comparator is used for comparing the input induced voltage signal and the output voltage signal to output high and low level output so as to obtain the working frequency of the switching power supply, the control tube is used for responding to the comparison signal of the first comparator and is conducted or cut off according to the comparison signal, and the lamp turning circuit is used for outputting a control signal according to the conduction or cut-off of the control tube so as to control the first indicator lamp or the second indicator lamp to be turned on.
Preferably, the non-inverting input terminal of the first comparator is connected to the detection input terminal, and the inverting input terminal of the first comparator is connected to the sampling input terminal.
By adopting the technical scheme, the in-phase input end of the first comparator acquires the induced voltage signal, and the inverting input end of the first comparator acquires the output voltage signal, so that the high-low level signal output by the first comparator is ensured to be in phase with the high-low level signal change of the working frequency of the switching power supply.
Preferably, the lamp turning circuit comprises a current source connected in series with the control tube, a buffer capacitor connected in parallel with the control tube and a second comparator, wherein the current source is connected in series with the buffer capacitor between the sampling input end and the ground, when the control tube is cut off, the buffer capacitor is charged, and when the control tube is conducted, the buffer capacitor is discharged;
the input end of the second comparator is respectively input with the voltage value and the reference voltage of the buffer capacitor, and the second comparator compares the voltage value and the reference value of the buffer capacitor and outputs a response signal, wherein the response signal is used for reflecting the running state of the load.
Through adopting above-mentioned technical scheme, through setting up current source and buffer capacitor, utilize under the switching-on of control tube and the different state of shutoff, buffer capacitor charges and discharges two kinds of different characteristics, detects buffer capacitor's voltage value through the second comparator, sets up reference voltage in order to realize when switching power supply frequency changes low frequency mode from high frequency mode, and the response signal of second comparator output can take place the transition in step to realize the control to first pilot lamp and second pilot lamp.
Preferably, the turn light circuit further comprises a trigger, wherein a signal input end of the trigger is connected with the input end and is used for acquiring an output voltage signal; the clock control end of the trigger is connected with the output end of the first comparator and is used for acquiring a comparison signal; and the reset end of the trigger is connected with the output end of the second comparator and is used for acquiring a response signal, the output end of the trigger is connected with the output connection end, and a control signal is output according to the output voltage signal and the response signal.
By adopting the technical scheme, the trigger condition of the trigger is utilized by setting the trigger, so that the change of the control signal is influenced by the change of the response signal of the second comparator caused by discharging or charging of the buffer capacitor under the non-trigger condition.
Preferably, the output connection end (110) comprises a first connection port and a second connection port, the first connection port is connected with the first indicator lamp, the second connection port is connected with the second indicator lamp, the first connection port and the second connection port are used for responding to control signals, and the conduction conditions of the first connection port and the second connection port are opposite.
Through adopting above-mentioned technical scheme, through setting up first connector and second connector and setting up that the conduction condition of first connector and second connector is opposite to when making control module output control signal, first pilot lamp and second pilot lamp can not be lighted simultaneously.
In a second aspect, the present application provides a switching power supply applying the above-mentioned turn light control system, including a primary side loop and a secondary side loop;
the primary loop comprises a primary coil and a bridge rectifier for rectifying input alternating current;
the secondary side loop comprises a secondary side coil and an output capacitor which are mutually connected in parallel, and two ends of the output capacitor are used for connecting a load;
the secondary side coil is coupled with the secondary side diode, the anode of the secondary side diode is coupled with the secondary side coil, the cathode of the secondary side diode is coupled with the output capacitor, the detection input end is coupled with the anode of the secondary side diode, the sampling input end is coupled with the cathode of the secondary side diode, the input end of the first comparator is connected with the detection input end and the sampling input end, the control electrode of the control tube is coupled with the output end of the first comparator, and the turn light circuit (120) is coupled with the first comparator and the control tube.
In a third aspect, the present application provides a turn light control chip, including the control module of the turn light control system.
In summary, the present application includes at least one of the following beneficial technical effects:
the running state of the load is judged by detecting the real-time working frequency of the switching power supply so as to improve the lamp rotating speed; when the load is in a loaded or heavy load, the switch power supply is in a high-frequency working mode, the first indicator lamp is on, and when the load is in a light load or no load, the switch power supply is in a low-frequency working mode, and the second indicator lamp is on; meanwhile, the mode of judging the working frequency is adopted to reduce the use of energy consumption elements and reduce the power loss;
the reference voltage is set to adapt to current sources and/or buffer capacitors of different models so as to enlarge the application range of the current source and/or buffer capacitor;
the control module is integrated into the new lamp-turning control disc, so that peripheral elements of the system are reduced, a switching power supply is simplified, and production cost is reduced.
Detailed Description
The present application is described in further detail below in conjunction with figures 2-4 of the drawings.
The embodiment of the application discloses a switching power supply, and in the scheme of the application, the switching power supply can be a flyback switching power supply or a Buck power supply lamp, and in the embodiment of the application, the flyback switching power supply is taken as an example for description. As shown in fig. 2, the switching power supply includes a transformer, anoutput control system 200 for adjusting an operating frequency according to a load state, and a turn light control system for displaying the load state; in the embodiment of the application, the load is a rechargeable battery bat. The transformer comprises a primary side loop and a secondary side loop; the turn light control system includes:
thecontrol module 100 is arranged in the secondary side loop, and is used for detecting the charge state of the load and outputting a control signal SW;
the first indicator light LED1 is electrically connected between thecontrol module 100 and the secondary loop, and is used for displaying the charging state of the load;
the second indicator light LED2 is electrically connected between thecontrol module 100 and the secondary loop, and is used for displaying the full load state.
When the switching power supply charges the load, that is, when the load is in a load state or in a heavy load state, theoutput control system 200 automatically adjusts and increases the operating frequency (switching frequency) to stabilize the output voltage signal Vout; when the load is in light load or no load, theoutput control system 200 reduces the operating frequency; the turn light control system is connected to the secondary side loop (load end), detects the charge state of the load, and outputs a control signal SW to control a first indicator light LED1 or a second indicator light LED2, wherein the first indicator light LED1 and the second indicator light LED2 are in two different colors, in the embodiment of the application, the first indicator light LED1 takes a red light as an example, and the second indicator light LED2 takes a green light as an example, so that the load is intuitively displayed in the charge state or the full-charge state.
Referring to fig. 2, specifically, the primary loop includes a primary coil Np and a bridge rectifier for rectifying an input alternating current, the secondary loop includes a secondary coil Ns and an output capacitor C0 which are disposed in parallel with each other, the secondary coil Ns and the primary coil Np are coupled to each other to induce inductance, and both ends of the output capacitor C0 are used to connect a load in parallel; a secondary diode D1 is coupled between the secondary winding Ns and the output capacitor C0, an anode of the secondary diode D1 is coupled to the secondary winding Ns, and a cathode of the secondary diode D1 is coupled to the output capacitor C0. When the primary winding Np is turned on, the primary stores energy, the anode of the secondary diode D1 senses that the voltage of the primary winding Np is negative, and the cathode of the secondary diode D1 is connected to the output capacitor C0, so that the voltage is positive, the secondary diode D1 is turned off, and the load is powered by the output capacitor C0. When the primary winding Np is turned off, energy is instantaneously transferred to the secondary winding, the anode voltage of the secondary diode D1 is higher than the cathode voltage, the secondary diode D1 is turned on, and the secondary winding Ns supplies power to the load and the output capacitor C0.
Referring to fig. 2 and 3, thecontrol module 100 includes a detection input VSin, a sampling input Vin, and anoutput connection 110, wherein,
the detection input end VSin is connected to the secondary side loop and is used for acquiring an induced voltage signal VS of the secondary side loop so as to judge whether the primary side loop is conducted or not; that is, the detection input terminal VSin is coupled between the secondary winding Ns and the anode of the secondary diode D1, for obtaining the induced voltage on the anode side of the secondary diode D1.
The sampling input end Vin is connected to the secondary side loop and is used for obtaining an output voltage signal Vout; that is, the sampling input terminal Vin is coupled between the cathode of the secondary diode D1 and the output capacitor C0, and is used for obtaining the output voltage of the cathode side of the secondary diode D1.
Theoutput connection end 110 is connected with the first indicator light LED1 and the second indicator light LED2 and is used for outputting a control signal SW to control the first indicator light LED1 and the second indicator light LED2; in this embodiment, theoutput connection terminals 110 are two, which are a first connection port V1 connected to the first indicator LED1 and a second connection port V2 connected to the second indicator LED 2.
Referring to fig. 2 and 3, thecontrol module 100 obtains the turn-on frequency of the primary winding Np according to the change frequency of the induced voltage signal VS in the secondary loop to obtain the operating frequency of the switching power supply, and determines the operating state of the load according to the operating frequency of the switching power supply to output the control signal SW to control the jump from the first indicator LED1 to the second indicator LED 2.
Referring to fig. 2 and 3, thecontrol module 100 includes a first comparator CMP1, a control tube Q1, and a turnlight circuit 120, where an input end of the first comparator CMP1 is connected to a detection input end VSin and the sampling input end Vin, respectively, for obtaining an operating frequency of the switching power supply; the control electrode of the control tube Q1 is coupled to the output end of the first comparator CMP1 and is used for responding to the working frequency of the switching power supply; theturn lamp circuit 120 is coupled to the first comparator CMP1 and the control tube Q1, and determines an operation state of the load according to an operation frequency of the switching power supply to output the control signal SW.
Referring to fig. 2 and 3, in the embodiment of the present application, in order to ensure that the comparison signal Sout output by the first comparator CMP1 is consistent with the operating frequency of the switching power supply, the non-inverting input end of the first comparator CMP1 is connected with the detection input end VSin to obtain the induced voltage signal VS of the secondary loop, the inverting input end of the first comparator CMP1 is connected with the sampling input end Vin to obtain the output voltage signal Vout, the first comparator CMP1 compares the induced voltage signal VS with the output voltage signal Vout and outputs the comparison signal Sout, and similarly, the non-inverting input end of the first comparator CMP1 may also be connected with the sampling input end Vin, the inverting input end of the first comparator CMP1 is connected with the detection input end VSin, and the subsequent conversion may be performed through the inverting logic so that the two are consistent; the inverting input terminal of the first comparator CMP1 is shown as the sampling input terminal Vin in this application. The control electrode of the control tube Q1 is connected to the output terminal of the first comparator CMP1, and performs on/off control according to the comparison signal Sout output from the first comparator CMP 1.
Referring to fig. 2 and 3, theturn lamp circuit 120 includes a current source Ic connected in series with the control tube Q1 and a buffer capacitor C1 connected in parallel with the control tube Q1, the current source Ic and the buffer capacitor C1 are connected in series between the sampling input Vin and the ground, and the output voltage signal Vout provides the current source Ic and the buffer capacitor C1 with electric energy. When the control tube Q1 is conducted, the buffer capacitor C1 discharges; when the control tube Q1 is turned off, the snubber capacitor C1 is charged. The turnlight circuit 120 further includes a second comparator CMP2 and a trigger DRFF, wherein an input end of the second comparator CMP2 is coupled between the current source Ic and the buffer capacitor C1, so as to obtain a voltage value of the buffer capacitor C1, the other input end of the second comparator CMP2 inputs a reference voltage Vref, and the second comparator CMP2 is configured to compare the voltage value of the buffer circuit with the reference voltage Vref and output a response signal S, where the response signal S is configured to reflect an operation state of the load.
Referring to fig. 2 and 3, a signal input terminal D of the flip-flop DRFF is connected to a sampling input terminal Vin, a clock control terminal CLK of the flip-flop DRFF is connected to an output terminal of the first comparator CMP1, a reset terminal RB of the flip-flop DRFF is connected to an output terminal of the second comparator CMP2, in this embodiment, the flip-flop DRFF is a D flip-flop (initial output state is 1), and the flip-flop DRFF is triggered by a rising edge, that is, when a clock signal at an input terminal of the clock control terminal CLK is a rising edge, if a reset signal rb=1 at an input terminal RB of the reset terminal RB, a control signal SW output by the flip-flop DRFF is the same as an input signal D input by the signal input terminal D and is at a high level; if the reset signal rb=0 is inputted to the reset terminal RB, the control signal SW is at a low level as the reset signal.
Referring to fig. 2 and 3, in the embodiment of the present application, an output terminal Q of the flip-flop DRFF is connected to a first connection port V1 and a second connection port V2, respectively, where the first connection port V1 and the second connection port V2 are configured to receive and respond to the control signal SW; the conduction conditions of the first connection port V1 and the second connection port V2 are opposite, so that the control signal SW output by the flip-flop DRFF can control the first indicator lamp LED1 and the second indicator lamp LED2 not to be simultaneously turned on. The first connection port V1 is set as a first switch tube K1, the second connection port V2 is set as a second switch tube K2, if the first switch tube K1 and the second switch tube K2 are switch tubes with the same conduction condition, the second connection port V2 is also provided with a first non-logic device NOT1, and the first non-logic device NOT1 is arranged between the output end Q of the trigger DRFF and the second switch tube K2; that is, the first switching tube K1 is connected in series with the first indicator light LED1, and the second switching tube K2 is connected in series with the second indicator light LED2, so that the first indicator light LED1 and the second indicator light LED2 are NOT simultaneously lighted by the first non-logic device NOT 1. Similarly, if the first switching tube K1 and the second switching tube K2 adopt two switching tubes with opposite conduction conditions, the control signal SW output by the trigger DRFF can control the first switching tube K1 and the second switching tube K2 NOT to be closed at the same time without the first non-logic device NOT 1; the application shows that first switch tube K1 and second switch tube K2 are NPN triode as an example.
Referring to fig. 2 and 3, when the first switching tube K1 and the second switching tube K2 are both turned on at a high level, and the first switching tube K1 is connected to the first indicator light LED1, so when the clock signal is at a rising edge, if the reset signal is a high level signal, the control signal SW output by the flip-flop diff is the same as the input signal, and at this time, the load is in a charging state; if the reset signal is a low level signal, the control signal SW output by the flip-flop diff is the same as the reset signal, and the load is in a full power state.
Referring to fig. 3 and 4, in the embodiment of the present application, the control tube Q1 is an NMOS tube, when the comparison signal Sout output by the first comparator CMP1 is at a low level, the control tube Q1 is turned off, at this time, the current source Ic and the buffer capacitor C1 are connected in series, the buffer capacitor C1 is charged, and the voltage of the buffer capacitor C1 is increased; when the comparison signal Sout output by the first comparator CMP1 is a high level signal, the control tube Q1 is turned on, and at this time, the buffer capacitor C1 is discharged, and the voltage of the buffer capacitor C1 drops. The non-inverting input end of the second comparator CMP2 is coupled with the buffer capacitor C1 to acquire the voltage of the buffer capacitor C1, the inverting input end of the second comparator CMP2 inputs the reference voltage Vref, the second comparator CMP2 outputs a response signal S according to the voltage of the buffer capacitor C1 and the reference circuit, a second non-logic NOT2 is arranged between the second comparator CMP2 and the trigger DRFF, under the action of the second non-logic NOT2, when the response signal S is a high-level signal, the reset signal input by the trigger DRFF is a low-level signal, and when the response signal S is a low-level signal, the reset signal input by the trigger DRFF is a high-level signal. Similarly, if the reference voltage Vref is input to the non-inverting input terminal of the second comparator CMP2 and the voltage of the buffer capacitor C1 is input to the inverting input terminal of the second comparator CMP2, the second non-logic device NOT2 is NOT required to be arranged between the output terminal of the second comparator CMP2 and the flip-flop DRFF; in the embodiment of the present application, the voltage input to the buffer capacitor C1 at the non-inverting input terminal of the second comparator CMP2 is taken as an example.
Referring to fig. 3 and 4, when the load is in a charged state, the switching power supply is in a high-frequency operation mode, the comparison signal Sout output by the first comparator CMP1 is also a high-level signal and a low-level signal which change at a high frequency, the control tube Q1 intermittently discharges the buffer capacitor C1, the voltage clock of the buffer capacitor C1 is always smaller than the reference voltage Vref, the response signal S output by the second comparator CMP2 is always at a low level, the clock signal input by the clock control terminal CLK of the flip-flop DRFF is a high-frequency signal, and when the clock signal is in a rising edge, the reset signal input by the reset terminal RB is a high-level signal, and at this time, the control signal SW is the same as the input signal and is at a high level, and the first indicator lamp LED1 is turned on. When the load is in a full-power state, the switching power supply is in a low-frequency working mode, the comparison signal Sout output by the first comparator CMP1 is also a high-level signal and a low-level signal with low-frequency change, the duration of the low-level signal is longer than the duration of the high-level change, the duration of charging the buffer capacitor C1 by the control tube Q1 is longer than the discharging duration, the voltage of the buffer capacitor C1 is always greater than the reference voltage Vref, the response signal S output by the second comparator CMP2 is always a high level, the reset signals input by the reset terminal RB are all low-level signals, the control signal SW is the same as the reset signals and is low-level, and the second indicator lamp LED2 is lighted.
Referring to fig. 3, as can be seen from the formula u=i×dc/dt, the magnitude of the voltage value is related to the current value and the capacitance value, and the charging duration of the capacitor, in this embodiment, the charging duration of the buffer capacitor C1 is related to the operating frequency of theoutput control system 200, that is, the operating state of the load, so the voltage value setting of the reference voltage Vref is set according to the current value of the current source Ic and the capacitance value of the buffer capacitor C1. Specifically, when the switching power supply works below the minimum frequency of 25Hz, the first indicator light LED1 jumps to the second indicator light LED2, and the reference voltage Vref may be set to a voltage value when the charging duration of the buffer capacitor C1 is 40 ms; namely, when the working frequency of the switching power supply is greater than 25Hz, the induced voltage signal VS obtained at the non-inverting input end of the first comparator CMP1 changes rapidly between positive and negative values, so that the comparison signal Sout output by the first comparator CMP1 is a high-frequency pulse signal, the charging and discharging of the buffer capacitor C1 change rapidly, and the charging duration is less than 40ms, and at this moment, when the trigger DRFF is at the rising edge, the voltage value of the buffer capacitor C1 is always less than the reference voltage Vref, so that the response signal S output by the second comparator CMP2 is always a low-level signal; when the operating frequency of the switching power supply is less than 25Hz, the induced voltage signal VS obtained at the non-inverting input terminal of the first comparator CMP1 slowly changes between a positive value and a negative value, the charging time period of the buffer capacitor C1 is longer than 40ms, and when the trigger DRFF is at the rising edge, the voltage value of the buffer capacitor C1 is always greater than the reference voltage Vref, so that the response signal S output by the second comparator CMP2 is always a high level signal.
The control principle of the switching power supply with the turn light control system in the embodiment of the application is as follows: when the rechargeable battery bat is in a charging state, the switching power supply is in normal load operation, the output control system 200 is in a high-frequency working mode, the comparison signal Sout output by the first comparator CMP1 is also a high-frequency pulse signal, the control tube Q1 is controlled to intermittently discharge the buffer capacitor C1, when the clock signal input by the clock end of the trigger DRFF is in a rising edge, the voltage value of the buffer capacitor C1 is always smaller than the reference voltage Vref, the response signal S output by the second comparator CMP2 is in a low level, after passing through the second non-logic device NOT2, the high level is output to the reset end RB of the trigger DRFF, when the reset signal is in a high level, the trigger DRFF normally works, the input signal of the input end of the trigger DRFF is in a high level, so the control signal SW output by the trigger DRFF is a high-level signal, the first switch tube K1 is turned on, the first indicator lamp LED1 is on, the second switch tube K2 is turned off under the reverse phase action of the first non-logic device NOT turned on, and the second indicator lamp LED2 is NOT on.
When the rechargeable battery bat is fully charged, theoutput control system 200 automatically adjusts and reduces the working frequency, the switching power supply is in light load operation, the comparison signal Sout output by the first comparator CMP1 is also a low-frequency pulse signal, the control tube Q1 is controlled to intermittently charge and discharge the buffer capacitor C1, the charging duration of the buffer capacitor C1 is prolonged before the rising edge of the clock signal of the trigger DRFF arrives, when the voltage value of the buffer capacitor C1 is greater than the reference voltage Vref, the response signal S output by the second comparator CMP2 is at a high level, after passing through the second non-logic device NOT2, the low level is output to the reset end RB of the trigger DRFF, when the reset signal is at a low level, the control signal SW output by the trigger DRFF is at a low level, the first switch tube K1 is turned off, the first indicator lamp LED1 is NOT on, the second switch tube K2 is turned on under the reverse phase action of the first non-logic device NOT1, and the second indicator lamp LED2 is turned on. In the full charge state of the rechargeable battery bat, the voltage value of the subsequent buffer capacitor C1 is greater than the reference voltage Vref when the clock signal of the flip-flop DRFF is at the rising edge, so the second comparator CMP2 always outputs a high level signal.
The embodiment of the application also discloses a switching power supply turn light control chip. Thecontrol module 100 disclosed in the above embodiment is integrated in the control chip, and includes a first comparator CMP1, a control tube Q1, and a turn-overcircuit 120, where the first comparator CMP1 obtains the working frequency of the switching power supply, the control tube Q1 responds to the working frequency, and the turn-overcircuit 120 determines the running state of the load according to the working of the switching power supply; when the working frequency of the switching power supply is high frequency, the load is in a loaded or heavy-load state, and at the moment, the first indicator light LED1 is on; when the operating frequency of the switching power supply is low frequency, the load is in light load or no load, and the second indicator light LED2 is on.
The foregoing are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in any way, therefore: all equivalent changes in structure, shape and principle of this application should be covered in the protection scope of this application.