TExcelTAD
Home › Power Electronics & Motor Drives › Averaged and Small-Signal Models of Converters

Averaged and Small-Signal Models of Converters

A converter's output must stay at 12 V12\ \text{V} 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 xx, the moving average over one period is ⟨x⟩(t)=1Ts∫t−Tstx dτ\langle x \rangle(t) = \frac{1}{T_s}\int_{t - T_s}^{t} x\,d\tau. Applied to the element laws it gives, for example, L d⟨iL⟩/dt=⟨vL⟩L\,d\langle i_L \rangle/dt = \langle v_L \rangle: 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 d(t) vin(t)d(t)\,v_\text{in}(t), and the input current becomes d(t) iL(t)d(t)\,i_L(t). In periodic steady state these averages give back the balance-law results; during slow transients (slower than about fsw/10f_{sw}/10) they describe the trajectory of the averages exactly enough for control design.

+vin d iL +d vin 30 mOhm L 100 uH C 470 uFESR 40 mOhm R 3 Ohm vout switch + diode replaced by their period averages: no ripple, same slow dynamics

Small-signal transfer functions

Perturb d=D+d^d = D + \hat d, vout=V+v^v_\text{out} = V + \hat v, and keep first-order terms. For the buck, d vind\,v_\text{in} is already linear in dd (for constant vinv_\text{in}), so the duty-to-output transfer function is the LCLC filter scaled by VinV_\text{in}. With the inductor resistance RLR_L and the capacitor's ESR RCR_C:

Gvd(s)=v^(s)d^(s)=Vin Z(s)RL+sL+Z(s),Z(s)=R∥(RC+1sC)G_{vd}(s) = \frac{\hat v(s)}{\hat d(s)} = V_\text{in}\,\frac{Z(s)}{R_L + sL + Z(s)}, \qquad Z(s) = R \parallel \left(R_C + \frac{1}{sC}\right)

which expands to a double pole at f0≈1/(2πLC)f_0 \approx 1/(2\pi\sqrt{LC}) with a low damping ratio, and an ESR zero at fz=1/(2πRCC)f_z = 1/(2\pi R_C C). Above f0f_0 the phase drops towards −180∘-180^\circ; the ESR zero brings it back to −90∘-90^\circ at high frequency.

The boost is harder because its averaged switch (1−d) vout(1-d)\,v_\text{out} is a product of two variables. Linearised (ideal parts):

Gvd(s)=Vin(1−D)2⋅1−sL(1−D)2R1+sL(1−D)2R+s2LC(1−D)2G_{vd}(s) = \frac{V_\text{in}}{(1-D)^2}\cdot\frac{1 - s\dfrac{L}{(1-D)^2 R}}{1 + s\dfrac{L}{(1-D)^2 R} + s^2\dfrac{LC}{(1-D)^2}}

Two things change: the resonance moves to f0=(1−D)/(2πLC)f_0 = (1-D)/(2\pi\sqrt{LC}), so it depends on the operating point, and a right-half-plane (RHP) zero appears at fRHP=(1−D)2R/(2πL)f_\text{RHP} = (1-D)^2R/(2\pi L). Physically: to raise the output, the controller increases DD, 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 fRHP/5f_\text{RHP}/5. 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: Vin=24 VV_\text{in} = 24\ \text{V}, D=0.5D = 0.5, L=100 μHL = 100\ \mu\text{H} with RL=30 mΩR_L = 30\ \text{m}\Omega, C=470 μFC = 470\ \mu\text{F} with RC=40 mΩR_C = 40\ \text{m}\Omega (an aluminium polymer capacitor), R=3 ΩR = 3\ \Omega.

Find: the DC gain of GvdG_{vd}, f0f_0, the damping ratio ζ\zeta and fzf_z.

Solve: expanding GvdG_{vd} gives the denominator a2s2+a1s+a0a_2 s^2 + a_1 s + a_0 with

a2=LC(1+RCR),a1=LR+C (RC+RL)+CRLRCR,a0=1+RLRGvd(0)=241.01=23.76=27.5 dB,f0=12πa0a2=733 Hzζ=a12a0a2=0.151,fz=12π⋅40 mΩ⋅470 μF=8.47 kHz\begin{aligned} a_2 &= LC\left(1 + \frac{R_C}{R}\right), \quad a_1 = \frac{L}{R} + C\,(R_C + R_L) + \frac{C R_L R_C}{R}, \quad a_0 = 1 + \frac{R_L}{R} \\ G_{vd}(0) &= \frac{24}{1.01} = 23.76 = 27.5\ \text{dB}, \qquad f_0 = \frac{1}{2\pi}\sqrt{\frac{a_0}{a_2}} = 733\ \text{Hz} \\ \zeta &= \frac{a_1}{2\sqrt{a_0 a_2}} = 0.151, \qquad f_z = \frac{1}{2\pi \cdot 40\ \text{m}\Omega \cdot 470\ \mu\text{F}} = 8.47\ \text{kHz} \end{aligned}

Check: the load alone would give ζ=12RL/C=0.077\zeta = \frac{1}{2R}\sqrt{L/C} = 0.077; the ESR and DCR double it. A resonant peak of about 1/(2ζ)=3.31/(2\zeta) = 3.3, i.e. +10 dB+10\ \text{dB} near 733 Hz733\ \text{Hz}, followed by a fast phase drop: this is the plant the compensator must handle in Voltage-Mode Control.

