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?
Above resonance the LC double pole contributes nearly −180°: about −172° at 3.4 times the resonance with a Q of 2.3. The ESR zero, at 2.1 MHz, gives back only 1.35°. The plant sits at −170.6°, so the compensator must supply phase lead, 140.6° above its integrator's −90°, for a 60° margin.
Name it
The power stage
- Duty cycle and load .
- Inductance for a ripple fraction r: .
- Capacitance for an output ripple Δv: .
The plant
The averaged control-to-output transfer function is the PWM gain times the divider formed by the inductor and the output impedance :
Margins
Find the crossover where by bisection on log f, then , with the angle taken in (−360°, 0] so that a loop past −180° shows a negative margin.
The K factor
A type III compensator, , with its zeros at and its poles at adds exactly of lead at . For a boost B (the lead needed above −90°), . Then is chosen to make .
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
- Duty cycle and load.
- Inductor. The ripple is 30% of 5 A, 1.5 A, so
- Capacitor.
- The filter. It resonates at 14.55 kHz with
- 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
- Phase boost needed. The plant's phase at 50 kHz is −170.56°, so
- K factor.
- Zeros and poles. They sit = 5.753 below and above the crossover:
- Integrator gain. = 8661 s⁻¹ makes the loop gain 1 at 50 kHz.
- 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 = 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?
An electrolytic capacitor's ESR is large enough that its zero falls below or near the crossover frequency, and that zero cancels half of the LC filter's 180° of phase lag. The loop then needs only modest lead, which a type II compensator (an integrator with one zero and one pole) can supply. A ceramic capacitor's ESR is milliohms, so its zero lands at megahertz, far above any usable crossover, and the plant arrives at crossover with nearly the full −180°. Adding the integrator's −90° leaves the loop near −270°, so the compensator must supply more than 90° of lead to have any margin at all. A single zero can give at most 90°; a type III compensator has two zeros and can give up to almost 180°.
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.