Filters, measured not tabulated

The second pole the design left out

A Sallen–Key section predistorted for its amplifier is exact on the one-pole model it was designed from, and every real amplifier has a second pole, usually between one and two gain–bandwidths for the margin a follower needs. Built on one whose second pole sits at its gain–bandwidth, a Q = 5 section designed exact at 100 times the corner comes out 0.463% high; at twice it, 0.231%. That residual falls as the square of the ratio, where the ±30% spread of gain–bandwidth leaves an error falling only as its first power — 1.64% at 100 times — so there is a ratio below which the second pole is the larger error: 43 times the corner for a second pole at the gain–bandwidth, 31 at twice it, 17 for a Q of 2. The residual grows as the 2.24 power of Q, is an offset across the spread rather than a slope, and is designed out like the first pole's: at 20 times the corner a design that knows the pole to ±30% leaves at most 2.71% where ignoring it leaves 6.87%.

Assumes: The Q the amplifier decides · The ideal amplifier, and where it stops being one

The Q the amplifier decides built a unity-gain Sallen–Key section on a real amplifier and found its Q high by an amount the design formula has no term for: a follower with a finite gain–bandwidth adds a pole, and the section’s pole pair moves. The Q designed for the amplifier then designed the error out. A Q = 5 section on an amplifier a hundred times its corner comes out 4.79 per cent high from the formula, and asking the formula for 4.771 instead makes the real circuit land on exactly 5.000 — on the amplifier it was designed for. What predistortion cannot remove is what differs between amplifiers: parts 30 per cent slow and fast read +1.64 and −0.97 per cent.

That design assumed the amplifier is what the model said: a gain, and one pole. Every real amplifier has a second pole, and for a unity-gain follower to be stable it sits not far above the gain–bandwidth — between one and two times it for the forty-five to sixty degrees of margin a data sheet usually promises. The earlier essay ended by asking how far above the design floor a second pole starts to matter, as a function of where it is, because that says how low in ratio any of the predistortion is believable. The answer is a crossing between two laws, and it lands in the range where predistortion is most worth doing.

The section, rebuilt with a second pole

The section is the earlier essays’: equal resistors, a capacitor ratio carrying the Q, a follower for the amplifier, designed at 1 kHz. The amplifier is now modelled with a second pole at a stated multiple of its gain–bandwidth, and the section’s poles are recovered from the netlist’s own determinant rather than read off a response. With the second pole removed, the netlist here is checked to be the one the predistortion was measured on, and the predistorted design is exact on it to 10−710^{-7}.

Predistorted for a one-pole amplifier, a Q = 5 section on one whose second pole sits at its gain–bandwidth is +0.463% high at 100 times the corner — and the ±30% spread is ±1.64%computed by solving, not by drawing, from the poles of the netlist. A unity-gain Sallen–Key section of Q = 5, predistorted so that it is exact on the one-pole amplifier it was designed for, built instead on amplifiers with a second pole at 1, 2, 4 and 10 times their gain–bandwidth, against the gain–bandwidth over the corner. Every second pole leaves the Q high, by a residual that falls as the −1.95 power of the ratio: +0.463% at 100× with it at 1·GBW, +0.231% at 100× with it at 2·GBW, +0.115% at 100× with it at 4·GBW, +0.0461% at 100× with it at 10·GBW. The worst error a ±30% spread of gain–bandwidth leaves on the same design (dashed) falls only as the −0.87 power. Below the ratio where the two cross the second pole is the larger error; above it the spread is, and modelling the second pole buys nothing the spread will not take back.10µ100µ1m10m100mamplifier's gain–bandwidth over the cornerQ error of the predistorted section (fraction)1020501002005001000second pole at 1·GBW+0.463% at 100×second pole at 2·GBW+0.231% at 100×second pole at 4·GBW+0.115% at 100×second pole at 10·GBW+0.0461% at 100×±30% spread, one pole±1.64% at 100×solved, then checked — poles of the netlista square law against a first
Fig. 1 A Q = 5 section predistorted to be exact on a one-pole amplifier, built on amplifiers with a second pole at 1, 2, 4 and 10 times their gain–bandwidth, against the gain–bandwidth over the corner: the residual falls as the −1.95 power of the ratio, 0.463% at 100× with the second pole at the gain–bandwidth. The error a ±30% spread leaves on the same design (dashed) falls only as the −0.87 power, 1.64% at 100×.

