Circuits that do a job, and the range they do it over

The capacitor across the upper resistor

The rejection essay said a regulator reproduces its reference times its divider's four, and that a capacitor across the lower divider resistor brings that down to one at high frequency. Measured, the loop peaks the reference's gain to 5.68 near its crossover before any capacitor is added; a nanofarad across the lower resistor raises the peak to 11.2; and the capacitor that brings it down belongs across the upper resistor, where a nanofarad keeps the gain from ever exceeding four. The same capacitor is a lead pair in the loop: 836.5 picofarads takes the phase margin from 46.5 to 90.9 degrees, and ten nanofarads, past that optimum, still holds 66 while cutting the output ripple from 60.6 millivolts to 35.4.

Assumes: A source below a frequency · What is left at crossover

What gets through from the rail ended on the one input a regulator’s loop does not reject. The output is held at the reference times one plus the upper divider resistor over the lower, four here, so whatever the reference does the output does four times over, and no amount of loop gain changes that because it is the loop working rather than failing. The essay then named the standard repair: a capacitor across the divider, so that at high frequency the reference is passed at a gain of one instead of four.

It named the lower resistor. That is the wrong one, and measuring the three possibilities — no capacitor, a capacitor across the lower resistor, a capacitor across the upper — turns up a second thing the recommendation assumed: that four is the gain the reference sees above a kilohertz at all.

The reference's gain to the output: 1000 pF across the upper resistor lowers it, across the lower raises it. The output of the regulator per volt on its reference, against frequency. The divider sets four at low frequency. With no capacitor the gain peaks at 5.681 at 7.72 kHz and is 4.916 at 10 kHz. With 1000 pF across the lower divider resistor it peaks at 11.226 at 9.13 kHz and is 10.239 at 10 kHz. With 1000 pF across the upper resistor — a zero at 5.31 kHz, below the loop's 9.73 kHz crossover — it never exceeds 4.000 and is 1.913 at 10 kHz. The capacitor that takes the gain towards one at high frequency is the one across the upper resistor.
Fig. 1 The regulator’s output per volt on its reference, against frequency. With no capacitor the gain is four at low frequency, peaks at 5.681 at 7.72 kHz and is 4.916 at 10 kHz. With 1000 pF across the lower divider resistor it peaks at 11.226 at 9.13 kHz and is 10.239 at 10 kHz. With 1000 pF across the upper resistor it never exceeds 4.000 and is 1.913 at 10 kHz.

Four is the gain below a kilohertz

With no capacitor anywhere the reference’s gain is four to three decimals at low frequency and then rises, to 5.681 at 7.72 kilohertz, before falling away. The rise is the loop’s own. A closed loop reproduces its input times the ideal gain times T/(1 + T), and near the crossover, where the loop gain’s magnitude is close to one and its phase is 46.5 degrees from the edge, 1 + T is smaller than T and the ratio exceeds one. A reference is amplified by 1.42 times more than the divider says, at the frequency where the loop is least in control.

This is the same denominator the two essays below this one on the ladder found in other places. A source below a frequency found the output impedance peaking at 1.95 ohms at ten kilohertz, and the rejection essay found the rail passing at +5.79 decibels there. The reference’s gain peaks within an octave of both, because all three are something divided by 1 + T. So the reference’s noise near seven or eight kilohertz arrives at the output at 5.7 times its size, not four, and the repair has more than the divider to undo.

Which resistor the capacitor goes across

The fraction of the output fed back to the amplifier is the divider’s ratio, a quarter here, and the reference’s gain is its reciprocal. A capacitor in the divider changes that fraction at high frequency, and the two positions change it in opposite directions.

Across the upper resistor, from the output to the feedback node, the capacitor bypasses the resistance between them. At high frequency the feedback node follows the output directly, the fraction fed back rises towards one, and the reference’s gain falls towards one — the behaviour the rejection essay wanted. With a nanofarad there the gain never exceeds 4.000 and is down to 1.913 at ten kilohertz.

The capacitor has to be large enough to reach the band the peak is in. Its zero, where its reactance equals the upper resistor, is the frequency above which it takes over from that resistor, and a hundred picofarads puts the zero at 53 kilohertz — above the loop’s 9.73-kilohertz crossover, where the peak lives. At that value the capacitor lowers the gain at ten kilohertz a little, to 4.214, and leaves the peak standing at 5.15. A nanofarad’s zero is at 5.31 kilohertz, below the crossover, and the peak is gone. So the rule has a size in it as well as a position: across the upper resistor, with its zero below the crossover.

