Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.1 Join the beta Download soon
Part VII  Design calculatorsReferenceContentsIndex
50

Low pass and high pass filters

The Simple view designs passive filters: an RC or RL section, or an LC ladder (Pi or T) of order 2 to 7 between a source and a load of the line impedance. The Advanced view designs active filters: unity-gain Sallen-Key or multiple-feedback (MFB) sections of order 1 to 8, Butterworth, Bessel or Chebyshev, with standard parts, a real op-amp, the step, the group delay and the tolerance. Group Circuit. Search words include filter, low pass, high pass, rc, rl, lc, butterworth, chebyshev, cutoff, bode, pi, t and ladder.

The window, the Simple and Advanced views, full screen and the place buttons are in The calculator window.

50.1Simple: passive filters

The picture of the window in The window shows this view with the RC low pass.

Simple: passive filters
ChoiceOptionsWhat it does
PassLow pass, High pass
ConfigurationRC, RL, LC Pi, LC TRC low pass is R in series, C to ground (high pass: C in series, R to ground). RL low pass is L in series, R to ground (high pass: R in series, L to ground). A Pi ladder starts with a shunt part, a T ladder with a series part.
ResponseButterworth, Chebyshev 0.5 dBLadders only.
Order2 to 7, 3Ladders only.
Part valuesExact, Nearest E12, Nearest E24Ladders only. Each part rounded to the nearest of the series.
Simple: passive filters
FieldUnitDefaultWhat it does
ResistanceΩ, kΩ, MΩ22 ΩRC and RL. SOLVE. Reads a selected resistor.
CapacitancepF, nF, µF10 nFRC. SOLVE. Reads a selected capacitor.
InductancenH, µH, mH10 µHRL. SOLVE. Reads a selected inductor.
−3 dB cutoff frequencyHz, kHz, MHz723.4 kHz (solved)RC and RL. SOLVE, solved when the calculator opens.
Cutoff frequencyHz, kHz, MHz10 MHzLadders.
Line impedanceΩ50Ladders: the source and load resistance.

The formulas: RC fc = 1 / (2πRC), RL fc = R / (2πL), and their inverses for the solved part. A ladder uses the prototype values gk (shown under the formula, g = 1.0000, 2.0000, 1.0000): low pass Ck = gk / (2π fc Z0) and Lk = gk Z0 / (2π fc), high pass Ck = 1 / (2π fc Z0 gk) and Lk = Z0 / (2π fc gk). The load is Z0 gn+1 after a shunt part and Z0 / gn+1 after a series one.

Simple: passive filters
ResultWhat it is
Cutoff (design)The cutoff of the fields (orange).
−3 dB measuredThe −3 dB point of the parts as shown, found on the AC response the way the AC analysis works it out (a two-port product of the parts, bisected from a passband point at fc/100 for a low pass or 100 fc for a high pass). With E12 or E24 values it moves from the design.
Time constant, RolloffRC and RL: RC or L/R, and 20 dB/dec.
Rolloff, LoadLadders: 20 dB/dec per part, and the load resistance.

Ladders also show the table Part values (Part, Where, Value: RS, each part as shunt or series, RL). The Response plot runs from fc/100 to 100 fc (floor −50 dB, or −80 dB for more than two parts), normalised to the passband, with markers at fc and at the measured −3 dB point when they differ by more than 1 %.

Simple: passive filters
MessageWhen it shows
"The cutoff of a Chebyshev filter is the edge of its 0.5 dB ripple band. The gain is 3 dB down at 11.3 MHz."A Chebyshev ladder (a note).
"An even-order Chebyshev filter needs a load of 99.2 Ω for the response shown."Even order (a note).
"With E12 values the −3 dB point moves 1.8 % from the exact design."E12 or E24 values (a note).
"Enter positive values to get a cutoff."A zero or negative part.
Simple: passive filters
ButtonWhat it does
Place as circuitV1 (sine, 1 V at fc), the filter with RS and RL for a ladder, probes IN and OUT.
Place and run AC analysisThe same and an AC sweep of V1 at 100 points per decade (200 above three parts) from the passband point to where the response is about 100 dB down. Measurements: a low pass gets Filter -3 dB (bw3db of V(OUT)) within ±1 % of the measured −3 dB point, a high pass Filter gain at -3 dB point, and both Filter passband gain within ±0.1 dB.
Apply to selected partsWith one selected part of each kind the filter needs: their r, l and c.
Try it
An RC low pass and a third-order ladder
  1. Open the filter calculator: RC low pass, 22 Ω, 10 nF.
  2. Set Configuration to LC Pi: Butterworth, order 3, 10 MHz, 50 Ω, Exact.

