Feedback, and the margin

The gain that stops making a stage faster

The gain–bandwidth product says a stage of gain G settles in time proportional to G, and a stage with a second pole does something else. Below r = 4 the closed loop's poles are a complex pair whose real part is half the sum of the open loop's, π times the second pole's frequency, with neither the gain nor the product in it: a 1 MHz amplifier with a 0.5 MHz second pole takes 4.10 µs to settle within 0.1 per cent at unity gain, 4.04 at two and 4.22 at five, where the product says 1.10 to 5.50. Above the knee at G = 4·GBW/f₂ the product returns. In between lies the fastest stage, r = 3.32 for a 0.1 per cent band, which settles in 3.44 time constants against the one-pole stage's 6.91: half the time, and not at the r that gives the widest band.

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

The bandwidth the product still gets right put a second pole at rr times the closed-loop bandwidth the gain–bandwidth product predicts, and found the half-power bandwidth 41.4 per cent wide at r=2r = 2 while the noise bandwidth stayed exactly where the product says it should be. It closed on the third reading of the same second pole, the one a converter’s driver or a sampled system cares about: a wider half-power bandwidth comes with a step that rises faster and overshoots a little, and whether that stage settles sooner or later than the one-pole stage the product describes, and at which rr, need not agree with either bandwidth.

It does not agree with either, and that is the smaller of the two results here. The larger concerns the product itself. Every statement of the gain–bandwidth product, including the one-line derivation of it, makes a promise that a lower gain gets a faster stage in proportion, and with a real second pole that promise has a floor. Below a definite gain the settling time stops depending on the gain at all. It also stops depending on the gain–bandwidth product, which falls right out of the expression. A stage on that side of the knee is being timed by the second pole alone.

A stage with its second pole at 3 times the bandwidth the product predicts settles within 0.1% in 5.06τ, against 6.91τ for the one-pole stage the product describescomputed by solving, not by drawing: the step of a stage whose amplifier has a second pole at r = 3 times GBW/G (solid), against the one-pole stage of the same product (dashed). Time is in units of τ = G/(2π·GBW). Settled within 0.1% at 5.055τ, against ln(1000) = 6.908τ, with the netlist of a gain-of-ten stage agreeing at 5.057τ. The stage with the second pole is usually faster, whatever it does on the way.00.2000.4000.6000.80011.201.400246810time, in the time constants the gain–bandwidth product predicts (τ = G/2πGBW)over the settled outputsecond pole, r = 30.1% at 5.06τone pole0.1% at 6.91τdampingζ = 0.866netlist, G = 105.06τsolved, then checked — and by a netlista second pole, and sooner
Fig. 1 The step of a stage whose amplifier has a second pole at rr times GBW/G (solid), against the one-pole stage of the same product (dashed), with time in units of τ=G/(2π GBW)\tau = G/(2\pi\,\mathrm{GBW}). At r=3r = 3 it is inside 0.1 per cent at 5.06τ, against 6.91τ with one pole; a netlist of a gain-of-ten stage agrees at 5.06τ. The slider runs from r=1r = 1, at 12.7τ, through r=4r = 4, at 4.62τ, to r=30r = 30, at 6.70τ.

The stage, in one coefficient

The stage is a non-inverting stage of gain GG round an amplifier with a gain–bandwidth product GBW and a second pole at f2f_2. The closed loop is a second-order low-pass:

H(s)=11+sτ+s2τ2/r,τ=G2π GBW,r=f2GGBW.H(s) = \frac{1}{1 + s\tau + s^2\tau^2/r}, \qquad \tau = \frac{G}{2\pi\,\mathrm{GBW}}, \qquad r = \frac{f_2 G}{\mathrm{GBW}}.

The whole of the second pole’s effect is in rr, as the earlier essay found, and time scaled by τ\tau makes the step a function of rr alone. Its damping ratio is r/2\sqrt r/2, so r=4r = 4 is critical damping, where the two poles coincide, and r=2r = 2 is the 0.707 that gave the widest flat band. The poles are

s=−r2τ(1∓1−4r).s = -\frac{r}{2\tau}\left(1 \mp \sqrt{1 - \frac{4}{r}}\right).

Settling is measured from the exact step, as the last time the output is outside a band about its final value, and bisected to the digit it needs. Every number is checked against a netlist: the stage built round a two-pole amplifier model and solved by residues. The two agree within a part or two in a thousand at every rr and gain used, which is the floor a transient grid sets on the netlist’s side. The hero figure’s stage at r=3r = 3 reads 5.055τ and 5.057τ.