python · try it yourself
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 500 Hz500\ \text{Hz} and 2 kHz2\ \text{kHz} the phase falls by more than 140∘140^\circ, and the gain rolls off at −40 dB/decade-40\ \text{dB/decade} until the ESR zero. For the boost, both the resonance and the RHP zero move down as DD grows, so the loop must be designed at the worst case: maximum load and minimum input voltage (largest DD).

Interactive: the plant on a Bode plot

The Bode lab's second-order model with a zero shows the same plant: K=27.5 dBK = 27.5\ \text{dB}, fn=730 Hzf_n = 730\ \text{Hz}, ζ=0.15\zeta = 0.15 and the ESR zero at 8470 Hz8470\ \text{Hz}. It reads a DC gain of 27.5 dB27.5\ \text{dB} and, at 1 kHz1\ \text{kHz}, 27.84 dB27.84\ \text{dB} and −148.1∘-148.1^\circ: just past the resonance the gain is still higher than at DC while the phase has already fallen by 148∘148^\circ. (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 ζ\zeta to 0.050.05 to see a lightly loaded converter with a ceramic capacitor: a sharp peak and an abrupt phase step.

6040200-20-40-60-80|L| (dB)-270-180-90090100m1101001k10k100k1Mf (Hz)phase (deg)PM 27.5 deg|L| exactphase exactasymptotesunity-feedback closed loop: stable

Cross-check: switched against averaged, in ngspice

The deck builds the real PWM: a 100 kHz100\ \text{kHz} sawtooth ramp compared with a control voltage ctl by the switch itself (it closes while vctl>vrampv_\text{ctl} > v_\text{ramp}, so D=vctlD = v_\text{ctl}), with a near-ideal diode. Next to it the averaged model uses a behavioural source BAV =vctl⋅vin= v_\text{ctl} \cdot v_\text{in}. At 10 ms10\ \text{ms} the control voltage steps from 0.50.5 to 0.60.6, a duty-cycle step.

bash · try it yourself
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 11.8611.86 to 11.88 V11.88\ \text{V} (DVinR/(R+RL)D V_\text{in}R/(R + R_L)); after it both overshoot to 15.7215.72 and 15.73 V15.73\ \text{V} at the same instant, 0.67 ms0.67\ \text{ms} after the step, and settle at 14.2514.25 and 14.27 V14.27\ \text{V}. The overshoot, (15.72−11.86)/(14.25−11.86)−1=62 %(15.72 - 11.86)/(14.25 - 11.86) - 1 = 62\ \%, is the e−πζ/1−ζ2=62 %e^{-\pi\zeta/\sqrt{1-\zeta^2}} = 62\ \% of a second-order system with ζ=0.15\zeta = 0.15. 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 f0f_0, ζ\zeta and fzf_z from its LL, CC, 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 1010 to 50 Ω50\ \Omega 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 ±15 %\pm 15\ \% of f0f_0 (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 (1010 to 50 mV50\ \text{mV}) so the converter stays linear.

Hazards and safe setup. Low-voltage board from a current-limited supply (≤24 V\le 24\ \text{V}). 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 fsw/2f_{sw}/2. It knows nothing about the switching; above about fsw/10f_{sw}/10 to fsw/5f_{sw}/5 the sampled nature of PWM adds delay.
  • Designing a boost loop at nominal DD. The RHP zero and the resonance move down at high DD; 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

  1. Find f0f_0 and ζ\zeta (load damping only) for a buck with L=22 μHL = 22\ \mu\text{H}, C=100 μFC = 100\ \mu\text{F}, R=2 ΩR = 2\ \Omega.
  2. A boost has L=22 μHL = 22\ \mu\text{H}, R=10 ΩR = 10\ \Omega, D=0.6D = 0.6. Where is its RHP zero?
  3. Why does the buck have no RHP zero?
Answer
  1. f0=1/(2π22 μH⋅100 μF)=3.39 kHzf_0 = 1/(2\pi\sqrt{22\ \mu\text{H} \cdot 100\ \mu\text{F}}) = 3.39\ \text{kHz}; ζ=1422/100=0.117\zeta = \frac{1}{4}\sqrt{22/100} = 0.117.
  2. fRHP=0.16⋅10/(2π⋅22 μH)=11.6 kHzf_\text{RHP} = 0.16 \cdot 10/(2\pi \cdot 22\ \mu\text{H}) = 11.6\ \text{kHz}; keep the crossover below about 2.3 kHz2.3\ \text{kHz}.
  3. In the buck the inductor feeds the output during both intervals; raising dd 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…

  1. a resistor
  2. a voltage source d vind\,v_\text{in} (and an input current d iLd\,i_L)
  3. a short circuit
  4. the inductor

A buck's control-to-output transfer function has…

  1. one real pole
  2. a double pole at the LC resonance and an ESR zero
  3. an RHP zero
  4. no poles

Why is a boost converter's loop crossover kept well below its RHP zero?

  1. the zero reduces the gain
  2. an RHP zero adds gain and phase lag, which no compensator can cancel
  3. the zero causes DCM
  4. it lowers efficiency

A boost's RHP zero is at (1−D)2R/(2πL)(1-D)^2R/(2\pi L). It is lowest at…

  1. light load and high input
  2. heavy load (small RR) and low input (large DD)
  3. light load and low input
  4. it is constant