Feedback, and the margin
What is left at crossover
A feedback loop is stable or not according to one number read at one frequency — how much phase remains before −180° at the point where the loop gain passes unity. The loop gain here is obtained the way it is obtained on a bench: cut the loop, drive one side of the cut, and measure what comes back to the other.
Two measurements of one margin
A phase margin is computed from the loop gain in the frequency domain, without ever looking at a step. An overshoot is measured from the closed-loop step response in the time domain, without ever looking at a Bode plot. Inverting the standard relation on the second returns 34.9° against the first's 34.9°, and the residue is the third pole.
The ideal amplifier, and where it stops being one
An ideal operational amplifier's closed-loop gain is set by two resistors and nothing else — a horizontal line at every frequency. The real one is already a tenth of a per cent low at direct current, one per cent low by 1.35 kHz, and above 10 kHz has no loop gain left, at which point the ideal answer is not an approximation to anything.
Stable, and unstable with less gain
A three-pole loop with two lead sections is stable for gains between 1.81 × 10⁶ and 3.36 × 10⁷ and unstable on both sides of that window. Turning its gain *down* is what breaks it. Neither margin can see this, because a phase margin describes the loop at one frequency and a gain margin at one other, and this loop's phase crosses −180° at three: 189 Hz, 3.46 kHz and 23.5 kHz.
How much of the amplifier gets through
The reason to build an amplifier from a bad amplifier and two resistors is that a change in the device barely reaches the answer — a tenth of a per cent of it at low frequency, measured by making the device better and solving again. Near crossover the same fraction rises above one, so feedback makes the gain more device-dependent than no feedback at all, and below fifty degrees of margin it changes sign on the way.
The node that is at ground for a while
An inverting amplifier's summing junction is held at ground by the loop, so it is at ground exactly as well as the loop is strong. Driven with a current and measured, it is a tenth of an ohm at direct current, ten ohms at a kilohertz, and 909 ohms above a megahertz — which is the two feedback resistors in parallel, with the amplifier contributing nothing.
The gain the loop closes against
An inverting amplifier with two equal resistors has a gain of one and a loop that closes against two, so it has half the bandwidth of a follower built from the same part — 4.99 megahertz against ten. Nine picofarads at the summing junction, less than a scope probe, takes the phase margin from ninety degrees to forty-five, and a hundred picofarads puts twelve decibels of peaking on a response whose designed gain is nought decibels and whose measured gain at a kilohertz has not moved by three parts in a million.
The load that gets inside the loop
Hanging a capacitor on an amplifier's output changes nothing a reader can find in any expression for its gain, and takes the phase margin of a unity-gain inverter from ninety degrees to thirty. The mechanism is fifty ohms of output resistance that no data sheet page puts next to the stability page: the load works against it, the pole that results is in the forward path, and forty-five degrees arrives at 905 picofarads — which is a metre of coaxial cable.
The resistor that buys the margin back
Two point two nanofarads takes a unity-gain inverter's phase margin from ninety degrees to thirty. Ten ohms between the amplifier and the load restores forty-five, twenty-three restores sixty, and it works for a reason that reads as a cheat: the feedback is taken from the wrong side of the resistor, so its pole is outside the loop. Take the feedback from the load instead — which is what anyone controlling the load would do — and the same resistor makes every value worse. What it costs is that the loop no longer regulates the load's node at all: ten ohms is one per cent of error into a kilohm, at direct current, uncorrected.
The path that buys the error back
An isolation resistor restores a capacitively loaded amplifier's phase margin and costs it the thing feedback was for: the loop stops regulating the node the load is on, and a kilohm of load pulls the output down by a per cent. The standard repair is a second feedback path, and its cost is not an error or a margin — it is a range. At twelve picofarads it settles to a hundredth of a per cent in 0.745 microseconds, faster than the circuit it repairs; at a hundred it takes 9.18, and the phase margin there is better.
What the second path costs at the floor
The arrangement that repaired a capacitively loaded amplifier was suspected of paying for itself in noise, because that is how compensations usually pay. It does not: it has no peak in its noise gain at all, and the total at the load falls from 54.9 microvolts to 28.9 as the capacitor is added. What it costs is settling, and the capacitor that is quietest is eighteen times the capacitor that settles fastest — a trade the phase margin says nothing about, because the margin is comfortable at both.
What the load sees looking back
Four rungs of this argument have measured what the amplifier does to the signal — the margin, the settling, the error, the noise. None has asked the question from the other end. A load that draws its own current sees an impedance looking back, and with the feedback taken from the amplifier that impedance is the isolation resistor, with no loop gain in it whatever: ten ohms, and a load step leaves an error that never goes away. The two-path arrangement recovers to a thousandth of it and charges for that in a quantity none of the four rungs below measured.
Where the trouble is at the input
Every other arrangement in this field has its difficulty at the output — a capacitive load, an isolation resistor, a load that draws current. A photodiode amplifier has it at the input, and the capacitance causing it is not a parasitic: it is the diode's junction, which is the price of its area, and area is what a photodiode is bought for. The feedback resistor's own noise is 127 nV/√Hz against the amplifier's 4, and the amplifier is still ninety-five per cent of the noise at a large diode.
The step too large to have an impedance
The rung below drove the load node with a current step and reported an impedance: a voltage divided by a current, which is a number only if the ratio does not depend on the current. Give the amplifier the differential pair's own tanh in place of a linear transconductor and it is a number up to 10.6 milliamps and not above — where the input error is 3.63 thermal voltages, and where the slew rate that decides it is twice the thermal voltage times the gain-bandwidth in radians, containing no design choice at all.
The current above which there is no impedance
The sixth rung found the impedance leaving at 10.6 mA, where the input pair's own tanh takes over and the slew rate is twice the thermal voltage times the gain-bandwidth in radians, with no design choice in it. A real output stage has a second limit that is nothing but design choice, and the two do not bind at the same load: at 0.47 nF the input pair's departure is 19.4 per cent against the output stage's 4.2, at 22 nF it is 0.9 against 2.3, and above the output stage's rating the excursion does not come back at all — 2,254 Ω for a quantity that was 37.
The rail the load moves
Seven rungs of this ladder end by saying the same thing: the supply is an ideal voltage source, so a load step is drawn from a node that cannot be disturbed. Giving the rail an impedance turns out to change the disturbing channel's own output impedance by three parts in ten million — its loop corrects the supply along with everything else — and to open a path to a second amplifier that shares nothing with it but a wire. How large that path is is a modelling choice: 3.84 microvolts per ampere with the compensation capacitor returned to ground, 17.3 millivolts with it returned to the rail, a factor of four and a half thousand.
The window the resistors own
Eight essays have priced one compensated stage, and the fourth of them left two of the amplifier's own generators named and uncounted. With the current generator put in the netlist the floor at ten kilohms goes from 28.88 microvolts to 30.13, and the resistors carry more than half the noise power only between 2.91 kΩ and 85.9 kΩ — outside that window, in both directions, the part does. The flicker corner turns out to be worth 1.00009 in this stage's own band, and 3.474 one band away.
The factor the expression leaves out
The classical compensation for a photodiode amplifier is quoted both as the forty-five degree choice and as the maximally flat one, and it is neither: it leaves 1.18 dB of peaking and 52.4° of margin. Flat is at exactly √2 times it — fitted at 1.4186 against 1.4142, at every detector from 3 pF to 1 nF. And the third quantity the capacitor is supposed to trade, the noise, does not move at all inside the signal band: three compensations spanning a factor of fourteen give 8.37 against 8.36 µV in a 4.36 kHz measurement and 230 against 65 µV over the whole plane.
The loop that never crosses
Every loop this field draws carries two margins, and one of them is not always a number. Take the third pole out of the standard loop and its crossover moves by 2.45 parts per million and its phase margin by 0.164 degrees — the third pole's own arctangent there, to five decimal places — while its gain margin goes from 46.06 decibels to no number at all. The phase reaches −180° only where the magnitude has already reached −62 decibels, and the two instruments that are supposed to notice report 3.19 × 10⁻⁶ either way.
The load that neither limit owns
Nine rungs of this argument asked which of an amplifier's two large-signal limits binds, and drew the load capacitance where the answer changes hands. Both are present at every load: the excursion with both in the netlist is the two departures added and between 2 and 12 per cent more, never the larger of them. So the crossing is not a handover but a maximum — at 12 nanofarads the pair costs 2.084 times what the worse of them costs alone, against 1.35 at 2.2 nanofarads and 1.07 at 47 — and the same peak sits on the resistance axis at 20 ohms and the gain-bandwidth axis at 50 megahertz.
The error a bigger resistor cannot help
Every other quantity in a photodiode amplifier improves with a larger feedback resistor: the signal grows as R and the resistor's own noise as √R, so the ratio goes as √R. The bias current does not behave like either — it flows in the same resistor the signal does, so its contribution is the ratio of the two currents with the resistance cancelled, 0.1 per cent at 25 °C and the same 0.1 per cent at a megohm and at a gigohm. The offset behaves the other way, growing as one plus the resistor over the diode's own leakage, and at 85 °C the two are 6.40 and 0.74 per cent against 0.10 and 0.11 at room temperature.
The tee that charges for its own compensation
A feedback tee makes a large transimpedance out of small resistors, and R₁(1 + R₂/R₃) + R₂ is the whole of what is usually said about it. The expression has no term for the noise gain, and the tap sets that to 1 + R₁/R₃ — nine, where a single feedback resistor of any value gives exactly one, because at direct current the source is a capacitor. One quantity then does everything: the signal and R₁'s own noise are multiplied together so the tee buys no signal-to-noise ratio at all, and the phase margin RISES from 1.8° to 15.9°.
The node that does not care how many
Put thirty-two inputs on a summing junction instead of one and its ceiling falls from 909 ohms to 31.2 — the input resistors in parallel with the feedback resistor, twenty-nine times stiffer. Every other part of the curve is unchanged to five per cent, because the open-loop impedance and the loop gain both scale as one over the count and cancel. So the stiffer node buys nothing: the per-channel leakage saturates instead of reaching unity, and the leakage into every other channel together tends to exactly one, whatever the count.
The node that is an inductance
A summing junction with a one-pole amplifier round it rises to the two feedback resistors in parallel and stops there, and that ceiling is the whole of what a virtual earth can be. Give the amplifier a second pole and the node overshoots it — 1074 ohms against 909 with the second pole at 300 kilohertz, 1868 with it at thirty — and below the peak the impedance leads its current by more than twenty degrees, which is an inductance. So a stray capacitance on the node is no longer a load on a resistance; it is a resonance, and the peak grows with it rather than being damped by it.
The shelf a capacitor makes
An inverting amplifier's summing node rises a decade per decade to the two resistors in parallel. Replace the feedback resistor with a capacitor and it does neither: an integrator's loop gain has no frequency in it, so the node is flat at Rin/(1 + 2π·GBW·C·Rin) — 15.67 ohms over four decades, to half a per cent. Both ends invert. At direct current the capacitor is an open circuit, there is no loop at all, and the node is 843 ohms against the resistor's tenth of one; above the amplifier's crossover the capacitor is a short and the node is nineteen times better.
The compensation that costs nothing
A photodiode amplifier can be compensated with a capacitor across its feedback resistor, or with a feedback tee, whose raised noise gain also raises the phase margin. At one transimpedance, 500 kΩ on 33 pF of detector, each design's margin is drawn against its output noise over its own bandwidth. The capacitor dominates at every margin the tee can reach: at 50° it carries 85 µV where the tee carries 347, in the same 400 kHz. The two keep the same band to within 1.3 per cent at equal margin, so the tee's noise buys no bandwidth. The conjecture that the answer would turn on which noise dominates does not survive either. With the amplifier's voltage noise cut tenfold, the tee is still 5.6 times worse.
The sensor an integrator does not see
A sensor's capacitance at an inverting stage's summing junction sits across a node that rises like an inductance, and makes a resonance: 10 nF lifts the node 2.50-fold at 39.8 kHz, the lift is the resonance's Q, and the loop's margin falls from 90° to 24.8°, and to 8.0° at 100 nF. The same capacitance at an integrator's node sits across a resistance — the shelf, 1/(2π·GBW·Cf) — and the shelf does not move, because the capacitance enters the open node and the loop gain together and cancels. With an ideal output the integrator's margin is 90.91° at every sensor from 1 pF to 100 nF. What it does see is its amplifier's output resistance: 50 Ω driving the feedback and sensor capacitors in series is a pole, worst when the two are equal, 58.3° at 10 nF, and it recovers on both sides.
The resistor that holds the bottom of the shelf
An integrator's summing junction sits on a flat shelf, 1/(2π·GBW·Cf), over its working band, and at direct current it is nearly its whole input resistor, because a capacitor closes no loop there. A resistor across the capacitor closes one. Below the feedback's own corner the node is then an inverting stage's, rising a decade per decade from Rp/A₀, and the rise meets the shelf exactly at that corner, 1/(2π·Rp·Cf), for any resistor and any amplifier — so the node never rises above its shelf at all. That holds for every resistor below 1/(2π·f₁·Cf), the one that puts the feedback's corner on the amplifier's own pole: 1.59 MΩ here. Above it the bottom climbs past the shelf. The same 1.59 MΩ is where a millivolt of offset becomes 1.58 V at the output, and the price below it is a flat gain of Rp/Rin and arctan(1/(2π·f·Rp·Cf)) of phase.
Half to the amplifier, half to the resistors
A feedback amplifier is supposed to hand its accuracy to the resistors, and at low frequency it does — 99.9 per cent of a change in the divider reaches the gain and 0.1 per cent of a change in the device. The two fractions are measured here by nudging each and solving again, and they add to one at every frequency, to five parts in a hundred thousand. At the loop's crossover each is exactly one half, whatever the margin: the gain's magnitude answers the amplifier and the resistors equally. As complex numbers both are 1/(2 sin(φ/2)) there, above one for any margin under sixty degrees, and around the crossover lies a band where the gain is more sensitive to both than it would be with no feedback at all.
The area that feedback only moves
A feedback amplifier divides its device's variation by the loop gain, sixty decibels of it at low frequency, and pays for it with a sensitivity peak near crossover. The payment is exact. Integrated over linear frequency, the logarithm of the sensitivity has as much area above zero as below — 6.74 kilohertz-nepers each side at 34.9° of margin, net zero to eight parts in a billion — at every margin and every gain, because the loop falls by more than one pole. Margin decides only the shape of the repayment: a 14-decibel spike at 11.7°, a one-decibel hump spread past half a megahertz at 80.4°. Only a loop that falls as a single pole keeps any of it, (π/2) times its crossover, and no amplifier is one.
The drift a tee multiplies
A feedback tee reaches a large transimpedance with small resistors, and on a photodiode its price has been counted in noise: at direct current its noise gain is its own factor, where a single resistor's is one. The same noise gain multiplies the amplifier's offset. Calibrated at 25 °C and read at −40, a 10 MΩ amplifier with 1 µV/K of offset drift is 6.56 pA wrong through one resistor and 65.1 pA through a tee of factor ten — ten times, exactly, while the input bias current's error is identical through both. So the tee's drift penalty is hidden wherever the bias current dominates, which for a field-effect input doubling every 10 K is the hot end, and fully exposed at the cold end. The worst error over −40 to 85 °C comes within a factor of two of the single resistor's only above 10 MΩ for a tee of ten, and above 100 MΩ for a tee of a hundred.
The phase a delay never stops adding
Put a pure delay in a feedback loop and Bode's sensitivity integral does not notice: with 10 µs in the three-pole amplifier's loop the logarithm of the sensitivity still has equal areas above and below zero, 7.14 kHz·Np each side. What changes is where they are. The delay keeps turning the loop's phase above crossover, so the sensitivity becomes a comb with a tooth every 100 kHz; the desensitisation shrinks from 6.74 to 6.48 kHz·Np, the main peak rises from 5.70 dB to 13.53 and overpays it by 7%, and the comb hands the excess back below zero. The margin reads the peak from below by about 1.4 dB at every delay. Past 16.9 µs the loop is unstable and the integral stops balancing — by exactly the growth rate of the pole pair that has crossed.
The band a sampled loop repays in
Close the three-pole amplifier's loop through a sampler and hold at 100 kHz and Bode's sensitivity integral still balances — but only over the band below 50 kHz, because that is all the band a sampled loop has. The whole debt, 6.60 kHz·Np, is repaid there; the continuous loop had repaid 88.6% of its own by the same frequency and spends decades above on the rest. Below a tenth of the sample rate the sampled loop is the continuous loop with half a sample of delay, 24.7° of margin against 24.6°. And the finite band turns the equality into a floor: hold the sensitivity 20 dB down over a third of the band and no loop can peak below 10 dB. This loop's floor is low and its margin sets its peak; the sample rate at which the peak is 3 dB above the continuous loop's is 18 times the crossover.
The gain added to buy a margin
An amplifier sold as stable only at gains of ten — 100 MHz of gain–bandwidth, its second pole at 20 MHz — has 35.0° of margin and 4.4 dB of peaking as a gain of −1, because that gain closes its loop against two. A 1.25 kΩ resistor from the summing junction to ground raises the noise gain to ten without touching the signal gain, which stays one to a part in ten thousand, and the margin becomes 65.6°: still 14.1 MHz of bandwidth, 2.19 times what a unity-stable part from the same die gives at its natural gain. The price is everything the amplifier contributes, multiplied by ten instead of two — 64.0 nV/√Hz at the output against 20.5 — and a capacitor in series with the resistor buys back the low-frequency half of it and none of the wideband total.
The input that costs every other input
A summing amplifier gives each of its inputs a gain of −1 and closes its loop against one more than the number of inputs, so every input added divides every channel's bandwidth and multiplies the amplifier's own noise — 6.43 MHz with one input, 1.17 MHz with eight, 603 kHz with sixteen, on a 10 MHz part. Above 5.4 inputs the amplifier's 5 nV/√Hz, multiplied by n + 1, outgrows the resistors' Johnson noise, which rises only as its square root. A muted channel whose source is grounded still costs: a sixteen-input mixer is 11.5 dB louder with two channels in use than one whose unused resistors are disconnected. A channel of gain 0.1 beside one of gain 10 is 13.7 dB noisier than alone. A tree of smaller summers doubles the bandwidth and does not make the sum any quieter.
One margin, and the gain under it
A phase margin of 45° is quoted as an overshoot of 23 per cent, and on a loop with plenty of gain below its crossover it is: three lags a hundredfold apart, closed at 45°, overshoot 23.6%. Bring the same three lags together and the loop reaches 45° at a loop gain of 2.83 instead of 141, and overshoots 41.0% — the same margin, 1.73 times the ringing. The closed-loop peak follows the overshoot where the margin does not: predicted from the peak the worst error over 27 loops is 3.1 points, from the margin 22.2. The gain margin moves with it, from 37.2 dB to 9.0.
The bandwidth the product still gets right
Gain times bandwidth is a constant for an amplifier with one pole, and real amplifiers have a second. Put it at r times the closed-loop bandwidth the product predicts and the half-power bandwidth becomes √r·g(√r/2) times GBW/G — 41.4 per cent wide at r = 2, within ten per cent only beyond r = 10 — so a follower round a 1 MHz part with its second pole at 2.5 MHz runs 40 per cent wider than the rule says. The noise bandwidth does not move at all. A second-order loop's noise bandwidth is set by one coefficient the second pole cannot touch, and it stays (π/2)·GBW/G at every r and every gain, to half a per cent on the netlist. A third pole is what breaks it.
Two wrong readings and one loop gain
A loop gain measured on a bench is measured at a wire, and a wire has an impedance on each side. Cut an amplifier's output with 100 Ω behind it and 160 nF ahead, inject a voltage in series, and the reading is the loop gain plus (1 + T)·Zs/Zl — 15.1° of margin where the loop has 8.9°, and a second unity crossing at 10.6 kHz that the loop does not have. Inject a current into the same wire and the error is (1 + T)·Zl/Zs: 19.8°, and 57 dB too much loop gain at low frequency. The two errors are reciprocal, so the readings combine exactly: 1/(1 + T) = 1/(1 + Tv) + 1/(1 + Ti) returns the loop gain at the controlled source's own input to a few parts in a billion, at every frequency and every load.
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.
The margin a delay spends
A phase margin can be made of a lag or of a delay, and the number is the same either way. Forty-five degrees from a lag overshoots 23.3 per cent, and forty-five degrees from a delay overshoots 28.7; at sixty degrees the sign reverses, 8.77 against 5.57, and the two cross near 54 degrees. The overshoot is the smaller difference. A two-pole loop's gain margin has no limit at all, and five per cent of its extra lag as delay brings that to 25.5 dB; with all of it delay the gain margin is 90°/(90° − margin), which is 6.0 dB at 45°, and nothing else is in the expression. Across twenty-one such loops the margin alone misses the overshoot by 13.1 points. The closed-loop peak, which already reads the whole band, misses by 1.2.