You should seeRC: cutoff 723 kHz (−3 dB measured 724 kHz), time constant 220 ns. Pi: g = 1, 2, 1, so RS 50 Ω, C1 318 pF to ground, L1 1.59 µH in series, C2 318 pF to ground, RL 50 Ω, 60 dB/dec. Place and run AC analysis passes: the passband sits at −6.02 dB because the matched source halves the voltage.

50.2Advanced: active filters

The filter’s Advanced view in full screen: a fourth-order Butterworth low pass at 1 kHz in two Sallen-Key sections, with the response, the bill of material
Figure 50.1The filter’s Advanced view in full screen: a fourth-order Butterworth low pass at 1 kHz in two Sallen-Key sections, with the response, the bill of materials, the sections, the group delay, the step response, the tolerance and the order each family needs.
Advanced: active filters
ChoiceOptionsWhat it does
PassLow pass, High passAlso moves Stop at: at or below fc/3 for a high pass, at or above 3 fc for a low pass.
BuildSallen-Key, MFBUnity-gain Sallen-Key, or multiple feedback (inverting, with gain).
ResponseButterworth, Bessel, ChebyshevBessel normalised to −3 dB at the cutoff. Chebyshev with any ripple.
Advanced: active filters
TabIts dotCards
DesignThe worst check.Result (tiles and the section blocks), Response, Bill of materials, Checks.
SectionsGreen when the op-amp’s GBW covers the worst section, else amber.Sections, Tolerance per section, Order vs stopband.
Delay and stepNone.Group delay, Step response.
ToleranceGreen when the −3 dB spread is under 3 %, else amber.Tolerance, passband edge, Tolerance per section.
Verify in simulationNone.Calculator vs simulation.
Advanced: active filters
FieldUnitDefaultWhat it does
Order1 to 8, 4Group Specification. Its badge says Met (green) or Not met (red) for the stopband.
CutoffkHz1
Stop at, AttenuationkHz, dB3, 30The attenuation needed at the stop frequency.
Ripple, Cutoff atdB0.5, Ripple edge or −3 dBChebyshev only.
GainV/V1MFB only: the passband gain, put on the first second-order section.
Input peakV1For the slew rate and the internal peak.
R aboutkΩ10Group Parts: the impedance level the capacitors are scaled to.
R tol, C tol±%1, 5
Resistor series, Capacitor seriesE96 (or E24), E12 (or E6, E24)
Monte Carlo distributionNormal, Uniform
GBW, Aol, Slew rate, Ro open loopMHz, dB, V/µs, Ω1, 100, 0.5, 50Group Op-amp. Its badge says the GBW needed, green when the part has it.

How it works it out. The prototype poles come from Williams and Taylor (Bessel from the reverse Bessel polynomial). The sections run in rising Q, first-order first. The capacitors are picked first from their series, then the resistors from the section equations of TI SLOA024 and SLOA049 and rounded to theirs, and f0, Q and gain are worked out again from the rounded parts. The section types: Sallen-Key LP, MFB LP, Sallen-Key HP, MFB HP, and for a first-order section RC + buffer, CR + buffer, Inverting RC or Inverting CR. With the real op-amp (GBW, Aol, Ro) the whole chain is solved by nodal analysis, so each section loads the one before it. The GBW a section needs is the lowest that keeps it within 0.2 dB of its ideal response from f0/10 to 2 f0. The step is integrated with fourth-order Runge-Kutta on ideal sections. The Monte Carlo runs 160 builds for the band and the histograms.

Advanced: active filters
ResultWhat it is
Op-ampsHow many, with the order and the build.
−3 dB, partsThe cutoff of the rounded parts and how far from the design.
At 3 kHzThe attenuation at the stop frequency against the need. Red when not met.
GBW neededFor the worst section, and what the op-amp has. Amber when it is short.
Delay, DC (low pass) or Ripple (high pass)The group delay at DC, or the rise above unity.
OvershootOf the step, and the time to settle to 1 %.
−3 dB spreadFrom the Monte Carlo of the part tolerances. Amber above 8 %.
Passband gainThe product of the section gains.

Under the tiles a block per section shows its order, f0 and Q (amber when its GBW is short). The Bill of materials lists each section’s R and C values, the resistor and capacitor kind (thin film, C0G or film), and the op-amps with the GBW and slew rate to look for, with Copy BOM. Sections is a table of f0, Q and K designed and as built with the GBW each needs and its peak. Tolerance per section gives the f0 and Q spread and the sensitivities (S(Q, x) = (ΔQ/Q) / (Δx/x)). Order vs stopband gives the order each family needs for the attenuation and what the present order gives.

