Filters, measured not tabulated

The same filter a thousand times larger

Multiply every resistance by a thousand and divide every capacitance by a thousand and the response does not change — not approximately, but to a part in ten to the fifteenth, which is the last bits of a double. So a designer has a free parameter that the design says nothing about, and what decides it is the two quantities that refuse to scale: fifty ohms of amplifier output resistance at one end and two picofarads of stray at the other. Between them the realisation survives over three decades of impedance level and nowhere else.

Assumes: Three families, one corner · The resistor that is only a resistor

A filter’s response is a ratio of impedances. Multiply every impedance in a network by the same factor and every ratio is unchanged, so the response is unchanged.

Resistances scale by multiplying them; capacitances scale by dividing them, since a capacitor’s impedance is 1/sC1/sC. Do both — every resistor times kk, every capacitor divided by kk — and the transfer function is identical.

Identical is a strong word and this collection tries not to use it loosely, so: over six decades of scaling and every frequency in the passband, the solved magnitudes of the same design agree to 101510^{-15} of each other. That is the last bits of a double, and it is what “identical” means here.

Which leaves a designer holding a parameter that the design has no opinion about at all.

One Sallen-Key design at 10 kΩ, and the band of impedance levels it survivescomputed by solving, not by drawing. A 10.0 kHz unity-gain Sallen-Key section realised at seven impedance levels three decades apart, with every resistance multiplied and every capacitance divided by the same factor. The design is exactly invariant: the solved magnitudes agree to 1.0e-15 of each other across all seven and every frequency in the passband, which is the last bits of a double rather than a good approximation. The realisation is not, because two of its quantities do not scale — 50 Ω of amplifier output resistance and 2 pF of stray capacitance to everywhere — and they bind at opposite ends. Inside 0.1 dB the band runs 31.6 Ω to 31.6 kΩ, with the least departure of 0.0133 dB at 1000 Ω; at this setting it is 0.036 dB at 20.0 kHz. The consideration that does not appear on either axis is noise: the resistors' density goes as √R, so across the six decades drawn the noise moves by 1000 times and points at the low end of the band.-30-20-100gain (decibels)the design, and the realisation of it at this level1m10m100m1101001101001k10k100k1M10M100Mimpedance level — the resistors' value (ohms)worst departure across the band (decibels)0.1 dBimpedance level10 kΩscaled from 10 kΩ byC₁, C₂2.25 nF, 1.13 nFworst departure0.0362 dB…at20.0 kHzinside 0.1 dB from31.6 Ω…to31.6 kΩdesign invariance1.0e-15resistor noise here1.75 µVsolved, then checked — one design at seven impedance levelsinside 0.1 dB from 31.6 Ω to 31.6 kΩ
Fig. 1 One unity-gain Sallen-Key section at ten kilohertz, realised at seven impedance levels three decades apart on either side. The upper panel is the design’s response and the realisation of it at the current level; the lower panel is how far apart those two are, against impedance level, with the tenth-of-a-decibel window marked at each end.

The two quantities that do not scale

Everything in the design scales. Nothing in the realisation does.

The amplifier has an output resistance. Fifty ohms, roughly, and it is fifty ohms whether the network around it is made of ten-ohm resistors or ten-megohm ones. At the small end of the range it is a substantial fraction of the network it is driving, and the section’s feedback has to work around it.

The board has a capacitance to everywhere. A couple of picofarads per node, from the pad, the track and whatever is underneath. At the large end of the range it is a substantial fraction of the design’s own capacitors — at ten megohms the design capacitors are 2.25 pF and 1.13 pF, so two picofarads of stray is not a perturbation of them, it is comparable to them.

Those two bind at opposite ends, which is what makes the answer a band rather than a direction. The same shape has appeared in this collection before: a switch is a switch only between 49.5 Ω and 1.01 MΩ, bounded below by its on-resistance and above by its off-leakage, and the reason is the same one — one real number cannot be small compared with one fixed quantity and large compared with another at the same time.

