Generator

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.
One loop, two measurements of the same marginThe 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.0501001500200400600closed-loop output (volts) for a 1 V stepthe 100× the divider asks for35.2% overphase margin, measured two waysfrom the loop gain34.9°from the overshoot34.8°apart by 0.1° — the relation assumes two poles and this loop has threesolved, then checked — margin against overshootthe second-order relation is 0.1° out here

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 the second-order relation is 0.1° out here — 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 the second pole (hertz) 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 6 essays

which is the blast radius of changing it

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.

Feedback, and the margin

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

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

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.

Feedback, and the margin

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.

Feedback, and the margin

Every generator