Sooner, and by how much

The one-pole stage takes ln⁡(1/b)\ln(1/b) time constants to come inside a band bb, which for 0.1 per cent is 6.91τ. That is the number the product implies, and it is what a data sheet’s quick estimate of settling is built from. The second pole, if it were only a lag, could only make things worse. It does not, because with the second pole the rise is faster, and for a time the loop’s overshoot is doing useful work.

Settling against the second pole: within 0.1% the fastest stage is at r = 3.32 in 3.44τ, 50% faster than the one-pole stage's 6.91τ. computed by solving, not by drawing: the time for the step to stay inside a band, in units of τ = G/(2π·GBW), against the second pole's position r, for three bands, with each band's one-pole value at the right. 1%: fastest 2.539τ at r = 2.733, against 4.605τ with one pole, and 8.78τ at r = 1; 0.1%: fastest 3.442τ at r = 3.317, against 6.908τ with one pole, and 12.70τ at r = 1; 0.01%: fastest 4.451τ at r = 3.583, against 9.210τ with one pole, and 18.71τ at r = 1. At r = 1 the stage takes about twice as long as with one pole, at r = 2 about the same, and at the best r it takes well under two-thirds. The curve has steps in it where a ring's peak leaves the band, and the fastest r sits at the edge of one.
Fig. 2 The time for the step to stay inside a band, in units of τ\tau, against the second pole’s position rr, for bands of 1, 0.1 and 0.01 per cent. Each band’s one-pole value is marked at the right. Within 0.1%: 12.7τ at r=1r = 1, a fastest 3.44τ at r=3.32r = 3.32, and back to 6.91τ far out. The small steps on the left are where a ring’s peak leaves the band.

At r=1r = 1 the stage takes 12.7τ within 0.1 per cent, nearly twice the one-pole time, because it is ringing and each swing has to die away. At r=2r = 2, where the half-power bandwidth is at its widest, it takes 7.24τ, which is a little more than one pole’s. So the bandwidth reading and the settling reading already part company at the first number a designer would reach for: 41 per cent more half-power bandwidth is 5 per cent more settling time.

Going further gets better very quickly. At r=3r = 3 the time is 5.06τ, at r=3.32r = 3.32 it reaches a best of 3.44τ, and then past r=4r = 4 it climbs: 4.62τ at critical damping, 6.06 at r=8r = 8, 6.70 at r=30r = 30, approaching the one-pole figure from below for as long as the second pole contributes anything. The minimum is half of what the product predicts, a stage that is better than its own model by a factor of two for a reason a designer would ordinarily think of as a defect.

The curve has steps, particularly on the left of the minimum, and the cliff before the fastest settling measured exactly this structure against damping: a ring’s successive peaks each define a settling time until they drop inside the band, so the time jumps by half a ring period at each one. The best damping is not the one to build worked out what that means for a stage whose value is not exactly known, and the same warning carries over, with a difference. There the knob was damping. Here the same fragile optimum is expressed as a position of the amplifier’s second pole, which is the least well-controlled number on its data sheet.

What the best pole is worth

The minimum moves with the band. For a coarse band, a designer can land the first overshoot just inside it, and a fine band has no such option.

What the best second pole is worth: 45% of the settling time at a 1% band, 50% at 0.1%, 52% at 0.001%, approaching half as r approaches four. computed by solving, not by drawing: the fastest settling time over the one-pole stage's (solid), and the position of the second pole that gives it, as r/4 (dots), against the settling band. 10%: r = 2.433, ζ = 0.780, 1.862τ against 2.303τ, ratio 0.809; 3.0%: r = 2.221, ζ = 0.745, 2.194τ against 3.507τ, ratio 0.626; 1.0%: r = 2.733, ζ = 0.827, 2.539τ against 4.605τ, ratio 0.551; 0.30%: r = 3.096, ζ = 0.880, 2.989τ against 5.809τ, ratio 0.514; 0.10%: r = 3.317, ζ = 0.911, 3.442τ against 6.908τ, ratio 0.498; 0.030%: r = 3.479, ζ = 0.933, 3.961τ against 8.112τ, ratio 0.488; 0.010%: r = 3.583, ζ = 0.946, 4.451τ against 9.210τ, ratio 0.483; 0.0030%: r = 3.667, ζ = 0.957, 5.003τ against 10.414τ, ratio 0.480; 0.0010%: r = 3.725, ζ = 0.965, 5.530τ against 11.513τ, ratio 0.480. At r = 4 the two poles coincide at 2/τ, which is twice as fast as the one pole the product describes, so a fine enough band is reached in about half the time, plus the penalty of the two-pole shape's extra term. The widest flat band is at r = 2, which is not any band's fastest.
Fig. 3 The fastest settling time over the one-pole stage’s (solid), and the second pole position that gives it, as r/4r/4 (dots), against the settling band. At 1%: r=2.73r = 2.73 and a ratio of 0.551. At 0.1%: 3.32 and 0.498. At 0.001%: 3.73 and 0.480. The ratio stops falling as rr nears four, where the poles coincide at 2/τ2/\tau.

