Feedback, and the margin

The capacitor that moves the floor

Below its knee a two-pole stage has a settling floor: its ringing pair decays at πf₂ whatever its gain, because closing the loop cannot change the sum of the poles. A 1 MHz amplifier with its second pole at 0.5 MHz takes 4.04 µs to settle to 0.1% at a gain of two. A capacitor across the feedback resistor can change the sum. It puts a zero in the feedback and a third pole in the loop, and the closed loop's poles then sum to ω₂ + G/τz, with τz = Rf·Cf. At Rf·Cf = 301 ns the ringing pair decays at 3.12 million a second instead of 1.57, and the stage settles in 1.87 µs — less than half its own floor, and well under the 3.64 µs of the fastest stage the amplifier can make without a capacitor at any gain. It buys time, not appearance. It does so only where the stage rings: at a gain of 6.64, the fastest stage without it, the best capacitor is none. And the optimum is a notch beside cliffs: within ±20% of the best capacitor the 0.1% settling runs up to 2.76 µs.

Assumes: The ideal amplifier, and where it stops being one · The cliff before the fastest settling

The gain that stops making a stage faster took a stage of gain GG round an amplifier with a gain–bandwidth product and a second pole at f2f_2, and found a floor under its settling time. Below a knee at G=4 GBW/f2G = 4\,\mathrm{GBW}/f_2 the closed loop’s poles are a complex pair, and their real part is half the sum of the open loop’s poles: πf2\pi f_2, with neither the gain nor the product in it. A 1 MHz amplifier with its second pole at 0.5 MHz settles to 0.1 per cent in about 4 µs at every gain from one to five, where the product promises 1.1 to 5.5. Lowering the gain moves the pair up the vertical line its real part fixes, ringing faster inside the same envelope, and settling, which is a statement about the envelope, does not improve.

That essay closed by naming the obvious way out. The floor exists because closing a loop round a constant cannot change the sum of the poles. A loop whose feedback is not a constant can. A capacitor across the feedback resistor makes the feedback factor a function of frequency, puts a zero in it, and so alters the sum. Whether that moves the floor — buys time — or only reshapes the ring inside the same envelope — buys appearance — was the question. It moves the floor, by a factor of two, and the reason is visible in one coefficient.

A gain-of-two stage round a 1 MHz amplifier with its second pole at 0.5 MHz settles to 0.1% in 4.04 µs; a capacitor across its feedback resistor with Rf·Cf = 301 ns settles it in 1.87 µs. computed by solving, not by drawing, by the residues of the closed loop's poles, and checked against a netlist of the stage with the capacitor across its feedback resistor to two parts in a thousand. The stage, gain 2 round a 1 MHz gain–bandwidth product and a second pole at 0.5 MHz, rings with no capacitor (dashed) and settles to 0.1% in 4.04 µs, the floor the sum of its poles sets. With Rf·Cf = 301.4 ns (solid) it settles in 1.87 µs. With three times that capacitor (dotted) the zero it puts in the signal path is no longer near a pole, and the output creeps: 6.66 µs.
Fig. 1 A gain-of-two stage round a 1 MHz amplifier with its second pole at 0.5 MHz, with no capacitor across its feedback resistor (dashed), with the best one, Rf·Cf = 301 ns (solid), and with three times that (dotted). Settling to 0.1 per cent (ticks): 4.04 µs, 1.87 µs and 6.66 µs. The residues of the closed loop’s poles agree with a netlist of the stage to two parts in a thousand.

The stage, with a capacitor in it

The stage is the earlier one: a non-inverting amplifier of gain G=1+Rf/RgG = 1 + R_f/R_g, round an amplifier whose open-loop gain is ωt/(s(1+s/ω2))\omega_t/(s(1 + s/\omega_2)), with ωt=2π GBW\omega_t = 2\pi\,\mathrm{GBW} and ω2=2πf2\omega_2 = 2\pi f_2. A capacitor CfC_f across RfR_f makes the feedback factor

β(s)=1+sτzG+sτz,τz=RfCf,\beta(s) = \frac{1 + s\tau_z}{G + s\tau_z}, \qquad \tau_z = R_fC_f,

which is 1/G1/G at low frequency, as before, and rises to one above G/τzG/\tau_z, where the capacitor shorts the feedback resistor. The closed loop is then

H(s)=ωt (G+sτz)(τz/ω2) s3+(τz+G/ω2) s2+(G+ωtτz) s+ωt,H(s) = \frac{\omega_t\,(G + s\tau_z)}{(\tau_z/\omega_2)\,s^3 + (\tau_z + G/\omega_2)\,s^2 + (G + \omega_t\tau_z)\,s + \omega_t},

