C6 · Lesson 38 · Stability and ringing
When negative feedback turns positive
Negative feedback subtracts the output from the input. But every amplifier delays its signal, and at high enough frequencies that delay becomes half a cycle. Then the "subtracted" signal is in step with the input, and if the loop still has a gain of one or more there, the amplifier feeds itself and oscillates. Short of that, it rings. A classic way to cause it: an op amp driving a capacitive load, such as a long cable.
Play
- An op-amp follower (gain 1) drives a load capacitance through its own output resistance, 100 Ω here. Feedback is taken at the load. A 1 V step goes in.
- Start with a small capacitance and raise it. When does the output start to overshoot? When does it ring for several cycles?
- Now lower , which moves the extra pole up. Watch the ringing calm down.
Predict
The follower above has a 10 MHz gain-bandwidth; its 100 Ω output resistance and the 1 nF load add a second pole at 1.6 MHz. Roughly what's its phase margin?
About 22°. The extra pole pulls the loop's crossover down from 10 MHz to about 3.8 MHz, where the op amp's own pole contributes −90° and the load's pole , leaving 22°. That's far too small for comfort: the step response overshoots by about 50% and rings. Shrink the capacitor tenfold and the second pole moves to 16 MHz, raising the margin to about 60°.
Name it
Stability
The condition. Around a feedback loop the signal is multiplied by the loop gain . If at some frequency and the phase of L is −180°, the subtracted signal returns in phase: the circuit sustains an oscillation (the Barkhausen condition).
Phase margin. At the crossover frequency where , the phase margin is how far the phase of L is from −180°:
- 90°: a single-pole loop, perfectly damped;
- 60°: about 9% overshoot, a common target;
- 45°: about 23% overshoot;
- below 30°: pronounced ringing;
- 0° or less: oscillation.
Two poles. With the op amp's dominant pole (−90° above it) and a second pole at , a follower's loop crosses over at or below GBW. A quick, pessimistic estimate of the margin is ; it underestimates when is below GBW, because the second pole also pulls the crossover down. Exactly, the closed loop is second order with
so the overshoot follows from C2.15.
Capacitive loads. The op amp's output resistance and a load capacitance add a pole at . Cures:
- an isolation resistor between the output and the load, with feedback taken before it;
- an op amp rated for capacitive loads, or a lower-resistance output stage;
- more noise gain: a gain-of-10 stage crosses over ten times lower, where the second pole matters less.
Compensation. Op amps are designed with one deliberately dominant pole so that all their own internal poles sit above GBW; that's what makes them unity-gain stable. Some faster op amps are only stable above a minimum gain.
Worked example
An op amp (GBW 1 MHz, output resistance 50 Ω) drives 10 nF as a follower. Estimate its phase margin and step overshoot.
Show the solution
- Load pole.
- Phase margin.
- Damping and overshoot. so the overshoot is about 40%: it rings badly.
Answer the phase margin is about 18°, and the step overshoots by about 40%.
Worked example
How far must the second pole move for a follower to overshoot by less than 2%?
Show the solution
- Damping needed. 2% overshoot needs ζ ≈ 0.78.
- Second pole. Solve for :
- How to get there. An isolation resistor or a smaller load capacitance moves it there.
Answer the second pole must sit at least 2.4 times GBW.
Worked example
The follower of the first example (GBW 1 MHz, 50 Ω output resistance) drives a capacitor. How large can the capacitor be for 45° of phase margin, and for 60°?
Show the solution
- Load pole and margin. The load makes a pole at and with the crossover near GBW, PM ≈ .
- For 45°. = GBW, so
- For 60°. so C = 1.84 nF.
- On a datasheet. "Stable with 1 nF" means about this: beyond it, the step response rings, and an isolation resistor or a slower op amp is needed.
Answer up to 3.18 nF for 45° of phase margin, and 1.84 nF for 60°.
Check
An op amp's 50 Ω output resistance drives 0.1 nF. Where is the extra pole?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A follower built from a 1 MHz op amp has a second pole at 2 MHz. Roughly what's its phase margin, using ?
Check
A follower with a 10 MHz op amp and a second pole at 20 MHz. What's the damping ratio of its closed-loop response?
Check
That damping ratio comes out at ζ = 0.5. How much does the step response overshoot?
Check
An op-amp follower rings when driving a long cable. Which change helps most?
Check
A follower (GBW 1 MHz, output resistance 20 Ω) drives a capacitor.
(a)
What's the largest capacitor for 65° of phase margin, with the crossover at GBW?
Write units the way you normally would: 1.5 nF, 1500 pF and 0.0015 µF are the same answer.
(b)
What damping ratio does that give?
Check
A follower has gain-bandwidth G and a second pole at f.
Step 1
What's its phase margin, in degrees, with the crossover at G?
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 damping ratio?
Explain why
Why can an amplifier with negative feedback oscillate?
Every amplifier's response lags more and more at higher frequencies. Feedback is negative only as long as the fed-back signal is roughly opposite to the input. At the frequency where the loop's total phase lag reaches 180°, the fed-back signal arrives in step with the input instead, adding rather than subtracting. If the loop gain at that frequency is still at least one, a disturbance there grows each time around the loop, and the circuit oscillates. Phase margin measures how far the loop is from that condition where its gain falls to one.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.