Advanced: active filters
CheckValue and limitPassesMarginalFails
Stopband at 3 kHzdB · needReachedWithin 10 %Less: the order needed is named
−3 dB, standard partsfrequency · designWithin 2 %Within 5 %More
Op-amp GBW, worst sectionGBW · needGBW ≥ needHalf the need or moreLess
−3 dB, real op-ampnodal, real GBWWithin 2 % of the partsWithin 5 %More
Slew rateSR · 2π f0 Vpk × peak gain1.5 × or more1 × to 1.5 ×Less
Internal peakdB above the passbandUnder 3 dBUnder 6 dBMore
Resistor rangemin … max · 1 kΩ to 1 MΩInsideOutside
Capacitor rangemin … max · C0G up to about 100 nF100 pF to 100 nFOutside
−3 dB spread± % · R and C tolerance, 160 runsUnder 3 %Under 8 %More
Highest section QQUnder 3Under 8More
Advanced: active filters
MessageWhen it shows
"28.4 dB at 3 kHz, 30 dB required. Order needed: Bessel 6, Butterworth 4, Chebyshev 0.5 dB 3."The stopband is not met.
"Section 2 (f0 4.68 kHz, Q 1.71) needs GBW ≥ 837 kHz to stay within 0.2 dB. With 100 kHz its response shifts. Use a faster op-amp."A section’s GBW is short.
"Above about 50 kHz the op-amp roll-off cuts the high pass. The response is a band pass."A Sallen-Key high pass with GBW under 100 × fc.
"Sallen-Key sections are unity gain (lowest sensitivity). For gain, add a stage or use MFB."Gain other than 1 with Sallen-Key.
"Even-order Chebyshev with unity DC gain: the passband rises to +0.5 dB."An even-order Chebyshev.
"A section output peaks … dB above the passband. A 1 V input reaches … inside the chain. Check it against the op-amp swing."An internal peak over 3 dB.
Advanced: active filters
CheckAnalysis and measurementLimit
−3 dB pointAC: bw3db of V(OUT) (low pass), or the gain at the −3 dB frequency (high pass)±1 %, or ±0.15 dB
Passband gainAC: gain at fc/100 (low pass) or 100 fc±0.1 dB
StopbandAC: gain at the stop frequency±0.5 dB
Step overshoot, Settling to 1 %Transient with a 1 V step (low pass)±1 point, ±5 %
Step undershootTransient, the extreme of V(OUT) after the edge (high pass)±3 % of the gain
−3 dB spreadMonte Carlo: 200 AC runs with tol on every R and CInside the calculator’s band
Advanced: active filters
ButtonWhat it does
Place and run ACSource V_FL, each section an op-amp with the typed GBW, Aol and Ro and its R and C (R1_1, C2_2, U_1 …), IN and OUT probed, and an AC sweep at 100 points per decade.
Place and run stepThe same chain with a 1 V step and a transient.
Place and run Monte Carlotol and the distribution on every R and C, then a Monte Carlo of 200 AC runs (seed 1).
Place circuitThe chain only.

The group delay and the sensitivities stay calculator only. The simulated chain uses the typed op-amp, the calculator’s step uses ideal ones.

Advanced: active filters
SimpleAdvanced
−3 dB cutoff frequency, or Cutoff frequencyCutoff
PassPass
Response (Butterworth, Chebyshev)Response
Try it
A fourth-order Butterworth low pass
  1. Open the filter calculator and press Advanced: low pass, Sallen-Key, Butterworth, order 4, 1 kHz, stop 3 kHz at 30 dB, GBW 1 MHz.
  2. Look at the Sections tab.

You should seeTwo sections at 1 kHz: Q 0.541 with 11.3 kΩ, 8.25 kΩ, 18 nF, 15 nF (needs 35 kHz GBW), and Q 1.307 with 15.4 kΩ, 6.19 kΩ, 47 nF, 5.6 nF (needs 214 kHz). The tiles: −3 dB at 1.01 kHz (+0.5 %), −38.0 dB at 3 kHz, delay 415 µs, overshoot 10.8 % (1 % in 1.65 ms), spread ±4.6 % (amber: C at 5 %). Bessel would need order 6 for the 30 dB, Chebyshev 0.5 dB order 3.

Try it
An op-amp that is too slow
  1. Set high pass, Chebyshev, order 3, cutoff 5 kHz, stop 1 kHz, GBW 0.1 MHz and Gain 2.

You should seeThe check Op-amp GBW, worst section fails at 0.1 ×: section 2 needs 837 kHz. The warnings say the high pass becomes a band pass above about 50 kHz, and that Sallen-Key sections are unity gain.

Sources. Matthaei, Young and Jones, Microwave Filters (1964), for the ladder prototypes. Williams and Taylor and TI SLOA024 and SLOA049 for the active sections. The tests check the Q and frequency factors against the SLOA049 tables, the order for 30 dB against the closed forms, the GBW need against about 100 Q³ f0, and the placed chains against bspice’s AC, step and Monte Carlo runs.