Where a switch is a switch: a band, and the 6.43 MHz at which it closes. computed by solving, not by drawing. A switch of 0.5 Ω closed, 100 MΩ open and 5 pF across it is within 1.0% of being ideal only for loads between 49.5 Ω and 1.01 MΩ — 4.31 decades, and both edges are the same part. The upper edge is a frequency as well as a resistance, because the off-capacitance shunts the open switch: it falls a decade per decade above 318 Hz and meets the lower edge at 6.43 MHz, where the band closes and no load at all will do. Checked by scanning every load at 1.3 times that frequency and finding the best possible error to be 1.17%.
Fig. 2 The same argument in the limits field, where a model with two ideal limits turns out to have a band rather than an edge. A switch’s window and a filter’s window are the same statement about two fixed quantities bounding one free one.

The band, measured

Sweeping the impedance level and measuring the worst departure across the passband and the corner:

resistors capacitors worst departure resistor noise
10 Ω 2.25 µF, 1.13 µF 0.183 dB 0.055 µV
100 Ω 225 nF, 113 nF 0.027 dB 0.175 µV
1 kΩ 22.5 nF, 11.3 nF 0.013 dB 0.554 µV
10 kΩ 2.25 nF, 1.13 nF 0.036 dB 1.75 µV
100 kΩ 225 pF, 113 pF 0.282 dB 5.54 µV
1 MΩ 22.5 pF, 11.3 pF 2.503 dB 17.5 µV
10 MΩ 2.25 pF, 1.13 pF 14.749 dB 55.4 µV

Inside a tenth of a decibel the band runs from 31.6 Ω to 31.6 kΩ — three decades, and symmetric about a kilohm to the precision the sweep resolves, which is a coincidence of the two parasitics’ sizes rather than a law.

The best point is a kilohm, at 0.013 dB, and it is in the interior. That is the second time in this phase that a boundary has turned out to have an interior optimum, and it means the same thing here as it did there: the failure cannot be avoided by pushing the parameter in either direction.

The comparison is made across the passband and the corner rather than into the stopband, deliberately. Reading the deviation eighty decibels down measures the amplifier’s own residual gain — seventy decibels of “error” in a place nobody designs — which is a true statement about somewhere that does not matter, and it would have put the low end of the band in the wrong place.

One Sallen-Key design at 10 Ω, and the band of impedance levels it survives. computed by solving, not by drawing. A 10.0 kHz unity-gain Sallen-Key section realised at seven impedance levels three decades apart, with every resistance multiplied and every capacitance divided by the same factor. The design is exactly invariant: the solved magnitudes agree to 1.0e-15 of each other across all seven and every frequency in the passband, which is the last bits of a double rather than a good approximation. The realisation is not, because two of its quantities do not scale — 50 Ω of amplifier output resistance and 2 pF of stray capacitance to everywhere — and they bind at opposite ends. Inside 0.1 dB the band runs 31.6 Ω to 31.6 kΩ, with the least departure of 0.0133 dB at 1000 Ω; at this setting it is 0.183 dB at 20.0 kHz. The consideration that does not appear on either axis is noise: the resistors' density goes as √R, so across the six decades drawn the noise moves by 1000 times and points at the low end of the band.
Fig. 3 Ten-ohm resistors and microfarad capacitors, where the amplifier’s fifty ohms is five times the network it is driving. The response is 0.18 dB out — small, but it is the wrong end of the curve turning up, and everything below this is worse.
One Sallen-Key design at 1 MΩ, and the band of impedance levels it survives. computed by solving, not by drawing. A 10.0 kHz unity-gain Sallen-Key section realised at seven impedance levels three decades apart, with every resistance multiplied and every capacitance divided by the same factor. The design is exactly invariant: the solved magnitudes agree to 1.0e-15 of each other across all seven and every frequency in the passband, which is the last bits of a double rather than a good approximation. The realisation is not, because two of its quantities do not scale — 50 Ω of amplifier output resistance and 2 pF of stray capacitance to everywhere — and they bind at opposite ends. Inside 0.1 dB the band runs 31.6 Ω to 31.6 kΩ, with the least departure of 0.0133 dB at 1000 Ω; at this setting it is 2.503 dB at 15.3 kHz. The consideration that does not appear on either axis is noise: the resistors' density goes as √R, so across the six decades drawn the noise moves by 1000 times and points at the low end of the band.
Fig. 4 And megohm resistors with twenty-two picofarad capacitors, where two picofarads of stray is nine per cent of the design’s own. Two and a half decibels, and the shape has changed rather than the level.

