Feedback, and the margin

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.

Assumes: The gain the loop closes against · What is left at crossover

A photodiode produces a current, and a current is not a thing anybody can read. The standard way to turn it into a voltage is one resistor and one amplifier: the diode drives the inverting input, a feedback resistor carries the current, and the output is the current times that resistor. A megohm turns a microamp into a volt.

It is the simplest arrangement in this field and it is the one most likely to oscillate, and the reason is a component nobody chose. A photodiode has a junction capacitance, thirty picofarads for an ordinary small one and hundreds for a large one, and it is not a parasitic to be minimised — capacitance is proportional to junction area, and area is what the diode was bought for. The bigger the signal, the worse the stability.

A photodiode's own capacitance sets the bandwidth, as its -0.50 power. computed by solving, not by drawing. The bandwidth of a 1.0 MΩ transimpedance stage against the capacitance of the diode driving it, with the feedback capacitor at each point bisected to give exactly forty-five degrees of phase margin on the solved loop. The classical expression √(GBW/2π·rf·cd) is drawn over it: the right shape, and conservative by about a fifth at every capacitance. The bandwidth falls as the -0.497 power of the capacitance — a square-root law, so a diode of four times the area costs half the bandwidth rather than three quarters of it. At 30 pF the compensation is 0.598 pF against the expression's 0.725, and the bandwidth 295 kHz against 220.
Fig. 1 The bandwidth of a one-megohm stage against the capacitance of the diode driving it, with the compensation at each point bisected to give exactly forty-five degrees on the solved loop. The classical expression is drawn over the measurement.

The noise gain, which is where the field’s own machinery applies

The gain the loop closes against is not the gain the signal gets, and this field measured that two rungs back. Here they could hardly be more different.

The signal gain is the transimpedance: a current in, a voltage out, and the resistor decides it. The noise gain — the gain from the amplifier’s own input to its output — is set by the feedback fraction, which here is a divider between the feedback resistor and the input capacitance. At direct current the capacitance is an open circuit and the fraction is one; above 1/2πRf(Cd+Cf)1/2\pi R_f(C_d + C_f) the capacitance is taking the divider over and the fraction falls, so the noise gain rises, at twenty decibels a decade.

The amplifier’s own gain falls at twenty decibels a decade. A rising curve and a falling curve close at forty, and forty decibels a decade of closure is a phase margin of nothing at all.

That is the same argument this field makes about a capacitive load on the output, arriving at the other terminal, and it is why an arrangement with no gain in it in the ordinary sense — one resistor, unity feedback fraction at direct current — is unstable.

An inverting unity gain, and the 100 pF that only the loop can see. computed by solving, not by drawing. Two ten-kilohm resistors around a 10 MHz amplifier make a gain of 1.00, and a loop that closes against 2.01 — one plus the ratio, not the ratio. Adding 100 pF at the summing junction leaves the closed-loop gain at a kilohertz unchanged — 0.99998051 against 0.99997988, three parts in a million at the far end of the slider — and takes the phase margin from 90.0° to 14.4°, because the noise gain now rises a decade per decade and the loop closes at forty decibels per decade instead of twenty. Forty-five degrees is reached at 9.00 pF, bisected on the netlist. The capacitance is not part of the signal path and does not appear in any expression for the gain.
Fig. 2 The argument in its general form, from this field’s own essay: a capacitance at the summing junction raises the noise gain, the loop closes faster, and the margin goes.

The cure is a small capacitor across the feedback resistor. It puts a pole in the noise gain at 1/2πRfCf1/2\pi R_fC_f, flattening it above there, and if that pole is placed near the closure the two curves meet at twenty decibels a decade again.

The two expressions, and how conservative they are

The classical choice makes the noise-gain pole coincide with the closure and gives

Cf=Cd2πRfGBW,BW=GBW2πRfCdC_f = \sqrt{\frac{C_d}{2\pi R_f\,\mathrm{GBW}}}, \qquad \mathrm{BW} = \sqrt{\frac{\mathrm{GBW}}{2\pi R_f C_d}}

