S11 · Lesson 18 · Designing the voltage-mode controller
Choosing the crossover frequency, type II and type III compensators built around an error amplifier, placing their zeros at the LC resonance and their poles near half the switching frequency, and a complete design for a voltage-mode buck
A voltage-mode buck with ceramic capacitors is a hard plant: a lightly damped LC resonance swings its phase from 0° to nearly −180°, and with no ESR zero nothing brings it back. Any crossover above the resonance meets almost −180° of plant phase, so the compensator must supply phase lead on top of the integrator's −90°. The standard answer is the type III compensator: an integrator, two zeros near the resonance to cancel it, and two poles at high frequency to roll off noise. This lesson designs one.
- The loop gain of the 12 V to 3.3 V buck (L = 10 µH, C = 22 µF ceramic, a 1.65 Ω load, a 1 V PWM ramp and 0.8 V reference) with a type III compensator: integrator gain , a double zero at and a double pole at .
- The defaults cross over at 50 kHz, a tenth of the 500 kHz switching frequency, with 54° of phase margin.
- Move the zeros above the resonance and watch the phase margin collapse; lower and the crossover drops.
Predict
The buck's plant has −175° of phase at 50 kHz. A type III compensator with an integrator, two zeros at 8 kHz and two poles at 250 kHz adds how much phase there?
−90° from the integrator, = +161.8° from the zeros and = −22.6° from the poles: +49.2° in all. The loop phase is −175° + 49° = −126°, a 54° phase margin.
Name it
Choosing the crossover
The averaged model is only valid well below , and the PWM adds delay, so crossover is usually placed at to . A boost or buck-boost must also stay well below its RHP zero (a fifth of it or less).
Compensator types (built around an op-amp error amplifier)
- Type I: an integrator, . Enough only for very slow loops.
- Type II: integrator plus one zero and one pole, , giving up to nearly 90° of boost. Suits plants that look first-order near crossover: current-mode control (lesson 23) or capacitors with a low ESR zero.
- Type III: integrator plus two zeros and two poles, up to nearly 180° of boost. Needed for voltage-mode control with ceramic capacitors.
Type III placement
- Put the two zeros at or a little below the LC resonance , to cancel its −180°.
- Put the two poles near (or at the ESR zero), to attenuate switching noise.
- Choose so at the target crossover.
- Check the phase margin (aim for 45 to 60°) and the gain margin, and simulate a load step.
The phase margin at crossover is .
Worked example
Complete the type III design for the buck.
Show the solution
- The plant. has a DC gain of with its resonance at 10.73 kHz and Q = 2.45.
- Integrator gain. With zeros at 8 kHz and poles at 250 kHz, making |T| = 1 at 50 kHz takes
- Margins. The loop crosses at exactly 50 kHz with a 54.5° phase margin, and its phase reaches −180° at 238 kHz, where the gain margin is 19.4 dB.
- Step response. The closed-loop reference step overshoots 16% and settles within 2% in 85 µs.
Answer = 58,300 rad/s gives a 50 kHz crossover with 54.5° of phase margin and 19.4 dB of gain margin; a reference step overshoots 16% and settles in 85 µs.
Worked example
Why not put the zeros exactly on the resonance?
Show the solution
- What happens at the resonance. The plant phase is changing fastest there, and its Q depends on the load, which varies.
- Placing the zeros a little below. That keeps their phase boost fully developed by the crossover and tolerates resonance shifts, at the cost of a small gain bump.
- The numbers here. With zeros at 10.7 kHz instead of 8 kHz, the phase margin falls to 48°.
Answer zeros a little below the resonance keep their phase boost fully developed at crossover and tolerate a shifting resonance; zeros on the resonance would cut the margin here to 48°.
Worked example
A current-mode buck looks like a single pole near its 30 kHz target crossover. A type II compensator puts its zero at 6 kHz and its pole at 150 kHz. How much phase does it give back at crossover?
Show the solution
- The integrator. It costs 90°.
- The zero–pole pair.
- Why that's the most it can give. 30 kHz is the geometric mean of 6 and 150 kHz, so this is the pair's maximum:
- The margin. With the plant's own −90° from its pole, the loop keeps a margin near 67°, which is why current mode rarely needs type III.
Answer the pair gives back 67.4°, leaving a phase margin near 67°.
Check
A type III compensator has an integrator, two zeros at 8 kHz and two poles at 150 kHz. What phase does it contribute at 60 kHz?
Check
A second-order plant with Q = 1. What's its phase at 4 times ?
Check
A plant's magnitude is 3 (flat) near the crossover, and the compensator is a pure integrator . What puts the crossover at 20 kHz?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
At crossover the plant's phase is −160° and the compensator adds 20°. What's the phase margin?
Check
A boost at D = 0.6 with L = 22 µH feeds 40 Ω. By the one-fifth rule, how high may its crossover be set?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A type II compensator's zero is at 2 kHz and its pole at 50 kHz. What's the most phase boost its zero–pole pair gives?
Check
A type II compensator has its zero at 5 kHz and its pole at 50 kHz.
(a)
How much phase does the zero–pole pair add at 40 kHz?
(b)
At what frequency is that boost largest?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A zero at z and a pole at p (p > z) in a compensator.
Step 1
Where is their phase boost largest?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
How large is it, in degrees?
Explain why
Why does a voltage-mode buck with ceramic output capacitors need a type III compensator?
Above the output filter's resonance the buck's control-to-output phase approaches −180°, and with ceramic capacitors there's no ESR zero within reach to pull it back. The integrator that gives the loop its high low-frequency gain costs another −90°, so near a crossover set above the resonance the loop would sit at about −270° without help. A type II compensator's single zero recovers at most 90°, which isn't enough. A type III's pair of zeros, placed at the resonance, adds up to 180° and cancels the filter's phase drop, leaving the integrator's slope through crossover with healthy phase margin; its two high-frequency poles then roll the gain off again so switching noise isn't amplified.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.