Across the lower resistor, from the feedback node to ground, the capacitor shorts the feedback node down. At high frequency the fraction fed back falls, so the gain the loop is trying to establish rises, and the reference is amplified more. With a nanofarad there the gain peaks at 11.226 and is 10.239 at ten kilohertz, more than twice what it was with no capacitor at all.

A divider with two ratios is the passive version of the same fact: a divider with capacitance in it has one ratio at low frequency, set by its resistors, and another at high frequency, set by its capacitors, and which way the ratio moves depends on which arm the capacitance is in. The regulator’s feedback divider is that divider, inside a loop that then amplifies by its reciprocal.

The reference's gain to the output: 10000 pF across the upper resistor lowers it, across the lower raises it. The output of the regulator per volt on its reference, against frequency. The divider sets four at low frequency. With no capacitor the gain peaks at 5.681 at 7.72 kHz and is 4.916 at 10 kHz. With 10000 pF across the lower divider resistor it peaks at 27.417 at 5.19 kHz and is 4.564 at 10 kHz. With 10000 pF across the upper resistor — a zero at 531 Hz, below the loop's 9.73 kHz crossover — it never exceeds 4.000 and is 1.163 at 10 kHz. The capacitor that takes the gain towards one at high frequency is the one across the upper resistor.
Fig. 2 The same three arrangements with 10 nF. Across the lower resistor the gain now peaks at 27.417 at 5.19 kHz and is 4.564 at 10 kHz; across the upper resistor it never exceeds 4.000 and is 1.163 at 10 kHz. With no capacitor it is still 5.681 at 7.72 kHz.

Ten times the capacitance makes the upper position better still — 1.163 at ten kilohertz, closer to one — and turns the lower position’s peak into 27.417 at 5.19 kilohertz. A regulator whose reference gain is designed to be four and which amplifies reference noise twenty-seven times at five kilohertz is a closed loop close to its own edge. The capacitor across the lower resistor removes feedback exactly in the band where the loop most needs it, and the phase margin of that arrangement is not drawn here; the peak is the measurement, and a peak of that height does not come from a comfortable margin.

The capacitor is in the loop, not only on the reference

The capacitor across the upper resistor was introduced for the reference, and it is also in the only path by which the output reaches the amplifier. So it changes the loop gain, and a change to the loop gain is a change to everything the regulator does.

The capacitor across the upper resistor: 90.9° of margin at 836.5 pF, and less ripple past it. The regulator's phase margin against a capacitor across the upper divider resistor, with the output ripple the 1000 µF reservoir leaves beside it. With no capacitor the margin is 46.47° at a crossover of 9.73 kHz, the output impedance at 10 kHz is 1.95 Ω, the worst rail rejection is 5.79 dB and the ripple 60.62 mV. The margin is greatest, 90.929°, at 836.5 pF — a zero at 6.34 kHz and a pole at 25.4 kHz around a crossover moved to 16.9 kHz — where the output impedance at 10 kHz is 828 mΩ, the worst rail rejection -1.50 dB and the ripple 52.33 mV. At 10 nF the margin has fallen back to 66.34° and the ripple is 35.40 mV.
Fig. 3 The phase margin against the capacitor across the upper divider resistor (upper), and the output ripple the 1000 µF reservoir leaves (lower). With no capacitor the margin is 46.47° at a crossover of 9.73 kHz and the ripple 60.62 mV. The margin is greatest, 90.929°, at 836.5 pF — a zero at 6.34 kHz and a pole at 25.4 kHz, with the crossover moved to 16.9 kHz — where the ripple is 52.33 mV. At 10 nF the margin has fallen back to 66.34° and the ripple is 35.40 mV.

In the loop the capacitor makes a pole-zero pair. The zero is where the capacitor’s reactance equals the upper resistor, 1/2πRC, and the pole is where it equals the two resistors in parallel, 1/2π(R₁‖R₂)C; their ratio is (R₁ + R₂)/R₂, which is the divider’s four. Between them the fraction fed back rises by four times and its phase leads, and a lead placed near the crossover is what a phase margin wants.

The reactances sit where the arithmetic puts them. At the zero, 6.34 kilohertz, 836.5 picofarads is thirty kilohms, the upper resistor; at the pole, 25.4 kilohertz, it is the 7.5 kilohms of the two resistors in parallel; and at the crossover the search settled on, 16.9 kilohertz — above the pair’s geometric mean of 12.7 — it is 11.3 kilohms.