At 10 per cent the best rr is 2.43 and the saving is modest, 19 per cent. At 1 per cent it is r=2.73r = 2.73 with a ratio of 0.551. At 0.1 per cent it is r=3.32r = 3.32 and 0.498. At a thousandth of a per cent it is r=3.73r = 3.73 and 0.480, and the trend has nowhere further to go. Two equal poles at r=4r = 4 are each at 2/τ2/\tau, twice as fast as the single pole, so a fine band arrives in about half the time. At exactly r=4r = 4 it does worse than that, 0.669 at 0.1 per cent, because the double pole’s extra term (1+2t/τ)(1 + 2t/\tau) adds a logarithm. The best position stays a little below four, where the pair’s last swing just stays inside the band, and that is why the ratio sits slightly under a half.

There is a neat way to put that. Holding GBW and GG fixed, moving the second pole from infinity to r=4r = 4 doubles the settling speed of a fine band. A second pole that is taken as a blemish on the amplifier is, at the right position, doing the same job as a compensation network’s zero. The widest flat band is at r=2r = 2, and the fastest fine settling is at nearly twice that, and for a stage that must both pass a band and settle quickly the designer’s target is the higher of the two.

The sum of the poles

So far the second pole has been placed in units of the closed-loop bandwidth, which is the convenient way to draw a curve and the wrong way to think about an amplifier, since a real amplifier has its second pole fixed in hertz and a designer varies the gain. Written for that case, the real part of a complex pole pair is

σ=r2τ=f2GGBW⋅2π GBW2G=πf2.\sigma = \frac{r}{2\tau} = \frac{f_2 G}{\mathrm{GBW}} \cdot \frac{2\pi\,\mathrm{GBW}}{2G} = \pi f_2.

Both GG and GBW have cancelled. That cannot be an accident of the algebra, and it is not. Closing a loop around a constant moves the poles of an open loop without changing their sum, because the sum is the coefficient of ss, which the loop gain does not touch. The open loop has poles at nearly zero and at 2πf22\pi f_2. Their sum is 2πf22\pi f_2. Once the closed-loop poles have met and become a complex pair, each has half that sum as its real part, for every gain.

A ringing stage forgets its gain: the ring decays at π·f₂ for every gain and any gain–bandwidth product, 1.57, 4.71 and 9.42 million per second for second poles at 0.5, 1.5 and 3 MHz. computed by solving, not by drawing: the decay rate of the step's ring, fitted to the extrema of a netlist solved by residues, against the closed-loop gain, for a 1 MHz amplifier with three second poles (dots), against π·f₂ (lines). G = 1, 0.5 MHz: 1.571 against 1.571; G = 1.2, 0.5 MHz: 1.570 against 1.571; G = 1.5, 0.5 MHz: 1.571 against 1.571; G = 2, 0.5 MHz: 1.571 against 1.571; G = 2.5, 0.5 MHz: 1.571 against 1.571; G = 3, 0.5 MHz: 1.570 against 1.571; G = 4, 0.5 MHz: 1.570 against 1.571; G = 5, 0.5 MHz: 1.572 against 1.571; G = 6, 0.5 MHz: 1.571 against 1.571; G = 1, 1.5 MHz: 4.711 against 4.712; G = 1.2, 1.5 MHz: 4.712 against 4.712; G = 1.5, 1.5 MHz: 4.712 against 4.712; G = 2, 1.5 MHz: 4.713 against 4.712; G = 1, 3 MHz: 9.426 against 9.425. The two poles of the closed loop add up to the sum of the open loop's, whatever the loop gain, because closing a loop on a constant moves the poles without changing their sum. So once they are a complex pair, each has half that sum as its real part, and neither the gain nor the first pole is in it.
Fig. 4 The decay rate of the step’s ring, fitted to the extrema of a netlist solved by residues, against the closed-loop gain, for a 1 MHz amplifier with second poles at 0.5, 1.5 and 3 MHz (dots), against πf2\pi f_2 (lines): 1.57, 4.71 and 9.42 million per second. The dots lie on flat lines: a ringing stage’s decay contains no gain and no gain–bandwidth product.

