C639 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 f2, and a compensation capacitor Cc setting the gain-bandwidth GBW=gm1/2πCc, with gm1 = 0.5 mS.
  • With Cc = 2 pF the gain crosses 0 dB at about 36 MHz with a phase margin near 66°: well damped.
  • Shrink Cc: the bandwidth rises, but the crossover approaches f2 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?

Name it

Two poles and a phase margin

With a dominant pole well below crossover and a second pole f2, a follower's loop gain crosses 1 at fc, and

PM=90°−arctan⁡fcf2fc=f21+4(GBW/f2)2−12

The quick estimate takes fc≈ GBW: PM ≈ 90° − arctan(GBW/f2), so 60° needs f2≈1.73 GBW. More margin means less overshoot (lesson 38).

Miller compensation and pole splitting

In a two-stage op amp, Cc 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:

f1≈12πgm2R2R1Ccf2≈gm22πCL

and the gain-bandwidth and slew rate become

GBW=gm12πCcSR=ItailCc

The zero. Cc also feeds the signal forward, making a right-half-plane zero at gm22πCc that adds phase lag. A resistor Rz=1/gm2 in series with Cc moves it to infinity.

Choosing Cc: for a phase margin PM, set GBW=f2tan⁡(90°−PM), so Cc=gm12πf2tan⁡(90°−PM), then check the slew rate.

Worked example

A two-stage op amp has gm1 = 0.5 mS, gm2 = 5 mS, a 50 µA tail, CL = 10 pF and Cc = 2 pF. Find its GBW, slew rate, second pole and phase margin.

Show the solution
  1. Gain-bandwidth. GBW=0.5mS2π×2pF=39.8MHz
  2. Slew rate. SR=50μA2pF=25V/μs
  3. Second pole. f2=5mS2π×10pF=79.6MHz
  4. Phase margin. The estimate gives 90°−arctan⁡(0.5)=63° The zero at 5mS2π×2pF = 398 MHz takes another 6°, to 58°, unless Rz = 200 Ω cancels it.

Answer GBW = 39.8 MHz, SR = 25 V/µs, f2 = 79.6 MHz, and the phase margin is 63° (58° with the zero).

Worked example

With gm1 = 1 mS, gm2 = 10 mS and CL = 5 pF, what Cc gives 60° of phase margin (zero nulled)?

Show the solution
  1. Second pole. f2=10mS2π×5pF=318MHz
  2. GBW for 60°. GBW=318×tan⁡30°=184MHz
  3. Compensation capacitor. Cc=1mS2π×184MHz=0.87pF

Answer Cc = 0.87 pF gives 60° of phase margin.

Worked example

In the first example's op amp (gm2 = 5 mS, Cc = 2 pF, CL = 10 pF), where is the right-half-plane zero, and what nulling resistor in series with Cc removes it or uses it?

Show the solution
  1. Where the zero comes from. Cc carries signal forward from the second stage's input to its output, making a zero at gm22πCc=398MHz in the right half-plane: it adds lag like a pole while raising the gain, which erodes phase margin.
  2. With a nulling resistor. Rz in series with Cc moves the zero to fz=12πCc(1/gm2−Rz)
  3. Removing it. At Rz=1gm2 = 200 Ω it goes to infinity.
  4. Using it. At Rz=1+CL/Ccgm2 = 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 gm1 = 1 mS and Cc = 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 Cc = 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 gm2 = 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 Cc cancels the right-half-plane zero of a second stage with gm2 = 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 gm1 = 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 gm2 = 5 mS, Cc = 1 pF and CL = 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 gm1 = a, gm2 = b, Cc = c, CL = 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°.

Explain why

Why does adding a capacitor, which slows the op amp down, make it stable?

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.