Public A Cao

Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

INPE-10103-RPQ/750

COMPENSATION DESIGN FOR SWITCHING POWER SUPPLY


IN BUCK TOPOLOGY AND VOLTAGE MODE CONTROL

Renato Oliveira de Magalhes

INPE
So Jos dos Campos
2003

ABSTRACT
The objective of this work is to design a compensation network for a buck converter in
voltage mode control with efficiency higher than 70%, to convert the unregulated voltage
of 20V to 40V into a well regulated output voltage of 5V, supplying an output current in
the range of 2A to 10A. The output voltage ripple should be lower than 100mV peak-topeak. This document also includes the complete DC/DC converter design along with a
theory description, components evaluation and test results.

PROJETO DE UM COMPENSADOR PARA FONTE CHAVEADA NA


TOPOLOGIA BUCK E MODO DE CONTROLE POR TENSO

RESUMO
O objetivo deste trabalho o projeto de um compensador para um conversor tipo buck no
modo de controle por tenso com eficincia maior que 70% tendo como entrada a tenso
desregulada de 20V a 40V e sada, tenso regulada a 5V, corrente de sada entre 2A e 10A.
O ripple na tenso de sada deve ser menor que 100mV pico a pico. Este documento
tambm inclui o projeto completo do conversor DC/DC junto com a teoria, clculos dos
valores dos componentes e resultados de teste.

SUMARY

Page
1- INTRODUCTION ....................................................................................................5
2- FILTER DESIGN......................................................................................7
2.1 COMPONENTS EVALUATION...9
2.2 COMPONENTS SELECTION.11
3- SIMULATION RESULTS13
4 COMPENSATION TECHNIQUE...14
4.1 COMPENSATORS COMPONENT SELECTION......17
5 LAB RESULTS20
6 CONCLUSION.22
7 REFERENCES..23

1 - Introduction
Like any other switching power supply, the basic idea behind a buck converter is to control
the output voltage by switching the input voltage by means of a pulse width modulation
(PWM). Therefore the output voltage is an average of the input. Figures 1 and 2 bellow
illustrates this process. Here the switch is closed and opened very rapidly during the time
the system is working.

FIGURE 1- Regulation Concept.

FIGURE 2 Ideal waveform obtained by switching the input and corresponding d-c output
voltage level.
In the figure above we use capital letters to represent dc quantities and small letters to time
variant variables. So, the dc component Vo will be the average value of the function vo(t).
Equation 1 gives this value, which can be easily calculated by evaluating the area under the
curve.
T

Vo =

1
vo (t )dt
T 0

Vo = Vi

t on
T

(1)

(2)

Vo = Vi d

(3)

fs is the frequency applied to the switch and its the inverse of the period T. Equation 3
shows another way of viewing the dc output voltage where the factor d is called duty cycle.
A problem arises when we switch the input as we did because a waveform signal like the
one in fig. 2 will contain harmonics that needs to be filtered out. This periodic signal may
be expressed in the form of Fourier series, like the one shown in equation numbered (4).
Note the first term as the dc component plus the harmonics whose lowest frequency is
exactly the switching frequency. So we must have a low pass filter with high attenuation for
frequencies higher or equal than fs=1/T. Therefore the circuits will look like that one in
figure 3 where the switch was replaced by a MOSFET controlled by PWM waveform.

vo (t) = Vi d + an cos2nf st + bn cos2nf st


V
V
an = i sin2nd................bn = i (1 cos2nd)
n
n

(4)

FIGURE 3 Buck converter.


The function of diode D in the circuit above is to provide a path for the current during the
time the switch is opened. At this moment the energy stored in the inductors associated
magnetic field needs to be released. So when s1 is opened the polarity of L is the opposite
of that in figure 3 and de diode D is forward-biased providing a path for the current. We
note that current is always flowing trough inductor L.

2 - Filter Design
Lets find the linear constant-coefficient second order differential equation that describes
the filter in the circuit of figure 4.

FIGURE 4- Filter circuit.


vo (t ) = RiR (t )
vi (t ) vo (t ) = L
iC (t ) = C