The netlist does not need telling. Fitting the decay of the ring’s extrema at each gain below the knee gives flat lines at 1.57, 4.71 and 9.42 million per second, within four per cent at every combination, and for most of them within a part in a thousand. The result is the same one where the Q comes from and one margin, and the gain under it lean on from other directions, that a pair’s real part is a sum and is the same for every loop gain: the root locus of a two-pole loop is a vertical line, drawn here in the time domain.

The ring’s frequency is what the gain moves. A lower gain puts the pair higher up that vertical line, ringing faster and with less damping, while its envelope falls at the same rate. So a designer who lowers the gain gets a faster first rise and more cycles of ringing inside exactly the same envelope. For settling to a fine band, which is a statement about the envelope, nothing has changed.

The knee, in seconds

Put that on the axis a designer actually has, gain, and the floor is obvious. A 1 MHz amplifier, with a second pole at 0.5 MHz or at 3 MHz, settling within 0.1 per cent:

The gain that stops making a stage faster: below G = 8 with a 0.5 MHz second pole a 1 MHz amplifier settles in about 4.4 µs whatever its gain, where the product says 1.10 µs at unity. computed by solving, not by drawing: the time to settle within 0.1% against the closed-loop gain, for a 1 MHz amplifier with a second pole at 0.5 MHz and at 3 MHz, from a netlist solved by residues (lines), against what the gain–bandwidth product predicts, ln(1000)·G/(2π·GBW) (dashed). second pole 0.5 MHz: G = 1, 4.10 µs, G = 2, 4.04 µs, G = 5, 4.22 µs, G = 10, 8.51 µs, G = 100, 108.03 µs; second pole 3 MHz: G = 1, 0.80 µs, G = 2, 1.81 µs, G = 5, 5.16 µs, G = 10, 10.67 µs, G = 100, 109.64 µs. Below the knee at G = 4·GBW/f₂ the settling time is ln(1/b)/(π·f₂) on average, with cliffs either side of it, and neither the gain nor the gain–bandwidth product is in that expression. Above the knee the stage is the product's, and the time rises in proportion to the gain.
Fig. 5 The time to settle within 0.1 per cent against closed-loop gain, for a 1 MHz amplifier with a second pole at 0.5 MHz and at 3 MHz, from a netlist solved by residues (lines and dots), against what the gain–bandwidth product predicts (dashed). With the 0.5 MHz pole: 4.10 µs at unity, 4.04 at two, 4.22 at five, 8.51 at ten, 108 at a hundred. The product says 1.10, 2.20, 5.50, 11.0 and 110.

With a 0.5 MHz second pole the stage takes 4.10 µs at unity, 4.04 µs at a gain of two and 4.22 µs at five. The product predicts 1.10, 2.20 and 5.50. So at unity gain the prediction is low by a factor of nearly four, and lowering the gain from five to one buys essentially nothing, against a promised factor of five. The floor’s value is what the sum of the poles predicts: ln⁡(1000)/(πf2)\ln(1000)/(\pi f_2) = 4.40 µs, with a little better than that available depending on where the last peak falls.

The knee is at r=4r = 4, that is G=4 GBW/f2G = 4\,\mathrm{GBW}/f_2: a gain of eight for this pole. Above it the closed loop’s poles are real and split, the slower one tends to GBW/G, and the product comes back: 8.51 µs at ten against 11.0, and 108 µs at a hundred against 110. Just past the knee the stage is actually faster than the product says. In the last decade of gain the two curves are indistinguishable, which is the region in which the product is the right description of the amplifier.

With a 3 MHz second pole the knee is at 1.33, so a stage at unity sits barely on the floor, and the product is a good guide everywhere from a gain of two upward. That is the amplifier a stable unity-gain part is designed to be, with its second pole safely above its crossover. The case with the second pole at half the product’s crossover, on the other hand, is what happens when the amplifier is decompensated: a part sold with a larger gain–bandwidth product and a stated minimum stable gain. Its GBW is not available below the knee, whatever the headline figure says, and a user who picks the part for its speed at a gain of two is paying for a number the stage cannot use. And it is not a tiny difference in practice. A decompensated part at a gain of two is timed by f2f_2, and a part with a three times lower GBW and the same f2f_2 settles identically.