Both are drawn here against a measurement rather than used as definitions. At each diode capacitance the feedback capacitor is bisected on the solved loop until the phase margin is exactly 45°, and the bandwidth is bisected on the solved magnitude of the transimpedance itself.

diode measured CfC_f expression measured BW expression
5 pF 0.289 pF 0.357 594 kHz 446
30 0.598 0.725 295 220
100 1.064 1.280 168 124
300 1.832 2.196 98.0 72.5

The expression asks for more capacitance than 45° needs, by a factor between 0.81 and 0.83 at every point, and correspondingly promises less bandwidth than the stage has, by a factor of about 1.34.

That is worth more than either exact agreement or disagreement would be. A fixed factor across two and a half decades says the expression has the right shape and a conservative constant — it is placing the pole at the closure rather than at the margin, which is a slightly different requirement — so a designer using it gets a stage that works and leaves a third of the bandwidth on the table.

The square-root law itself holds exactly. Fitted over the whole sweep the bandwidth goes as the −0.50 power of the capacitance: a diode of four times the area costs half the bandwidth, not three quarters of it.

A photodiode's own capacitance sets the bandwidth, as its -0.50 power. computed by solving, not by drawing. The bandwidth of a 1.0 MΩ transimpedance stage against the capacitance of the diode driving it, with the feedback capacitor at each point bisected to give exactly forty-five degrees of phase margin on the solved loop. The classical expression √(GBW/2π·rf·cd) is drawn over it: the right shape, and conservative by about a fifth at every capacitance. The bandwidth falls as the -0.497 power of the capacitance — a square-root law, so a diode of four times the area costs half the bandwidth rather than three quarters of it. At 300 pF the compensation is 1.83 pF against the expression's 2.20, and the bandwidth 98.0 kHz against 72.5.
Fig. 3 The largest diode on the slider, three hundred picofarads, where the compensation is 1.83 pF and the bandwidth is 98 kHz. The measurement stays a fixed factor above the expression the whole way.
Loop gain of a three-pole amplifier closed for a gain of 100. Unity loop gain at 5.73 kHz, where 34.9° of phase remains before −180°. The phase reaches −180° at 89.6 kHz, where the loop gain is 46.1 dB below unity.
Fig. 4 What is being bisected, from this field’s first essay: the loop transmission, cut at the inverting input and injected, with the margin read at the frequency the magnitude passes one.

Uncompensated, and the shape of the failure

Leaving the feedback capacitor out is worth a measurement rather than a warning, because the failure is not oscillation and that is what makes it dangerous.

At a tenth of a picofarad — which is stray, not a component — the margin is 9.2° and the transimpedance peaks 15.9 dB above its direct-current value at 220 kHz. The stage does not oscillate. It works, its bandwidth measures 339 kHz, which is better than the compensated 295, and its step response rings for a dozen cycles.

A designer measuring the frequency response and reading off a −3 dB point gets a better number than the compensated stage gives. The defect is in a quantity nobody plots.

One loop, two measurements of the same margin. The loop gain crosses unity at 5.73 kHz with 34.9° of phase left. The closed-loop step overshoots by 35.2%, which the second-order relation says corresponds to 34.8°. They differ by 0.1°, and the difference is the third pole.
Fig. 5 What sixteen decibels of peaking is in the time domain, from this field’s own essay: the margin and the ringing, which are two readings of one number.

What a photodiode is, in a netlist

Everything above treats the diode as a current source with a capacitance across it, and it is worth saying where that model stops, because two of its boundaries are design quantities rather than fine print.

The capacitance depends on the reverse bias. A junction’s depletion width grows as the square root of the voltage across it, so its capacitance falls as the inverse square root — biasing a photodiode at five volts instead of zero roughly halves its capacitance and, by the square-root law above, buys about forty per cent more bandwidth for nothing but a supply. What it costs is dark current, which rises with bias and is a signal-like error rather than a noise one.

There is a shunt resistance across it too, of hundreds of megohms, and at zero bias it is what converts the amplifier’s own input offset voltage into an input current. It is left out here because a megohm of feedback against a hundred megohms of shunt is a per cent, and because including it would make the noise gain’s low-frequency end a divider rather than unity — which is a real effect and belongs to the essay about offsets rather than to this one.

