Generator

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.
An inverting unity gain, and the 100 pF that only the loop can seecomputed 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.-200204060801001001k10k100k1M10M100Mfrequency (hertz)gain (decibels)the amplifier alonethe gain the loop closes againstthe gain that was designedcrossover 1.24 MHz, 14° leftsignal gain1.00× (0.0 dB)noise gain, low f2.01×capacitance at sj100 pFmargin with it14.4°margin without90.0°crossover1.24 MHz45° at9.00 pFsolved, then checked — two gains, one loop45° at 9.00 pF

Drawn above at its default parameters, which is almost never how an essay calls it. A placement states the numbers that essay is arguing about, so the figure a reader meets is about that argument rather than about the generator — 98% of the placements on this site pass one, and the phase that raised that number from 12% found eight captions describing a figure the page was not showing.

At those defaults the edge it states is 45° at 9.00 pF — the right-hand slot of the caption strip, which on this site is never used for anything else, and which is read back out of the drawing above rather than out of the code that wrote it. It belongs to Feedback, and the margin, which is to say a change to it is a change to lib/figures/feedback.js. It takes a slider on capacitance at the summing junction (picofarads) with 7 settings, and every one of them has passed the same assertions as the frame above — a figure whose circuit stops doing what its caption says at any setting stops the build.

Called by 9 essays

which is the blast radius of changing it

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.

Feedback, and the margin

The buffer that is not a buffer

An emitter follower is reached for when something has to be driven without being loaded: unity gain in, high impedance seen, low impedance presented. The last of those is a number with a range, and the range is narrow. At a kilohm of source the emitter presents 19.08 ohms at low frequency and 67 ohms at 29 megahertz, because the current gain that made it small is falling — and the peak is worst in the middle of the slider, so it cannot be avoided by making the source stiffer or softer.

Devices, and the amplitude they stop being linear at

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.

Feedback, and the margin

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.

Feedback, and the margin

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.

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.

Feedback, and the margin

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.

Feedback, and the margin

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.

Feedback, and the margin

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°.

Feedback, and the margin

Every generator