What this does to a converter’s driver

The case the question usually comes from is a converter’s input driver, a gain-of-one or gain-of-two stage whose whole job is to settle between samples. The rule in common use comes from the product: pick the part’s GBW so that the required number of time constants fits the acquisition window. The edge of a chain and its neighbour showed that this reasoning already goes wrong for several stages together. Here it goes wrong for one, and it does so in a way the data sheet’s headline hides.

If the second pole is well above the crossover, the rule is conservative, and it can be very conservative. A stage at r=3.3r = 3.3 needs half the time, so a part with half the GBW would do, provided its second pole is where this says. If it is below the crossover, on a decompensated part used near its minimum stable gain, the rule is optimistic by a factor of four, and more GBW will not help at all. In both cases the number that should be on the data sheet, and is at best given as a phase margin at one gain, is the second pole’s frequency. Everything else about settling can be calculated from that and the product. The Q the amplifier decides found a filter section’s behaviour tied to the gain–bandwidth product alone; a section at low enough gain in a fast enough circuit is timed by this pole as well.

Why a phase margin does not say this

A second-order loop’s phase margin and its rr are one number: the margin is a function of r/2\sqrt r/2, and two measurements of one margin checks that identity on an actual loop. So a stage’s margin in principle says where it sits on the first figures here. It does not say the thing that matters in seconds, since a phase margin of 60° at one gain is a different second pole from the same margin at another, and the settling time in seconds depends on the second pole’s frequency and nothing else on this side of the knee. A designer comparing two parts by phase margin at their respective gains has compared them on the wrong axis. Two stages with equal margins, at different gains, can settle at different speeds in proportion to their gains. Below the knee, two stages at very unequal margins settle at the same speed.

What the two-pole model leaves out

An operational amplifier has further poles and usually a zero, and it slews. The slew limit in particular would replace the small-signal envelope entirely for a large step, and the step that is too big is where that boundary is drawn; everything here is true for steps small enough to stay on the linear side of it. A third pole near the second adds lag and changes both the sum of the poles and the shape of the settling tail, and a doublet would add a slow tail no second-order picture contains, as the tail that settling leaves measures. Both of these make the settling worse in ways this essay’s figures do not show, and neither moves the structure: a second pole’s position still sets the fastest stage and the floor.

The direct-current gain here is high enough to ignore. At a gain of a hundred with an open-loop gain of a million, the final value is a hundredth of a per cent short, which is normalised away so that the settling is measured to the final value. On a stage with only 60 dB of open-loop gain that would be a static error larger than the band, and it would be a different question.

The numbers to carry

A stage’s closed-loop poles are a complex pair below r=4r = 4, and their real part is πf2\pi f_2 whatever the gain and whatever the product, so a 1 MHz amplifier with a 0.5 MHz second pole takes about 4 µs to reach 0.1 per cent at every gain from one to five, where the product promises 1.10 to 5.50. The knee is at G=4 GBW/f2G = 4\,\mathrm{GBW}/f_2. In units of τ\tau, the fastest stage for a 0.1 per cent band has its second pole at r=3.32r = 3.32 and settles in 3.44τ, half the one-pole stage’s 6.91, and the widest flat band at r=2r = 2 takes 7.24τ. The half-power bandwidth, the noise bandwidth and the settling time therefore each answer to the second pole differently, and only the last has a floor.

Still open: the third pole, a zero, and a decompensated part used below its gain

A third pole. Adding a pole changes the sum of the closed loop’s poles by itself, so the floor moves up by half of it, but the dominant pair then no longer takes half of the total. Where the third pole starts to erode the floor, and whether a fast third pole helps settling as a second one does, is the measurement that would say how far the two-pole picture can be used for a real amplifier.

A zero in the loop. A capacitor across the feedback resistor adds a zero, which alters the sum of the closed-loop poles rather than leaving it fixed. This is the standard cure for a decompensated part, and whether it moves the floor or only reduces the ring within the same envelope is exactly the difference between buying time and buying appearance.

A large step. A real amplifier slews before it settles, and a slew limit makes the first part of the response independent of the small-signal poles. Whether a stage on the floor spends its budget in the slew or in the ring, and so whether more gain–bandwidth product helps a large step where it could not help a small one, is the question a converter’s driver actually asks.

Part 4 on Gain-bandwidth

One argument about Gain-bandwidth, and one of 3 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 productHalf-power bandwidthModel rangeSettling time