And the current source is only a current source while the diode is reverse biased or at zero volts. The virtual earth is what keeps it there: an amplifier whose loop has given up — saturated, slewing, or oscillating — lets the diode’s own junction voltage rise, at which point it stops being a current source and starts being a diode. That is a boundary this collection is built to state and it has an amplitude: the photocurrent at which the summing node departs from zero by a thermal voltage.

Sixteen decibels that nothing plots

The uncompensated case is worth its own measurement rather than a warning, because of how it fails.

At a tenth of a picofarad of feedback capacitance — stray, not a component — the margin is 9.2° and the transimpedance peaks 15.9 dB above its direct-current value at 220 kHz. Nothing oscillates. The stage has a bandwidth of 339 kHz, which is higher than the compensated stage’s 295, and a signal-to-noise ratio that is worse for the same reason.

A designer who measures the frequency response and reads off the −3 dB point gets a better number from the broken circuit. The peak is at a frequency the specification does not mention, the ringing is in a step response nobody took, and the noise penalty is in an integral nobody computed. Three quantities have to be looked at before the defect is visible, and the one everybody looks at points the wrong way.

That is why the compensation here is bisected on the phase margin rather than chosen to maximise a bandwidth. Maximising the bandwidth of this arrangement is a procedure that converges on the broken circuit.

The noise, and the part that is thirty times quieter

Now the quantity that decides whether the arrangement is any good, and the answer that nobody guesses.

There are two noise sources. The feedback resistor has its own Johnson noise, 4kTRf\sqrt{4kTR_f}, which at a megohm is 126.6 nV/√Hz. The amplifier has its own input-referred voltage noise, 4 nV/√Hz for an ordinary part. The resistor is more than thirty times noisier.

Each is solved from the netlist separately — one unit source in the circuit at a time, the other turned off — and the transfer from it to the output is integrated over frequency. Neither is a bandwidth-times-density estimate.

diode from the amplifier from the resistor amplifier’s share total
5 pF 82.8 µV 114.7 µV 34% 141.4 µV
30 117.3 80.8 68% 142.4
100 155.5 60.9 87% 167.0
300 203.4 46.5 95% 208.7

At an ordinary diode the amplifier is two thirds of the noise power and at a large one it is nineteen twentieths — the part whose density is thirty times lower.

The reason is the noise gain again, and it is the same curve that caused the stability trouble. The amplifier’s own noise is multiplied by a factor that rises with frequency, so its contribution grows towards the top of the band and the total is dominated by the highest frequencies the stage passes. The resistor’s noise is not: it goes through the same low-pass the signal does, flat and then falling.

One curve decides both the stability and the noise, which is why a transimpedance stage is a single design problem rather than two, and why “use a quieter amplifier” and “use a smaller resistor” are advice that points in opposite directions.

