Compensators For The Buck Converter: Design and Analysis
Compensators For The Buck Converter: Design and Analysis
Compensators For The Buck Converter: Design and Analysis
Abstract
This paper discusses the design of a compensator for the buck DC switching
converter. Three dierent compensators are designed and analyzed based on
phase and gain margins. Op-amp implementations for each compensator are
derived and tested with an example converter. The performance of the converters is examined based on transient response and rejection of steady-state error
due to a step change in the input voltage.
Introduction
The buck converter is perhaps the simplest DC converter topology, yet one of
the most useful. It is widely used in industry, it is a clear and simple example
that is helpful in understanding the principles of switching converters, and it can
be used to derive more complicated topologies. In light of this general usefulness,
it is instructive to consider how one can use control systems to regulate the
operation of such a converter. This serves not only to illustrate how switching
converters can be controlled, but also results in a practical circuit for use in
power supplies, voltage regulators, and so forth.
Since it is desirable to design an eective compensator for the buck converter,
this paper will consider the various properties of three dierent compensation
schemes. The rst section will present a basic discussion of the buck converter,
its open-loop and uncompensated closed-loop behavior, and introduce an example converter that will be used for all the designs. The next section will present
a basic attempt to counteract some of the undesirable properties of the buck
converter with a proportional-integral compensator. The third section will detail a somewhat more sophisticated attempt to improve performance by use of
a lead compensator. The last compensator discussed will be the combination of
the lead and proportional-integral compensators to obtain the benets of both.
1
Each section will present the design of the compensator for the example converter given in the rst section, derive an op-amp circuit to implement it, and
evaluate the performance of the compensated system through simulation. The
conclusion will summarize the results and compare the various designs.
Reference [1], Chapter 8 gives the small-signal averaged transfer function for
the operation of the buck converter in the continuous conduction mode. This
is the model that will be used in the following analysis. The model basically
consists of two transfer functions, one which models the inuence of the duty
cycle on the output, (), and one which models the inuence of the input
voltage on the output, (). For the purposes of this paper, the rst will be
considered the control input, while the second is a source of disturbances. The
general forms of the these transfer functions are the same.
0
() =
1+
)2 and
(1)
() =
1+
)2 ,
where
0 = , 0
1
= , 0 =
,
(2)
and =
() ()()
(3)
This paper will use an example converter to illustrate the design and eectiveness of the various compensators. Namely, the converter will have an input
3
0
() =
=
( )2
1 +
+
0
0
As can be seen, the uncompensated loop gain of the buck converter is a standard
second-order system of the form
() =
1+
where
)2 ,
0
28
=
= 2.33
(3) (4)
1
1
0 =
=
= 2000 10 rad/s 0 = 1 kHz, and
(50 ) (500 )
=
(4)
=3
500
= 3 10 = 9.49 19.5 dB
50
A Bode plot of this loop gain is shown in Figure 4. The phase margin can
be determined directly from the plot. In the asymptotic approximation, the
closed-loop buck converter has a phase margin of 0 . Since the phase asymptote
reaches but does not cross 180 , the gain margin can be said to be innite.
Thus, without any compensator, the buck converter has an innite gain margin
but a 0 phase margin. Such a system is stable but will exhibit oscillations
and other behavior that is generally considered undesirable. A plot of the step
response of the converter in this conguration is shown in Figure 5. As can be
seen, the oscillations in the output voltage present in the open-loop case are still
present, though reduced in amplitude by the application of feedback, and there
is still a steady-state error to a change in input voltage. Both of these issues
will be addressed in the compensator designs that follow.
Proportional-Integral Compensation
A simple but fairly eective way to improve the characteristics of the buck
converter is to use a dominant-pole or integral compensator. This is simply a
compensator with a single pole at = 0 and a gain.
() =
(5)
Although the plain integral compensator could be used for this purpose, it
is dicult to obtain good performance using this type of compensator. It is
more usual to use a proportional-integral or PI compensator, as discussed in
Chapter 7 of [2] This is essentially the same as the integral compensator, but
with a zero introduced at some higher frequency. The transfer function of the
PI compensator is
(
)
0 1 +
() =
(6)
As can be seen from the plot in Figure 6, this compensator provides a high gain
at low frequencies, which falls o at 20 dB per decade and then levels out at
the zero frequency, . The phase is initially 90 , which increases by a rate of
45 per decade starting at 10 to a maximum of 0 at 10 . The benet obtained
by using a PI compensator is that the large low-frequency gain will eliminate
steady-state error to step disturbances. In general, however, this cannot be
attained while still having acceptable gain and phase margins using a simple PI
compensator. The design shown here will concentrate on low-frequency gain at
the expense of gain and phase margins, although these are still a consideration.
The unity-gain crossover frequency should be placed before the major phase
0
= 100
downturn in the compensated loop. The design here will use = 10
and place the unity-gain crossover at this same frequency, to avoid too much
interaction in the phase responses while still providing higher gains.
5
1+
)2 )
(7)
0 =
Since only 0 and are needed to specify the compensator, the design is
complete. The phase margin of this design is the amount by which the phase
at the crossover frequency is above 180 . This can be found by evaluating the
gain asymptote at .
( )
= 180 + 45 log
0
(
)
100 Hz
= 180 + 45 log
1 kHz
= 135
This is actually a surprisingly high phase margin, which is only due to the
asymptotic approximation. Due to the Q of the original circuit, the gain will
7
(8)
In this circuit, the second resistor and the capacitor set the zero frequency,
while the rst resistor in combination with these values sets the gain of the
compensator. If a value of 2 = 100 k is assumed, then the capacitor value
must be
1
1
2 (100 Hz) =
=
2
(100 k)
1
=
= 15 nF
2 (100 Hz) (100 k)
Likewise, the value of 1 to set the gain to the proper value can be found from
this value for C.
1
1
270 =
0 =
1
1 (15 nF)
1
1 = 240 k
1 =
270 (15 nF)
The reference voltage on the non-inverting input of the opamp for this circuit
can be simply 5 V, since there is no direct connection to the output.
The simulated response of the buck with this PI compensator to a step disturbance is shown in Figure 9. As would be expected from the phase margin,
the system displays large oscillations in the output voltage, although not nearly
as large as those of the open-loop converter. The presence of the pole at = 0,
however, which is the main purpose of using such a compensator, is quite effective in removing steady-state error. Thus, although some of the transient
characteristics are undesirable, the PI compensator is eective in regulating the
output to the proper voltage. A method to improve the transient characteristics
is examined in the design of the next compensator.
10
Lead Compensation
A more sophisticated way to improve the performance of the buck converter
is with a lead compensator. The transfer function of this compensator is
)
(
1 +
) ,
() = 0 (
(9)
1 +
where < . As can be seen from the plot of the transfer function shown in
Figure 10, the lead compensator provides both a phase boost that is adjustable
based on the pole and zero frequencies, and a gain boost at higher frequencies
that will result in a higher crossover frequency for the lead-compensated buck
converter. Since the one of the most undesirable features of the uncompensated
buck is its low phase margin, the phase boost should be chosen to improve
the phase margin to an acceptable value. The new crossover frequency can be
chosen arbitrarily. The design shown here will be to obtain a 45 phase margin
and a crossover frequency of 5 kHz for the loop gain with a lead compensator.
11
1 +
1 +
+
0
0
12
13
45 = 45 log
= 101
= 10
Also, will necessarily be the geometric mean of the pole and the zero frequency. Since the phase margin condition gives a relationship between the pole
and zero frequencies, this can be used to solve for both.
5 kHz = 102
5 kHz
=
10
= 1.58 kHz and = 15.8 kHz
These relationships result in the pole and zero frequencies for the lead compensator. To complete the design, the required low-frequency gain 0 of the
compensator to place the unity-gain point at the appropriate frequency must be
determined. This can be found by equating the values of the gain asymptotes
at .
( )2
0
0 0
=
Substituting the values of 0 and 0 for the example converter, and the values
of and as previously calculated, the gain 0 of the compensator is
0 =
0 =
1
2.33
1
0
)2
1.58 kHz
1 kHz
)2
5 kHz
1.58 kHz
0 = 3.4
The resulting compensated system has a phase margin of 45 , as designed for.
The gain margin can be found by evaluating the gain at the point the phase
crosses 180 . This occurs at 10 .
= Gain below 0 dB at 10
14
Gain =
(5 kHz)
5 kHz
=
=
2
2
100 (15.8 kHz)
(10 )
Gain = 0.00317 50 dB
= 50 dB
Since the general desirable gain margin for a stable system is 10 dB, this is quite
acceptable. In reality, since the phase only approaches 180 , the gain margin
of the system will actually be innite, as in the previous two cases. In any case,
this compensated system has very good phase and gain margins.
With all of the parameters of the lead compensator determined, what remains
is to implement the compensator using an op-amp circuit and simulate the
closed-loop converter to evaluate its performance. A general circuit that can
be used to implement any lead or lag compensator is shown in Figure 12. The
transfer function of this circuit is
)
(
2 1 1 + 1
(11)
() =
1 2 2 + 1
The resistor ratio sets the low frequency gain, and the two resistor-capacitor
pairs set the pole and zero frequencies. Two standard valued resistors that give
nearly the required gain are 1 = 100 k and 2 = 330 k. From these values,
the capacitor values to set the pole and zero can be calculated.
=
1
1
2 (1.58 kHz) =
1 1
(100 k) 1
1 =
1
1 = 1.0 nF
2 (1.58 kHz) (100 k)
1
1
2 (15.8 kHz) =
2 2
(330 k) 2
2 =
1
2 = 33 pF
2 (15.8 kHz) (330 k)
It it also necessary to derive a value for the reference voltage on the non-inverting
input of the op-amp. The sensed voltage from the output will be 5 V in steadystate as before, and the control voltage should be 2.14 V. Using these in combination with the resistor values for the lead compensator, the reference voltage
can be found.
2
1
=
+
1 + 2
1 + 2
=
330 k
100 k
(5 V) +
(2.14 V) = 4.33 V
100 k + 330 k
100 k + 330 k
15
16
17
1000
0 = 430
2.33
NextSection
The gain and phase margins can be found by evaluating the asymptotes at
the respective crossover frequencies. The unity-gain crossover frequency is =
18
180 = 45 log
180 = 135
() = 45 log
2
2 kHz
which is no surprise, since this is what was designed for. A gain margin value
could be calculated as before, using 10 as the 180 crossover frequency,
but as previously discussed, the actual gain margin will be innite. Thus, the
combined compensator has a 45 phase margin, an innite gain margin, and
a pole at = 0. This system should be very stable, exhibit good transient
response, and completely compensate for step disturbances with no steady-state
error.
The circuit implementation for the lead and PI compensator is simply a lead
circuit as shown in Figure 12 cascaded with a PI circuit as shown in Figure 8.
The same expressions given before can be used to nd the new component values.
The overall gain of the compensator must be 430. For simplicity, the gain of
the lead section will be set to 4.3 and the gain of the PI section set to 100. A
resistor pair that gives the required gain for the lead section is 1 = 27 k
and 2 = 120 k. Using these values, the capacitor values to place the pole
and the second zero are simply
2 =
1
1
2 (2 kHz) =
1 1
(27 k) 1
1 =
=
1
1 = 3.0 nF
(27 k) (22 kHz)
1
1
2 (20 kHz) =
2 2
(120 k) 2
1
2 = 68 pF
(120 k) (220 kHz)
2 =
1
1
2 (20 Hz) =
2
(100 k)
1
= 82 nF
2 (20 Hz) (100 k)
0 =
1
1
100 =
1
1 (82 nF)
1 =
1
1 = 120 k
100 (82 nF)
These values can be used in PECS to simulate the response of the converter. A
reference voltage of 5 V can be used, as with the PI compensator.
20
The simulated response of the combined compensator to the same step disturbance is shown in Figure 16. The nature of the improvement is evident. Just
as with the PI compensator, the initial disturbance is fully compensated for and
the output voltage returns to the set-point value. This is due to the high-low
frequency gain, which tends to cause such disturbances to be rejected. As with
the lead compensator, the voltage transitions smoothly and with no oscillations,
since the phase margin of the system is within the acceptable range. By combining these benets, this circuit represents a fairly good method of controlling
the output of a buck converter
Conclusion
This paper has discussed the design of three dierent compensators for the
buck switching converter, and evaluated their performance based on phase margins and the response to an input voltage step. The rst design was a PI
compensator, which provided good voltage regulation but poor transient performance. The second design was a lead compensator, which by increasing the
phase margin of the system yielded very good transient response, but which
still demonstrated a steady-state error to a step. By combining these two approaches, the nal lead and PI compensator provides an excellent regulator for
the buck converter, which keeps the output voltage at the set value despite large
21
changes in the input voltage. These results could be applied to the construction
of a practical compensator for an operating buck converter, or as an example of
how to design controllers for other switching converter topologies.
References
[1] Robert W. Erickson and Dragan Maksimovic. Fundamentals of Power Electronics. Springer Science+Business Media, LLC, second edition, 2001.
[2] Raymond T. Stefani, Bahram Shahian, Clement J. Savant, and Gene H.
Hostetter. Design of Feedback Control Systems. Oxford University Press,
fourth edition, 2002.
22
23
Figure 17: PECS schematic of PI-compensated buck converter
24
Figure 18: PECS schematic of lead-compensated buck converter
25
Figure 19: PECS schematic of lead - and PI-compensated buck converter