ECE103
ECE103
ECE103
the other kinds of requirements that we get relate to the last lecture so
we may have some transient response time requirement which
means that we want to respond to a disturbance in a certain
amount of time
so these two issues were discussed in the last lecture the the problem
of designing a feedback control system then is one of shaping the loop
gain so that we have the adequate phase margin we have an
adequate crossover frequency and we have a large enough
magnitude of the loop gain to make these disturbance transfer
functions be sufficiently small
so what we'll talk about in this lecture then is how to add poles and
zeros and gains to our loop gain to shape it and change it so that we
meet all of these kinds of requirements and this addition of poles and
zeros is done through generally what's called a compensator
Network it's another block that we add to our feedback loop that often
contains things like op-amp circuits in an analog feedback loop and
this is the place than where we can add these poles and zeros to
shape the loop gain and get what we need
Break: Slide 38
Explanation
well we know that zeros add positive phase so naturally we can
think of adding a zero to our loop gain here is then a plot of a loop
gain that has a zero right here and after that frequency we have a gain
that increases so we get this compensator that has a some DC gain
and then it has a zero now one immediate problem or practical
problem with this is that this transfer function by itself with a zero
implies that the gain gets larger and larger as the frequency increases
and in fact as you go to infinite frequency the circuit has infinite gain
this is not at
Solution
all practical all amplifier circuits must roll off at high frequency if you go
to a high enough frequency there's no more gain so there's at least
one pole to flatten out our gain and in fact there's more than that
there's at least one more after that to make the game roll off we'll talk
more about this when we do an example of designing an op-amp
circuit for a practical compensator
and likewise the pole will give phase asymptotes that look like this
that go down to minus 90 and change over a decade on either side of
the pole frequency so here's F P over 10 + 10 F P phase asymptotes
will have this is that Z over 10 + 10 F Z up here
when you combine those asymptotes the slopes over the range from
this frequency to this frequency will cancel and will flatten out and then
above that frequency will eventually come back to a NetZero degrees
phase shift so the
Break: Slide 39
next slide so here is the answer the frequency where the phase is
maximum is at this geometric mean which we will set equal to the
crossover frequency and the value of that phase if you work out the
exact function it turns out to be expressible like this
Break: Slide 40
and our pole and zero frequency will be spaced evenly about it
and we will choose that ratio of frequencies to make this maximum
phase give us enough additional phase to get the proper phase
margin in our loop
gain that can move our overall loop gain up and down if you don't
want to change the crossover frequency of your loop you need to
make this gain right here be unity gain
so that it doesn't change the gain at the crossover frequency
well that means that this gain at low frequency will be less than unity
here is in fact an expression from the gain which you can derive by
writing the equation of the asymptotes
so this slide is the bottom line this is these design equations that we
need to design the PD compensator
Break: Slide 40
here's a brief example and we'll do some more involved examples and
upcoming lectures but what I've shown here is an
one of the things it does is reduce the DC gain and so with this type of
compensator we're not concerned with the the DC gain or the gain of
T at other frequencies all we're really trying to do is improve the
phase margin
Break: Slide 41
here is a second classical type of compensator Network called the lag
compensator or the proportional plus integral controller or PI
controller
the object of this type of compensator is to increase the loop gain at
low frequency so that we can regulate better and have more loop
gain
gain that looks like this this term here is the integrator in the
Laplace domain and integrator is divided by s and then so that's the
eye part of the PI controller and then this is a proportional part or
proportional gain that's P and so we have proportional gain
we need to boost the gain now the first thing we could do is simply
add more DC gain to our entire loop so we could bring the whole
loop up by maybe that much and just scale the whole curve up so that
we have a a gain like this
one over one plus T is found as being essentially equal to one or zero
dB at high frequency and one over T at low frequency so increasing
so this compensator network has all the terms this is often what we
will do if we have a second-order system such as a continuous
conduction mode buck-type converter to compensate the crossover
frequency as in the PD compensator will be chosen to be halfway
between the 0 and the pole
so that our crossover frequency will be here and we'll get some
improvement in phase margin from that and then
________________________________________________________
____________________
input voltage is 5 volts our output current can vary anywhere from
0 to 5 amps in this kind of converter it is important that the loop be
able to respond quickly to variations in load current
and in fact the processor may change its load current much much
faster than the bandwidth of the feedback loop and so we invariably
have to put many capacitors around the processor chip in order to
maintain adequate voltage regulation at high frequency and have
a sufficiently low output impedance driving this chip
still the faster we can make our converter the less capacitor we need
and the capacitors that can work in this application can add up and be
fairly expensive so we see a lot of applications such as this nowadays
with buck converters that operate at a low duty cycle and in
fact we may have parallel connected buck converters to supply the full
current these parallel connected
Break:
here's our equivalent circuit model for the buck converter here I have
and the capacitor with its ESR this circuit has three resistive elements
so it's a little bit of work to calculate the Q factor I'm not going to go
into it here
Break:
let's work out the uncompensated loop gain then and design a
compensator this goes very similar to the previous example
with no compensator then our overall loop gain will be the control
to alpha transfer function g VD multiplied by the pulse width
modulator gain multiplied by the compensator gain of 1
and in this low voltage output at 1.8 volts output we don't need to
divide the voltage down so we our H is 1
break
here are the bode plot asymptotes then of the uncompensated loop
our
DC gain is 5 is not very high we have our poles at
11 kilohertz and then we have a
40 DB per decade slope after that until we get to the
ESR zero at one megahertz and
Break:
break:
high frequency
added high frequency pole at say 10 times the crossover
frequency
once we've done this it's now time to add the PI part of the
compensator the DC gain of 28.7 is not bad but we could do more
by simply adding an inverted zero to get the pi compensation as
well and improve the low frequency regulation
so as before we will add an integrator at low frequency we're going
to choose this corner of our our inverted zero to occur at less than one
tenth of the crossover frequency and here the choice was made to
make it 8 kilohertz
MATLAB plot of that function you can see that it indeed looks as
advertised there's a little bit of peaking in the vicinity of 100 kilohertz
which comes from the phase margin of 51.6 degrees so Q is close to
1 and there's a little bit of resonance there here is a simulated plot of
the step response so what we're doing here is applying a 10 millivolt
step in the reference voltage V ref from 1.79 volts to 1.8 volts and
back so the output voltage steps from 1.79 up to 1.8 and then here it
steps back to 1.79 this is the resulting inductor current variation and
this is the duty cycle variation one thing you can see here is that the
duty cycle must take a jump and there's little spike and duty cycle in
order to get the voltage to change this quickly and in fact we can zoom
in on the response here and what we can say is that the duty cycle
doesn't actually saturate if we applied a larger step change in voltage
the duty cycle would hit the maximum value that the pulse width
modulator can make maximum of D of one or perhaps something less
than that and if it did saturate then our transient response would not
look like we expect but since this step is small enough the duty cycle
doesn't saturate and actually we see a step response with an
overshoot that is commensurate with the cue of one that we get from
our phase margin of fifty one point six degrees so this this overshoot
plus the ripple switching ripple are exactly what our small signal
models would would predict next let's plot the output impedance and
then plot the response to a step change in load current if we set our
independent sources and our converter model to zero then the model
reduces to this equivalent circuit and we can work out the open-loop
output impedance from this basically we have the parallel combination
of the two branches and we can construct the asymptotes for that
parallel impedance here are all the asymptotes the inductor capacitor
the load resistance and the ESR down here so first we find a series
combination of the inductor resistance and the inductor which will
follow this and then we put that in parallel with the ESR and the
capacitor here's the ESR and the capacitor you take the smaller of the
two for the parallel combination and we get the the red asymptotes
with some Q factor there at DC then the output impedance is
dominated by the inductor resistance purrs and at high frequency the
output impedance is dominated by the ESR of the capacitor next let's
construct the closed-loop output in peanuts so here is our T here is 1
over 1 plus T which you recall is one above the crossover frequency
and it follows 1 over T below the crossover frequency then we need to
multiply this 1 over 1 plus T function by the open-loop output
impedance to get the closed-loop output in peanuts here is that
computation so this is our 1 over 1 plus T and this one is our open-
loop output impedance and what we need to do then is multiply the
orange asymptotes by the blue asymptotes they're shown in green so
here we follow the open-loop output impedance above the crossover
frequency and below the crossover frequency this open-loop output
impedance gets multiplied by the 1 over 1 plus T function and we get
asked some totes then let that do this so you can see that the
maximum value of the output impedance happens at the crossover
frequency right there and add some frequencies below that in fact
from working out the asymptotes we're at it works out that we're at 8
milli ohms right there at the crossover frequency which is in fact the
valid value of the capacitor impedance at the crossover frequency it's
just below minus 40 DB ohms and at lower frequencies and higher
frequencies we have lower impedance than that what would you
expect then would be the voltage deviation that would be caused by a
step change in load current well perhaps it's hard to do the inverse
Laplace transform in your head but one thing I can say just as a first-
order approximation the step change in load current has a wide
spectrum of frequency components and the ones at this these
frequencies where the output impedance is maximum will cause have
the most effect on the voltage deviation for verification here is a
MATLAB plot of the closed-loop output impedance and you can see
that it does indeed look like the asymptotes that I constructed on the
last slide with a similar kind of maximum that's just under minus 40 DB
ohms and with a little bit of peaking right here in at the crossover
frequency in the vicinity of 100 kilohertz and here is a MATLAB plot of
the response to a step change in load current so here that we're
making the load current change from two and a half to five amps and
back so it does this in response to that here is the transient that we
get in the output voltage in the inductor current and in the duty cycle
and the the output voltage transient is magnified right here first of all
you can see that the settling time is about 10 microseconds so that's
the time from here to here and that time is commensurate with our
loop bandwidth of 100 kilohertz in addition the magnitude of this the
voltage deviation is about 15 millivolts from 1.8 volts it dips down to
one point seven eight five volts so if we take a 2.5 amp change in
current and multiply that by this maximum output impedance of eight
millionths that works out to be what 20 millivolts so that's this rule of
thumb approximate estimate of how large the voltage variation will be
okay we actually have 15 millivolts instead of 20 according to the
simulation but if we wanted to reduce this step change we would need
a yet higher crossover frequency or we would need more capacitance
on our output one or the other in order to reduce the the maximum
output impedance of our converter so I've Illustrated another example
this is a fairly up-to-date point of load power converter it it is a
challenging design and requires good engineering you need to know
what you're doing as far as working out the closed-loop responses
and closed-loop output impedances in order to meet the kind of
demanding specs that we have nowadays for these kinds of power
systems