This application claims priority to and the benefit of Chinese Patent Application No. 200910059878.1 filed on Jul. 2, 2009, which is incorporated herein by reference in its entirety.
The present invention generally relates to electrical circuits, and more particularly, relates to a switching regulator with fault protection.
A DC voltage is used as the power supply in many electronic devices. Generally, the DC voltage is derived from an AC power source. The AC voltage is rectified into an unregulated DC voltage by a rectifier bridge. The unregulated DC voltage is converted into the DC voltage as needed by a switching regulator.
A transformer or inductor is usually used as a tank element in the switching regulator. For example, a transformer is used in the flyback converter. A switch is electrically coupled to the primary winding of the transformer. The switch is turned on and off so as to alternately store energy in the transformer and transfer the stored energy to the secondary winding of the transformer. An output capacitor is electrically coupled to the secondary winding of the transformer and a rectified voltage is generated thereon. The rectified voltage provides the DC output voltage of the switching power supply. The DC output voltage increases and decreases inversely with the load. The heavier the load, which means the higher the output current, the lower the output voltage, and vice versa. Generally, the DC output voltage is fed back to control compensation for the variation of the load.
Various fault protections, such as over temperature protection, over current protection, over voltage protection, over load protection, under voltage protection and so on, are needed in the switching regulator. Generally, the switching regulator will be shut down if any fault condition is detected. But this method may cause mis-protection under some conditions. For example, the output voltage of the switching regulator is sensed to detect whether an over load condition exists. The over load condition is detected if the output voltage is larger than a threshold. However, when the switching regulator is just started, its output voltage is smaller than the threshold because of the time. The switching regulator will be shut down immediately.
In one embodiment, a switching regulator comprises a switching circuit, a control circuit, a fault detection circuit and a fault timer. The fault detection circuit is electrically coupled to the switching circuit to detect whether a fault condition exists and generate a fault signal accordingly. The fault timer starts to time once the fault signal becomes valid, and is reset when the fault signal becomes invalid. If the fault time reaches a first time threshold, the control circuit is disabled, and the switch in the switching circuit is turned off.
These and other features of the present invention will be readily apparent to persons of ordinary skill in the art upon reading the entirety of this disclosure, which includes the accompanying drawings and claims.
Reference will now be made in detail to the preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be obvious to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention.
The fault detection circuit 103 is electrically coupled to the switching circuit 101 to detect whether a fault condition exists and generate a fault signal FAULT accordingly. The fault condition may be one or more of the over voltage, over load, short circuit, under voltage and so on, and is detected through monitoring working parameters of the switching circuit 101, such as temperature, voltage, current and power. If the fault condition is detected, the fault signal FAULT is valid, else, it is invalid. The fault timer 104 is electrically coupled to the fault detection circuit 401 and the control circuit 102, receives the fault signal FAULT and generates a disable signal DISABLE accordingly. The fault timer 104 starts to time once the fault signal FAULT becomes valid, and is reset when the fault signal FAULT is invalid. If the fault time reaches a first time threshold Tfault, the disable signal DISABLE becomes valid. The control circuit 102 is disabled, and the switch is turned off by the control signal CTRL. In one embodiment, the fault timer 104 is realized by a counter counting the pulses in a pulse signal. The first time threshold Tfault is reached when the counting value reaches a first value n. In one embodiment, the control signal CTRL is used as the pulse signal.
In one embodiment, if the fault condition disappears after the control circuit 102 being disabled, the disable signal DISABLE becomes invalid and the control circuit 102 is enabled. This fault protection mode is called auto-restart mode.
As shown in
During t2<t<t3, the switching regulator works normally and the fault signal FAULT is invalid. At t=t3, a fault condition is detected. The fault signal FAULT becomes valid, and the fault timer 104 starts to time. During t3<t<t4, the fault condition remains, and the fault timer 104 continues timing. At t=t4, the fault time reaches the first time threshold Tfault. The disable signal DISABLE becomes valid and the control circuit 102 is disabled. The control signal CTRL becomes low to turn off the switch. At t=t5, the fault condition disappears. The disable signal DISABLE as well as the fault signal FAULT becomes invalid and the control circuit 102 is enabled.
In another embodiment, after the control circuit 102 being disabled, the fault timer 104 is reset and starts to time again. The control circuit 102 is enabled if the disable time reaches a second time threshold Tdisable. The fault timer 104 is reset and starts to time again. If the fault time reaches the first time threshold Tfault, the control circuit 102 is disabled again. This process repeats till the fault condition disappears. If the fault condition disappears, the disable signal DISABLE becomes invalid and the control circuit 102 is enabled. This fault protection mode is called smart restart mode.
In one embodiment, the fault timer 104 is realized by a counter through counting pulses in a pulse signal. The first time threshold Tfault is reached when the count value reaches the first value n. The second time threshold Tdisable is reached when the count value reaches a second value m. The first value n and the second value m may be equal, or unequal. The frequency of the pulse signal may be related, or not related to the switching frequency of the switch. In one embodiment, a single pulse signal is used. The frequencies of the pulse signal before and after the control circuit 102 being disabled are different. In one embodiment, different pulse signals are used before and after the control circuit 102 being disabled.
During t7<t<t8, the switching regulator works normally and the fault signal FAULT is invalid. At t=t8, a fault condition is detected. The fault signal FAULT becomes valid, and the fault timer 104 starts to time. During t8<t<t9, the fault condition remains, and the fault timer 104 continues timing. At t=t9, the fault time reaches the first time threshold Tfault. The disable signal DISABLE becomes valid and the control circuit 102 is disabled. The control signal CTRL becomes low to turn off the switch. The fault timer 104 is reset and starts to time again. During t9<t<t10, the fault condition remains and the fault timer 104 continues timing. The disable time is T3 at t=t10, wherein T3<Tdisable. So during t9<t<t10, the disable signal DISABLE is valid and the control circuit 102 is disabled. At t=t10, the fault condition disappears. The disable signal DISABLE as well as the fault signal FAULT becomes invalid. The fault timer is reset and the control circuit 102 is enabled.
During t10<t<t11, the switching regulator works normally and the fault signal FAULT is invalid. At t=t11, a fault condition is detected. The fault signal FAULT becomes valid, and the fault timer 104 starts to time. During t11<t<t12, the fault condition remains, and the fault timer 104 continues timing. At t=t12, the fault time reaches the first time threshold Tfault. The disable signal DISABLE becomes valid and the control circuit 102 is disabled. The control signal CTRL becomes low to turn off the switch. The fault timer 104 is reset and starts to time again. During t12<t<t13, the fault condition remains and the fault timer 104 continues timing. At t=t13, the disable time reaches the second time threshold Tdisable. The disable signal DISABLE becomes invalid and the control circuit 102 is enabled. The fault timer 104 is reset and starts to time again. This process repeats till the fault condition disappears.
Generally, the control circuit 102, the fault detection circuit 103 and the fault timer 104 are integrated into an IC (integrated circuit). Since the number of pins in the IC is limited to reduce cost and save space, it is hard to find a pin to provide a pulse signal to the fault timer 104.
A flyback topology is used in the switching circuit 101. The switching circuit 101 comprises an input capacitor Cin, a transformer T, a switch M, a diode D and an output capacitor Cout, connected as shown in
The current sensing circuit 401 is electrically coupled to the switch M to sense the current flowing through the switch M and generate a current sensing signal Isense representative of it. The current sensing circuit 401 may be realized by resistor, transformer, current amplifier and so on. The voltage feedback circuit 402 is electrically coupled to the output terminals of the switching regulator to sense the output voltage Vout and generate a feedback signal FB accordingly. The voltage feedback circuit 402 may comprise a photocoupler or a transformer. In one embodiment, the transformer T further comprises an auxiliary winding. The voltage feedback circuit 402 is electrically coupled to the auxiliary winding to sense the voltage across it. The voltage across the auxiliary winding can represent the output voltage Vout.
The control circuit 102 comprises a capacitor C1, a current source I1, a switch S1, a first comparison circuit 403, a second comparison circuit 404, a first logic circuit 405, gate circuits AND1 and NOT1. One terminal of the current source I1 receives a reference voltage Vcc. The capacitor C1 and the switch S1 are electrically connected in parallel and electrically connected between the other terminal of the current source 11 and the ground.
The first comparison circuit 403 is electrically coupled to the current sensing circuit 401, compares the current sensing signal Isense with a threshold Vth1. The second comparison circuit 404 is electrically coupled to the capacitor C1 and the voltage feedback circuit 402, compares the voltage across the capacitor C1 with the feedback signal FB. The output terminal of the second comparison circuit 404 is electrically coupled to the gate of the switch S1, provides a signal PULSE1 to control the on and off of the switch S1.
The first logic circuit 405 is electrically coupled to the output terminals of the first comparison circuit 403 and the second comparison circuit 404, controls the on and off of the switch M based on the comparison results under normal operation. The input terminal of the gate circuit NOT1 is electrically connected to the fault timer 104 to receive the disable signal DISABLE. One input terminal of the gate circuit AND1 is electrically connected to the output terminal of the gate circuit NOT1, the other input terminal is electrically connected to the output terminal of the first logic circuit 405. The output terminal of the gate circuit AND1 provides the control signal CTRL.
In one embodiment, the switch M is a NMOS (n type MOSFET). The current sensing circuit 401 comprises a resistor Rs which is electrically connected between the source of the switch M and the ground. The voltage sensing circuit 402 is electrically coupled to the output terminals of the switching circuit 101, and comprises a photocoupler and a shunt regulator. The feedback signal FB is increased and decreased along with the output voltage Vout.
The first comparison circuit 403 comprises a comparator COM1. The non-inverting input terminal of the comparator COM1 is electrically connected to the resistor Rs to receive the current sensing signal Isense. The inverting input terminal of the comparator COM1 receives the threshold Vth1. The second comparison circuit 404 comprises a comparator COM2. The non-inverting input terminal of the comparator COM2 is electrically connected to the capacitor C1 to receive the voltage across it. The inverting input terminal of the comparator COM2 is electrically connected to the voltage feedback circuit 402 to receive the feedback signal FB. The output terminal of the comparator COM2 provides the signal PULSE1.
The first logic circuit 405 comprises a flip-flop FF1. The flip-flop FF1 comprises a set terminal and a reset terminal, wherein both of them are high effective. The set terminal is electrically connected to the output terminal of the comparator COM2. The restart terminal is electrically connected to the output terminal of the comparator COM1. The output terminal of the flip-flop FF1 is the output terminal of the first logic circuit 405.
The fault detection circuit 103 detects whether an over load condition exists. It comprises a comparator COM3. The non-inverting input terminal of the comparator COM3 receives a threshold Vth2, the inverting input terminal is electrically connected to the voltage feedback circuit 402 to receive the feedback signal FB. The output terminal of the comparator COM3 provides the fault signal FAULT. If the feedback signal FB is smaller than the threshold Vth2, an over load condition is detected. The fault signal FAULT is valid (high level). Else, the fault signal FAULT is invalid (low level).
The fault timer 104 comprises multiple serially connected flip-flops DFF1˜DFFi, wherein i is a positive integer. Each flip-flop comprises a data terminal, a clock terminal, a non-inverting output terminal, an inverting output terminal, a reset terminal and a set terminal. The clock terminal is falling edge effective. The reset terminal is low effective and the set terminal is high effective. The data terminal of each flip-flop is electrically connected to the inverting output terminal of itself. The set terminal is grounded. The reset terminal is electrically connected to the fault detection circuit 103 to receive the fault signal FAULT. The clock terminal of the flip-flop DFF1 is electrically connected to the output terminal of the gate circuit AND1 to receive the control signal CTRL. The clock terminals of the flip-flops DFF2˜DFFi are separately connected to the non-inverting output terminals of the flip-flops DFF1˜DFF(i-1). The non-inverting output terminal of the flip-flop DFFi provides the disable signal DISABLE. The disable signal DISABLE is initially low, and inversed after every 2i−1 pulses.
The switching regulator shown in
wherein T is the switching period of the switch M) is reached, the disable signal DISABLE becomes high. The output signal of the gate circuit NOT1 is low, and the control circuit 102 is disabled. The control signal CTRL is low and the switch M is turned off. The control circuit 102 won't be enabled again until the fault signal FAULT becomes invalid (low) to reset the flip-flops DFF1˜DFFi. However, since the switch M is turned off after the control circuit 102 being disabled, the voltage Vout won't be increased. So the fault signal FAULT won't become invalid until the switching regulator being wholly restarted.
The switching regulator shown in
wherein Tpulse1 is the period of the signal PULSE1) is reached, the disable signal DISABLE becomes high. The output signal of the gate circuit NOT1 is low, and the control circuit 102 is disabled. The Control signal CTRL is low and the switch M is turned off.
The fault timer 104 continues timing. If the second time threshold Tdisable
is reached, the disable signal DISABLE is inversed and become low. The control circuit 102 is enabled. The fault timer 104 keeps timing. This process repeats till the over load condition disappears. In one embodiment, the current value of the current source 11 before and after the control circuit 102 being disabled are different, so as to let the first time threshold Tfault be different from the second time threshold Tdisable.
The switch voltage sensing circuit 603 is electrically coupled to the switch M to sense the voltage across the switch M and generate a switch voltage sensing signal DMG accordingly. The control circuit 102 comprises a third comparison circuit 604, a fourth comparison circuit 605, a second logic circuit 606, gate circuits AND2 and NOT2. The third comparison circuit 604 is electrically coupled to the current sensing circuit 601 and the voltage feedback circuit 602 to compare the current sensing signal Isense with the feedback signal FB. The fourth comparison circuit 605 is electrically coupled to the switch voltage sensing circuit 603 to compare the switch voltage sensing signal DMG with a threshold Vth3. The second logic circuit 606 is electrically coupled to the third comparison circuit 604 and the fourth comparison circuit 605, controls the on and off of the switch M based on the comparison results under normal operation. The input terminal of the gate circuit NOT2 is electrically connected to the fault timer 104 to receive the disable signal DISABLE. One input terminal of the gate circuit AND2 is electrically connected to the output terminal of the gate circuit NOT2, the other input terminal is electrically connected to the output terminal of the second logic circuit 606. The output terminal of the gate circuit AND2 provides the control signal CTRL.
In one embodiment, the transformer T further comprises an auxiliary winding. The switch voltage sensing circuit 404 is electrically coupled to the auxiliary winding to sense the voltage across it and generate the switch voltage sensing signal DMG accordingly. The voltage sensing circuit 602 is electrically coupled to the output terminal of the switching circuit 101, comprises a photocoupler and a shunt regulator. The feedback signal FB is increased and decreased reversely with the output voltage Vout.
The third comparison circuit 604 comprises a comparator COM4. The non-inverting input terminal of the comparator COM4 is electrically connected to the current sensing circuit 601 to receive the current sensing signal Isense. The inverting input terminal of the comparator COM4 is electrically connected to the voltage feedback circuit 602 to receive the feedback signal FB. The fourth comparison circuit 605 comprises a comparator COM5. The non-inverting input terminal of the comparator COM5 receives the threshold Vth3. The inverting input terminal of the comparator COM5 is electrically connected to the switch voltage sensing circuit 603 to receive the switch voltage sensing signal DMG.
The second logic circuit 606 comprises a flip-flop FF2. The flip-flop FF2 comprises a set terminal and a reset terminal, wherein both of them are high effective. The set terminal of the flip-flop FF2 is electrically connected to the output terminal of the comparator COM5, the reset terminal is electrically connected to the output terminal of the comparator COM4. The output terminal of the flip-flop FF2 is the output terminal of the second logic circuit 606.
The fault detection circuit 103 detects whether an over load condition exists. It comprises a comparator COM6. The inverting input terminal of the comparator COM6 receives a threshold Vth2. The non-inverting input terminal of the comparator COM6 is electrically connected to the voltage feedback circuit 602 to receive the feedback signal FB. The output terminal of the comparator COM6 provides the fault signal FAULT. If the feedback signal FB is larger than the threshold Vth2, an over load condition is detected. The fault signal FAULT is valid (high level). Else, the fault signal FAULT is invalid (low level).
The switching regulator shown in
is reached, the disable signal DISABLE becomes high. The output signal of the gate circuit NOT2 is low, and the control circuit 102 is disabled. The control signal CTRL is low and the switch M is turned off.
Compared with the switching regulator shown in
The switching regulator shown in
If an over load condition happens, the feedback signal FB becomes larger than the threshold Vth2 and the fault signal FAULT becomes high. The output signal of the gate circuit ORI is high and the fault timer 104 starts to time. Since the disable signal DISABLE is low then, the output signal of the gate circuit AND3 is low and the switch S2 is turned off. The voltage between the multifunctional pin and the ground is still determined by the feedback signal FB. The output signal of the gate circuit AND4 is low, and the output signal of the gate circuit OR2 is the control signal CTRL. The control signal CTRL is used as the pulse signal of the fault timer 104.
If the first time threshold
is reached, the disable signal DISABLE becomes high. The output signal of the gate circuit NOT2 is low, and the control circuit 102 is disabled. The control signal CTRL is low and the switch M is turned off. After the control circuit 102 being disabled, the capacitor C2 is charged by the reference voltage Vcc through a resistor R1. When the voltage across the capacitor C2 becomes larger than the threshold Vth4, the signal PULSE2 as well as the output signal of the gate circuit AND3 is high. The switch S2 is turned on and the capacitor C2 is discharged. The signal PULSE2 is a periodical pulse signal because of the charge and discharge of the capacitor C2, wherein its period TPULSE2 is determined by the reference voltage Vcc, the resistor R1, the capacitor C2 and the threshold Vth4. The fault timer 104 keeps timing. The disable signal DISABLE is high then, so the output signal of the gate circuit AND4 is the signal PULSE2. Since the control signal CTRL is low, the signal PULSE2 is used as the pulse signal of the fault timer 104.
If the second time threshold Tdisable (Tdisable=2i−1*Tpulse2) is reached, the disable signal DISABLE is inversed and becomes low. The control circuit 102 is enabled again. The fault timer 104 keeps timing, and the control signal CTRL is used as its pulse signal. This process repeats till the over load condition disappears.
Generally, the capacitor C2 is a filter capacitor of the multifunctional pin, and its capacitance is small, such as 2.2 nF or 1 nF. In one embodiment, the switching regulator further comprises a resistor R2, a switch S3 and a gate circuit NOT3. The switch S3 and the resistor R2 are serially connected and electrically connected between the reference voltage Vcc and the multifunctional pin. The input terminal of the gate circuit NOT3 is electrically connected to the fault timer 104 to receive the disable signal DISABLE, the output terminal is electrically coupled to the gate of the switch S3 to control the on and off of the switch S3. The switch S3 is turned on when the control circuit 102 is disabled, so as to adjust the period Tpulse2 of the signal PULSE2.
In one embodiment, the switches S2 and S3, the comparator COM7, the gate circuits AND3, AND4, NOT3, OR1 and OR2, the resistors R1 and R2, the control circuit 102, the fault detection circuit 103 and the fault timer 104 are integrated together. The switching regulator can be simply converted into auto-restart mode by replacing the capacitor C2 with a resistor.
The control circuit 102 comprises a fifth comparison circuit 803, a clock generator 804, a third logic circuit 805, gate circuits AND5 and NOT4. The fifth comparison circuit 803 is electrically coupled to the current sensing circuit 801 and the voltage feedback circuit 802 to compare the current sensing signal Isense with the feedback signal FB. The clock generator 804 generates a clock signal CLK. The third logic circuit 805 is electrically coupled to the fifth comparison circuit 803 and the clock generator 804, controls the on and off of the switch M based on the comparison result and the clock signal CLK. The input terminal of the gate circuit NOT4 is electrically connected to the fault timer 104 to receive the disable signal DISABLE. One input terminal of the gate circuit AND5 is electrically connected to the output terminal of the gate circuit NOT4, the other input terminal is electrically connected to the output terminal of the third logic circuit 805. The output terminal of the gate circuit AND5 provides the control signal CTRL.
In one embodiment, the fifth comparison circuit 803 comprises a comparator COM8. The non-inverting input terminal of the comparator COM8 is electrically connected to the current sensing circuit 801 to receive the current sensing signal Isense, the inverting input terminal is electrically connected to the voltage feedback circuit 802 to receive the feedback signal FB. The third logic circuit 805 comprises a flip-flop FF3. The flip-flop FF3 comprises a set terminal and a reset terminal, wherein the set terminal is rising edge effective and the reset terminal is high effective. The set terminal of the flip-flop FF3 is electrically connected to the clock generator 804 to receive the clock signal CLK, the reset terminal is electrically connected to the output terminal of the comparator COM8. The output terminal of the flip-flop FF3 is the output terminal of the third logic circuit 805.
The switching regulator shown in
is reached, the disable signal DISABLE becomes high. The output signal of the gate circuit NOT4 is low, and the control circuit 102 is disabled. The control signal CTRL is low and the switch M is turned off.
The switching regulator shown in
If an over load condition happens, the feedback signal FB becomes larger than the threshold Vth2 and the fault signal FAULT becomes high. The fault timer 104 starts to time. If the first time threshold Tfault (Tfault=2i−1*Tclk) is reached, the disable signal DISABLE becomes high. The control circuit 102 is disabled. The control signal CTRL is low and the switch M is turned off. The fault timer 104 continues timing.
If the second time threshold Tdisable (Tdisable=2i−1*Tclk) is reached, the disable signal DISABLE is inversed and becomes low. The control circuit is enabled again. The fault timer 104 keeps timing. This process repeats till the over load condition disappears. In one embodiment, the first time threshold Tfault and the second time threshold Tdisable are different through adjusting the frequency of the clock signal CLK.
At step 1001, a control signal is generated to control the on and off of a switch which is electrically coupled to a tank element.
At step 1002, whether a fault condition exists in the switching regulator is monitored. If yes, go to step 1003, else, keep monitoring.
At step 1003, the continuous fault condition is timed.
At step 1004, whether the fault time is longer than a first time threshold Tfault is judged. If yes, go to step 1005, else, go to step 1002.
At step 1005 the control signal is disabled and the switch is turned off.
In one embodiment, the control signal is enabled if the fault condition disappears after the control signal being disabled. In one embodiment, the fault timer is realized by a counter and the control signal is used as its pulse signal.
In another embodiment, the continuous disable condition is also timed. If the disable time is longer than a second time threshold Tfault, the control signal is enabled.
Obviously many modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims the invention may be practiced otherwise than as specifically described. It should be understood, of course, the foregoing disclosure relates only to a preferred embodiment (or embodiments) of the invention and that numerous modifications may be made therein without departing from the spirit and the scope of the invention as set forth in the appended claims. Various modifications are contemplated and they obviously will be resorted to by those skilled in the art without departing from the spirit and the scope of the invention as hereinafter defined by the appended claims as only a preferred embodiment(s) thereof has been disclosed.
From the foregoing, it will be appreciated that specific embodiments of the invention have been described herein for purposes of illustration, but that various modifications may be made without deviating from the spirit and scope of the invention. Accordingly, the invention is not limited except as by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
200910059878.1 | Jul 2009 | CN | national |