At 836.5 picofarads the zero is at 6.34 kilohertz and the pole at 25.4, and the margin is at its greatest, 90.929 degrees, at a crossover that has moved from 9.73 kilohertz to 16.9. A pole and a zero four apart can lead by at most arcsin(3/5), 36.87 degrees, at their geometric mean, which is 12.7 kilohertz here; the margin rose by 44.46 degrees. The difference is not the lead pair’s alone, and the essay does not separate where the remaining seven and a half degrees come from. What is measured is the total, found by searching the capacitance for the largest margin rather than by placing the pair where the textbook would.

Past the optimum the margin falls back, and slowly. At ten nanofarads it is 66.34 degrees; the same loop solved at other values gives 79.46 degrees at two nanofarads, 74.30 at three, 63.94 at thirty and 63.09 at a hundred. From the optimum to a hundred nanofarads the margin never falls below 63 degrees, which is more than the regulator had with no capacitor at all.

The impedance the load sees

A five-volt regulator's output impedance, with 1.00 Ω of series resistance. 0.430 mΩ at direct current, 1.95 Ω at 10.0 kHz — a factor of 4.52e+3 — and it has already doubled by 4.81 Hz. The upper curve is the same circuit with its loop opened, and the ratio between them is the loop gain. A regulator is a voltage source below a frequency and the datasheet's milliohms are the value at the bottom of it.
Fig. 4 The regulator’s output impedance with no capacitor across the divider: 0.430 mΩ at direct current, 1.95 Ω at 10.0 kHz — 4,520 times its floor — and doubled by 4.81 Hz. The upper curve is the same circuit with its loop opened.

The output impedance is the open-loop impedance divided by 1 + T, and a source below a frequency found its peak at the crossover, where 1 + T is smallest. With no capacitor that peak is 1.95 ohms at ten kilohertz.

A five-volt regulator's output impedance, with 1.00 Ω of series resistance and 836.5 pF across the upper divider resistor. 0.430 mΩ at direct current, 841 mΩ at 562 kHz — a factor of 1.95e+3 — and it has already doubled by 4.81 Hz. The upper curve is the same circuit with its loop opened, and the ratio between them is the loop gain. A regulator is a voltage source below a frequency and the datasheet's milliohms are the value at the bottom of it.
Fig. 5 The same regulator with 836.5 pF across the upper divider resistor: 0.430 mΩ at direct current, doubled by 4.81 Hz as before, and 841 mΩ at its highest, at 562 kHz — 1,950 times its floor. The peak at the crossover is gone.

With the capacitor at its best value the peak at the crossover is gone. The impedance is 828 milliohms at ten kilohertz rather than 1.95 ohms, and its highest value, 841 milliohms, is now at 562 kilohertz, where the loop has nothing left to do with it and the output capacitor’s own series resistance decides. What does not change is the bottom of the curve: the floor is 0.430 milliohms and the impedance has doubled by 4.81 hertz with or without the capacitor, because the loop gain at low frequency is untouched by a capacitor whose reactance there is enormous.

Two requirements pulling one capacitor found the output capacitor’s series resistance caught between a stability requirement and a load-step requirement, and the window between them was set by the margin. A capacitor across the divider that adds forty degrees of margin moves the stability requirement, and so moves that window; how far is not measured here.

The rail

Rejection is not a property of the loop. The same regulator with the same loop gain and the same 90.0° of phase margin, drawn twice. With the amplifier's output referred to ground the rail reaches the output at -67.3 dB at the bottom and -1.50 dB at 518 kHz — where it is amplified. Referred to the rail instead, every point is 60.00 dB lower, which is 20 log(gm·ro) for the pass device and not a design choice.
Fig. 6 The rail rejection of the regulator with 1000 pF across the upper divider resistor, drawn for both of the rejection essay’s arrangements. The loop now has 90.0° of margin. The grounded arrangement lets the rail through at −67.3 dB at 1 Hz and at no more than −1.50 dB anywhere, at 518 kHz; the rail-referred arrangement is 60.00 dB lower at every frequency.

The rejection essay’s table had one entry nobody would have predicted: +5.79 decibels at ten kilohertz, the regulator amplifying the ripple it was placed to remove. With a nanofarad across the upper resistor that entry is gone. The worst rejection anywhere is −1.50 decibels, at 518 kilohertz, where the rail is arriving through the pass device and the loop has stopped mattering, and the peak near the crossover has been flattened with the output impedance’s.

The rejection essay’s other result survives the change exactly: the rail-referred arrangement is 60.00 decibels better at every frequency, because the improvement is the pass device’s intrinsic gain and the capacitor is in neither of the paths that ratio compares.