The consideration that is not on either axis

There is a third quantity, and it points the opposite way from the tidy answer.

A resistor’s noise density is 4kTR\sqrt{4kTR}, so scaling the impedance level up by a factor scales the noise by its square root. Across the six decades drawn that is a factor of a thousand, from 55 nV to 55 µV in the section’s own noise bandwidth.

So the three considerations do not agree:

  • the amplifier wants the impedance high, so that it is not driving a load comparable to its own output resistance;
  • the strays want it low, so that two picofarads is negligible;
  • the noise wants it low, and keeps wanting it lower with no bottom, since the density falls all the way down.

The usual instinct — keep the capacitors small, they are the expensive part — is the one that loses on two of the three. Small capacitors mean a high impedance level, which means the strays matter and the noise is large. A kilohm-scale design has 22 nF capacitors, which are neither small nor expensive, and it is at the bottom of the deviation curve and 30 times quieter than the megohm version.

The floor an amplifier adds, against the source it is given. computed by solving, not by drawing. A part with 4.00 nV/√Hz of voltage noise and 0.60 pA/√Hz of current noise is quietest into 6.67 kΩ, where its noise figure is 1.138 dB. That resistance is the ratio of the two generators and the floor there depends only on their product. Matching the same part for maximum power into its own 1 MΩ input instead — a resistance 150 times larger — costs 12.57 dB.
Fig. 5 The other half of the noise argument, from the noise field. An amplifier’s own voltage and current noise make an optimum source resistance, and it is 6.67 kΩ for the part drawn there — so the noise consideration is not simply “as low as possible” once the amplifier is included, and the two optima are within a decade of each other.

Why the invariance is exact and not approximate

It is worth being precise about what kind of statement the invariance is, because “the response is unchanged” gets said about several things that are only nearly true.

Every element’s contribution to the nodal matrix is an admittance. Scaling every resistance by kk and every capacitance by 1/k1/k multiplies every admittance in the matrix by exactly 1/k1/k, at every frequency, with no approximation anywhere — a capacitor’s admittance sCsC and a resistor’s 1/R1/R pick up the same factor. So the matrix is 1/k1/k times what it was.

A transfer function is a ratio of two determinants of that matrix with one column replaced, and both determinants pick up knk^{-n} for the same nn. The factor cancels identically.

Which is why the measured agreement is 101510^{-15} rather than, say, 10610^{-6}: there is no approximation being made, only floating-point arithmetic being done in a different order. The number is a measurement of the arithmetic, exactly as it was for reciprocity.

One Sallen-Key design at 100 Ω, and the band of impedance levels it survives. computed by solving, not by drawing. A 10.0 kHz unity-gain Sallen-Key section realised at seven impedance levels three decades apart, with every resistance multiplied and every capacitance divided by the same factor. The design is exactly invariant: the solved magnitudes agree to 1.0e-15 of each other across all seven and every frequency in the passband, which is the last bits of a double rather than a good approximation. The realisation is not, because two of its quantities do not scale — 50 Ω of amplifier output resistance and 2 pF of stray capacitance to everywhere — and they bind at opposite ends. Inside 0.1 dB the band runs 31.6 Ω to 31.6 kΩ, with the least departure of 0.0133 dB at 1000 Ω; at this setting it is 0.027 dB at 20.0 kHz. The consideration that does not appear on either axis is noise: the resistors' density goes as √R, so across the six decades drawn the noise moves by 1000 times and points at the low end of the band.
Fig. 6 A hundredth of the design impedance — hundred-ohm resistors with 225 nF and 113 nF. The departure from the ideal response is 0.0267 dB and the resistor noise 0.175 µV. Why the invariance is exact and not approximate is that every impedance in the network is multiplied by the same factor, so every ratio in the transfer function is unchanged; what is not invariant is everything the ideal network does not contain.