diL (t )
dt

dvo (t )
dt

(5)
(6)
(7)

Combining (5),(6) and (7) leads to the following differential equation:


d2y
1 dy
1
1
+
+
y=
u
2
dt
RC dt LC
LC

(8)

where y=y(t)=vo(t) and u=u(t)=vi(t)


Applying Laplace transform to equation (8) we come up with the corresponding transfer
function of the filter, assuming the initial conditions are zero.

1
Y ( s)
LC
=
U ( s) s 2 + s + 1
RC LC

(9)

Equation (9) resembles the typical polynomial form of transfer function from differential
equation as shown in equation (10)
H (s) =

n2
s 2 + 2 n s + n2

(10)

where the parameter is the damping ratio and n is the undamped natural frequency.
In communications and filter engineering, the standard second-order transfer function is
written like in equation (11) where 0 is the pole frequency and Q is called the pole
quality factor.

H (s) =

p1 , p 2 =

02

s 2 + s 0 + 02
Q

0
j 0 1 (1 / 4Q 2 )
2Q

(11)

(12)

The parameter Q determines the distance of the poles to the j axis; the higher the values of
Q, the closer the poles are to the j axis and the more selective the filter response becomes,
that is the selective factor becomes closer to unit and the filter gets closer to ideal. An
infinite value of Q locates the pole on the j axis and can yield to sustained oscillations and
negative values of Q implies that the poles are in the right half of the s-plane, which
certainly produces oscillations.

2.1 Components evaluation


The next step is to size the inductor. To do this we need to look at the current waveform
over the inductor.

FIGURE 5 Steady-State Waveform over the inductor.


The current across the inductor during the first interval when the switch is closed is given
by
t

1 on
i (t ) = v(t )dt
L

(13)

Therefore, during this time the voltage applied to the inductor is (Vin-Vo). The integral (13)
can be solved evaluating the area of the rectangle delimited by Vin and ton. The result is

I =

1
(vin vo )ton
L

(14)

1
votoff
L

(15)

Similarly

I =

1
toff =

vo
vi

(16)

fs

Designing the inductor can be done in two ways, so during the time the switch is opened
the energy stored at the inductor can provide a continuous or a discontinuous current at the
output resulting in two standard modes of operations called continuous and discontinuous
modes. In this project we are dealing with continuous mode. Lets first choose the
switching frequency. Selecting a high frequency will be advantageous in the point of view
of cost and weight since we get a small inductor, but there is a limit where a certain value
of fs will make the resistive component of the capacitor, ESR, greater than its reactance or
the capacitor can resonate and from this frequency its electrical behavior can be like an
inductor which certainly represents a disadvantage. Another aspect to be considered is the
DC and switching losses in the active components such as the transistor and diode.
Therefore a comparison table would be a good idea in selecting the value for fs.
TABLE -1 - Switching losses comparison.
Freq.
Power
output(W)

50khz

100Khz

200khz

50

50

50

10.8

10.8

10.8

1.4

2.8

5.6

62.2

63.6

66.4

80.3

78.6

75.3

Conduction
Power
loss(Pc)(W)
Switching
losses(Ps)(W)
Power
input(W)
Efficiency

The values above are approximations and calculated based on a MOSFET losses according
to the following equations where Ps is the loss for each type of transition(ton or toff), that is,
Ps is the sum of losses for turned on and turned off transition times.

PS =

V DS (max) I D (max)
2

S fS

PC = I D2 ( RMS ) RDS ( on )

The chosen frequency in this project will be 100khz. Once we determine this frequency we
can use equations (15) and (16) to come up with a value for L, since we intend to have a
continuous mode design at nominal output current.
Having the input voltage ranging from 20 to 40V we have
toff ( mn ) = 7.5us
toff ( mx ) = 8.75us

