S1151 of 55
0 XP
  1. Hook
  2. Predict
  3. Name it
  4. Check
  5. Explain

S11 · Lesson 51 · Buck design project

Designing a 12 V to 3.3 V, 5 A buck at 500 kHz, from inductor and capacitor sizing through the averaged plant with ceramic capacitors, a phase-margin calculator, and a type III compensator placed by Venable's K factor to cross over at 50 kHz with 60° of margin

Point-of-load regulators like this one sit next to every processor and FPGA: 12 V in, a low voltage out at several amperes, half a megahertz, ceramic output capacitors. The ceramics are what make the loop hard. Their ESR is so small that the zero it would contribute lands far above the switching frequency, leaving the LC filter's full 180° of phase lag at crossover, and only a type III compensator, with two zeros, can lift it back. In this project you'll size the power stage, write the margin calculator, and design that compensator.

Predict

With ceramic capacitors (2 mΩ ESR on 37.5 µF), what phase does the buck's control-to-output transfer function have at a 50 kHz crossover, well above its 14.6 kHz LC resonance?

Name it

The power stage

  • Duty cycle D=V/Vg and load R=V/I.
  • Inductance for a ripple fraction r: L=(Vg−V)D/(rIfs).
  • Capacitance for an output ripple Δv: C=ΔiL/(8fsΔv).

The plant

The averaged control-to-output transfer function is the PWM gain Vg/VM times the divider formed by the inductor and the output impedance Z=R∥(rC+1/sC):

Gvd(s)=VgVM⋅ZZ+sL

Margins

Find the crossover fc where |T|=1 by bisection on log f, then PM=180°+∠T(fc), with the angle taken in (−360°, 0] so that a loop past −180° shows a negative margin.

The K factor

A type III compensator, Gc=ωis(1+s/ωz)2(1+s/ωp)2, with its zeros at fc/K and its poles at fcK adds exactly 4arctan⁡K−180° of lead at fc. For a boost B (the lead needed above −90°), K=tan2⁡(B/4+45°). Then ωi is chosen to make |T(fc)|=1.

Worked example

Size the power stage for 12 V to 3.3 V at 5 A, 500 kHz, 30% ripple and 10 mV of output ripple.

Show the solution
  1. Duty cycle and load. D=3.3/12=0.275R=3.3/5=0.66Ω
  2. Inductor. The ripple is 30% of 5 A, 1.5 A, so L=8.7×0.2751.5×500 kHz=3.19μH
  3. Capacitor. C=1.58×500 kHz×10 mV=37.5μF
  4. The filter. It resonates at 14.55 kHz with Q=R/L/C=2.26
  5. ESR zero. With 2 mΩ of ESR, the ESR zero sits at 2.12 MHz.

Answer L = 3.19 µH and C = 37.5 µF, resonating at 14.55 kHz with Q = 2.26.

Worked example

Place the type III compensator for a 50 kHz crossover with 60° of margin.

Show the solution
  1. Phase boost needed. The plant's phase at 50 kHz is −170.56°, so θ=60−90+170.56=140.56°
  2. K factor. K=tan2⁡(80.14°)=33.10
  3. Zeros and poles. They sit K = 5.753 below and above the crossover: fz=50 kHz/K=8.691kHzfp=50 kHz×K=287.6kHz
  4. Integrator gain. ωi = 8661 s⁻¹ makes the loop gain 1 at 50 kHz.
  5. The finished loop. It has 24.5 dB of gain at 1 kHz, and its closed-loop output impedance peaks at 98 mΩ near 36 kHz, against 650 mΩ at the open-loop filter's resonance.

Answer zeros at 8.691 kHz, poles at 287.6 kHz and ωi = 8661 s⁻¹ give a 50 kHz crossover with 60° of phase margin.

Check

Step 1. Write design_power_stage: duty cycle, load, inductor and capacitor.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 2. Write margins(T): crossover by bisection and the phase margin.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 3. Write type3_kfactor(fc, pm): place the compensator.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does a buck with ceramic output capacitors need a type III compensator, when one with electrolytic capacitors can often use type II?

Practice

Keep practicing

3 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.