Every second pole leaves the Q high. With it at the gain–bandwidth, the section designed exact at 100 times the corner is 0.463 per cent high; at twice the gain–bandwidth, 0.231; at four times, 0.115; at ten, 0.046. The residual is in inverse proportion to where the second pole is, and it falls with the ratio as the −1.95-1.95 power — very nearly the square.

The dashed line is what the earlier essay left: the worst error a ±30 per cent spread of gain–bandwidth puts on the same predistorted design, 1.64 per cent at 100 times the corner. It falls only as the −0.87-0.87 power of the ratio. The slider on the figure at the head of the page moves the section’s Q: at Q = 2 the second pole at the gain–bandwidth leaves 0.069 per cent at 100× against a spread of 0.78; at Q = 10 it leaves 1.79 per cent against 2.45, and the two are already close.

Two laws, and the reason they differ

The spread’s error falls as the first power of the ratio because it is the first-order effect: the amplifier’s finite gain–bandwidth moves the section’s Q by an amount proportional to f0/GBWf_0/\mathrm{GBW}, the predistortion cancels that amount for one gain–bandwidth, and a part whose gain–bandwidth is a fraction off leaves the same fraction of it uncancelled. The second pole’s effect is second order: it is a further departure of the follower from an ideal one, and it enters through the product of the two small ratios, f0/GBWf_0/\mathrm{GBW} and f0/f2f_0/f_2.

The second pole's residual grows about as Q², and in proportion to f₀/GBW and to f₀/f₂: 48.2·(f₀/GBW)·(f₀/f₂) at Q = 5. computed by solving, not by drawing, from the poles of the netlist at 200 times the corner. The Q error a second pole leaves on a predistorted unity-gain section, multiplied by GBW/f₀ and by f₂/f₀, against the section's Q, for a second pole at once (solid) and twice (dashed) the gain–bandwidth. The two curves coincide to eight per cent, so the residual is proportional to f₀/f₂ as well as to f₀/GBW, and it rises about as the 2.24 power of Q: 1.0 at Q 1, 7.0 at Q 2, 16.9 at Q 3, 48.2 at Q 5, 123.6 at Q 8, 192.5 at Q 10. A follower's second pole is a small delay in its feedback, and a section of high Q is one whose two capacitors' currents nearly cancel, so a small delay disturbs it by more the higher its Q.
Fig. 2 The residual the second pole leaves, multiplied by GBW/f0\mathrm{GBW}/f_0 and by f2/f0f_2/f_0, against the section’s Q at 200 times the corner, for a second pole at once and twice the gain–bandwidth: the two coincide to eight per cent, and the product rises as the 2.24 power of Q, 48.2 at Q = 5.

Multiplied by both ratios inverted, the residual becomes a function of the section’s Q alone, and the two placements of the second pole give the same curve to eight per cent: 1.0 at Q = 1, 7.0 at 2, 48.2 at 5, 192.5 at 10, rising as the 2.24 power of Q. So at Q = 5 the residual is about 48 (f0/GBW)(f0/f2)48\,(f_0/\mathrm{GBW})(f_0/f_2), which at 100 times the corner with the second pole at the gain–bandwidth is 48×10−448 \times 10^{-4}, the 0.48 per cent drawn.

A second pole is a small extra delay in the follower’s feedback, and a high-Q section is one in which the currents in its two capacitors nearly cancel at resonance; the nearer the cancellation, the more a small delay disturbs it. That is the same reason the first-pole error grew with Q2Q^2 in the Q the amplifier decides, and the second pole inherits it.

Where the second pole stops mattering

Two errors falling at different rates cross, and below the crossing the faster-falling one is the larger. Bisected on the netlist, the ratio at which the second pole’s residual equals the spread’s worst error is a definite number for each Q and each place of the second pole.

