C6 · Lesson 39 · Frequency compensation
Slowing an amplifier on purpose so its feedback loop stays stable
Lesson 38 showed that a feedback loop rings or oscillates when its loop gain still exceeds one at the frequency where its phase lag reaches 180°. A two-stage op amp has at least two poles, each worth 90° of lag, plus more from every transistor, so with enough gain it will oscillate in a follower. The fix is to compensate it: deliberately add a low-frequency pole that makes the gain fall below one before the other poles pile up their phase. One small capacitor across the second stage does it, and in doing so it also sets the op amp's gain-bandwidth and slew rate.
- The loop gain of a two-stage op amp in a follower: DC gain 10⁴, a second pole at , and a compensation capacitor setting the gain-bandwidth , with = 0.5 mS.
- With = 2 pF the gain crosses 0 dB at about 36 MHz with a phase margin near 66°: well damped.
- Shrink : the bandwidth rises, but the crossover approaches and the phase margin collapses: the follower would ring and then oscillate.
Predict
A two-stage op amp's gain-bandwidth equals its second pole's frequency. Used as a follower, what is its phase margin?
About 52°. With GBW = , the loop gain reaches 1 a little below , at 0.79 , where the second pole adds 38° of lag on top of the dominant pole's 90°. The rule of thumb that GBW = gives "45°" uses the crossover at GBW itself; for 60° the second pole needs to sit at about 1.7 times GBW.
Name it
Two poles and a phase margin
With a dominant pole well below crossover and a second pole , a follower's loop gain crosses 1 at , and
The quick estimate takes GBW: PM ≈ 90° − arctan(GBW/), so 60° needs GBW. More margin means less overshoot (lesson 38).
Miller compensation and pole splitting
In a two-stage op amp, connects the second (gain) stage's input and output. Its Miller multiplication makes a large capacitance at the first stage's output, creating the dominant pole; at the same time it lowers the second stage's output impedance at high frequencies, pushing the other pole up. The poles split:
and the gain-bandwidth and slew rate become
The zero. also feeds the signal forward, making a right-half-plane zero at that adds phase lag. A resistor in series with moves it to infinity.
Choosing : for a phase margin PM, set , so , then check the slew rate.
Worked example
A two-stage op amp has = 0.5 mS, = 5 mS, a 50 µA tail, = 10 pF and = 2 pF. Find its GBW, slew rate, second pole and phase margin.
Show the solution
- Gain-bandwidth.
- Slew rate.
- Second pole.
- Phase margin. The estimate gives The zero at = 398 MHz takes another 6°, to 58°, unless = 200 Ω cancels it.
Answer GBW = 39.8 MHz, SR = 25 V/µs, = 79.6 MHz, and the phase margin is 63° (58° with the zero).
Worked example
With = 1 mS, = 10 mS and = 5 pF, what gives 60° of phase margin (zero nulled)?
Show the solution
- Second pole.
- GBW for 60°.
- Compensation capacitor.
Answer = 0.87 pF gives 60° of phase margin.
Worked example
In the first example's op amp ( = 5 mS, = 2 pF, = 10 pF), where is the right-half-plane zero, and what nulling resistor in series with removes it or uses it?
Show the solution
- Where the zero comes from. carries signal forward from the second stage's input to its output, making a zero at in the right half-plane: it adds lag like a pole while raising the gain, which erodes phase margin.
- With a nulling resistor. in series with moves the zero to
- Removing it. At = 200 Ω it goes to infinity.
- Using it. At = 1.2 kΩ it lands in the left half-plane on top of the second pole and cancels it, buying phase margin for free.
Answer the zero is at 398 MHz; 200 Ω removes it, and 1.2 kΩ moves it onto the second pole.
Check
A Miller-compensated op amp has = 1 mS and = 0.5 pF. What is its gain-bandwidth?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A Miller-compensated op amp has a 100 µA tail and = 0.5 pF. What is its slew rate?
Write units the way you normally would: 1.5 V/µs, 1500 mV/µs and 0.0015 kV/µs are the same answer.
Check
Estimate the phase margin of an op amp follower with GBW = 1 MHz and a second pole at 2 MHz (crossover taken at GBW).
Check
A Miller-compensated op amp's second stage has = 1 mS and drives 1 pF. Where is its non-dominant pole?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
What nulling resistor in series with cancels the right-half-plane zero of a second stage with = 1 mS?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
Check
For a phase margin of 70° with = 0.2 mS and a second pole at 50 MHz, what compensation capacitor is needed?
Write units the way you normally would: 1.5 pF and 0.0015 nF are the same answer.
Check
An op amp with DC gain 10000 has GBW = 1 MHz. Where is its dominant pole?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A two-stage op amp has = 5 mS, = 1 pF and = 20 pF.
(a)
Where's its right-half-plane zero?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
(b)
What nulling resistor puts the zero on the second pole?
Check
A two-stage op amp has = a, = b, = c, = L and tail I.
Step 1
What's its GBW?
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
What's its slew rate?
Step 3
Where's its second pole?
Step 4
Where's its right-half-plane zero?
Explain why
Why does adding a capacitor, which slows the op amp down, make it stable?
An op amp oscillates in a feedback loop if its loop gain is still above one at the frequency where its poles have accumulated 180° of phase lag. Each pole contributes up to 90°, so with two or more poles at similar frequencies, the gain is still large when the phase reaches −180°. The compensation capacitor creates one dominant pole at a low frequency, so the gain starts falling early, at 20 dB per decade, and reaches one while only that pole's 90° and a little of the next pole's lag have built up. The amplifier is slower, but at the frequency where the loop could misbehave, there's no longer enough gain for it to.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.