What breaks it at each end, in detail

At the low end it is the amplifier driving its own feedback network. A unity-gain Sallen-Key’s amplifier drives the top of the first capacitor, and with ten-ohm resistors that capacitor’s branch is a low impedance. The fifty ohms in series with the ideal output is then a divider, the feedback cannot correct for what it cannot see beyond its own output node, and the section’s Q and corner both move. It shows up first as a level error and then as a shape error as the resistors fall further.

At the high end it is capacitance to ground. Two picofarads on each node adds directly to whichever design capacitor shares that node, so the section becomes a different section — one with the wrong Q and the wrong corner — and, worse, the amount added depends on the layout rather than on the design. Two builds of the same schematic then have different responses, which is the failure that is hardest to diagnose because the schematic is not wrong.

The gain–bandwidth product is a third mechanism at the low end and is not what binds there: at ten megahertz it is far above the ten-kilohertz corner, and its effect on the passband is smaller than the output resistance’s at every level swept.

One Sallen-Key design at 100 kΩ, and the band of impedance levels it survives. computed by solving, not by drawing. A 10.0 kHz unity-gain Sallen-Key section realised at seven impedance levels three decades apart, with every resistance multiplied and every capacitance divided by the same factor. The design is exactly invariant: the solved magnitudes agree to 1.0e-15 of each other across all seven and every frequency in the passband, which is the last bits of a double rather than a good approximation. The realisation is not, because two of its quantities do not scale — 50 Ω of amplifier output resistance and 2 pF of stray capacitance to everywhere — and they bind at opposite ends. Inside 0.1 dB the band runs 31.6 Ω to 31.6 kΩ, with the least departure of 0.0133 dB at 1000 Ω; at this setting it is 0.282 dB at 16.8 kHz. The consideration that does not appear on either axis is noise: the resistors' density goes as √R, so across the six decades drawn the noise moves by 1000 times and points at the low end of the band.
Fig. 7 Ten times: hundred-kilohm resistors, 225 pF and 113 pF, departure 0.2823 dB, noise 5.54 µV. What breaks it at the high end is the capacitors becoming comparable with the strays and the amplifiers’ input currents becoming comparable with the signal — both of which are absolute quantities that do not scale.
One Sallen-Key design at 10 MΩ, and the band of impedance levels it survives. computed by solving, not by drawing. A 10.0 kHz unity-gain Sallen-Key section realised at seven impedance levels three decades apart, with every resistance multiplied and every capacitance divided by the same factor. The design is exactly invariant: the solved magnitudes agree to 1.0e-15 of each other across all seven and every frequency in the passband, which is the last bits of a double rather than a good approximation. The realisation is not, because two of its quantities do not scale — 50 Ω of amplifier output resistance and 2 pF of stray capacitance to everywhere — and they bind at opposite ends. Inside 0.1 dB the band runs 31.6 Ω to 31.6 kΩ, with the least departure of 0.0133 dB at 1000 Ω; at this setting it is 14.749 dB at 18.3 kHz. The consideration that does not appear on either axis is noise: the resistors' density goes as √R, so across the six decades drawn the noise moves by 1000 times and points at the low end of the band.
Fig. 8 A thousand times: ten-megohm resistors, 2.25 pF and 1.13 pF, and the response is 14.7486 dB out with 55.4 µV of resistor noise. Across the scales drawn the departure runs 0.0267, 0.0527 at unity, 0.2823 and 14.7486 dB while the noise runs 0.175, 1.75, 5.54 and 55.4 µV — the noise as the square root of the scale exactly, and the departure not as anything, because at the top the strays are larger than the design capacitors.