For Q = 5 the second pole outweighs the ±30% spread below 43 times the corner when it sits at the gain–bandwidth, and below 31 when it sits at twice it. computed by solving, not by drawing, bisected on the poles of the netlist. The gain–bandwidth over the corner at which the Q error a second pole leaves on a predistorted section equals the worst error a ±30% spread of gain–bandwidth leaves, against where the second pole is, for sections of Q 2, 5 and 10. Below each line the second pole is the larger error and is worth designing for; above it the spread dominates. Q 5: 53.4× with it at 0.7·GBW, 43.4× with it at 1·GBW, 36.5× with it at 1.4·GBW, 31.2× with it at 2·GBW, 26.9× with it at 3·GBW, 24.7× with it at 4·GBW. Q 2: 20.8×, 17.0×, 14.4×, 12.3×, 10.7×, 9.8×, 8.4×. The crossing falls as the second pole moves out, because the residual is proportional to f₀/f₂ and the spread's error is not; it falls more slowly than one over the pole's place, because near the design floor the spread's error rises steeply too.
Fig. 3 The gain–bandwidth over the corner below which a second pole’s residual on a predistorted section is larger than the ±30% spread’s error, against where the second pole is, for Q of 2, 5 and 10. For Q = 5: 53.4× with it at 0.7·GBW, 43.4× at GBW, 31.2× at twice and 24.7× at four times.

For a Q = 5 section the second pole is the larger error below 43 times the corner when it sits at the gain–bandwidth, below 31 when it sits at twice it, and below 25 at four times. For Q = 2 the crossings are lower — 17 at the gain–bandwidth, 12.3 at twice — and for Q = 10 higher. The crossing falls as the second pole moves out, but more slowly than one over its place, because near the design floor the spread’s error is rising steeply as well.

Those ratios matter because of where predistortion is useful. Its whole value is at low ratios: the Q designed for the amplifier found that one per cent of Q across a ±30 per cent spread needs 725 times the corner from the formula and 196 designed for the part, and that the design itself runs out at 7.2 times. Between 7.2 and about 40 times the corner — the range where a designer short of amplifier bandwidth reaches for predistortion — the second pole the design left out is a larger error than the spread the design was worried about.

The corner hardly moves

The second pole’s effect on the section’s corner frequency is far smaller than its effect on the Q, and the asymmetry is the same one the first pole showed. At 100 times the corner with the second pole at the gain–bandwidth, the predistorted section’s corner is 0.009 per cent high where its Q is 0.46 per cent high; at 20 times, 0.10 per cent against nearly 10. A pole pair’s frequency is the geometric mean of the network’s time constants, which a small extra delay barely changes; its Q is a ratio of a sum to a difference of currents, which a small delay changes by the size of the difference. A section whose corner looks right on a network analyser can still be several per cent off in Q, and the measurement that catches a second-pole error is the height of the peak, not its position.

That is also why the residual is an error a filter’s passband shows. In a cascade the sections’ corners set where the band edge falls and their Qs set the ripple within it; a set of sections all a little high in Q, with corners where they were put, produces a passband whose ripple has grown and whose edge has not moved. The ripple that is a temperature traced the same signature to the amplifiers’ drift with temperature, which moves the first pole; a second pole fixed at a multiple of the gain–bandwidth drifts with it, so its residual changes with temperature in proportion to the square of the gain–bandwidth’s own change.

A delay in the feedback

A second pole well above the gain–bandwidth is, over the band the section works in, nearly a pure delay of 1/(2πf2)1/(2\pi f_2) in the follower. The margin a delay spends found that a loop’s overshoot depends on whether its margin is made of a lag or of a delay; inside a Sallen–Key section the follower’s loop closes at its gain–bandwidth, far above the section’s corner, and the delay’s effect reaches the section only through what the follower’s output does at the section’s own frequency, which is to arrive a little late. A late follower output, fed back to the first capacitor, is a small negative resistance in the section, and a negative resistance in a resonator raises its Q. The residual’s sign is therefore not an accident of the numbers: any delay in the follower makes the section’s Q high.

An offset, not a slope

The second pole’s residual and the spread’s error are different kinds of error, and that decides what can be done about the first.

At 100 times the corner a second pole at the gain–bandwidth lifts the whole spread by +0.463%: an offset, where the spread is a slope. computed by solving, not by drawing, from the poles of the netlist. The Q error of a Q = 5 section predistorted for a one-pole amplifier at 100 times the corner, against the actual part's gain–bandwidth over the typical, built on that one-pole amplifier (dashed), and on amplifiers with a second pole at twice and at once the gain–bandwidth. one pole, as designed: +1.64% at 0.7, 0 at 1, −0.966% at 1.3; second pole at 2·GBW: +2.1% at 0.7, +0.231% at 1, −0.828% at 1.3; second pole at GBW: +2.57% at 0.7, +0.463% at 1, −0.689% at 1.3. The second pole lifts the line without much tilting it: the spread is what differs between parts, and the second pole is what they have in common — which is why it, too, can be designed out.
Fig. 4 The Q error of a Q = 5 section predistorted for a one-pole amplifier at 100 times the corner, against the actual part’s gain–bandwidth over the typical, built on the one-pole amplifier it was designed for, and on amplifiers with a second pole at twice and at once the gain–bandwidth: the line moves up by 0.231% and 0.463% and its slope changes by a quarter at most.