The comb

The ripple that arrives as a comb found the reservoir’s ripple reaching the output as 60.62 millivolts, its lines flattened by a rejection that worsens with frequency. A capacitor that removes the rejection’s peak near the crossover and improves it above a kilohertz acts on exactly the lines the one-line estimate left out.

The ripple 1000 µF leaves, through the regulator: 52.33 mV rather than 21.11 mV. One settled cycle of the reservoir's output — 1.331 V peak to peak across 1000 µF — split into 1000 Fourier lines, each passed through the solved regulator's rail-to-output response with 836.5 pF across the upper divider resistor, and summed. The output is 52.33 mV peak to peak. The ripple times the rejection at 100 Hz, -36.00 dB, gives 21.11 mV, which is 2.479 times too little: the rejection worsens at twenty decibels a decade, so each harmonic of the sawtooth arrives at nearly the size of the first. The 100 Hz line carries 24.0% of the output's mean square and the lines above 1 kHz 8.6%; the first three arrive at 7.730 mV at 100 Hz, 7.196 mV at 200 Hz, 6.379 mV at 300 Hz. The dashed curve is the 100 Hz line alone.
Fig. 7 The 1000 µF reservoir’s ripple through the regulator with 836.5 pF across the upper divider resistor. The output is 52.33 mV peak to peak, against 21.11 mV from the ripple times the rejection at 100 Hz — 2.479 times. The 100 Hz line carries 24.0% of the output and the lines above 1 kHz 8.6%.

At the value that maximises the margin the ripple falls from 60.62 millivolts to 52.33. The hundred-hertz line barely moves — 7.731 millivolts without the capacitor and 7.730 with it, because at a hundred hertz 836.5 picofarads is 1.90 megohms, sixty-three times the upper resistor — and what falls is the share above a kilohertz, from 10.4 per cent to 8.6.

The ripple 1000 µF leaves, through the regulator: 35.40 mV rather than 20.76 mV. One settled cycle of the reservoir's output — 1.331 V peak to peak across 1000 µF — split into 1000 Fourier lines, each passed through the solved regulator's rail-to-output response with 10000 pF across the upper divider resistor, and summed. The output is 35.40 mV peak to peak. The ripple times the rejection at 100 Hz, -36.14 dB, gives 20.76 mV, which is 1.705 times too little: the rejection worsens at twenty decibels a decade, so each harmonic of the sawtooth arrives at nearly the size of the first. The 100 Hz line carries 32.3% of the output's mean square and the lines above 1 kHz 2.0%; the first three arrive at 7.603 mV at 100 Hz, 6.756 mV at 200 Hz, 5.598 mV at 300 Hz. The dashed curve is the 100 Hz line alone.
Fig. 8 The same ripple with 10 nF across the upper divider resistor. The output is 35.40 mV peak to peak, against 20.76 mV from the one-line estimate at −36.14 dB — 1.705 times. The 100 Hz line carries 32.3% of the output and the lines above 1 kHz 2.0%; the first three arrive at 7.603, 6.756 and 5.598 mV.

Ten nanofarads takes the ripple to 35.40 millivolts, forty-two per cent less than with no capacitor, and the comb is drooping: its second line is 89 per cent of its first and its third 74, where without the capacitor they were 93 and 83. The lines above a kilohertz carry two per cent of what arrives. The one-line estimate is now short by 1.705 rather than 2.872, because the capacitor has made the regulator’s rejection less steep in exactly the band the comb occupies.

How much that is worth depends on the supply in front. The capacitor acts on the lines above a kilohertz, and the comb essay found those lines carrying 5.9 per cent of the regulated ripple behind 220 microfarads and 17.0 per cent behind 4700. So the same capacitor is worth more to a regulator behind a large reservoir than behind a small one — a comparison across reservoirs that this essay does not draw, and one the two figures together would make.

The amplifier’s own noise sees the same gain

The reference is not the only thing inside the loop that the divider’s reciprocal multiplies. The error amplifier’s own input-referred noise enters at the same place the reference does, between the amplifier’s two inputs, and it reaches the output by the same path — so every gain drawn above for the reference is also the gain the amplifier’s noise sees. The feedback field calls that quantity the noise gain and measures it in an operational amplifier, where the gain the loop closes against puts a capacitor across a feedback resistor to cancel a zero that the input’s own capacitance created.

