PWM generation for DC/DC converters with frequency switching
09735674 · 2017-08-15
Assignee
Inventors
Cpc classification
H02M3/156
ELECTRICITY
International classification
Abstract
A method for generating a pulse width modulation (PWM) control signal includes generating a sawtooth ramp signal at a first frequency under standard operating conditions using a ramp generator, generating a PWM square wave having a rising edge at a falling edge of the sawtooth ramp signal and a falling edge when the sawtooth ramp signal exceeds an error threshold, adjusting the frequency of the sawtooth ramp in response to a changed operating parameter of the ramp generator, and adjusting a peak input voltage of the ramp generator simultaneous with adjusting the frequency of the sawtooth ramp, thereby preventing one of a voltage overshoot and a voltage undershoot.
Claims
1. A method for generating a pulse width modulation (PWM) control signal comprising the steps of: generating a sawtooth ramp signal at a first frequency having a first ramp slope under standard operating conditions using a ramp generator, the ramp generator utilizing a single-ended primary inductance converter (SEPIC) operating in discontinuous mode; generating a PWM square wave having a rising edge at a falling edge of the sawtooth ramp signal and a falling edge when said sawtooth ramp signal exceeds an error threshold; adjusting the first frequency of the sawtooth ramp signal to a second frequency having a second ramp slope by a first factor in a first direction, which first direction is either decreasing or increasing, in response to a changed operating parameter of the ramp generator, the first factor being a ratio of the first frequency to the second frequency, the second ramp slope being the first ramp slope divided by a square root of the first factor; and adjusting a peak sawtooth voltage of the ramp generator by a second factor in a second direction, the second factor being the square root of the first factor, and the second direction being opposite of the first direction, simultaneous with adjusting the first frequency of the sawtooth ramp signal to the second frequency, such that a duty cycle of the PWM square wave is adjusted by the second factor in the second direction, thereby preventing one of a voltage overshoot and a voltage undershoot.
2. The method of claim 1, wherein the changing operating parameter of the ramp generator is at least one of an increase in a load, a decrease in a load, and a decrease in an available input power.
3. The method of claim 1, wherein maintaining the SEPIC converter in the discontinuous mode is achieved by utilizing a compensation loop.
4. A pulse width modulation (PWM) signal generator circuit comprising: a voltage source; a control circuit operable to receive input power from said voltage source and operable to generate a sawtooth voltage ramp signal at a first frequency having a first ramp slope using a ramp generator, the ramp generator utilizing a single-ended primary-inductance converter (SEPIC) configured to operate in discontinuous mode; an oscillator connected to the ramp generator such that said oscillator controls the first frequency of the sawtooth voltage ramp signal generated by the ramp generator; an error amplifier operable to set an error voltage threshold; a comparator connected to an output of the ramp generator and an output of the error amplifier such that said comparator compares the output of the ramp generator against the output of the error amplifier; a flip-flop connected to the output of the comparator and operable to output a PWM control signal; wherein the control circuit is operable to adjust the first frequency of the sawtooth voltage ramp signal of the ramp generator to a second frequency having a second ramp slope in response to a changed operating state of a power stage, the control circuit including a memory storing instructions operable to cause the control circuit to adjust a peak sawtooth voltage of the control circuit simultaneously with the frequency adjustment; and wherein said control circuit is operable to adjust the peak sawtooth voltage of the ramp generator by a first factor in a first direction, which first direction is either decreasing or increasing, and wherein said control circuit is operable to adjust the first frequency of the sawtooth voltage ramp signal of the ramp generator to a second frequency by a second factor in a second direction, wherein the first factor is a square root of the second factor, and the second direction is opposite of the first direction, and wherein a duty cycle of a generated PWM signal is adjusted by the first factor in the first direction simultaneous with the frequency adjustment, the second factor being a ratio of the first frequency to the second frequency, and the second ramp slope being the first ramp slope divided by the square root of the second factor.
5. The PWM signal generator circuit of claim 4, wherein each of said oscillator, comparator, error amplifier and said flip-flop are components of an application specific integrated circuit (ASIC).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION OF AN EMBODIMENT
(6)
(7) In a typical power stage, the power stage is connected to and controlled by an Application Specific Integrated Circuit (ASIC).
(8) The second voltage input 104 (V.sub.out) is connected to an error amplifier 140 that sets an error voltage (V.sub.e) threshold. The error amplifier 140 compares V.sub.out to the reference voltage 106 and magnifies the error between the values according to a known gain. In the illustrated example, a single reference voltage 106 is utilized for the ASIC 100, however in alternate examples the reference voltages 106 can be distinct voltage levels and are connected to distinct reference voltage sources.
(9) The output of the error amplifier 140 and the output of the ramp generator 130 are passed to a comparator 150 that determines when the output of the ramp generator exceeds the error voltage (V.sub.e) threshold set by the error amplifier 140. The output of the comparator 150 and the output of the oscillator 120 are passed to a flip flop 160. The flip flop 160 operates in conjunction with the ramp generator 130 to output a PWM signal for controlling the power stage.
(10) In the illustrated examples of
(11)
(12) The ASIC 100 generates a square wave pulse signal with a rising edge 222 of the square wave triggered by the falling edge 212 of the sawtooth waveform 210. The falling edge 224 of the square wave pulse signal is triggered by the sawtooth waveform 210 exceeding a pre-defined error voltage threshold V.sub.e. The error voltage threshold V.sub.e is set using any known means. In some examples the error voltage threshold V.sub.e is set via the use of an error amplifier circuit incorporated into the controller 162 of the ASIC 100.
(13) Assuming that the error voltage threshold V.sub.e is not changed when the operating frequency shifts from the first operating frequency F1 to the second operating frequency F2, maintaining a constant sawtooth voltage V.sub.saw causes the duty cycle DC1 of the PWM signal at the first frequency F1 and the duty cycle DC2 of the PWM signal at the second frequency to remain the same. As is understood by those of skill in the art of PWM controls, the duty cycle of a PWM signal is the percentage of each period that the square wave, or pulse, is high. The equality of the duty cycles DC1, DC2 and the alteration of the slopes S1, S2 in the above described system causes the output voltage to overshoot when the SEPIC switches to a lower operating frequency and the output voltage to undershoot when the SEPIC switches to a higher operating frequency.
(14) In SEPIC converters operating in discontinuous mode, such as the SEPIC converters illustrated in
(15) When the sawtooth voltage V.sub.saw is fixed, such as in the previously described SEPIC, the input cycle energy is proportional to the second power of the ON time of the PWM signal (i.e., the second power of the duty cycle DC1, DC2). The converter output power is the product of the output cycle energy and the operating frequency of the power stage. When the operating frequency changes from F1 to F2 by a factor of K, the output cycle energy also changes by a factor of K, but in the reverse direction. For example, if the second frequency F2 is twice the first frequency F1, then the output cycle energy is halved during the second frequency F2 operations.
(16) With the above understanding, it can be appreciated that when the duty cycle DC2 at the second frequency is equal to the duty cycle DC1 at the first frequency, then the ON time and the peak current of the power stage, 110 also changes by a factor of K. This, in turn, causes the input cycle energy to be changed by a factor of K*K. Thus, when the frequency is decreased, the input cycle energy is increased in excess of what is necessary to maintain the output power. This results in a voltage overshoot for the duration of time required for the feedback loop within the ASIC 100 to decrease the duty cycle to compensate for the increase and the new sawtooth voltage V.sub.saw.
(17) It is further appreciated that maintaining a constant duty cycle within a PWM signal is not a requirement for achieving proper PWM controls. In the illustrated ASIC 100 of
(18)
(19) In order to achieve the smaller decrease in ramp slope S1, S2 described above, the peak sawtooth voltage is also increased by a factor of the square root of the factor K by which the frequency was adjusted. In other words, V.sub.p2=V.sub.p1*sqrt(K), where V.sub.P2 is the new peak sawtooth voltage, V.sub.p1 is the original peak sawtooth voltage, and K is the factor by which the frequency is adjusted from the first frequency F1 to the second frequency F2. The increased peak sawtooth voltage V.sub.p2 causes the new ramp slope S2 to be the previous ramp slope S1 divided by the square root of K.
(20) As a further result of changing the peak sawtooth voltage, the duty cycle of the PWM signal is also changed, and is not maintained constant between the first frequency F1 and the second frequency F2. The new duty cycle of the PWM signal at the second frequency F2 is equal to the duty cycle of the PWM signal at the first frequency F1 multiplied by the square root of the factor K. The utilization of multiple varied duty cycles within a single PWM signal is known in the art, and the adjusted duty cycle does not degrade the performance of the PWM signal.
(21) As described above, when the ON time of the PWM signal and the peak current of the SEPIC changes by a factor of K, the resultant input cycle energy is changed by a factor of K*K. By adjusting the peak sawtooth voltage V.sub.p1, V.sub.p2 in the manner described above, however, the ON time of the PWM signal (the duty cycle DC1, DC2) is adjusted by a factor of the square root of K, and the peak current (which is directly proportional to the peak input voltage) is similarly adjusted by a factor of the square root of K. These adjustments result in the input cycle energy being adjusted by a factor of Sqrt(K)*Sqrt(k). Sqrt(K)*Sqrt(K)=K. Therefore, adjusting the peak sawtooth voltage V.sub.p1, V.sub.p2 in the above described manner causes the input cycle energy to change by a factor of K, instead of a factor of K squared. This corrected adjustment maintains the steady state operations of the SEPIC and eliminates output voltage overshoot or undershoot when the operating frequency of the SEPIC is changed.
(22) With continued reference to
(23) As a result of the increased frequency and the increased peak sawtooth voltage V.sub.in, the duty cycle of the pulse signal generated by the flip-flop 140 and the comparator 150 self adjusts in a “Duty Cycle Adjusts” step 440. The amount of the duty cycle adjustment depends on both the SEPIC frequency adjustment and the peak sawtooth voltage V.sub.saw adjustment. As the peak sawtooth voltage V.sub.saw is adjusted by the square root of the factor by which the SEPIC frequency is adjusted, the Duty Cycle is also adjusted by the square root of the factor by which the SEPIC frequency was adjusted.
(24) Because the duty cycle self adjusts corresponding to the adjusted SEPIC frequency and the peak sawtooth voltage V.sub.saw, overshoots and undershoots of the output voltage are prevented and the SEPIC converter is maintained in the discontinuous mode.
(25) It is further understood that any of the above described concepts can be used alone or in combination with any or all of the other above described concepts. Although an embodiment of this invention has been disclosed, a worker of ordinary skill in this art would recognize that certain modifications would come within the scope of this invention. For that reason, the following claims should be studied to determine the true scope and content of this invention.