What the section is, and why this one

The section drawn is a unity-gain Sallen-Key low-pass with equal resistors: two resistors in series from the input, a capacitor from their junction to the output, a capacitor from the amplifier’s non-inverting input to ground, and the amplifier wired as a follower. Its natural frequency is 1/(RC1C2)1/(R\sqrt{C_1C_2}) and its Q is 12C1/C2\tfrac12\sqrt{C_1/C_2}, so for a given corner and Q the two capacitors are fixed once the resistor is chosen — which is the free parameter this essay is about, arriving in the design equations as an underdetermined system rather than as an afterthought.

The equal-resistor form is chosen because it makes the free parameter a single number. The other common arrangement fixes the capacitors equal instead and puts the freedom in a resistor ratio, which scales identically and is harder to draw.

One property of this section matters for what follows: at direct current the amplifier’s output is connected to the input through the first capacitor’s branch, so the amplifier is inside the network rather than merely terminating it. That is why its output resistance appears in the response at all, and why a section that buffered its output separately would have a different low-end boundary.

The band is a property of the parts, not of the filter

A natural question is whether a higher-order filter, or a different family, or a different corner frequency moves the window. Two of those do and one does not, and separating them says what the number is really about.

The corner frequency does not move it. Halving the corner doubles both capacitors, which is a scaling of exactly the kind the design is invariant under — so the window in ohms slides with the corner, and the window in impedance level relative to the reactance at the corner is fixed. The useful form of the boundary is therefore not “31.6 Ω to 31.6 kΩ” but a comparison between the design’s own impedance at its corner and the two parasitics.

The order does move it, because more sections mean more nodes, and each node carries its own two picofarads. A high-order active filter at a high impedance level accumulates stray at every stage.

And the amplifier moves it, which is the one a designer can actually buy their way out of. An output resistance of five ohms rather than fifty moves the low edge down by a decade, and costs current.

Where the free parameter is genuinely free

It is worth saying that the invariance is not a curiosity; it is used constantly, and mostly without being named.

Integrated filters are scaled to what can be fabricated. On-chip capacitors are picofarads, so the resistors are megohms or the capacitors are switched — and a resistor made of a clock is exactly a way of realising a very large resistance at a small area, which is impedance scaling given a different implementation. A tenth of a picofarad shuttled at ten kilohertz behaves as a gigohm, which is how a filter with a one-hertz corner fits on a chip. What that technique substitutes for the invariance measured here is a different invariance: the corner becomes a capacitor ratio and a clock frequency rather than an R–C product, and a ratio is the one number a fabrication process reproduces.

The three conditions it pays for are all boundaries this essay does not have, and each binds a different quantity — a capacitor ratio under 0.0201, a signal below half the clock, and a clock below the frequency at which the charge stops arriving. The second of those is the one with no continuous analogue at all: the filter that samples finds an input at 992 kilohertz arriving at 7.8 kilohertz with the passband’s own gain, where the continuous model says it is 56 decibels down.

Discrete filters are scaled to what can be bought. A design that lands on 3.7 nF becomes one that lands on 10 nF and 3.7 kΩ, and the response is bit-for-bit the same one.

And a filter is scaled to what will drive it. Which brings the argument back to the two resistors a ladder was designed between: a doubly terminated ladder’s impedance level is not free at all, because its terminations are part of the design, and driving an order-five Butterworth from anything outside 0.886 to 1.137 times its design resistance puts more than half a decibel of error on the passband. The free parameter here belongs to the active realisation, and it is one of the things a designer buys when they give up the ladder’s insensitivity.