Since the inductor must be able to store enough energy during the off time, we must deal
with the highest value for toff
Regarding the range of I, let denote Io1 the minimum specified load current and Io2 the
maximum specified load current. So if we make I/2 greater than Io1, the current at the
inductor will become negative and this is called discontinued mode. Although its safe to
operate at discontinuous mode frequency will change and the response becomes poor. So
we choose I=2.Io1. But as Io1 gets smaller so does I, which according to (15) will result
in large value for L. In the same way as we increase I, L decrease, but the high peak
current represented by Io1+/2 will cause components saturation. Here we assume
Imax=0.5.Io2 as a design condition.
2.2 Components selection
In our example Io1=2A, Io2=10A. Therefore I=4A which is a feasible value since its
bellow the limit Imax=0.5 Iomax=5A. From (15) we get the value of L

L=

Vo t off
I

= 10.9uH

The capacitor must be sized in order to fit the requirements of maximum output ripple.
Figure 6 shows the waveforms over the capacitor

FIGURE 6-Capacitor waveforms.


Vc is the ripple at the capacitor and can be calculated as

Vc =

1
ic (t )dt
C

This integral can be evaluated by finding the area shown in the current waveform of figure
8.
T I
2 2
I
Vc = 2 =
C
8 f sC

C=

4
I
=
= 50uF
8 f s Vc 8x100kx100x103

(17)

3 Simulation results
The values of components obtained so far are just a first approximation. Since the converter
will work in a voltage loop we have to analyze the filter already designed inside the loop in
order to assure loop stabilization Final adjustments might be necessary in order to achieve
design specification. Having calculated the filter components lets now take a look at the
open loop characteristic of the filter transfer function shown bellow for R=0.5. Figure 7
shows the frequency response for the projected values using MATLAB.

G (s) =

1 . 83 10 9
+ 40 10 3 s + 1 . 83 10

Bode Diagram
10
0
Ma -10
gnit
ud -20
e
(dB-30
)
-40
-50
-60
0
-45
Ph
ase
(de -90
g)
-135
-180
3
10

10

10

10

Frequency (rad/sec)

FIGURE 7-MATLAB simulation of filter frequency response.


We note that the filter by itself has a very low phase margin which needs to be increased.
We will achieve a better phase margin by adding a suitable controller in a closed loop
configuration.

4 - Compensation technique
Lets first take a look at a typical block diagram of our system, which is shown in figure 8
bellow. In this figure G(s) is the filter transfer function, Vi is the input voltage, 1/Vp
represents the modulation of duty cycle according to the signal error c provided by the
compensator C(s).

FIGURE 8 System block diagram.

The open loop gain, according to control system definitions, is


Vi C ( s )
V p LC
G ( s) H ( s) =
s
1
s2 +
+
RC LC
k

(18)

H(s) in this case is a constant k which is a voltage divider of the output. For this example
k=1/2. 1/Vp represents the typical modulator block where Vp=2.4 and Vi=40v. Because we
want to see the system characteristics without compensation at this time just to get an idea
about phase margin lets set C(s)=1 with no contribution in gain and phase. Substituting
the values gives

G ( s) H ( s) =

15.3 10 9
s 2 + 4 10 4 s + 1.8 10 9

(19)

The Bode plot for equation (19) will look similar to that of figure 7 except for the gain
factor. But the overall loop gain that its desirable for this system is shown in the next
figure. This is the gain after accounting the effect of the controller on the system.

FIGURE 9 Overall open loop gain.


Here are some considerations. We shape the gain to have an attenuation of 20db or more
at the switching frequency ws. This avoid large signals instability and attenuate the voltage
ripple at the output. We place a zero at the cross over frequency wc, which changes the
slope from 2 to 1, so we set wc one decade bellow ws. Therefore we have an attenuation
of 20dB at ws. Moreover we have pole at zero frequency to keep the gain high at DC level
because this keeps the input error of the controller very small. The frequency w2 is chosen
one decade bellow the natural frequency wn. The controller topology that has the
characteristics for shaping this system is

FIGURE 10 Controller topology.

vo =

Z2
Z2
Z2
vi + (1 +
)v r =
(v r v i ) + v r
Z1
Z1
Z1
C ( s) =

Z2
Z1

Lets choose convenient Z2 and Z1

