Control Loop Compensation for Buck Converter
Alan Elbanhawy
Executive Director, Advanced Power Systems
Akros Silicon, Inc.
Sunnyvale, CA
email: alan.elbanhawy@akrossilicon.com



|


|
Figure 1, Buck converter schematic
|
Figure 2, Buck converter model
|
|
|
This worksheet is best viewed at 150% zoom
Abstract
Switch mode power supplies have been supplying most of the DC voltages that modern electronics need for operation. It is not unusual that a single piece of electronic equipment to have more than 10 or even 15 to 20 different voltages all at different currents. The reason for their popularity is their small size coupled with good to excellent power conversion efficiency when compared to other supplies like linear regulators. One more advantage of switch mode power converters is the ability to achieve wide control loop bandwidths to handle the very fast to ultra fast load transients especially when CPUs are used. Towards this end, power supply design engineers must have a good understanding of the stability requirements and be able to design the best fitting compensation circuit for the application.
Derivation of the compensation network’s poles and zeros
Derive equations for the poles and zeros of the error amplifier with the compensation network in Figure 2. First calculate the impedance of R1, R3 and C3 in the s domain



|
(1) |
Calculate the impedance of R2, C1 and C2 in the s domain


|
(2) |

From equations (2) and (3) Calculate the error amplifier gain in the s domain eq(3) then convert into partial fractions eq(4)


|
(3) |


|
(4) |
From equation (4) numerator, we calculate the Error amplifier zeros in the frequency domain in equation (5) below


|
(5) |
From equation (4) denominator, we calculate the error amplifier's poles in equations (6) and (7) below


|
(6) |


|
(7) |
Enter relevant parameters



Where:
Lo and Co are the inductor and capacitor of the output filter in Figure 1
fs is the converter's switching frequency
Rl is the load resistance at steady state
Vin is the input voltage
is the peak-to-peak oscillator voltage
Enter Modulator gain Tr. The DC Gain of the modulator, Tr, is simply the input voltage (VIN) divided by the peak-to-peak oscillator voltage ΔVSawToothOsc introduced to the PWM comparator.




|
(8) |
Compensation scheme

Figure 3, Compensation network and Modulator gain poles and zeros placement
The compensation network consists of the error amplifier, usually internal to the PWM controller IC, and the associated impedance Z1 and Z2 in equations (27) and (28). The goal of the compensation network is to provide a closed loop transfer function with the highest 0dB crossing frequency and adequate phase margin. The equations below relate the compensation network’s poles, zeros and gain to the components (R1, R2, R3, C1, C2, and C3) in Figure 2.
The following are some guidelines for placing the poles and zeros of the compensation network:
1. Pick a value for the Gain
for desired error amplifier gain
2. Place 1st zero just below the output filter’s double Pole at about 0.75 flc
3. Place 2nd zero at the output filter’s double pole
4. Place 1st Pole at the ESR zero
5. Place 2nd Pole at Half the Switching Frequency fs
6. Calculate the gain and phase and using the plot function, calculate the phase margin
7. Use the interactive graph to fine tune the transfer function
Detailed design procedure
Modulator Break Frequency Equations:
1- The output filter, Lo and Co, two poles and output capacitor equivalent series resistor, ESR, zero


|
(9) |


|
(10) |

Using equations (6), (7) and 8 we can assign all the poles and zeroes of the error amplifier



|
(11) |


|
(12) |


|
(13) |


|
(14) |
pick mid range gain Gm=R2/R1



|
(15) |


|
(16) |


|
(17) |


|
(18) |


|
(19) |

|
(20) |


|
(21) |


|
(22) |


|
(23) |
In the following equation, we introduced the constant k, l and m to allow us to consider the effect of tolerance of C1, C2 and C3 on the circuit stability


|
(24) |


|
(25) |


|
(26) |
Calculate loop gain as a response to a small test signal Vt



|
(27) |


|
(28) |


|
(29) |


|
(30) |


|
(31) |


|
(32) |



Calculate loop gain G1


Convert G1 to frequency domain.
The expression for variables Gf, Gain and Phase are very long so they were not displayed for ease of readability
The variables Gain1 and Phase1 are identical to Gain and Phase except for the different variable names and they are used in the interactive Bode plot only







The following is a Bode plot of the transfer function taken at both light and heavy load i.e. Rl=0.25Ω and Rl=25Ω.

![with(plots); semilogplot({180*subs(Lo = .5*10^(-6), ESR = 0.175e-1, Gm = 3, Rl = 25, Vin = 5, Phase)/Pi, 180*subs(Lo = .5*10^(-6), ESR = 0.175e-1, Gm = 3, Rl = .25, Vin = 5, Phase)/Pi, 20*log10(subs(Lo = .5*10^(-6), ESR = 0.175e-1, Gm = 3, Rl = 25, Vin = 5, Gain)), 20*log10(subs(Lo = .5*10^(-6), ESR = 0.175e-1, Gm = 3, Rl = .25, Vin = 5, Gain))}, f = 10 .. 0.20e8, numpoints = 500, axes = normal, color = ["Teal", red, blue, gold, black], thickness = 2, gridlines = true, caption = typeset("Bode Plot."), font = [TIMES, BOLD, 10], labels = ["Frequency", "Phase and Gain"], labeldirections = [horizontal, vertical])](http://www.maplesoft.com/view.aspx?SI=139253/63e7dc8b83b72566f1f86427e7ae8d7e.gif)
The above Bode plot clearly shows that a loop bandwidth of 1MHz can be achieved

In the following interactive graph, you can change the value of the output inductor from .5μH to 10μH, the Gm factor from 0.5 to 10, the load resistance from 0.1Ω to 1Ω, Capacitor ESR from 5mΩ to 100mΩ and finally the input voltage Vin from 2.5 to 25 . In this way using the sheer power of Maple you can choose the right control loop for your application without having to do trial and error attempts to reach the right component values. Once you have selected the right design, right click on each slider and get the "current position" then calculate the values of Lo, Gm from the equations below. Remember that Lo also affects the ripple current so make sure to select Lo suitable for the switching frequency of your choice. Please note that the axis are logarithmic and hence the changes in Gain and Phase due to different variable value appear small.



fmin fmax
Use fmin and fmax to set
the x axis start and end 0.5μH 10μH 0.5 10
Lo Gm
.1Ω 1Ω 5mΩ 100mΩ
Rl ESR
2.5V 25V
Vin
Fine tune the frequency response


|
(33) |


|
(34) |


Finally calculate the values of all the components in the compensation network. R1 is selected to be 1KΩ








|
(35) |




[1] Slobodan Cuk, "modeling, analysis and design of switching converters," PhD thesis, California Institute of Technology, December 1976
[2] R. D. Middlebrook, "Measurementof loop gain in feedback systems," International J. of electronics, Vol. 38, n0. 4, pp. 485-512, April 1975

