a third-order low-pass with a zero. At direct current it is still GG. Every number here comes from this expression by the residues of its three poles, and every step response drawn is checked against a netlist of the stage — a two-pole amplifier model, two resistors and the capacitor — solved independently, to two parts in a thousand.

The first figure shows what the right capacitor does at a gain of two. Without it, the stage rings for four cycles and is within 0.1 per cent at 4.04 µs. With RfCfR_fC_f = 301 ns it overshoots less, rings less and is within the band at 1.87 µs. With three times that capacitor it is slower than with none, 6.66 µs, and not because it rings: its output approaches the final value along a slow creep.

Settling against the capacitor

The second figure sweeps the capacitor over three decades of RfCfR_fC_f, 289 values from about 3 ns to 3 µs, and plots the 0.1 per cent settling time.

Settling against the feedback capacitor at a gain of 2: flat at 4.04 µs while Rf·Cf is small, down to 1.87 µs at 301 ns, then up steeply as the zero leaves a slow tail — and the bottom has cliffscomputed by solving, not by drawing: the time to settle within 0.1% of the final value, by the residues of the closed loop, for the stage of gain 2 round a 1 MHz amplifier with a second pole at 0.5 MHz, against the time constant Rf·Cf of a capacitor across its feedback resistor, on 289 values over three decades. With no capacitor it is 4.04 µs (horizontal line). Below about 30 ns the capacitor does nothing; the least is 1.87 µs at 301.4 ns; above a microsecond the stage takes longer than without it, because the zero and the third pole no longer cancel and the output approaches its final value along the slower of them. Within ten per cent of the best capacitor the settling ranges from 1.87 µs to 2.46 µs: each cliff is a ring's extremum crossing the band's edge.024681012Rf·Cf, the feedback zero's time constant (seconds)settling to 0.1% (microseconds)10 ns100 ns1 µsno capacitor4.04 µswith Cf1.87 µs at bestbest Rf·Cf301 nssolved, then checked — 289 capacitorsa floor that moves
Fig. 2 The time to settle within 0.1 per cent at a gain of two against RfCfR_fC_f, on 289 values. With no capacitor, 4.04 µs (horizontal). Below about 30 ns the capacitor does nothing; the least is 1.87 µs at 301 ns; above a microsecond the stage is slower than without it. The bottom is a run of cliffs: within ten per cent of the best capacitor the settling runs from 1.87 µs to 2.46 µs.

Three regions show. Below about 30 ns the capacitor’s zero is far above anything the loop does and changes nothing. Between about 100 ns and 500 ns it shortens the settling, to a least value of 1.87 µs. Above a microsecond it lengthens it, beyond the 4.04 µs of the stage without it, because it has put a slow pole and a zero into the response that no longer cancel each other. The bottom of the curve is not smooth. Settling is the last time the output leaves a band, and as the ring changes shape the extremum that sets it changes from one cycle to the previous one, so the curve is a staircase of cliffs, each where a peak of the ring crosses the band’s edge. The best capacitor sits on the edge of one.

The sum of the poles, again

The third figure explains the improvement, and it uses the same argument the earlier essay used to explain the floor.

The closed loop's poles as Rf·Cf runs from 10 ns to 3 µs: the capacitor adds G/τz to their sum, the ringing pair's decay rises from πf₂ = 1.57 to 3.12 million a second at the best capacitor, and the third pole sits beside the zero. computed by solving, not by drawing: the roots of the gain-of-2 stage's cubic, for Rf·Cf on 121 values from 10 ns to 3 µs (dots, upper half-plane), checked to sum to ω₂ + G/τz at every one and against the netlist's poles at the best capacitor. With a small capacitor the pair sits at 1.60 million a second, πf₂, and the third pole far out beside the zero at −G/τz. As the capacitor grows the third pole comes in, the sum it shares grows by G/τz, and the pair moves left: at the best capacitor, 301 ns, it is at -3.12 ± 2.96j million, with the third pole at -3.54 and the zero at -6.64. Larger still, the pair returns rightwards and the third pole leaves the zero behind.
Fig. 3 The closed loop’s poles at a gain of two as RfCfR_fC_f runs from 10 ns to 3 µs (small dots, upper half-plane), checked to sum to ω2+G/τz\omega_2 + G/\tau_z at every one, and against the netlist’s at the best capacitor. Without it the pair sits at πf2\pi f_2 = 1.57 million a second (vertical line). At the best capacitor (large dots) the pair is at −3.12 ± 2.96j million, the third pole at −3.55 and the zero at −6.64.