FIGURE 11 Impedances.
Z 2 = R 2 + 1 / sC 2 = ( R 2C 2 s + 1) / sC 2
Z1 = R1.1 / sC1 /( R1 + 1 / sC1)
Z1 = ( R1 / sC1) /(( R1C1s + 1) / sC1)
Z1 = R1 /( R1C1s + 1)

C ( s) =

Vo( s ) Z 2 ( R1C1s + 1)( R 2C 2 s + 1)


=
=
Vi ( s ) Z1
R1C 2 s

The bode sketch for this compensator is shown in the next figure. Its a lead-lag type
compensator that subtracts phase at lower frequencies and adds phase at higher frequencies
with no contribution in phase in the mid range.

FIGURE 12 Compensators bode sketch.

4.1 Compensators component selection


Now we are ready to find out the components values.
Step1:
ws=2fs
wc=0.1ws

fs=100khz
ws=6.28x105rad/sec
wc=6.28x104rad/sec
Step2:
wc=1/R1C1
R1C1=1.59x10-5
Step3:
Looking at figure 9 the expression 20log(?) is the sum of 20log(kVi/Vp) and 20log(R2/R1).
So the gain at region II at figure 9 is 20log(kViR2/R1Vp).
We want the gain at w=wc equal to zero. If the gain in db of |G(s)H(s)| at wc is G1 then the
controller shall have a gain of G1. Therefore 20log(R2/R1)=-G1
R2/R1=10-G1/20
G1=13.4db
R2/R1=0.21
R1=10k
R2=2.1k
C1=1.6nF
Step 3:
W2=0.1x1/(LC)1/2
W2=4.28x103rad/sec

Step 4:

W2=1/R2C2
R2C2=2.33x10-4
C2=110.7nF
Now the design is completed. The transfer function along with the bode plot giving the
overall gain and margin is shown

G(s)H(s)C(s) =

1.53x1010 (3.7x109 s 2 + 2.5x104 s +1)


1.11x104 s(s 2 + 4x104 s +1.8x109 )

FIGURE 13 Overall open loop gain.

5 Lab results

FIGURE 14 Filter input voltage and inductor current.

FIGURE 15 Load transient.

FIGURE 16 Output ripple.

In the figure 14, the upper curve is the voltage input and the lower one is the inductor
current. In the figure 15 the upper curve is the a-c variations of output voltage due to load
transients represented by the lower curve. In the figure 16 the upper curve is the inductor
current and the lower curve is the output voltage ripple.
All the results above were obtained after connecting a MOSFET as a load at the output and
modulating its gate voltage with a square wave in order to have load transients as shown in
figure 15. To measure the current we have used a current probe amplifier with scale of
1A/div. Note that the switching frequency has doubled from its original projected value.
This is due to the type of driver used in the project, which will not be discussed here. One
could decrease the oscillator frequency by half but we left it as built. Some remarks about
this change are made at the conclusion section.

6 Conclusion
We showed in this report that designing stable control loops for buck topology in voltage
mode control is easily achieved by implementing the compensator described in previous
section. Besides, some specifications were able to be verified after building a prototype
which showed an efficiency in the order of 78%. Also within specification was the output
ripple of 25mV peak-to-peak as shown in figure 16 on channel 2. This ripple is smaller than
the original projected value due to the increase in frequency. Also, the inductors ripple
decreased by half for the same reason. From figure 15 we evaluate the output impedance as
400mV/1A as well as a response time to variations in the load of about 2ms.

7 References
Chryssis, G. High-frequency switching power supplies. New York : McGraw-Hill, 1984.
221 p.
Mitchell, D; Mammano, B. Designing Stable Control Loops. In: Unitrode Texas
instruments. Power Supply Desgn Seminar. Topic 5, p. 5-1 - 5-30, 2001 series
Unitrode. International semiconductor databook. Application Notes. 1982-1983
Sedra; S. Microelectronic circuits. 3 ed. Oxford: Oxford Press 1991. 1054 p.
Unitrode Integreted Circuit. Application notes. Linear integrated circuits data and
applications handbook. Merrimach: Unitrode, p. 9-1 a 9-305, 1990.

You might also like