Across the ±30 per cent spread, at 100 times the corner, the one-pole design reads +1.64, 0 and −0.97 per cent at 0.7, 1 and 1.3 of the typical gain–bandwidth. With a second pole at twice the gain–bandwidth it reads +2.10, +0.23 and −0.83; at the gain–bandwidth, +2.57, +0.46 and −0.69. The second pole lifts the line by its residual and changes its slope by a quarter at most. The spread is what differs between parts; the second pole, at a fixed multiple of each part’s own gain–bandwidth, is what they have in common — and an error that parts have in common is exactly what predistortion removes.

Designing for the second pole too

So the second pole can be designed out the way the first was: iterate the section’s capacitance ratio and resistors on a netlist that includes it, until the real circuit lands on the Q and corner wanted. What that needs is the second pole’s place, which a data sheet gives only roughly — usually as a phase margin at unity gain, from which a second pole can be inferred to tens of per cent.

At 20 times the corner, designing for a second pole at 1.4·GBW leaves at most 2.71% for a ±30% error in its place, where ignoring it leaves +6.87%. computed by solving, not by drawing, from the poles of the netlist. A Q = 5 section at 20 times the corner on an amplifier whose second pole is nominally at 1.4 times its gain–bandwidth — the place for about fifty-five degrees of margin as a follower — against the second pole's actual place over the nominal. Predistorted for the one-pole model (dashed): +10.1% with the pole 30% low, +6.87% at nominal, +5.2% 30% high. Predistorted for the two-pole model (solid): exact at nominal, +2.71% and −1.4% at the ends. For comparison a ±30% spread of gain–bandwidth leaves ±1.28% at this ratio. Designing for the second pole is worth doing where it is the larger error, and a rough knowledge of it captures most of the gain.
Fig. 5 A Q = 5 section at 20 times the corner on an amplifier whose second pole is nominally at 1.4 times its gain–bandwidth, against the second pole’s actual place: predistorted for one pole it is 10.1%, 6.87% and 5.2% high with the pole 30% low, at nominal and 30% high; predistorted for two, exact at nominal and +2.71% and −1.4% at the ends.

At 20 times the corner, with the second pole nominally at 1.4 times the gain–bandwidth — the place for about fifty-five degrees of margin as a follower — ignoring it leaves the section 6.87 per cent high at nominal and 10.1 per cent high if the pole is 30 per cent lower than expected. Designing for it makes the section exact at nominal and leaves at most 2.71 per cent across a ±30 per cent error in where the pole actually is. At this ratio the gain–bandwidth spread itself leaves 1.28 per cent, so a rough knowledge of the second pole recovers most of what ignoring it cost, and what remains is about the size of the other uncertainties in the design.

A low-ratio design, worked

A fourth-order filter at 20 kHz on an amplifier of 400 kHz gain–bandwidth runs each section at 20 times its corner, which is where a low-power or low-cost amplifier puts many sensor filters. A Q = 5 section there, predistorted for one pole on an amplifier whose follower margin is fifty-five degrees, comes out 6.87 per cent high — every unit, in the same direction — against the 1.28 per cent that a ±30 per cent spread of gain–bandwidth leaves on the same design. The designer who predistorted for the first pole has, at this ratio, a section whose largest remaining error by a factor of five is the second pole.

At 50 times the corner the same section with its second pole at the gain–bandwidth carries 1.74 per cent from it against 2.24 from the spread, just above the crossing; at 200 times it carries 0.12 per cent against 0.98, and the second pole is not worth modelling. The rule that falls out is short: predistort for the first pole wherever predistortion is worth doing, and for the second pole too below about forty times the corner at Q = 5, or twenty at Q = 2.

Why the margin is the number to ask for