The coefficient of s2s^2 over that of s3s^3 in the closed loop’s denominator is the sum of its poles, and it is ω2+G/τz\omega_2 + G/\tau_z. Without the capacitor the sum is the open loop’s, ω2\omega_2, and two poles share it. With the capacitor there are three poles and the sum has grown by G/τzG/\tau_z, which is the pole of the feedback network itself. How much of the larger sum the ringing pair receives depends on where the third pole sits, and that is what the sweep shows. With a small capacitor the third pole is far out on the real axis, beside the zero at −G/τz-G/\tau_z that it nearly cancels, and the pair keeps its πf2\pi f_2. As the capacitor grows, the third pole comes in, the pair moves left, and at the best capacitor its decay rate is 3.12 million a second, nearly twice the 1.57 the floor allowed. The third pole is then at −3.55 million and the zero at −6.64, not cancelling but each contributing a little to the shape of the step. With a larger capacitor still, the third pole comes in further than the pair and becomes the slow one, the zero no longer sits beside it, and the step acquires the creep the first figure showed.

So the capacitor does what the earlier essay asked: it changes the quantity the floor was made of. Closing a loop round a constant fixes the sum of the poles; closing it round a network with its own pole adds that pole to the sum, and a designer who places the network’s pole correctly can give the dominant pair a share of it. This is a statement about the loop, not about the ring’s appearance. The ring’s envelope itself decays twice as fast.

Gain, with and without it

The fourth figure asks how much of this is available at each gain, sweeping the gain from 1.25 to 7.5 — r=f2G/GBWr = f_2G/\mathrm{GBW} from 0.62 to 3.75 — and finding the best capacitor at each.

