Abstract:
Disclosed are circuits and methods for use in a control circuit of a switching mode power supply for turning on a switching device in the switching mode power supply when the voltage across the switching device is at a minimum. A voltage detector is provided for detecting the voltage across the switching device to produce a detection voltage which is a function of the voltage across the switching device, and circuit arrangement is used to predict a valley timing for the voltage across the switching device by evaluating the time period that the detection voltage falls down from a first threshold to a second threshold.

Description:
FIELD OF THE INVENTION 
       [0001]    The present invention is related generally to a switching mode power supply and, more particularly, to a valley predicting circuit and method for a switching mode power supply. 
       BACKGROUND OF THE INVENTION 
       [0002]    An important challenge to the development of an advanced switching mode power supply is to increase the switching frequency of the power switch in the power stage of the power supply, because a power supply operating with higher switching frequency may be designed with smaller volume and less weight. However, higher switching frequency results in more switching loss, and it is therefore required to reduce the switching loss for implementing a high switching frequency design.  FIG. 1  shows a conventional quasi-resonance flyback power supply  100 , in which a power switch SW is connected in series to a power source Vin and a primary winding P 1  of a transformer TX, a capacitor C 1  is shunt to the primary winding P 1 , and a control circuit  102  switches the power switch SW to produce a current on a secondary winding S 1  of the transformer TX, so as to charge a capacitor C 2  to thereby produce an output voltage Vout. 
         [0003]      FIG. 2  is a waveform diagram showing the voltage across the power switch SW of  FIG. 1 . After the power switch SW is turned off at time t 1 , a current flows from the secondary winding S 1  through a diode D 1  to charge the capacitor C 2 , and the voltage across the power switch SW rises up to a value and remains there until t 2 . Then the current on the secondary winding S 1  becomes off at time t 2 , but the power switch SW is still off between time t 2  and time t 3 , and the voltage across the power switch SW resonates and thereby has a sinusoidal waveform, due to the oscillation of the magnetizing inductance of the transformer TX and the stray capacitance of the power switch SW and transformer TX. The power switch SW is turned on at time t 3 , and the voltage across the power switch SW drops off, until the power switch SW is turned off again at time t 4 . To reduce the switching loss of the power switch SW, the best timing to turn on the power switch SW is when the voltage across the power switch SW is at a minimum, that is, at the valley point of the sinusoidal wave. 
         [0004]    Therefore, the key factor of reducing the switching loss is to precisely detect the minimum of the voltage across the power switch SW during the oscillating period. Usually, a differentiator is used to detect the minimum of the voltage across the power switch SW during the oscillating period, for example, proposed by U.S. Pat. No. 6,722,989 to Majid et al. According to the present invention, a valley predicting circuit and method are disclosed for a switching device of a switching mode power supply. 
       SUMMARY OF THE INVENTION 
       [0005]    An object of the present invention is to provide a circuit and method for predicting a valley timing for the voltage across a switching device. 
         [0006]    The present invention discloses a circuit and method for use in a control circuit of a switching mode power supply for turning on a switching device in the switching mode power supply when the voltage across the switching device is at a minimum. According to the present invention, a voltage detector detects the voltage across the switching device to produce a detection voltage which is a function of the voltage across the switching device, a first comparator compares the detection voltage with a first threshold to produce a first comparison signal, a second comparator compares the detection voltage with a second threshold to produce a second comparison signal, a logic circuit produces logic signals according to the first and second comparison signals, and a timer predicts the time period that the detection voltage will fall down from the first threshold to the second threshold according to the logic signals, so as to determine the valley timing for the detection voltage. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0007]    These and other objects, features and advantages of the present invention will become apparent to those skilled in the art upon consideration of the following description of the preferred embodiments of the present invention taken in conjunction with the accompanying drawings, in which: 
           [0008]      FIG. 1  shows a conventional quasi-resonance flyback power supply; 
           [0009]      FIG. 2  is a waveform diagram showing the voltage across the power switch in the circuit of  FIG. 1 ; 
           [0010]      FIG. 3  is a first embodiment according to the present invention; 
           [0011]      FIG. 4  is an embodiment for the logic circuit shown in FIG.  3 ; 
           [0012]      FIG. 5  is a waveform diagram showing the timing of corresponding signals in the circuits of  FIGS. 3 and 4 ; 
           [0013]      FIG. 6  is a second embodiment according to the present invention; 
           [0014]      FIG. 7  is an embodiment for the logic circuit shown in  FIG. 6 ; and 
           [0015]      FIG. 8  is a waveform diagram showing the timing of corresponding signals in the circuits of  FIGS. 6 and 7 . 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0016]      FIG. 3  shows a first embodiment according to the present invention. In a quasi-resonance flyback power supply  200 , a power switch SW is connected in series to a power source Vin and a primary winding P 1  of a transformer TX, and a control circuit  202  provides a driving signal Driver to switch the power switch SW, so as to convert an input voltage Vin to an output voltage Vout. The control circuit  202  comprises a voltage detector for detecting the valley of the voltage across the power switch SW, which includes an auxiliary winding P 2  to provide information concerning the voltage on the power switch SW, and thereby a detection voltage ZCD is produced, which is a function of the voltage across the power switch SW. The control circuit  202  further comprises a clamping circuit  204  to clamp the detection voltage ZCD under a maximum limit Vr, and a sample and hold circuit  206  to sample the detection voltage ZCD to produce a threshold voltage Vs=0.9Vr. A comparator  208  compares the detection voltage ZCD with the threshold voltage Vs to produce a comparison signal S 1 , another comparator  210  compares the detection voltage ZCD with a zero threshold voltage to produce a second comparison signal S 2 , and a logic circuit  212  provides two logic signals S 3  and S 4  according to the comparison signals S 1  and S 2 . The logic signals S 3  and S 4  are used to control two current sources  224  and  226  in a timer  214  to determine a charging current I 1  and a discharging current I 2  in order to charge and discharge a capacitor C 5 , and a comparator  228  compares the timer voltage V 1  on the capacitor C 5  with a zero threshold voltage to produce a valley signal Valley. The valley signal Valley is connected to the setting input S of a flip-flop  216  to trigger the driving signal Driver which will turn on the power switch SW when it is triggered. The ring across the power switch SW is resulted from the oscillation of the magnetizing inductance of the transformer TX and the stray capacitance of the power switch SW and transformer TX, so it has a sinusoidal waveform, and the valley happens when the detection voltage ZCD is −Vr.  FIG. 4  provides an embodiment for the logic circuit  212 , in which two negative-edge triggering circuits  218  and  220  are used to produce two signals S 5  and S 6  in response to the comparison signals S 1  and S 2  respectively, as the setting input S and resetting input R of a flip-flop  222 , in order to determine the logic signals S 3  and S 4  which are complementary to each other. 
         [0017]      FIG. 5  is a waveform diagram showing the timing of corresponding signals in the circuits of  FIGS. 3 and 4 , in which waveform  300  represents the detection voltage ZCD, waveform  302  represents the comparison signal S 1 , waveform  304  represents the comparison signal S 2 , waveform  306  represents the signal S 5 , waveform  308  represents the signal S 6 , waveform  310  represents the timer voltage V 1 , waveform  312  represents the valley signal Valley, and waveform  314  represents the driving signal Driver. Because the oscillation of the voltage across the power switch SW results in a sinusoidal waveform, the valley of the detection voltage ZCD will appear regularly, and therefore the valley point of the detection voltage ZCD can be predicted, if the time period of any section of the sinusoidal waveform of the detection voltage ZCD is known. For example, both of the time periods that the detection voltage ZCD falls down from the peak Vr to 0 and from 0 to the valley −Vr are equal to a quarter cycle period of the sinusoidal waveform, and therefore one of them can be used to predict the other one. This embodiment implements the prediction of the valley point of the detection voltage ZCD by evaluating the time period of the detection voltage ZCD falling down from 0.9Vr to 0, in which the evaluating range is selected to avoid possible error operation. As shown in  FIG. 5 , when the detection voltage ZCD falls down to reach 90% of Vr at time t 1 , the comparison signal S 1  changes from high to low, so the negative-edge triggering circuit  218  triggers the signal S 5  to enable the logic signal S 3  by triggering the setting input S of the flip-flop  222 , which enables the current source  224  to provide the charging current I 1  to charge the capacitor C 5 , thereby increasing the timer voltage V 1 . Until time t 2 , the detection voltage ZCD becomes lower than 0, the other comparison signal S 2  changes from high to low, so the other negative-edge triggering circuit  220  triggers the signal S 6  to reset the flip-flop  222 , by which the current source  224  stops providing the charging current I 1  and the current source  226  starts to conduct the discharging current I 2  so as to discharge the capacitor C 5 . With a proper ratio of the charging current I 1  and the discharging current I 2 , the capacitor C 5  can be completely discharged at time t 3  that the valley point of the detection voltage ZCD happens, and the comparator  228  triggers the valley signal Valley to turn on the power switch SW. 
         [0018]    As shown by the waveform  310 , the timer voltage V 1  on the capacitor C 5  rises up from 0 first and then falls down to 0, therefore 
         [0000]        C 5× V 1=( t 2 −t 1)× I 1=( t 3 −t 2)× I 2.   [Eq-1] 
       Further, the phase variation of each cycle of a sinusoidal wave is 2π, and therefore the phase difference of a sinusoidal wave between time t 2  and time t 3  is π/ 2 , thereby 
       [0019]      ( t 2 −t 1):( t 3 −t 2)= X :π/2,   [Eq-2] 
         [0000]    where X is the phase difference of the sinusoidal waveform between time t 1  and time t 2 . Because the sinusoidal waveform of the detection voltage ZCD begins from its peak Vr, it can be regarded as a cosine waveform, and therefore 
         [0000]      0.9 Vr =cosθ× Vr,    [Eq-3] 
         [0000]    where cos is the cosine function, and θ is the phase of the detection voltage ZCD at time t 1 . The phase θ is then obtained by inverse transformation 
         [0000]      θ=cos −1 (0.9).   [Eq-4] 
       On the other hand, the time period that the sinusoidal waveform falls down from its peak Vr to 0 is also a quarter cycle of the sinusoidal waveform, so the phase difference of the sinusoidal waveform between time t 1  and time t 2  is 
       [0020]        X =(π/2)−cos −1 (0.9).   [Eq-5] 
       By substituting the equations Eq-2 and Eq-5 into the equation Eq-1, it is obtained 
       [0021]      (π/2)×i I2=[(π/2)−cos −1 (0.9)]× I 1.   [Eq-6] 
       Therefore, the relationship between the charging current I 1  and the discharging I 2  is derived as 
       [0022]        I 2=[1−(2/π)×cos −1 (0.9)]× I 1=0.713× I 1.   [Eq-7] 
         [0023]    According to the present invention, the clamping circuit  204  is simpler because it does not have to produce a clamping current to detect the valley of the voltage across the power switch SW. Moreover, in other embodiments, the charging current I 2  may be selected to be slightly greater than the calculated one, such that the valley signal Valley will be triggered earlier than the valley point of the voltage across the power switch SW, in order to avoid possible signal propagation delay. 
         [0024]    More timers may be used in some embodiments, and  FIG. 6  provides one for illustration of valley selection according to the present invention. In a quasi-resonance flyback power supply  400 , a power switch SW is connected in series to a power source Vin and a primary winding P 1  of a transformer TX, and a control circuit  402  provides a driving signal Driver to switch the power switch SW, so as to convert an input voltage Vin to an output voltage Vout. In the control circuit  402 , to detect the valley of the voltage across the power switch SW, a voltage detector has an auxiliary winding P 2  to provide information concerning the voltage on the power switch SW and thereby to produce a detection voltage ZCD which is a function of the voltage across the power switch SW, a clamping circuit  404  clamps the detection voltage ZCD under a maximum limit Vr, a sample and hold circuit  406  samples the detection voltage ZCD to produce a threshold voltage Vs=0.9Vr, a comparator  408  compares the detection voltage ZCD with the threshold voltage Vs to produce a first comparison signal S 1 , another comparator  410  compares the detection voltage ZCD with a zero threshold voltage to produce a second comparison signal S 2 , a logic circuit  412  produces two pairs of logic signals S 3 , S 4 , and S 5 , S 6  according to the comparison signals S 1  and S 2 , a timer  414  has two current sources  424  and  426  controlled by the logic signals S 3  and S 4  to determine a charging current I 1  and a discharging current I 2  in order to charge and discharge a capacitor C 5 , and a comparator  428  for comparing the timer voltage V 1  on the capacitor C 5  with a zero threshold voltage to produce a first valley signal S 7 , another timer  416  also has two current sources  430  and  432  for providing a charging current I 3  and a discharging current I 4  according to the logic signals S 5  and S 6  in order to charge and discharge a capacitor C 6 , and a comparator  434  for comparing the timer voltage V 2  on the capacitor C 6  with a zero threshold voltage to produce a second valley signal S 8 , an OR gate  418  enables a final valley signal Valley depending on whether any one of the valley signals S 7  and S 8  is active, and an AND gate  420  functions as a blanking circuit to determine which valley point is selected to trigger a flip-flop  422  to enable the driving signal Driver according to a blanking signal Blank produced from the interior of the control circuit  402 .  FIG. 7  provides an embodiment for the logic circuit  412 , in which two negative-edge triggering circuits  436  and  440  are triggered by the comparison signals S 1  and S 2  to enable two signals S 9  and S 10  respectively, a positive-edge triggering circuit  438  is triggered by the comparison signal S 2  to trigger a signal S 11 , the signals S 9  and S 11  are provided for the setting and resetting inputs of a flip-flop  442  to determine the complementary logic signals S 3  and S 4 , and the signals S 11  and S 10  are provided for the setting and resetting inputs of another flip-flop  444  to determine the complementary logic signals S 5  and S 6 . 
         [0025]    Since the oscillation of the voltage across the power switch SW results in a sinusoidal waveform, the valley point of the detection voltage ZCD happens when the detection voltage ZCD becomes −Vr.  FIG. 8  is a waveform diagram showing the timing of corresponding signals in the circuits of  FIGS. 6 and 7 , in which waveform  500  represents the detection voltage ZCD, waveform  502  represents the comparison signal Si, waveform  504  represents the comparison signal S 2 , waveform  506  represents the signal S 9 , waveform  508  represents the signal S 10 , waveform  510  represents the signal S 11 , waveform  512  represents the first timer voltage V 1 , waveform  514  represents the second timer voltage V 2 , waveform  516  represents the valley signal Valley, waveform  518  represents the blanking signal Blank, and waveform  520  represents the driving signal Driver. When the detection voltage ZCD falls down to reach the threshold voltage 0.9Vr at time t 1 , the comparison signal S 1  changes to low, thereby triggering the flip-flop  442  to enable the current source  424  starting to charge the capacitor C 5 , and when the detection voltage ZCD further falls down to reach zero point at time t 2 , another comparison signal S 2  also changes to low, thereby resetting the flip-flop  442  so as to stop the current source  424  to provide the charging current I 1  and to enable the current source  426  in order to discharge the capacitor C 5 . With a proper ratio of the charging current I 1  and the discharging current I 2  as indicated by the equation Eq-7, the valley point of the detection voltage ZCD can be predicted. When the first timer voltage V 1  on the capacitor C 4  decreases down to zero at time t 3 , the comparator  428  enables the valley signal S 7 , thereby triggering the valley signal Valley by the OR gate  418 , and assuming that the blanking signal Blank is high at this time, the flip-flop  422  is triggered to enable the driving signal Driver to turn on the power switch SW. 
         [0026]    Alternatively, if the blanking signal Blank is low when the valley signal S 7  from the timer  414  is active, for example at time t 4  shown in  FIG. 8 , the valley signal S 7  will be blanked and so cannot trigger the flip-flop  422 , so that the sinusoidal waveform of the voltage across the power switch SW will remain. When the detection voltage ZCD rises up from the valley point to zero point at time t 5 , the comparison signal S 2  changes from low to high, thereby triggering the flip-flop  444  to enable the current source  430  in the second timer  416  starting to charge the capacitor C 6 . When the detection voltage ZCD becomes lower than zero again at time t 6 , the comparison signal S 2  changes to low, thereby resetting the flip-flop  444  so as to stop the current source  430  to provide the charging current I 3  and to enable the current source  430  in order to discharge the capacitor C 6 . Similarly, with a proper charging current I 4 , the valley point of the detection voltage ZCD can be predicted. In this embodiment, the charging time of the capacitor C 6  in the second timer  416  is selected to be a half cycle of the sinusoidal waveform, and the discharging time is selected to be a quarter cycle of the sinusoidal waveform, so the discharging current I 4  is double of the charging current I 3 . 
         [0027]    In some embodiments, the blanking signal Blank can be used to determine which valley is selected to trigger the flip-flop  422  to turn on the power switch SW. For example, as shown in  FIG. 8 , if the blanking signal Blank has a waveform including a portion as the dotted line 5182, the power switch SW will be turned on at the first valley point of the sinusoidal waveform at time t 4 . 
         [0028]    While the present invention has been described in conjunction with preferred embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art. For example, other devices, which don&#39;t affect the function of the circuit, such as a delay circuit, can be used in the circuit. Accordingly, it is intended to embrace all such alternatives, modifications and variations that fall within the spirit and scope thereof as set forth in the appended claims.