Control loop cookbook_TI
Control loop cookbook_TI
Lloyd H. Dixon
Considerations:
• Cost
• Size/Weight
• Efficiency
• Noise
Switchmode Topologies:
In the basic buck, boost and flyback power cir-
cuit topologies, shown in Figure 7, the inductor is
the element which transfers power from the input to
the output. (In the unique Cuk converter — a dual
of the flyback — a capacitor is the energy transfer
element.) The power switch is turned on and off
during each switching period by a Pulse Width
Modulator (PWM). The duty cycle, D, (the percent-
age of time the switch is ON) is the basis for Fig. 7. - Basic Buck, Boost, Flyback Topologies
VC v
D= ;d= C (3)
VS VS
directly proportional to the delay time, td, and signal VImin = VO/Dmax (6)
frequency, f, according to the relationship:
Duty Cycle Range:
øm = 360tD/T = 360tDf (4) It is theoretically possible for the basic buck
This additional phase lag reduces the phase regulator and its push-pull transformer-coupled
margin at the unity gain crossover frequency and derivatives to utilize the full 0 to 1 duty cycle range,
theoretically may contribute to control loop instabil- but D close to 1 is best, as it results in the lowest
ity. However, the additional lag is usually negligible. primary-side current and lowest secondary volt-
For example, at an fC of 25kHz, consistent with fS ages. (The boost topology functions most
= 200kHz, a turnoff delay of 0.4 µsec in the IC and effectively with D close to 0, the flyback with D
the power switch causes only 3.6° additional phase close to 0.5.)
lag, reducing phase margin by that amount. As shown in Eq. 6, for the buck regulator, the
Most control ICs have additional “housekeep- minimum VI at which the circuit can function is
ing functions” such as UVLO - UnderVoltage defined by DMAX. In transformer coupled topolo-
LockOut, HVLO - HighVoltage LockOut, and Soft gies, the minimum VI defines the transformer turns
Start, which are not discussed in this paper as they ratio.
are not directly relevant to control loop design. DMAX can never reach 1 because of practical
limitations. Some of these limitations are: turn-on
Design Relationships –
propagation delays and switch delay & rise times,
Buck-Derived Topologies:
resonant transition times, and reset time for the
In addition to the basic buck regulator, trans-
current sense transformer, if a CT is used. DMAX is
former-coupled buck-derived topologies include
typically limited to between 0.85 – 0.95. Any appli-
the single-ended Forward Converter and a variety
cation involving a transformer must provide time to
of push-pull converters: Center-tap, Full Bridge,
reset the transformer core – the reverse volt-sec-
and Half-Bridge.
onds must equal the forward volt-seconds to get
The basic relationship governing the power cir-
the flux back to the starting point. Push-pull circuits
cuit of all buck-derived topologies operated with
automatically reset the core by driving it in opposite
continuous inductor current is:
directions during successive switching periods.
VO = VID; vO = VId (5) The Forward Converter has the most serious prob-
lem – it is driven in only one direction, and the
subsequent voltage reversal required for core reset
typically equals the time driven in the forward direc-
vC
d= D (11) fs fs
VS fc = 2šD becomes: fc = 2š (12)
VREF -~
KFB= ~- R1+R2
RI
R1=-
KFB
RI
R2=~
1
(l)PI= Cp(RF+Rp)
roZ1 = ~ 1
1
(J)Z2 = Cz(RI +Rz )
O)P2 = - 1
fz1 fz2
[!::!)
- 5-A1 Error Amplifier Design
ol1er loop with a Current Mode Control inner loop. In both circuits, Ap limits the dc and low fre-
Fig. A-2 is for Average Current Mode Control loops. quency gain. Making Ap infinite (by omitting it),
The compensated error amplifier gain charac- pole fp1 is eliminated, and the gain continues to
teristic has been referred to as KEA, separate and rise at low frequency until finally reaching the
distinct from the feedback factor for the entire loop, amplifier gain limit.
KFB. However, it is difficult to separate KEA and With an Average CMC current loop, only the
KFB physically, and so both of these gain elements inductor pole is active at fs. A triangular ripple
appear in Figs. A.1 andA-2. Note how, in Fig. A-1, waveform is seen across As. There is no reason
resistors A 1 and A2 in series form the voltage not to optimize the crossover frequency by slope
divider gain element KFB, but these same resistors matching. E/A gain should be flat (ApAv down to
in parallel form AI, part of the network which deter- fC, resulting in -1 slope in overall loop gain above
mines gain KEA. It is important to keep these two fc. Put zero fZ1 at fc to boost overall loop gain with
elements separate conceptually, even though they -2 slope below fc. This current loop crossover fre-
are combined physically. In Fig. A-2, the loop feed- quency will be called fcl. The closed loop gain of
back element is the current sense resistor, As. the current loop equals 1/AS and rolls off with a
Although As is physically separate and plays no pole at fCI. This pole at fcl appears in the outer volt-
role in KEA, it is shown here for the sake of consis- age loop.
tency with Fig. A-1. There are several possible scenarios for the
In most voltage loop situations, fZ2 and fp2, tl:t~ outer voltage loop, depending on whether elec-
pole-zero pair in Fig. A-1 is not required, so Az is O trolytic capacitors or ceramic/polymer (with
and Cz is omitted. negligible ESAs) are used, and where it is desired
00 -- 1
Z1 -CpRF
fz1
(b!]
E"or Amplifier Design 5-A2 -
to put the voltage loop crossover frequency. These Amplifier Gain limits:
are best explored by looking at the examples in After the desired ElA compensation network
Appendix C. has been designed and plotted, make sure the
The rising gain characteristic of the zero-pole intended error amplifier gain characteristic
pair fZ2 and fp2 shown in Fig. A-1 is required in the exceeds the required gain over the entire range of
voltage loop to cancel one pole when two poles are frequencies. The high frequency end of the El A
active above the proposed voltage loop crossover gain characteristic is usually a -20 dB/decade
frequency, fcv. This will occur in these circum- (-1 )slope crossing 0 dB at the specified Unity
stances: (a) With CMC, when fcv is less than 1 Gain-Bandwidth frequency. This slope terminates
decade below fcl pole, and output filter capacitor at lower frequencies at the specified open loop
ESR is negligible (capacitor pole). (b) With single- voltage gain.
loop VMC, when the proposed fcv is less than 1
Slope Compensation:
decade below output filter resonance or between Strongly recommended for all continuous
filter resonance and the ESR zero frequency mode regulators using peak current mode control,
(L and C poles). even though it is not absolutely necessary for sta-
Amplifier Output loading: bility when duty cycle is less than 50%. Ideal slope
The starting point in the design of the E/A cir- compensation is achieved by introducing a ramp
cuit is to decide upon an appropriate value for RF. whose slope equals the downslope of the inductor
Too small a value of feedback resistance and/or current ramp, as seen across the current sense
other loading on the E/A output may exceed its resistor. The ramp could be negative going, super-
source/sink output current capability, so that the imposed on the current programming voltage (the
amplifier will not be able to swing its output voltage output of the error amplifier), but it is easier to
over the necessary range. Every amplifier (whether derive a positive ramp from the existing IC oscilla-
voltage or transconductance type) has a limited tor, and add it to the current ramp. For example, a
source and sink output current capability. This is 0.2 V ramp is easily added to the current ramp by
usually defined on the spec sheet, although some- a 10:1 voltage divider taken from a 2 Volt oscillator
times indirectly as the load currents in VOUT High ramp to the top of the current sense resistor. Be
and VOUT Low tests. Don't make RF too large or careful not to load the oscillator excessively.
noise sensitivity is increased. If the E/A input is at
2.5V (reference), 25K for RF requires :l:100mA to
drive O to 5V.
Transconductance Amplifiers have high imped-
ance (current source) outputs instead of the low
impedance output of the more common voltage
amplifiers. However, with either type of amplifier,
the E/A voltage gain is established by the feedback
impedance ratio, ZFfZI, and with feedback, the
amplifier type within is indistinguishable.
Transconductance amplifiers used in early power
control IC's developed a reputation for application
problems, but this was because their source/sink
output current capability was low, not because of
the amplifier type.
(1J]
- 5-A3 Error Amplifier Design
The Bode plot is a method of displaying com- Low Pass -Single Pole: Figure 8-1
plex values of circuit gain (or impedance). The gain
magnitude in dB is plotted vs. log frequency. Phase I 1 L
F(s) = -S ; rop =RCor R
angle is plotted separately against the same log 1+-
frequency scale. rop
Bode plots are an excellent tool for designing Gain Slope: -20 dB/decade; Phase Lag: -90° total
switching power supply closed loop systems. They
Single Zero: Has the same gain and phase char-
provide good visibility into the gain/phase charac-
acteristic as the single pole shown in Figure 8-1,
teristics of the various loop elements. Calculation
except gain increases with frequency. Gain and
of the overall loop is made simply by adding the
phase slopes are both positive.
gain expressed in dB and adding the phase angle
in degrees.
s . 1 L
The process is further simplified by using F(s) = I+ 00;: , O>z= RCor R
straight line approximations of the actual curves,
called asymptotes. Calculations are then made
only at the frequencies where the asymptotes Gain Slope: +20 dB/decade; Phase Lead: +90° total
change direction.
Bode's theorem for simple systems, which
includes most switching power supplies: The
phase angle of the gain at any frequency is depen-
dent upon the rate of change of gain magnitude vs.
frequency. A single pole (simple RC low-pass filter)
has a gain slope of -20 dB/decade above its cor-
ner frequency and has a corresponding -90°
phase shift.
First Order Filters (A-C or L-A):
Single pole or zero first order filters both have
gain slopes of 20 dB/decade above the comer fre-
quency. The phase shift asymptotes slope
45°/decade, extending 1 decade each side of the
comer frequency for a total 90° phase shift (see
Rgure 8--1).
The maximum gain error is 3 dB between exact
values (curved lines) and the straight line approxi-
mations. The maximum phase error is 5.7°. These
small errors can be safely ignored in the control
loop design.
Figure 8-1- Single Pole
I1J]
- 5-81 Bode Plots
Right Half-Plane Zero: The effective series resistance RS determines
Refers to its location on the complex s-plane. a. Rs includes capacitor ESR: Rc, inductor: RL,
The RHP zero has the same positive gain slope as rectifier dynamic: Rc, leakage inductance effective
the conventional (left half-plane) zero, but the resistance: RI, and load resistance: ROo trans-
phase slope is negative, like a single pole. Above formed into its equivalent series R.
the RHP zero comer frequency, loop gain is held a seldom reaches a value greater than 4 or 5.
up, yet more phase lag is added. This makes it vir- At full load, low Ro transforms into high Rs. At light
tually impossible to achieve an open loop loads, diode Ro limits a.
crossover frequency above the RHP zero frequen- The phase characteristic slope is approximate-
cy. Fortunately, the right half-plane zero is ly -120°/decade at a a of 0.5. At higher a values,
encountered only in boost and flyback regulators Figure 8-4 shows that the phase slope becomes
and then only when operated in the continuous much steeper, making compensation more difficult.
inductor current mode.
Phase asymptote intercepts:
F(s) = ]- -!-
COz
K =52Q
Gain Slope: +20 dB/decade; Phase Lag: -90° total
Fs = I
1 + (s/roo)/Q + (S/roo)2
~
Rs=Rc+RL+RD+RR+ RO ;
0=:!)
Bode Plots 5-82 -
Figure 8-3- Two-Pole Resonant GAIN
Figure B-4 -Two-Pole Resonant PHASE
0:::!]
- 5-83 Bode Plots
t.
Pulse Width Modulator Gain shown here applies to all Buck topologies
PWM Gain: KMOD = d = ~ E/A gain < 1/5 of optimum:
Vc Vs
d
PWM Gain (Opt.): KMODX = =J!.-=~ Optimized EtA gain (slope-matched)
Vc Vs VSV1
Feedback Gain: KFB = Rs ; VIA effective current sense R, incl. current xfmr turns ratio
Filter Gain:
Feedback Gain: ~B = ~
Vo
p Co " G oo K
ower Ircult alno PWR = -=
Vo
G I Ro =- R 1
Ro
12 f )-;
"
KMQO IS not
.
In voltage loop
s ( +s n- CI
Vcv
l+sRESRC
Filter Gain: ~c = l+sRoC
Feedback Gain: ~B =
VREF
~
Filter Gain: I{
"'Lc -1+$RESRC
-
1 + $.[iC IQ + $2 LC
[1:!]
- 5-C1 Small Signal Characteristics and Control Loop Examples
~
Buck Regulator Application Examples
A 1DO Watt Forward converter is used to illustrate several different approaches to closing the
feedback loop. The input voltage values are referred to the transformer secondary, making the actual
primary voltage and the turns ratio irrelevant to this procedure.
Current sensing is actually performed on the primary side of the forward converter power trans-
former. Thus, with a turns ratio of 10:1, for example, an effective sense resistance of 50 m.Q is actually
5DO m.Q (10 x 50 m.Q) on the primary side, producing a sense voltage of 1 V on the primary side for
20 A secondary side current, and with much less loss .
Two different output filter capacitor types will be explored for this application --
The triangular inductor ripple current waveform (at the switching frequency) will retain its triangular
shape across the 3300~F Aluminum Electrolytic because its impedance at fs is the ESR resistance. In
a single loop Voltage Mode Control, if the crossover frequency, fc, is to be optimized, the Error
Amplifier gain must be flat (0 slope) from fs down to fc, to retain the triangular shape used for slope
matching, and to provide a net -1 slope in the overall loop gain to preserve adequate phase margin.
Although the waveshape is triangular, its amplitude will vary with ESR, and if ESR variation is large,
optimizing fc may be impossible.
With the 30~F Polymer Electrolytic, there are two active poles at fs. The triangular inductor current
waveform is integrated by the output capacitor, resulting in a quasi-sinusoidal waveshape. If the VMC
loop is to be optimized, The E/A characteristic must differentiate this waveform (+ 1 slope) in order to
recover the triangular waveform as well as to obtain the -1 slope needed for overall loop phase margin.
[!='J
Small Signal Characteristics and Control Loop Examples 5-C2 -
\, Forward Converter -Avg. CMC Loop -Aluminum Electrolytic
Use the previously defined Average Current Mode Control Loop equations (1 ). and the parameters of
this application:
I 1
ZERO to= 2-POLE Resonant f R ="2;;"JLC
21rRoC
At 10 = 20A, Ro = 0.25; KKKK = 0.4 ~c (-8 dB) ; Zero fo = 193 Hz; fR = 1200 Hz
At 10 = 2A. Ro = 2.5; KKKK = .04 ~c (-28 dB) ; Zero fo = 19.3 Hz; fR = 1200 Hz
Pole at 193Hz =
[!:JJ
- 5-C3 Small Signal Characteristics and Control Loop Examples
Forward Converter -A vg. CMC Loop -Polymer Electrolytic
Use the previously defined Average Current Mode Control Loop equations (1 ). and the parameters of
this application:
l+sRoC , --. I
~c= ~ 2 " ..2-POLE Resonant fR= ~
l+s"LCIQ+s LC .21C"LC
At 10 = 20A. Ro = 0.25; KKKK = 0.4 ~c (-8 dB) ; Zero fo = 21 kHz ; fR = 12.4 kHz
At 10 = 2A. Ro = 2.5 ; KKKK = .04 ~c (-28 dB) ; Zero fo = 2.1 kHz ; fR = 12.4 kHz
dVs Vs
~="'T;= Vsfs dlL
= ~RsKEA = (VO+VF)
LRsKEA
.-
w
(/) -90
<
:1:
Q.
.180
~
Forward Converter- Voltage Loop with CMC -Aluminum Electrolytic
Use the previously defined Voltage Loop with CMC equations (2), and the parameters of this applica-
tion. The PWM is within the current loop and does not appear in the outer voltage loop. The low
frequency power circuit gain equals the current loop closed loop gain times load resistance:
R o .R = .05.Q ;
= G,Ro =~(I+s/21rfc,) , s Pole at fc, = 30 kHz
~WR
l+sRESRC .
KLC = l+sRoC . Pole at f o =2iiR;;C ; Zero at f ESR=
27rRESRC
At 10 = 20A, Ro = 0.25; KKK = 2.5 ~c (+8 dB) ; fo = 193 Hz ; fESR= 1900- 4000 Hz
Slope matching is not used, voltage loop crosses over at 4 kHz (max fesR)'to avoid problems with
current loop crossover frequency, fC,"
LetR,=1K
R1 = R/~ = 2K; R2 = R/(1-K.B) = 2K
Use the previously defined Voltage Loop with CMC equations (2), and the parameters of this applica-
tion. The PWM is within the current loop and does not appear in the outer voltage loop. The low
frequency power circuit gain equals the current loop closed loop gain times load resistance:
Ro
~WR = GIRO =R;(I+s/21t"fcl ; As = .OSQ ; Pole at fcl = 30 kHz
xKLC = QI
Rox (l+s/21rfc/)
.XKLC
(l+s/21r f CI )
Slope matching is not used, voltage loop crosses over at 21 kHz (max to),
R1+Rz
60
40
m 20
Zero: fa: 29kHz = ; Cp =220pF ~
21t"(Rr+Rz}Cz Z
< 0
For noise reduction ~
FREQUENCY
E/A Summary -Circuit A-2:
R1= 5K, R2 = 5K, Rz = 22.5K, RF = 10K 0
Cp = 750pF , Cz = 220pF ;-
Rp. omitted w
(/) -90
<
:1:
Q.
180
l!=:!J
Small Signal Chamcteristics and Control Loop Examples 5-C6 -
t,
Forward Converter -Voltage Mode Control- Aluminum Electrolytic
Use the previously defined Voltage Mode Control -Single Loop equations (3), and the parameters of
this application:
v v
KKKK = KMODX X KpWR X KFB X KLC = ~
xKLC = lxKLC
~xVlx--B§LxKLC=
VSVl Vo Vo
K -l+sRESRC . I
LC- l+sJLC IQ+S2 LC , 2-POLE Resonant f R =~ ZERO f ESR=
21t'RESRC
KEA = VsfsL
(VO+VF)RESR K = 40 (32dB)
max FB
~
w -90
(/)
<
:1:
no
.180
~
- 5-C7 Small Signal Chatacteristics and Control Loop Examples
Use the previously defined Voltage Mode Control -Single Loop equations (3), and the parameters of
this application:
, .
~c= 2-POLE Resonant f R ="2;;-JLC' . fR = 12.4 kHz
l+sJLCIQ+s2LC
Optimum crossover frequency for a buck regulator with slope matching is f/2n, or 30 kHz in this
example. However, the ripple voltage across output capacitor C is not triangular, but a quasi-sinusoid
due to double integration (L and C, ESR is negligible). The E/A must differentiate the waveform across
C to recover the triangular waveshape at the PWM comparator input.
60
40
~
m 20
"0
~
Z
< 0 - lKKKK
Zero at fR: 12.4 kHz= 21t"(R1 ;Rz )Cz f!J
KOA
Cz = 1200 pF
-20
R, = 500n -high freq. pole for noise reduction:
TO
Pole: f~(R,+RJ/R, = 260 kHz -40
R1 = R/KF8 = 1 K; R2 = R/(1-KF8) = 1K 10 100 1K 10K 100K 1M
FREQUENCY
v
(/) ~
Rp omitted <
:1:
Q.
-180
[!:J]
Small Signal Chalacteristics and Control Loop Examples 5-C8 -
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,
enhancements, improvements, and other changes to its products and services at any time and to discontinue
any product or service without notice. Customers should obtain the latest relevant information before placing
orders and should verify that such information is current and complete. All products are sold subject to TI’s terms
and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI
deems necessary to support this warranty. Except where mandated by government requirements, testing of all
parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for
their products and applications using TI components. To minimize the risks associated with customer products
and applications, customers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right,
copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process
in which TI products or services are used. Information published by TI regarding third–party products or services
does not constitute a license from TI to use such products or services or a warranty or endorsement thereof.
Use of such information may require a license from a third party under the patents or other intellectual property
of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is without
alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction
of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for
such altered documentation.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that
product or service voids all express and any implied warranties for the associated TI product or service and
is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
Mailing Address:
Texas Instruments
Post Office Box 655303
Dallas, Texas 75265