Settling against gain, with no capacitor and with the best one: the floor without it is 3.64 µs at best; with it the stage settles in 1.87 µs at a gain of 2.5, and above r ≈ 3.3 the capacitor buys nothing. computed by solving, not by drawing: the 0.1% settling time of the stage round a 1 MHz amplifier with a 0.5 MHz second pole, against its closed-loop gain, with no capacitor (dashed — the earlier essay's floor, gains 1.25 to 7.5) and with the best capacitor across the feedback resistor found at each gain (solid). G = 1.25: 4.45 µs → 3.42 µs; G = 1.5: 4.23 µs → 2.28 µs; G = 1.75: 4.46 µs → 2.43 µs; G = 2: 4.04 µs → 1.87 µs; G = 2.5: 4.47 µs → 1.87 µs; G = 3: 3.99 µs → 2.32 µs; G = 4: 4.61 µs → 2.79 µs; G = 5: 4.22 µs → 3.13 µs; G = 6: 4.83 µs → 3.47 µs; G = 6.64: 3.64 µs → 3.64 µs; G = 7.5: 5.08 µs → 5.08 µs. The capacitor helps most where the stage rings hardest, at low gain: there it adds damping the second pole took away, and the sum it adds to lets the pair decay faster than πf₂. Near r = 3.32, the earlier essay's fastest stage, there is no ring left to remove, and the best capacitor is none.
Fig. 4 The 0.1 per cent settling time against closed-loop gain, with no capacitor (dashed, the earlier essay’s floor) and with the best capacitor at each gain (solid). Without it, the fastest stage is 3.64 µs at G = 6.64, r = 3.32. With it, 1.87 µs at gains of two and 2.5; at G = 6.64 and above, the best capacitor is none.

Without a capacitor the settling wanders between 4 and 5 µs below the knee, with the earlier essay’s best at r=3.32r = 3.32, a gain of 6.64, of 3.64 µs. With the best capacitor at each gain, the settling falls to 1.87 µs at gains of two and 2.5, and rises again towards higher gain: 2.32 µs at three, 3.13 at five, 3.47 at six. At a gain of 6.64 the best capacitor is none, and at 7.5 the same. The capacitor’s room to help is the ring itself. A stage at low gain, far below its knee, is underdamped, and the feedback network’s pole both adds damping and enlarges the sum the pair decays by. A stage at r=3.32r = 3.32 is already damped as well as a two-pole stage can be for this band, and adding a third pole to it only slows it.

The striking comparison is between the two curves’ minima. The fastest this amplifier can settle with resistors alone is 3.64 µs, at a gain the designer may not want. With a capacitor it settles in 1.87 µs at a gain of two. So the capacitor does not only rescue a low-gain stage from the floor; it makes the low-gain stage the fastest the amplifier can be, by a factor of two over anything the earlier essay found.

What the capacitor does to the loop

The capacitor is usually described as a stabilising component, and the description needs care here. Above G/τzG/\tau_z the feedback factor rises to one: the stage’s noise gain falls from GG to unity at high frequency, and the loop gain there rises accordingly. For a decompensated amplifier, specified as stable only above some minimum noise gain, that is the wrong direction, and the usual remedy for such a part is the opposite network — one that raises the noise gain at high frequency, from the inverting input to ground. The stage here has a second pole at half its product, which is what a decompensated part looks like, and it remains stable with the capacitor only because the capacitor’s own pole falls in the right place relative to that second pole.

So the capacitor is not a cure for an amplifier that is unstable. It is a reshaping of a stage that is stable and rings. The damping a zero asks for found that a zero in a second-order step moves its best damping and shortens its best settling; this is the same effect arrived at from the circuit, with the zero carrying a pole of its own that adds to the sum. And the lead a divider can give used the same network in a regulator’s feedback divider to add phase near crossover, where here it adds decay rate.

The tolerance on a notch

The best capacitor sits on the edge of a cliff in the second figure, and real capacitors have tolerances. The fifth figure measures what that costs, sweeping the capacitor from 0.6 to 1.4 times the best one for 0.1 per cent and plotting the settling to three bands.

The best capacitor sits among cliffs: within ±10% of it the 0.1% settling runs up to 2.49 µs and within ±20% up to 2.76 µs, against 4.04 µs with none — and the best capacitor for 1% or 0.01% is a different one. computed by solving, not by drawing: the settling time of the gain-of-2 stage to 1%, 0.1% and 0.01%, against the capacitor across its feedback resistor as a multiple of the one best for 0.1% (Rf·Cf = 301.4 ns). 1%: best 1.10 µs at 0.98 times it, 2.79 µs with none, worst within ±20% 1.86 µs; 0.1%: best 1.87 µs at 1.00 times it, 4.04 µs with none, worst within ±20% 2.76 µs; 0.01%: best 2.94 µs at 1.02 times it, 5.95 µs with none, worst within ±20% 3.62 µs. Each step in a curve is an extremum of the ring crossing the edge of the band, which is why an optimum on a settling time is a narrow notch beside a step rather than the bottom of a bowl. A capacitor of ten per cent tolerance does not hold the best number; it holds a number well below the stage without it.
Fig. 5 The settling of the gain-of-two stage to 1%, 0.1% and 0.01% against the capacitor as a multiple of the one best for 0.1% (301 ns). Best: 1.10, 1.87 and 2.94 µs, at 0.98, 1.00 and 1.02 times it; with none, 2.79, 4.04 and 5.95 µs. Within ±20% the worst is 1.86, 2.76 and 3.62 µs — each still below the stage without a capacitor.

Within ten per cent of the best capacitor the 0.1 per cent settling runs from 1.87 to 2.49 µs, and within twenty per cent up to 2.76. So a ten per cent capacitor does not deliver the best number; it delivers a number about a third worse. But every capacitor within twenty per cent of the optimum, at every band, settles faster than the stage without one: 2.76 against 4.04 µs at 0.1 per cent, 3.62 against 5.95 at 0.01. The improvement is robust even though the optimum is not.

The best capacitor also depends on the band, though only slightly here: 0.98, 1.00 and 1.02 times the same value for 1, 0.1 and 0.01 per cent. The reason it moves at all is the cliffs: the best capacitor for a band is the one that puts a ring’s last extremum just inside it, and a different band has a different last extremum. A converter driver designed for a 16-bit band should be tuned for that band, and the difference matters less than the tolerance of the part.

What this does to a converter’s driver

The earlier essay’s practical conclusion was that a decompensated part used near its minimum stable gain is timed by its second pole, and that more gain–bandwidth product does not help. The capacitor changes that conclusion in one respect. A stage on the floor has more to gain from a correctly placed feedback zero than from a faster amplifier: halving the settling time at a gain of two with a capacitor, against nothing from doubling the product while f2f_2 stays put.

It also changes what the designer has to know. The capacitor’s best value is a function of f2f_2, which data sheets rarely state, and of the gain, and its optimum is narrow. In practice it is found on the bench, by stepping the stage and adjusting, and the second figure says what the bench search will look like: a broad region of improvement with a jagged bottom, where the best value found depends on the band being watched.

What the frequency response says about it

A designer who checks the stage in the frequency domain will see something that looks like a warning. With the capacitor, the closed loop’s half-power bandwidth at a gain of two is lower than without it, because the zero in the signal path is now accompanied by a third pole near the band, and the response rolls off sooner. A stage that settles twice as fast with a narrower bandwidth contradicts the habit of reading speed off bandwidth, and the bandwidth the product still gets right already found that a second pole separates the two: the half-power bandwidth and the settling time answer to different features of the response. Here the bandwidth falls because the peak the ringing pair made is removed, and the settling improves for the same reason.

The phase margin says something closer to the truth, but still not the number. The capacitor raises the loop gain at high frequency, so the loop’s crossover moves up and its margin, measured there, changes in a way that depends on where the second pole sits relative to the new crossover. One margin, and the gain under it and where the Q comes from both relate a margin to a pair’s damping in a two-pole loop. With three poles that relation no longer holds, and the settling time is the only honest measure of what the capacitor has done. It is also the cheapest to measure: one step, one oscilloscope trace, one band.

How the numbers were obtained

The closed loop is the cubic above, its roots found by Durand–Kerner iteration scaled to their size, and its step response written as the sum of residues; settling is the last time the step leaves the band, found on a grid of 2.5 ns and bisected. The netlist is the stage built from a two-pole amplifier model with an open-loop gain of 10710^7, two 1 kΩ resistors and the capacitor, solved by residues independently, and its step agrees with the closed form to 2×10−32 \times 10^{-3} at four instants for each of the three capacitors in the first figure; its poles’ sum agrees to a fifth of a per cent at the best capacitor. The best capacitor at each gain and band is found on a scan of 96 values a decade of RfCfR_fC_f, since the cliffs defeat any search that assumes a smooth minimum. The gain of eight, r=4r = 4, is excluded from the sweep: there the two poles without a capacitor coincide, and a residue expansion does not apply.

What the stage leaves out

Input capacitance. A real amplifier’s inputs carry a few picofarads, which with large feedback resistors adds a pole in the feedback network falling the other way, and the capacitor across RfR_f is then also compensating that. With the resistors at a kilohm here, that pole is far above anything drawn.

Slew. Every number is small-signal. A large step slews first, and the capacitor does nothing to the slew rate; it alters only the linear settling after it. The step that is too big draws that boundary.

Further poles. A third amplifier pole near f2f_2 would share the sum as well, and would push the best capacitor and the best settling around. What is left at crossover is where the extra phase of such poles was counted in a loop’s margin.

The number worth carrying

A capacitor across a stage’s feedback resistor adds G/RfCfG/R_fC_f to the sum of its closed-loop poles, and a correctly placed one gives the ringing pair a share of it. For a 1 MHz amplifier with a 0.5 MHz second pole at a gain of two, RfCfR_fC_f = 301 ns doubles the pair’s decay rate from πf2\pi f_2 = 1.57 to 3.12 million a second, and the 0.1 per cent settling falls from 4.04 µs to 1.87 — half the floor, and half the 3.64 µs of the fastest stage without a capacitor at any gain. It helps only where the stage rings: above r≈3.3r \approx 3.3 the best capacitor is none. And the optimum is a notch beside a cliff, so a twenty per cent capacitor gives 2.76 µs, still well under the stage without it.

Still open: the capacitor with a slew, the third amplifier pole, and an inverting stage

The capacitor and a large step. A stage that slews arrives at the end of its slew with a velocity and an error, and the linear settling starts from there rather than from rest. Whether the best capacitor for a small step is still best for a step that spends half its budget slewing — or whether the capacitor’s zero, which sees the output’s slope, makes the recovery from slew faster still — is the question a converter’s driver puts.

A third pole in the amplifier. With a pole at, say, three times f2f_2 the open loop’s sum is larger and the capacitor has a different share to give. Whether the pair can still be given twice πf2\pi f_2, and whether the low-gain stage remains the fastest, would say how general this is for real parts.

The inverting stage. An inverting stage of gain −G-G has the same feedback factor and closes against G+1G + 1, as the gain the loop closes against found, so its capacitor puts the same pole in the loop but a different zero in the signal path — a pole, in fact, since the capacitor there filters the output. Whether the same capacitor halves its settling, or whether the signal path’s pole undoes the gain, is a direct calculation on this model.

Part 5 on Gain-bandwidth

One argument about Gain-bandwidth, and one of 4 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Closed-loop gainDamping ratioDesign tradeoffDominant poleGain–bandwidth productModel rangeSettling time