Switching mode power supply providing an over current protection with anti-surge function
11239743 · 2022-02-01
Assignee
Inventors
Cpc classification
H02M1/0009
ELECTRICITY
H02M1/083
ELECTRICITY
H02M1/0064
ELECTRICITY
H02M1/32
ELECTRICITY
International classification
Abstract
A switching mode power supply preventing false triggering of an over current protection due to a surge pulse. The switching mode power supply has a switch and an inductor. An inductor current flows through the inductor. The switching mode power supply turns off the switch and meanwhile starts timing for a preset period of time when the inductor current is larger than a preset value. The switch is kept off during the preset period of time and is then turned on when the preset period of time expires.
Claims
1. A driving circuit in a switching mode power supply, wherein the switching mode power supply comprises an inductor and a switch, and wherein an inductor current flows through the inductor, the driving circuit comprising: an over current comparison circuit configured to receive an over current threshold signal and a first current detecting signal representative of the inductor current generated during a period when the switch is on, wherein the over current comparison circuit is configured to generate an over current comparison signal to control a turning-off moment of the switch based on comparing the first current detecting signal with the over current threshold signal; a watch-dog circuit configured to receive a watch-dog triggering signal indicating the turning-off moment of the switch, wherein the watch-dog circuit is configured to generate a watch-dog signal based on the watch-dog triggering signal to trigger a turning-on operation of the switch after a preset period of time expires, and wherein the preset period of time is timed beginning from the turning-off moment of the switch; an on moment control circuit configured to receive a second current detecting signal representative of the inductor current generated during a period when the switch is off and to receive an on threshold signal, wherein the on moment control circuit is configured to generate an on signal to control a turning-on moment of the switch based on comparing the second current detecting signal with the on threshold signal, and wherein the on moment control circuit is enabled or disable by the over current comparison signal; and a switching control circuit configured to generate a switching control signal based on the over current comparison signal, the watch-dog signal and the on signal to control the turning-on moment and the turning-off moment of the switch.
2. The driving circuit of claim 1, wherein the watch-dog triggering signal is the switching control signal.
3. The driving circuit of claim 1, wherein the switching control circuit comprises: a first RS flip-flop having a set terminal, a reset terminal and an output terminal, wherein the set terminal receives the switching control signal, the reset terminal receives the over current comparison signal, and the first RS flip-flop provides a latch signal at the output terminal; an AND gate having a first input terminal, a second input terminal and an output terminal, the first input terminal receives the latch signal, the second input terminal receives the on signal, the AND gate generates an AND signal at the output terminal based on the latch signal and the on signal; an inverting circuit having an input terminal and an output terminal, wherein the inverting circuit receives the watch-dog signal at the input terminal and inverts the watch-dog signal to generate an inverting signal of the watch-dog signal at the output terminal; an OR gate having a first input terminal, a second input terminal and an output terminal, wherein the OR gate receives the AND signal at the first input terminal and the inverting signal of the watch-dog signal at the second input terminal, and the AND gate generates an OR signal at the output terminal based on the AND signal and the inverting signal of the watch-dog signal; and a second RS flip-flop having a set terminal, a reset terminal and an output terminal, wherein the second RS flip-flop receives the over current comparison signal at the reset terminal and the OR signal at the set terminal, and the second RS flip-flop generates the switching control signal based on the over current comparison signal and the OR signal.
4. The driving circuit of claim 1, wherein the driving circuit comprises an off moment control circuit configured to receive a feedback signal representative of an output voltage of the switching mode power supply and to receive an off threshold signal, and the off moment control circuit is configured to generate an off signal based on the feedback signal and the off threshold signal to control a turning-off operation of the switch.
5. The driving circuit of claim 4, wherein the switching control circuit comprises: a first RS flip-flop having a set terminal, a reset terminal and an output terminal, wherein the set terminal receives the switching control signal, the reset terminal receives the over current comparison signal, and the first RS flip-flop is configured to provide a latch signal at the output terminal; an AND gate having a first input terminal, a second input terminal and an output terminal, the first input terminal receives the latch signal, the second input terminal receives the on signal, and the AND gate generates an AND signal at the output terminal based on the latch signal and the on signal; an inverting circuit having an input terminal and an output terminal, wherein the inverting circuit receives the watch-dog signal at the input terminal and inverts the watch-dog signal to generate an inverting signal of the watch-dog signal at the output terminal; a first OR gate having a first input terminal, a second input terminal and an output terminal, wherein the first OR gate receives the AND signal at the first input terminal and the inverting signal of the watch-dog signal at the second input terminal, and the first OR gate generates a first OR signal at the output terminal based on the AND signal and the inverting signal of the watch-dog signal; a second OR gate having a first input terminal, a second input terminal and an output terminal, wherein the second OR gate receives the over current comparison signal at the first input terminal and the off signal at the second input terminal, and the second OR gate generates a second OR signal at the output terminal based on the over current comparison signal and the off signal; and a second RS flip-flop having a set terminal, a reset terminal and an output terminal, wherein the second RS flip-flop receives the second OR signal at the reset terminal and the first OR signal at the set terminal, and the second RS flip-flop generates the switching control signal based on the first OR signal and the second OR signal.
6. The driving circuit of claim 1, wherein the driving circuit further comprises a timing circuit coupled to the over current comparison circuit, and the timing circuit is configured to generate a shut-down signal to control a shutting-down operation of the switching mode power supply.
7. The driving circuit of claim 6, wherein if an activated state of the over current comparison signal exists during M consecutive switching cycles, the shut-down signal transits from a non-activated state into an activated state to shut down the switching mode power supply, and wherein M is an integer larger than 2.
8. The driving circuit of claim 1, wherein the switching mode power supply further comprises a current detecting circuit, and wherein the current detecting circuit comprises: a first detecting resistor having a first terminal and a second terminal, wherein the first terminal is coupled to the switch, and the second terminal is coupled to a reference ground; and a second detecting resistor having a first terminal and a second terminal, wherein the first terminal of the second detecting resistor is coupled to the first terminal of the first detecting resistor, and the second terminal of the second detecting resistor is configured to provide the first current detecting signal.
9. The driving circuit of claim 1, wherein the switching mode power supply further comprises a zero-crossing detecting circuit comprising: an auxiliary inductor having a first terminal and a second terminal, wherein the first terminal of the auxiliary inductor is coupled to a reference ground, and the auxiliary inductor and the inductor couple together to form a transformer; and a zero-crossing detecting resistor having a first terminal and a second terminal, wherein the first terminal of the zero-crossing detecting resistor is coupled to the second terminal of the auxiliary inductor, and the second terminal of the zero-crossing detecting resistor is configured to provide the second current detecting signal.
10. The driving circuit of claim 1, wherein the over current comparison signal transits from a non-activated state into an activated state when the first current detecting signal is larger than the over current threshold signal, and upon the activated state of the over current comparison signal, the on moment control circuit is disabled, and the switching control circuit turns off the switch and the watch-dog triggering signal transits from a non-activated state into an activated state, and upon the activated state of the watch-dog triggering signal, the watch-dog circuit starts timing and the watch-dog signal transits from a non-activated state into an activated state, and wherein after the preset period of time expires, the watch-dog circuit stops timing and the watch-dog signal transits from the activated state into the non-activated state, and upon the non-activated state of the watch-dog signal, the switching control circuit turns on the switch.
11. A switching mode power supply, comprising: an inductor, wherein an inductor current flows through the inductor; a switch; and a driving circuit, comprising: an over current comparison circuit configured to receive an over current threshold signal and a first current detecting signal representative of the inductor current generated during a period when the switch is on, wherein the over current comparison circuit is configured to generate an over current comparison signal to control a turning-off moment of the switch based on comparing the first current detecting signal with the over current threshold signal; a watch-dog circuit configured to receive a watch-dog triggering signal indicating the turning-off moment of the switch, wherein the watch-dog circuit is configured to generate a watch-dog signal based on the watch-dog triggering signal to trigger a turning-on operation of the switch after a preset period of time expires, and wherein the preset period of time is timed beginning from the turning-off moment of the switch; an on moment control circuit configured to receive a second current detecting signal representative of the inductor current generated during a period when the switch is off and to receive an on threshold signal, wherein the on moment control circuit is configured to generate an on signal to control a turning-on moment of the switch based on comparing the second current detecting signal with the on threshold signal, and wherein the on moment control circuit is enabled or disable by the over current comparison signal; and a switching control circuit configured to generate a switching control signal based on the over current comparison signal, the watch-dog signal and the on signal to control the turning-on moment and the turning-off moment of the switch.
12. The switching mode power supply of claim 11, wherein the watch-dog triggering signal is the switching control signal.
13. The switching mode power supply of claim 11, wherein the driving circuit comprises an off moment control circuit configured to receive a feedback signal representative of an output voltage of the switching mode power supply and to receive an off threshold signal, and the off moment control circuit is configured to generate an off signal based on the feedback signal and the off threshold signal to control a turning-off operation of the switch.
14. The switching mode power supply of claim 11, wherein the driving circuit further comprises a timing circuit coupled to the over current comparison circuit, and the timing circuit is configured to generate a shut-down signal to control a shutting-down operation of the switching mode power supply.
15. The switching mode power supply of claim 14, wherein if an activated state of the over current comparison signal exists during M consecutive switching cycles, the shut-down signal transits from a non-activated state into an activated state to shut down the switching mode power supply, wherein M is an integer larger than 2.
16. The switching mode power supply of claim 11, wherein the switching mode power supply further comprises a current detecting circuit, and wherein the current detecting circuit comprises: a first detecting resistor having a first terminal and a second terminal, wherein the first terminal is coupled to the switch, and the second terminal is coupled to a reference ground; and a second detecting resistor having a first terminal and a second terminal, wherein the first terminal of the second detecting resistor is coupled to the first terminal of the first detecting resistor, and the second terminal of the second detecting resistor is configured to provide the first current detecting signal.
17. The switching mode power supply of claim 11, wherein the switching mode power supply further comprises a zero-crossing detecting circuit comprising: an auxiliary inductor having a first terminal and a second terminal, wherein the first terminal of the auxiliary inductor is coupled to a reference ground, and the auxiliary inductor and the inductor couple together to form a transformer; and a zero-crossing detecting resistor having a first terminal and a second terminal, wherein the first terminal of the zero-crossing detecting resistor is coupled to the second terminal of the auxiliary inductor, and the second terminal of the zero-crossing detecting resistor is configured to provide the second current detecting signal.
Description
DESCRIPTION OF THE DRAWINGS
(1) The present invention can be further understood with reference to the following detailed description and the appended drawings, wherein like elements are provided with like reference numerals.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DESCRIPTION
(11) The present invention is now described. While it is disclosed in its preferred form, the specific embodiments of the invention as disclosed herein and illustrated in the drawings are not to be considered in a limiting sense. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Indeed, it should be readily apparent in view of the present description that the invention may be modified in numerous ways. Among other things, the present invention may be embodied as devices, methods, software, and so on. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. The following detailed description is, therefore, not to be taken in a limiting sense.
(12) Throughout the invention, the meaning of “a,” “an,” and “the” may also include plural references. For example, “a peak” in the present invention may refer to one peak or a plurality of peaks, depending on the specific context.
(13)
(14)
(15) The driving circuit 12 is configured to comprise an over current comparison circuit 121, a watch-dog circuit 122, an on moment control circuit 123 and a switching control circuit 124. The over current comparison circuit 121 receives an over current threshold signal V.sub.THS and a first current detecting signal V.sub.CS representative of the inductor current I.sub.L, and further generates an over current comparison signal S.sub.SCP by comparing the over current threshold signal V.sub.THS with the first current detecting signal V.sub.CS. In an embodiment, the first current detecting signal V.sub.CS represents the inductor current I.sub.L generated during a period when the switch S is on. In an embodiment, the first current detecting signal V.sub.CS is generated by a current detecting circuit. In detail, the current detecting circuit receives the inductor current I.sub.L and further generates the first current detecting signal V.sub.CS based on the inductor current I.sub.L. In an exemplary embodiment, the current detecting circuit comprises a first detecting resistor R.sub.CS1 and a second detecting resistor R.sub.CS2. The first detecting resistor R.sub.CS1 has a first terminal and a second terminal, wherein the first terminal of the first detecting resistor R.sub.CS1 receives the inductor current I.sub.L, and the second terminal of the first detecting resistor R.sub.CS1 is coupled to a reference ground GND. The second detecting resistor R.sub.CS2 has a first terminal and a second terminal, wherein the first terminal of the second detecting resistor R.sub.CS2 is coupled to the first terminal of the first detecting resistor R.sub.CS1, and the second terminal of the second detecting resistor R.sub.CS2 is configured to provide the first current detecting signal V.sub.CS. In another embodiment, the current detecting circuit may comprise the first detecting resistor R.sub.CS1 but not the second detecting resistor R.sub.CS2, and the first terminal of the first detecting resistor R.sub.CS1 is configured to provide the first current detecting signal V.sub.CS. Yet in another embodiment, the current detecting circuit may comprise a third detecting resistor and a fourth detecting resistor, wherein the third detecting resistor has a first terminal and a second terminal, the first terminal of the third detecting resistor receives the inductor current I.sub.L, the fourth detecting resistor has a first terminal and a second terminal, the first terminal of the fourth detecting resistor is coupled to the second terminal of the third detecting resistor, the second terminal of the fourth detecting resistor is coupled to a reference ground GND. The second terminal of the third detecting resistor and the first terminal of the fourth detecting resistor is configured to provide the first current detecting signal V.sub.CS. In an embodiment, the current detecting circuit is serially coupled to the switch S in a current loop to receive the inductor current I.sub.L. Yet in another embodiment, the current detecting circuit is serially coupled to the inductor L in a current loop to receive the inductor current I.sub.L. Persons of ordinary skill in the art will recognize that, the above-mentioned current detecting circuits are just for illustration, yet in another embodiment, the first current detecting signal V.sub.CS may be generated by a current detecting circuit with any appropriate configuration.
(16) In an embodiment, the over current comparison circuit 121 comprises an over current comparator CMP1 having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the over current comparator CMP1 receives the over current threshold signal V.sub.THS, the second input terminal of the over current comparator CMP1 receives the first current detecting signal V.sub.CS, the over current comparator CMP1 is configured to generate the over current comparison signal S.sub.SCP based on comparing the over current threshold signal V.sub.THS with the first current detecting signal V.sub.CS. In an embodiment, the first input terminal of the over current comparator CMP1 is an inverting input terminal and the second input terminal of the over current comparator CMP1 is a non-inverting input terminal.
(17) In an embodiment, the over current comparison signal S.sub.SCP transits from a non-activated state (e.g., logic low “0”) into an activated state (e.g., logic high “1”) when the first current detecting signal V.sub.CS is larger than the over current threshold signal V.sub.THS.
(18) The watch-dog circuit 122 receives a watch-dog triggering signal S.sub.WDT representative of a turning-off moment of the switch S, and generates a watch-dog signal S.sub.WD based on the watch-dog triggering signal S.sub.WDT so as to turn on the switch S after a preset period of time T.sub.D expires. The preset period of time T.sub.D is timed beginning from a moment when the switch S is turned off. In an embodiment, the watch-dog triggering signal S.sub.WDT can be a switching control signal CTRL controlling the turning-on operation and the turning-off operation of the switch S (the switching control signal CTRL will be elaborated soon below). In an embodiment, the watch-dog triggering signal S.sub.WDT transits from a non-activated state (e.g., logic “1”) into an activated state (e.g., logic “0”) when the switch S is turned off, consequently, the watch-dog circuit 122 starts timing and the watch-dog signal S.sub.WD transits from a non-activated state (e.g., logic “0”) into an activated state (e.g., logic “1”). After the preset period of time T.sub.D expires, the watch-dog circuit 122 stops timing and the watch-dog signal S.sub.WD transits from the activated state into the non-activated state to trigger the turning-on operation of the switch S. In an embodiment, the watch-dog signal S.sub.WD is reset when the switch S is turned on, the watch-dog triggering signal S.sub.WDT transits from the activated state into the non-activated state.
(19) In an embodiment, the switching mode power supply 100 has a normal switching cycle when the switching mode power supply 100 is in a normal operation where no transition from the non-activated state into the activated state of the over current comparison signal S.sub.SCP occurs, then the preset period of time T.sub.D is larger than the normal switching cycle, for example, the preset period of time T.sub.D can be approximately ten times of the normal switching cycle. Yet in another embodiment, the preset period of time T.sub.D can be appropriately set, considering the time duration when a surge pulse lasts and the time duration when an over current event lasts, so as to distinguish the surge event and the over current event to ensure the surge event ends by the end of the preset period of time T.sub.D.
(20) The on moment control circuit 123 receives an on threshold signal V.sub.THON and a second current detecting signal V.sub.ZCD representative of the inductor current I.sub.L, and generates an on signal S.sub.ON based on comparing the second current detecting signal V.sub.ZCD with the on threshold signal V.sub.THON so as to control a turning-on moment of the switch S. In an embodiment, the second current detecting signal V.sub.ZCD represents the inductor current I.sub.L when the switch S is off. In an embodiment, the on moment control circuit 123 compares the second current detecting signal V.sub.ZCD with the on threshold signal V.sub.THON, and when the second current detecting signal V.sub.ZCD is lower than the on threshold signal V.sub.THON, the on moment control circuit 123 judges that the inductor current I.sub.L decreases to a preset value and the on signal S.sub.ON transits from a non-activated state (e.g., logic “0”) into an activated state (e.g., logic “1”) to turn on the switch S.
(21) In an embodiment, the second current detecting signal V.sub.ZCD can be generated by a zero-crossing detecting circuit 300 as shown in
(22) In an embodiment, the on moment control circuit 123 comprises an on comparator having a first input terminal, a second input terminal, and an output terminal, wherein the first input terminal of the on comparator receives the on threshold signal V.sub.THON, the second input terminal of the on comparator receives the second current detecting signal V.sub.ZCD, the on comparator generates the on signal S.sub.ON based on comparing the on threshold signal V.sub.THON with the second current detecting signal V.sub.ZCD. In an embodiment, the first input terminal of the on comparator is a non-inverting input terminal and the second input terminal of the on comparator is an inverting input terminal.
(23) As shown in
(24) The switching control circuit 124 is coupled to the over current comparison circuit 121, the watch-dog circuit 122 and the on moment control circuit 123 and generates a switching control signal CTRL based on the over current comparison signal S.sub.SCP, the watch-dog signal S.sub.WD and the on signal S.sub.ON to control the turning-on operation and the turning-off operation of the switch S. In detail, the switching control circuit 124 operates to turn off the switch S based on the over current comparison signal S.sub.SCP and to turn on the switch S based on the watch-dog signal S.sub.WD and the on signal S.sub.ON. More particularly, when the over current comparison signal S.sub.SCP transits from the non-activated state into the activated state, the switching control signal CTRL transits from the activated state into the non-activated state to turn off the switch S, when the on signal S.sub.ON transits from the non-activated state into the activated state, the switching control signal CTRL transits from the non-activated state into the activated state to turn on the switch S; when the watch-dog signal S.sub.WD transits from the activated state into the non-activated state, the switching control signal CTRL transits from the non-activated state into the activated state to turn on the switch S.
(25)
(26) When the over current comparison signal S.sub.SCP transits from the non-activated state into the activated state, the second RS flip-flop FF2 is reset which, in turn, causes the switching control signal CTRL from the second RS flip-flop FF2 to transit from the activated state into the non-activated state to turn off the switch S. Meanwhile, such non-activated state of the switching control signal switching control signal CTRL (the activated state of the watch-dog triggering signal S.sub.WDT) triggers the watch-dog circuit 122 to start timing, thus, the watch-dog signal S.sub.WD transits from the non-activated state into the activated state, and the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD transits from the activated state into the non-activated state accordingly. On the other hand, the activated state of the over current comparison signal S.sub.SCP resets the first RS flip-flop FF1 which, in turn, causes the latch signal S.sub.FF from the first RS flip-flop FF1 to transit from the activated state into the non-activated state, thus, providing the AND signal S.sub.AND from the AND gate ANDA the non-activated state regardless of the state of the on signal Son. That is, the on signal S.sub.ON is overrode by the latch signal S.sub.FF and stops controlling the turning-on operation of the switch S, in other words, the on moment control circuit 123 is disabled by the activated state of the over current comparison signal S.sub.SCP. Then, logical conjunction is implemented on the AND signal S.sub.AND and the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD, and the OR signal S.sub.OR is determined by the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD due to the non-activated state of the AND signal S.sub.AND. When the watch-dog circuit 122 is timing, the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD is in the non-activated state which, in turn, provides the OR signal S.sub.OR the non-activated state and the switching control signal CTRL the non-activated state as well, thus, turning off the switch S. When the watch-dog circuit 122 stops timing, the watch-dog signal S.sub.WD transits from the activated state into the non-activated state, and consequently, the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD transits from the non-activated state into the activated state, thus, causing the OR signal S.sub.OR to transit from the non-activated state into the activated state, which, in turn, sets the second RS flip-flop FF2 and causes the switching control signal CTRL to transit from the non-activated state into the activated state to turn on the switch S. On one hand, if the over current comparison signal S.sub.SCP transits from the non-activated state into the activated state after the switch S is turned on, the switching control circuit 400 repeats the above operation. On the other hand, if no transition from the non-activated state into the activated state for the over current comparison signal S.sub.SCP occurs after the switch S is turned on, the transition from the non-activated state into the activated state for the switching control signal CTRL sets the first RS flip-flop FF1, and the latch signal S.sub.FF in turn transits from the non-activated state into the activated state. In this way, the AND signal S.sub.AND keeps the same as the on signal S.sub.ON. And as the watch-dog signal S.sub.WD is in the non-activated state, the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD is in the activated state, and the OR signal S.sub.OR keeps the same as the AND signal S.sub.AND and the on signal S.sub.ON. As a result, the on signal S.sub.ON controls the turning-on operation of the switch S.
(27) When no surge event or over current event occurs, the over current comparison signal S.sub.SCP keeps in the non-activated state, and the latch signal S.sub.FF maintains in the activated state under the control of the switching control signal CTRL. The AND signal S.sub.AND keeps the same as the on signal S.sub.ON due to the activated state of the latch signal S.sub.FF through the logical conjunction on the latch signal S.sub.FF and the on signal S.sub.ON. When no surge event or over current event occurs, the watch-dog circuit 122 does not time, and the watch-dog signal S.sub.WD maintains in the non-activated state and the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD maintains in the activated state. In this way, the OR signal S.sub.OR keeps the same as the on signal S.sub.ON, and when the on signal S.sub.ON transits from the non-activated state into the activated state, the OR signal S.sub.OR transits into the activated state as well, thus, setting the second RS flip-flop FF2 to provide the switching control signal CTRL the activated state to turn on the switch S.
(28) Persons of ordinary skill in the art will recognize that, the switching control circuit 400 is just for illustration, in another embodiment, the switching control circuit 124 may have any other appropriate configuration.
(29) Persons of ordinary skill in the art will also recognize that, in the switching mode power supply 100, an off control circuit (not shown) may be further comprised to control the turning-off operation of the switch S, the off control circuit receives a feedback signal representative of the output voltage V.sub.OUT and to control the turning-off operation of the switch S based on the feedback signal.
(30)
(31) At moment t1, a surge event occurs in the switching mode power supply 100 (in
(32)
(33) As can be seen from the above description, with the present invention, the switching mode power supply can effectively distinguish a surge event and an over current event and take different actions accordingly. During the surge event, the switching mode power supply is shut down for a preset period of time, and after the expiration of the preset period of time, the switch is turned on and the switching mode power supply operates normally as the surge event ends already. During the over current event, the switching mode power supply is shut down for a preset period of time, and after the expiration of the preset period of time, the switch is turned on, however, as the over current event still exists, the above operation repeats to provide an effective over current protection to prevent the switching mode power supply from a damage.
(34)
(35) With the driving circuit and the switching mode power supply of
(36)
(37) The switching mode power supply 800 is further configured to comprise a current detecting circuit 83 comprising a first detecting resistor R.sub.CS1 and a second detecting resistor R.sub.CS2, wherein the first detecting resistor R.sub.CS1 has a first terminal and a second terminal, the first terminal of the first detecting resistor R.sub.CS1 is coupled to the second terminal of the switch S, the second terminal of the first detecting resistor R.sub.CS1 is coupled to the reference ground GND. The second detecting resistor R.sub.CS2 has a first terminal and a second terminal, the first terminal of the second detecting resistor R.sub.CS2 is coupled to the first terminal of the first detecting resistor R.sub.CS1, the second terminal of the second detecting resistor R.sub.CS2 is configured to provide a first current detecting signal V.sub.CS.
(38) The switching mode power supply 800 is further configured to comprise a zero-crossing detecting circuit 84 comprising an auxiliary inductor LA and a zero-crossing detecting resistor R.sub.ZCD. The auxiliary inductor LA is coupled to the inductor L and forms a transformer together with the inductor L. The auxiliary inductor LA has a first terminal and a second terminal, wherein the first terminal is coupled to the reference ground GND. The zero-crossing detecting resistor R.sub.ZCD has a first terminal and a second terminal, the first terminal of the zero-crossing detecting resistor R.sub.ZCD is coupled to the second terminal of the auxiliary inductor LA, and the second terminal of the zero-crossing detecting resistor R.sub.ZCD is configured to provide a second current detecting signal V.sub.ZCD.
(39) The switching mode power supply 800 is further configured to comprise a driving circuit 82. The driving circuit 82 comprises an over current comparison circuit 821, a watch-dog circuit 822, an on moment control circuit 823 and a switching control circuit 824. The over current comparison circuit 821 comprises an over current comparator CMP1 having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the over current comparator CMP1 receives an over current threshold signal V.sub.THS, the second input terminal of the over current comparator CMP1 receives the first current detecting signal V.sub.CS, the over current comparator CMP1 is configured to generate an over current comparison signal S.sub.SCP based on comparing the over current threshold signal V.sub.THS with the first current detecting signal V.sub.CS. In an embodiment, the first input terminal of the over current comparator CMP1 is an inverting input terminal and the second input terminal of the over current comparator CMP1 is a non-inverting input terminal. In this way, the over current comparison signal S.sub.SCP transits from the non-activated state (logic low “0”) into the activated state (logic high “1”) when the first current detecting signal V.sub.CS is larger than the over current threshold signal V.sub.THS.
(40) The watch-dog circuit 822 receives the switching control signal CTRL, and when the switching control signal CTRL transits from a non-activated state (e.g., logic “0”) into an activated state (e.g., logic “1”), the watch-dog circuit 822 starts timing and the watch-dog signal S.sub.WD transits from a non-activated state (e.g., logic “0”) into an activated state (e.g., logic “1”). After the preset period of time T.sub.D expires, the watch-dog circuit 122 stops timing and the watch-dog signal S.sub.WD transits from the activated state into the non-activated state to trigger a turning-on operation of the switch S. When the switch S is turned on, the switching control signal CTRL transits from the non-activated state into the activated state to reset the watch-dog signal S.sub.WD.
(41) In an embodiment, the switching mode power supply 800 has a normal switching cycle when the switching mode power supply 800 is in a normal operation where no transition from the non-activated state into the activated state of the over current comparison signal S.sub.SCP occurs, then the preset period of time T.sub.D is larger than the normal switching cycle, for example, the preset period of time T.sub.D is approximately ten times of the normal switching cycle. Yet in another embodiment, the preset period of time T.sub.D can be appropriately set, considering the time duration when a surge pulse lasts and the time duration when an over current event lasts, so as to distinguish the surge event and the over current event to ensure the surge event ends by the end of the preset period of time T.sub.D.
(42) The on moment control circuit 823 comprises an on comparator CMP2 having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the on comparator CMP2 receives an on threshold signal V.sub.THON, the second input terminal of the on comparator CMP2 receives the second current detecting signal V.sub.ZCD, the on comparator CMP2 is configured to generate the on signal S.sub.ON based on comparing the on threshold signal V.sub.THON with the second current detecting signal V.sub.ZCD. In an embodiment, the first input terminal of the on comparator CMP2 is a non-inverting input terminal and the second input terminal is an inverting input terminal. In this way, the on signal S.sub.ON transits from the non-activated state (logic low “0”) into the activated state (logic high “1”) to turn the switch S on when the second current detecting signal V.sub.ZCD is lower than the on threshold signal V.sub.THON.
(43) In addition, the driving circuit 82 may be further configured to comprise an off moment control circuit 825. The off moment control circuit 825 receives a feedback signal V.sub.FBO representative of the output voltage V.sub.OUT and generates an off signal S.sub.OFF based on the feedback signal V.sub.FBO to control a turning-off moment of the switch S. In detail, as shown in
(44) The switching control circuit 824 comprises a first RS flip-flop FF1, an AND gate ANDA, an inverting circuit INV, a first OR gate OR1, a second OR gate OR2 and a second RS flip-flop FF2. In detail, the first RS flip-flop FF1 has a set terminal S1, a reset terminal R1 and an output terminal Q1, wherein the reset terminal R1 receives the over current comparison signal S.sub.SCP, the set terminal S1 receives the switching control signal CTRL, and the first RS flip-flop FF1 is configured to generate a latch signal S.sub.FF at the output terminal Q1 based on the over current comparison signal S.sub.SCP and the switching control signal CTRL. The AND gate ANDA has a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the AND gate ANDA receives the latch signal S.sub.FF, the second input terminal of the AND gate ANDA receives the on signal S.sub.ON, the AND gate ANDA generates an AND signal S.sub.AND by implementing logical conjunction on the latch signal S.sub.FF and the on signal S.sub.ON. The inverting circuit INV has an input terminal and an output terminal, wherein the input terminal of the inverting circuit INV receives the watch-dog signal S.sub.WD and the inverting circuit INV inverts the watch-dog signal S.sub.WD and generates an inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD. The first OR gate OR1 has a first input terminal, a second input terminal and an output terminal, the first input terminal of the first OR gate OR1 receives the AND signal S.sub.AND, the second input terminal of the first OR gate OR1 receives the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD, the first OR gate OR1 generates a first OR signal S.sub.OR1 at the output terminal by implementing logical disjunction on the AND signal S.sub.AND and the inverting signal S.sub.WD′ of the watch-dog signal S.sub.WD. The second OR gate OR2 has a first input terminal, a second input terminal and an output terminal, the first input terminal of the second OR gate OR2 receives the over current comparison signal S.sub.SCP, the second input terminal of the second OR gate OR2 receives the off signal S.sub.OFF, the second OR gate OR2 generates a second OR signal S.sub.OR2 at the output terminal by implementing logical disjunction on the over current comparison signal S.sub.SCP and the off signal S.sub.OFF. The second RS flip-flop FF2 has a set terminal SX, a reset terminal R2 and an output terminal Q2, the reset terminal R2 receives the second OR signal S.sub.OR2, the set terminal SX receives the first OR signal S.sub.OR1, the second RS flip-flop FF2 generates the switching control signal CTRL based on the first OR signal S.sub.OR1 and the second OR signal S.sub.OR2.
(45) Next, the operation of the switching mode power supply 800 in
(46) As shown in
(47) As can be seen from the above description, with the present invention, the switching mode power supply can effectively distinguish a surge event and an over current event and take different actions accordingly. During the surge event, the switching mode power supply is shut down for a preset period of time, and after the expiration of the preset period of time, the switch is turned on and the switching mode power supply operates normally as the surge event ends already. During the over current event, the switching mode power supply is shut down for a preset period of time, and after the expiration of the preset period of time, the switch is turned on, however, as the over current event still exists, the above operation repeats to provide an effective over current protection to prevent the switching mode power supply from a damage.
(48)
(49) With the present invention, the switching mode power supply can effectively distinguish a surge event and an over current event and take different actions accordingly. During the surge event, the switching mode power supply is shut down for a preset period of time, and after the expiration of the preset period of time, the switch is turned on and the switching mode power supply operates normally as the surge event ends already. During the over current event, the switching mode power supply is shut down for a preset period of time, and after the expiration of the preset period of time, the switch is turned on, however, as the over current event still exists, the above operation repeats to provide an effective over current protection to prevent the switching mode power supply from a damage.
(50) It will be appreciated by persons skilled in the art that the present invention is not limited to what has been particularly shown and described herein above. Rather the scope of the present invention is defined by the appended claims and includes both combinations and sub-combinations of the various features described hereinabove as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description and which are not in the prior art.