Averaged and Small-Signal Models of Converters
A converter's output must stay at while the input sags and the load jumps, so it needs a feedback loop that adjusts the duty cycle. Designing that loop with the methods of Control Systems needs a transfer function from duty cycle to output voltage. But a switching converter is not a linear time-invariant system: it is a different linear circuit in each interval, switching 200 000 times a second. The way out is to average over one switching period, which removes the switching ripple and keeps the slower dynamics that a loop can see, and then to linearise around the operating point. This lesson builds the averaged model of the buck and the boost, derives their control-to-output transfer functions, and checks the averaged model against a switched simulation.
Averaging over one period
For any quantity , the moving average over one period is . Applied to the element laws it gives, for example, : the averaged circuit obeys the same Kirchhoff laws as the real one. The switching cell is replaced by its average: in the buck, the switch node becomes a voltage source , and the input current becomes . In periodic steady state these averages give back the balance-law results; during slow transients (slower than about ) they describe the trajectory of the averages exactly enough for control design.
Small-signal transfer functions
Perturb , , and keep first-order terms. For the buck, is already linear in (for constant ), so the duty-to-output transfer function is the filter scaled by . With the inductor resistance and the capacitor's ESR :
which expands to a double pole at with a low damping ratio, and an ESR zero at . Above the phase drops towards ; the ESR zero brings it back to at high frequency.
The boost is harder because its averaged switch is a product of two variables. Linearised (ideal parts):
Two things change: the resonance moves to , so it depends on the operating point, and a right-half-plane (RHP) zero appears at . Physically: to raise the output, the controller increases , which shortens the off-time during which the inductor feeds the output, so the output first dips before the larger inductor current takes over. An RHP zero adds gain and phase lag, so no compensator can cancel it: the loop crossover must stay well below it, typically below . The buck-boost, flyback and SEPIC share it; this is the main reason boost loops are slow.
Worked example: the plant of a 4 A buck
Given: , , with , with (an aluminium polymer capacitor), .
Find: the DC gain of , , the damping ratio and .
Solve: expanding gives the denominator with
Check: the load alone would give ; the ESR and DCR double it. A resonant peak of about , i.e. near , followed by a fast phase drop: this is the plant the compensator must handle in Voltage-Mode Control.
import numpy as np
import control as ct
Vin, D, L, RL, C, RC, R = 24.0, 0.5, 100e-6, 0.03, 470e-6, 0.04, 3.0
s = ct.tf("s")
Zc = RC + 1 / (s * C)
Z = R * Zc / (R + Zc)
Gvd = ct.minreal(Vin * Z / (RL + s * L + Z), verbose=False)
num, den = Gvd.num[0][0], Gvd.den[0][0]
print("Gvd numerator :", np.array2string(num / den[0], precision=4))
print("Gvd denominator:", np.array2string(den / den[0], precision=4))
p = ct.poles(Gvd)
wn = float(abs(p[0]))
print(f"DC gain {20*np.log10(abs(ct.dcgain(Gvd))):.2f} dB, f0 = {wn/2/np.pi:.1f} Hz, "
f"zeta = {float(-p[0].real)/wn:.3f}, ESR zero at {float(-ct.zeros(Gvd)[0].real)/2/np.pi:.0f} Hz")
for f in (100, 500, 733, 2000, 8470, 50000):
g = complex(Gvd(2j * np.pi * f))
print(f" {f:6d} Hz: {20*np.log10(abs(g)):6.2f} dB, {np.degrees(np.angle(g)):7.1f} deg")
# the boost: resonance and right-half-plane zero move with the operating point
Lb, Cb, Rb, Vb = 47e-6, 100e-6, 24.0, 12.0
print("boost 12 V in, 47 uH, 100 uF, 24 ohm:")
for Db in (0.3, 0.5, 0.7):
f0 = (1 - Db) / (2 * np.pi * np.sqrt(Lb * Cb))
frhp = (1 - Db)**2 * Rb / (2 * np.pi * Lb)
print(f" D = {Db}: f0 = {f0:6.0f} Hz, RHP zero = {frhp/1e3:6.2f} kHz, "
f"crossover limit about {frhp/5/1e3:5.2f} kHz")Gvd numerator : [9.4737e+03 5.0392e+08]
Gvd denominator: [1.0000e+00 1.3946e+03 2.1207e+07]
DC gain 27.52 dB, f0 = 732.9 Hz, zeta = 0.151, ESR zero at 8466 Hz
100 Hz: 27.67 dB, -1.7 deg
500 Hz: 32.37 dB, -17.7 deg
733 Hz: 37.92 dB, -85.1 deg
2000 Hz: 11.50 dB, -159.4 deg
8470 Hz: -11.92 dB, -133.5 deg
50000 Hz: -30.29 dB, -99.4 deg
boost 12 V in, 47 uH, 100 uF, 24 ohm:
D = 0.3: f0 = 1625 Hz, RHP zero = 39.82 kHz, crossover limit about 7.96 kHz
D = 0.5: f0 = 1161 Hz, RHP zero = 20.32 kHz, crossover limit about 4.06 kHz
D = 0.7: f0 = 696 Hz, RHP zero = 7.31 kHz, crossover limit about 1.46 kHz
The exact expansion confirms the hand numbers. Between and the phase falls by more than , and the gain rolls off at until the ESR zero. For the boost, both the resonance and the RHP zero move down as grows, so the loop must be designed at the worst case: maximum load and minimum input voltage (largest ).
Interactive: the plant on a Bode plot
The Bode lab's second-order model with a zero shows the same plant: , , and the ESR zero at . It reads a DC gain of and, at , and : just past the resonance the gain is still higher than at DC while the phase has already fallen by . (The lab also reports margins as if this plant were closed directly with unity feedback; for a converter that is not a useful loop, since the error amplifier is missing.) Move to to see a lightly loaded converter with a ceramic capacitor: a sharp peak and an abrupt phase step.
Cross-check: switched against averaged, in ngspice
The deck builds the real PWM: a sawtooth ramp compared with a control voltage ctl by the switch itself (it closes while , so ), with a near-ideal diode. Next to it the averaged model uses a behavioural source BAV . At the control voltage steps from to , a duty-cycle step.
cat > avg.cir <<'EOF'
* Switched buck with a PWM comparator against its averaged model: duty step 0.5 -> 0.6 at 10 ms
.model SWM SW(Ron=1m Roff=1meg Vt=0 Vh=0)
.model DI D(Is=1e-12 N=0.05 Rs=1m)
VIN vin 0 24
VRAMP ramp 0 PULSE(0 1 0 9.99u 10n 0 10u)
VCTL ctl 0 PULSE(0.5 0.6 10m 1u 1u 1 2)
S1 vin sw ctl ramp SWM
D1 0 sw DI
L1 sw a 100u
RDCR a out 30m
C1 out c 470u
RESR c 0 40m
RLOAD out 0 3
* averaged model: the switch node replaced by its average D*Vin
BAV swa 0 V=v(ctl)*v(vin)
L2 swa a2 100u
RDCR2 a2 outa 30m
C2 outa c2 470u
RESR2 c2 0 40m
RLOAD2 outa 0 3
.control
tran 0.1u 16m 0 0.1u
meas tran vsw1 avg v(out) from=9.9m to=10m
meas tran vav1 avg v(outa) from=9.9m to=10m
meas tran vswpk max v(out) from=10m to=16m
meas tran vavpk max v(outa) from=10m to=16m
meas tran vsw2 avg v(out) from=15.9m to=16m
meas tran vav2 avg v(outa) from=15.9m to=16m
.endc
.end
EOF
ngspice -b avg.cir 2>&1 | grep -E '^(vsw|vav)[0-9a-z]* +='vsw1 = 1.185783e+01 from= 9.900000e-03 to= 1.000001e-02
vav1 = 1.188119e+01 from= 9.900000e-03 to= 1.000001e-02
vswpk = 1.571954e+01 at= 1.067595e-02
vavpk = 1.573154e+01 at= 1.067165e-02
vsw2 = 1.424885e+01 from= 1.590000e-02 to= 1.600000e-02
vav2 = 1.426881e+01 from= 1.590000e-02 to= 1.600000e-02
Before the step both give to (); after it both overshoot to and at the same instant, after the step, and settle at and . The overshoot, , is the of a second-order system with . The averaged model reproduces the switched circuit's slow dynamics to within tens of millivolts, and it runs far faster: that is why loop design is done on averaged models.
Guided lab: measuring a plant with a network analyser
Hand calculation. For an evaluation board, compute , and from its , , ESR and load, as above.
Simulation. Enter them in the Bode lab and the Python cell.
What you would measure. The standard method injects a small signal into the feedback loop through a to resistor in series with the feedback path, from an isolated injection transformer driven by a frequency-response analyser, and measures the two sides of the resistor (Spectrum and Network Analysers). That measures the loop gain; the plant alone needs the modulator's gain divided out. Expect the resonant peak within of (capacitance tolerance and DC-bias derating) and the ESR zero within a factor of two (ESR varies with temperature and frequency). Keep the injection amplitude small ( to ) so the converter stays linear.
Hazards and safe setup. Low-voltage board from a current-limited supply (). The injection transformer isolates the analyser; never connect an analyser's grounded output directly across a resistor that is not at ground. Too large an injection can make the converter unstable or trip its protection; start small.
Pitfalls
- Using the averaged model above . It knows nothing about the switching; above about to the sampled nature of PWM adds delay.
- Designing a boost loop at nominal . The RHP zero and the resonance move down at high ; design at the worst case.
- Forgetting the ESR zero moves. Replacing an electrolytic with a ceramic removes it, and a loop that relied on its phase boost may oscillate.
- Ignoring DCM. Its small-signal model is first-order; a loop designed for CCM behaves differently at light load (Discontinuous Conduction Mode).
Practice
- Find and (load damping only) for a buck with , , .
- A boost has , , . Where is its RHP zero?
- Why does the buck have no RHP zero?
Answer
- ; .
- ; keep the crossover below about .
- In the buck the inductor feeds the output during both intervals; raising immediately raises the average switch-node voltage, with no initial dip.
Test yourself
In the averaged buck model, the switch and diode are replaced by…
- a resistor
- a voltage source (and an input current )
- a short circuit
- the inductor
A buck's control-to-output transfer function has…
- one real pole
- a double pole at the LC resonance and an ESR zero
- an RHP zero
- no poles
Why is a boost converter's loop crossover kept well below its RHP zero?
- the zero reduces the gain
- an RHP zero adds gain and phase lag, which no compensator can cancel
- the zero causes DCM
- it lowers efficiency
A boost's RHP zero is at . It is lowest at…
- light load and high input
- heavy load (small ) and low input (large )
- light load and low input
- it is constant