The 4 nV/√Hz part is 68% of the noise and the 127 nV/√Hz resistor is the restcomputed by solving, not by drawing. The output noise of the same stage against diode capacitance, split into the amplifier's own voltage noise and the feedback resistor's Johnson noise, each solved from the netlist with one unit source in it and integrated over frequency. The resistor's density is 126.6 nV/√Hz against the amplifier's 4 — more than thirty times larger — and the amplifier is still 68 per cent of the noise power at 30 pF and 98 per cent at 1000. The reason is the noise gain: the amplifier's contribution is multiplied by a factor rising with frequency, and the resistor's is low-passed by the same feedback capacitor that makes the stage stable.10µ100µ1m101001kdiode capacitance (picofarads)output noise (volts rms, over the whole band)30 pFthe resistor, the amplifier, and the totalfeedback resistor1.00 MΩ…its own density126.6 nV/√Hzamplifier's density4 nV/√Hzdiode here30 pFfrom the amplifier117.3 µVfrom the resistor80.8 µVamplifier's share68%total142.4 µVsolved, then checked — two sources, one at a time68% of it is the quieter part
Fig. 6 The two contributions against diode capacitance, each solved with one unit source in the netlist and integrated over frequency. The resistor’s is falling and the amplifier’s is rising. Drag it through the diode.
The 4 nV/√Hz part is 87% of the noise and the 127 nV/√Hz resistor is the rest. computed by solving, not by drawing. The output noise of the same stage against diode capacitance, split into the amplifier's own voltage noise and the feedback resistor's Johnson noise, each solved from the netlist with one unit source in it and integrated over frequency. The resistor's density is 126.6 nV/√Hz against the amplifier's 4 — more than thirty times larger — and the amplifier is still 87 per cent of the noise power at 100 pF and 98 per cent at 1000. The reason is the noise gain: the amplifier's contribution is multiplied by a factor rising with frequency, and the resistor's is low-passed by the same feedback capacitor that makes the stage stable.
Fig. 7 A hundred picofarads of detector capacitance: 167.0 µV of total noise, of which 87% is the amplifier’s own voltage noise multiplied up by the noise gain. The part that is thirty times quieter is the feedback resistor — a large resistor is a large noise current and a small noise contribution here, because what dominates is a voltage noise the capacitance amplifies.

What the resistor buys, and what it costs

The feedback resistor is the one free parameter left, and every quantity here depends on it.

The signal is proportional to RfR_f. The resistor’s noise is proportional to Rf\sqrt{R_f}. So the signal-to-noise ratio against the resistor’s own noise improves as Rf\sqrt{R_f}, and a larger resistor is unambiguously better on that count — which is the standard argument for using the largest one the application allows.

Against the amplifier’s noise it does the opposite. A larger RfR_f moves the noise-gain zero down in frequency, so the rising region starts earlier and there is more of it inside the band. And the bandwidth falls as 1/Rf1/\sqrt{R_f} from the same expression that gives the compensation.

So the resistor trades signal-to-noise against bandwidth at a rate of Rf\sqrt{R_f} in one and 1/Rf1/\sqrt{R_f} in the other, which is the cleanest statement of what the arrangement is: the product of the transimpedance and the square of the bandwidth is roughly a constant of the amplifier and the diode, and everything a designer can choose moves along that curve rather than off it.

The same shape, three fields apart

This arrangement is the third place in the collection where a capacitance at an amplifier’s input decides something that gets attributed to the amplifier, and putting the three beside each other says what the pattern is.

In the semiconductor field, the frequency a device sets for itself draws a common-emitter stage’s two picofarads of base-collector capacitance into its input multiplied by one plus the gain, and the bandwidth that follows is nothing to do with the device’s own transition frequency. The Miller approximation predicts 643 kHz where the solved network gives 504 — twenty-two per cent optimistic, with no room in it for the second pole or for the right-half-plane zero the network also has. The cure is a cascode, and the device that never sees the swing prices it: the bandwidth really is fourteen times better, and it costs two volts of a five-volt supply.

In the instruments field, the corner the instrument has no part in puts a kilohm of source imbalance and ten picofarads at each input of a 95 dB instrumentation amplifier and finds the rejection falling twenty decibels a decade above 290 hertz, reaching 84 dB at a kilohertz on a part that is still doing 95. What converts common mode into differential is the difference of two time constants, the instrument’s own rejection is untouched and irrelevant, and the cure is a capacitor on the quiet input.

Here, the source’s capacitance and the feedback resistor set a noise gain that rises, and the cure is a pole in it — a capacitor across the feedback resistor, chosen to put that pole where the noise gain would otherwise have kept climbing, which is the one repair on this list that costs bandwidth directly rather than costing accuracy or headroom. The gain the loop closes against is where that quantity is isolated on the simplest possible circuit: nine picofarads at the summing junction of a unity-gain inverter — less than a scope probe — takes the phase margin from ninety degrees to forty-five, while the measured gain at a kilohertz has not moved by three parts in a million.