The word “free” then has a range of its own, and it shrinks with the order. The band that closes with the order sweeps exactly this measurement over section counts and finds one Sallen–Key section inside a tenth of a decibel across three decades of impedance level, four sections across one decade, and five sections across none at all — because every section brings three more nodes each carrying their own stray and one more amplifier carrying its own output resistance, so the floor rises with the order until it crosses the tolerance. That is a boundary in the order rather than in the impedance, and it is the sharpest qualification this essay’s free parameter has. The band that does not close then puts the passive realisation beside it: the ladder has only one of the two binding quantities, because an inductor’s loss is a fixed quality factor rather than a fixed resistance and therefore scales with the design, and at order nine it still has four decades.

The number a designer should carry

Reducing all of it to one rule: make the design’s own impedance at its corner frequency about a kilohm, or equivalently make the reactance of the smaller capacitor at the corner a few kilohms. That is a decade and a half above the amplifier’s output resistance and three orders below the reactance of two picofarads at the same frequency, and it is where the deviation curve bottoms out.

The rule has an obvious failure case, and it is the reason it is a rule of thumb rather than an answer: at a corner of ten hertz, a kilohm needs microfarads, and microfarad capacitors with the stability a filter needs are large and expensive. There the trade is made deliberately in favour of the strays, the impedance level goes to megohms, and the design has to live with a response that depends on the layout. Which is why very-low-frequency active filters are built with switched capacitors or as digital realisations instead — both of which are ways of getting a large impedance without a large resistor.

What breaks the invariance at each end

An exact invariance broken by absolute quantities at both ends is measured in three places. The resistor that is only a resistor and The capacitor that is an inductor are the components’ own parasitics, which do not scale. The floor a circuit has is the noise, which scales as the square root of the impedance level and so is not invariant either. Three families, one corner is the response being held fixed while everything else moves.

What is checked

Three assertions, and the first is the one everything else stands on.

The invariance, at 101210^{-12} or better, across all seven scalings and every frequency in the comparison band. If the scaling were implemented wrongly — a factor applied to the wrong element, or applied once instead of inversely — this fails immediately and loudly, and no amount of agreement downstream would matter.

That the realisation is inside a tenth of a decibel over a band and not everywhere, which is the essay’s claim, stated as a count: at least two of the levels swept are inside and at least one is outside. A version of this figure with the parasitics omitted would pass every other check and fail this one, which is the point of writing it as a two-sided condition.

That the best level is in the interior, which is what makes it a band. If either parasitic were removed the optimum would run to one end of the sweep, and the assertion would catch it.

Why an exact invariance is worth measuring

There is an objection to this essay that is worth answering, because it applies to several measurements in this collection: the invariance is algebra, it is provable in three lines, and checking it to a part in 101510^{15} proves nothing about the world.

The answer is that the check is not of the algebra. It is of the implementation — the netlist builder, the scaling code, the solver and the comparison — against a statement whose exact form is known independently. A quantity that must be exactly invariant is the most sensitive detector of a mistake that exists anywhere in this site’s machinery, because there is no tolerance to hide inside: any error of any kind in scaling an element, in stamping it or in solving the result shows up as a departure many orders above the arithmetic’s floor.

That is the same reason the essays in this field check a matched ladder’s loss against exactly 20log10220\log_{10}2 and an all-pass section’s magnitude against exactly one. None of the three is a measurement of a circuit. All three are measurements of the instrument, made on the one kind of input whose answer is not in doubt — and they are what entitles the numbers that are in doubt, three decades of impedance level and a tenth of a decibel, to be quoted at all.

The two parasitics are the opposite kind of number and are stated as such. Fifty ohms and two picofarads are plausible values for an ordinary part and an ordinary layout, they are not measured here, and every number in this essay’s band moves with them. What does not move with them is the shape: a band with an interior optimum, bounded below by something that does not scale down and above by something that does not scale up. A reader with better parts has a wider band centred somewhere else, and the argument is unchanged.

Part 1 on impedance scaling

One argument about Impedance scaling, 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 13.

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.

Impedance scalingJohnson noiseModel rangeOutput impedanceParasiticsRealisationSallen-keyStray capacitance