The regulator’s case differs from that one in a way that makes it simpler to read. Nothing here has to be cancelled: the divider has no input capacitance to fight, and the capacitor across the upper resistor creates its lead pair from nothing. So what it buys is visible on its own terms — a lower gain for the reference and for the amplifier’s noise above a kilohertz, and a flatter closed loop — and what the lower position does is the same mechanism run backwards, raising the gain that every noise source at the amplifier’s input sees. A regulator built with the capacitor on the wrong side has a noisier output from its own amplifier as well as from its reference.

Two optima, and which one binds

The margin and the ripple want different capacitors. The margin is greatest at 836.5 picofarads; the ripple, and the reference’s gain at ten kilohertz with it, keep improving past that value — 1.913 at a nanofarad, 1.163 at ten.

On this regulator the trade is not a hard one, because the margin falls back slowly. At ten nanofarads it is 66.34 degrees, and it stays above 63 degrees out to a hundred. So the reading for this circuit is that the capacitor should be chosen for the reference’s noise and the output ripple, and the margin is comfortably met anywhere past the optimum. That is a statement about this regulator’s loop and not a rule: a loop with less margin to start from, or with another pole close to the crossover, would not fall back so gently.

The comparison with the lower position is the part worth carrying. The same capacitor, in a divider that looks the same on a schematic, gives a loop with ninety degrees of margin and a reference gain that never exceeds four, or a reference gain of twenty-seven at five kilohertz. The rejection essay called the choice of which rail a resistor returns to “two wires on a page, invisible in a block diagram”, and this is the same thing one component over.

What a single noise figure hides

A regulator’s output noise is usually quoted as one number: a voltage integrated over a band such as ten hertz to a hundred kilohertz. The gains above say what that number is an integral of. With no capacitor the reference’s noise and the amplifier’s are multiplied by four at low frequency and by up to 5.681 near eight kilohertz, so a band that includes the crossover is weighted towards it. With a nanofarad across the lower resistor the weight near nine kilohertz is 11.226, and an integrated figure would be dominated by a few kilohertz either side of the loop’s crossover. With the same capacitor across the upper resistor the weight at ten kilohertz is 1.913.

A single integrated figure can be the same number for a regulator whose noise is spread across the band and for one whose noise is concentrated at its crossover, and only the second is changed by which resistor one capacitor is soldered across. That is the rejection essay’s complaint about a rejection figure quoted at one frequency, arriving at the noise specification from the other direction: a number that is an integral hides the spectrum it was integrated from.

What the start-up was said to cost

The rejection essay attached a price to its recommendation: a slower start-up. Nothing measured here supports that for the capacitor across the upper resistor. A start-up is a large-signal event — a reference ramping, an amplifier slewing, a pass device leaving its limit — and the regulator here is its small-signal model, in which the capacitor raises the loop’s crossover from 9.73 kilohertz to 16.9 and so makes the loop faster rather than slower. Whether the capacitor slows a real start-up, by charging through the divider while the output rises, is a question this model cannot ask, and the essay leaves it open rather than repeat the claim.

What is not in the model

The reference here has no noise of its own: the figures give the gain its noise would see, not the noise. The bandwidth noise sees and the floor a circuit has are the tools for turning such a gain into a noise voltage, and the reference’s own spectrum is what they would need. The capacitor is ideal, with no series resistance and no tolerance, and the amplifier’s input has no capacitance of its own at the feedback node — which in a real part sits in parallel with the lower resistor and so does, in a small way, exactly what the rejection essay recommended.

Still open: the noise, the window, and the step

The reference’s noise, as a voltage. The gains measured here are what a reference’s noise is multiplied by, frequency by frequency. A reference with a flat density and a flicker corner, pushed through the three arrangements and integrated over a load’s bandwidth, would give an output noise voltage for each — and would say whether the peak near the crossover or the flat region below it dominates, which decides whether the capacitor is buying a factor or a decibel.

The series-resistance window with the capacitor in. The output capacitor’s series resistance had to be above 939 milliohms for 45 degrees of margin with no capacitor across the divider. With ninety degrees available, that floor should fall a long way, and re-solving the window with the capacitor present would say how much of the output capacitor’s specification the divider capacitor removes.

The load step. A higher crossover and a flattened impedance peak should shorten the recovery from a load step and reduce its overshoot, and two requirements pulling one capacitor already marches that step. Marching it again with the capacitor present would put a time on the improvement the impedance curve implies.

Part 5 on regulator

One argument about Regulator, and one of 6 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

The objects named here

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

Design tradeoffLead compensationLoop gainOutput impedancePhase marginPower supply rejectionSeries-pass regulatorVoltage divider