Three different symptoms — a bandwidth, a rejection, a margin — from one arrangement: a capacitance at a node whose impedance the designer was thinking of as something else. In each case the specification that gets blamed belongs to the amplifier and the quantity that decides the answer belongs to what is connected to it. And in each case the capacitance is small enough to be invisible on a schematic: two picofarads, ten picofarads, and a diode’s junction, none of which anyone draws.

The fourth member of the family is at the output rather than the input and is this field’s own: the load that gets inside the loop, where fifty ohms of output resistance and the load’s capacitance make a pole inside the loop, and forty-five degrees arrives at 905 picofarads — a metre of coaxial cable. The cures there — an isolation resistor, a second feedback path — have no analogue here, because a photodiode cannot be isolated from the summing junction by a resistor without the resistor’s own noise arriving in its place.

That asymmetry is worth one more sentence, because it is the reason this arrangement is harder than the other three rather than merely different. In all three of the others the offending capacitance is a parasitic: a device’s junction, a wiring stray, a probe. Something can be done about a parasitic, even if it is expensive. Here the capacitance is the specification — it is proportional to the diode’s area, and area is the sensitivity being bought — so the only repairs available are ones that accept it, which is why every design decision on this page is about the feedback network and none of them is about the source.

What is checked

Every point on the compensation sweep is asserted to be bisected to within half a degree of 45° on the solved loop, so the curve is a measurement of a stated condition rather than a plot of an expression. The classical expression is then asserted to be conservative and consistently so — between 0.6 and 0.95 of the measured capacitance, and varying by less than fifteen per cent across the sweep — which is two assertions where one would have been ambiguous: a wrong expression and a conservative one both disagree, and only the second disagrees by a constant factor.

The square-root law is fitted over the whole sweep rather than asserted at one point, and required to land between −0.42 and −0.58.

The noise argument carries the surprise as an assertion rather than as prose: the resistor’s density is asserted to be more than twenty times the amplifier’s, and the amplifier is asserted to be more than nine tenths of the noise power at the largest diode. That the dominant source changes hands inside the range is asserted too, so the claim is about the diode rather than about a particular pair of parts.

What is not modelled: the amplifier’s own current noise, which flows in the feedback resistor and is a third source this essay does not have — the floor a circuit has is where that generator is measured, at 0.6 pA/√Hz beside a 4 nV/√Hz voltage generator, with the ratio of the two setting a source resistance of 6.67 kΩ at which the sum is least; the diode’s shot noise, which is proportional to the photocurrent and is therefore signal-dependent, and which the floor a current sets prices against the resistor’s — the two are equal when the direct voltage across the thing carrying the current is 2kT/q2kT/q, 50.0 millivolts at 290 kelvin, whatever the resistance and whatever the current; the resistor’s own parasitic capacitance, which for a megohm is a fraction of a picofarad and is a real part of CfC_f — often most of it; and the input’s second capacitance, the amplifier’s own, which is in the netlist at three picofarads and is lumped with the diode’s rather than being a separate design quantity.

The 4 nV/√Hz part is 95% of the noise and the 127 nV/√Hz resistor is the rest. computed by solving, not by drawing. The output noise of the same stage against diode capacitance, split into the amplifier's own voltage noise and the feedback resistor's Johnson noise, each solved from the netlist with one unit source in it and integrated over frequency. The resistor's density is 126.6 nV/√Hz against the amplifier's 4 — more than thirty times larger — and the amplifier is still 95 per cent of the noise power at 300 pF and 98 per cent at 1000. The reason is the noise gain: the amplifier's contribution is multiplied by a factor rising with frequency, and the resistor's is low-passed by the same feedback capacitor that makes the stage stable.
Fig. 8 The largest diode, where the amplifier’s own four nanovolts per root hertz is ninety-five per cent of the noise and the megohm’s hundred and twenty-seven is five. The total is only 1.5 times the smallest diode’s, because the bandwidth has fallen with the capacitance too.

Part 1 on transimpedance

One argument about Transimpedance, 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 8 sharing most with it of 12.

What this makes readable

Essays that name this one as a prerequisite.

The objects named here

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

Design tradeoffJohnson noiseLoop gainModel rangeNoise gainParasiticsPhase marginTransimpedance