The second pole’s place is usually not printed, but a follower’s phase margin is, and the two are tied. A follower’s loop gain is the amplifier’s open-loop gain, so its margin at unity gain is ninety degrees less the second pole’s lag at the gain–bandwidth, arctan⁡(GBW/f2)\arctan(\mathrm{GBW}/f_2): forty-five degrees puts the second pole at the gain–bandwidth, sixty at 1.7 times it, seventy-five at 3.7 times. A data sheet’s margin is therefore a direct statement of f2/GBWf_2/\mathrm{GBW}, which is what the residual’s law needs.

That makes the residual a property of a datum the designer already reads, and gives the section’s Q error a sign and a size before anything is built: 48 (f0/GBW)2 tan⁡(90°−ϕm)48\,(f_0/\mathrm{GBW})^2\,\tan(90° - \phi_m) for Q = 5, high. Where the Q comes from found the gain stage’s Q supplied by an amplifier’s closed-loop gain; for the follower it is the capacitor ratio, and the amplifier’s two poles are what disturb it.

What a designer should take

Count the second pole as an offset that every part shares. It leaves a predistorted section’s Q high by about 48 (f0/GBW)(f0/f2)48\,(f_0/\mathrm{GBW})(f_0/f_2) at Q = 5, rising about as Q2.2Q^{2.2}, and it moves the whole spread up without tilting it.

Compare it with the spread before modelling it. Above about forty times the corner at Q = 5 the spread of gain–bandwidth is the larger error and the second pole is not worth the effort; below it, the second pole is the larger error and can be designed out with a rough estimate of its place, inferred from the follower’s phase margin.

And remember that the predistortion is only as good as the model it iterates on. The tolerance that is not on any part is the general version of that statement: a design error that every unit shares does not appear in a tolerance analysis that varies only the parts.

How the sections were solved

Each section is a unity-gain Sallen–Key low-pass with equal resistors and a capacitor ratio of 4Q24Q^2, designed at 1 kHz, built on an amplifier modelled with an open-loop gain of 10510^5, a stated gain–bandwidth, fifty ohms of output resistance and, where stated, a second pole at a multiple of the gain–bandwidth. The pole pair nearest the design frequency is found from the netlist’s natural frequencies. Predistortion is a fixed-point iteration on the design Q and corner, forty steps, on whichever amplifier model is named; with no second pole the section is checked to match the earlier figures’ builder. The spread’s error is the worse of the two ends of a ±30 per cent spread of gain–bandwidth with the second pole at the same multiple; crossings are bisected on the netlist. Slopes are least-squares fits of logarithms.

What it leaves out

More poles. A real amplifier has a third pole and zeros, and a follower’s response near its gain–bandwidth is not exactly two poles. The second-pole model is the leading correction; the next is smaller again by another ratio and would matter only near the design floor.

The amplifier’s output impedance against the capacitor. The follower drives the section’s first capacitor through its output resistance, and with a second pole that output impedance rises with frequency. At high Q that is a second way the amplifier reaches into the section, folded into the netlist here but not separated from the pole.

The gain stage’s form. Everything here is the follower section. A section that takes its Q from an amplifier’s closed-loop gain has a different dependence on both poles, and the earlier essay’s comparison of the two forms after predistortion has not been repeated with a second pole in it.

Still open: the gain-stage form, the whole filter, and the trim that measures the part

The gain stage with two poles. A section whose Q comes from a closed-loop gain runs its amplifier at a noise gain above one, which moves the second pole’s effect by that gain; whether predistortion with a second pole favours it or the follower, once both common errors are designed out, is the comparison made at Q = 3.08 in the earlier essay with one more pole in it.

A whole filter. A fifth-order Chebyshev’s sections have different Qs and so different second-pole residuals, all high. Whether the passband ripple they produce together is a tilt, a narrowing or a ripple of its own, and whether predistorting only the highest-Q section recovers most of it, is the cascade version of this measurement.

A trim that measures the part. A section trimmed in production against its own response removes both the spread and the second pole for that unit at that temperature. Whether trimming the highest-Q section’s corner alone — a single resistor — recovers most of the filter’s accuracy is a question about which section’s error dominates the passband, and it has a simple answer on the same netlist.

Part 5 on q enhancement

One argument about Q enhancement, and one of 5 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 tradeoffGain–bandwidth productModel rangePole pairQuality factorRealisationSallen-key