S2 · Lesson 38 · Active filters
Biquads in active-RC and gm-C form, tuning and dynamic range
Before a signal is sampled it must be filtered, and on a chip there are no inductors worth using at audio or baseband frequencies. Active filters make second-order sections, biquads, from resistors, capacitors and amplifiers, or from transconductors and capacitors (gm-C), and cascade them into Butterworth or Chebyshev responses. Their design questions are analog ones: what sets the pole frequency and Q, how much they drift with process, and how big the capacitors must be for the filter's own noise to stay below the signal.
- The curve is a second-order low-pass's magnitude against frequency normalized to , on log axes, for the Q set by the slider.
- At Q = 0.707 (Butterworth) the response is maximally flat; higher Q makes a peak near , and lower Q a slow, droopy corner.
- The readout is the peak's height, , for Q above 0.707.
Predict
A gm-C biquad's pole frequency is . If the process makes 20% high and C 10% low, where does land?
: . On-chip resistors, capacitors and transconductances vary 10 to 30% independently, so filters that need accurate corners include an automatic tuning loop: a master copy locked to a reference clock, whose control voltage also sets the filter's transconductors.
Name it
The biquad
peaks at for Q > 0.707; Butterworth sections have Q = 0.707.
Sallen–Key (unity gain)
Two resistors and two capacitors around a follower: and , with the feedback capacitor and the one to ground. With equal resistors, .
Two-integrator loops
Two integrators in a loop (Tow–Thomas, or a gm-C biquad) set by the integrators' unity-gain frequencies (, or ) and Q by a separate damping element, so the two can be adjusted independently.
Dynamic range
Each integrator's capacitor holds kT/C of noise. For a signal of and a target SNR, : 80 dB at 1 V rms needs about 0.4 pF per pole, and each 6 dB of SNR quadruples the capacitance and the power needed to drive it.
Worked example
A unity-gain Sallen–Key low-pass uses R = 10 kΩ for both resistors, = 20 nF and = 10 nF. What are its and Q?
Show the solution
- Natural frequency.
- Q. a Butterworth section.
- What sets Q. The capacitor ratio alone sets Q, so it holds as well as the capacitors match.
Answer = 1.13 kHz and Q = 0.707.
Worked example
A gm-C integrator has = 100 µS and C = 1 pF. What unity-gain frequency does it have, and what is a biquad built from two of them tuned to?
Show the solution
- Unity-gain frequency. or 15.9 MHz.
- The biquad. A biquad built from two of them has the same .
- Where gm-C fits. gm-C filters reach tens to hundreds of megahertz, where active-RC filters run out of op-amp bandwidth.
Answer the integrator's unity-gain frequency is 15.9 MHz, and the biquad is tuned to the same 15.9 MHz.
Worked example
A filter must keep 80 dB of SNR at 1 V rms. How big must each integrating capacitor be?
Show the solution
- Capacitor at 80 dB. An SNR of 80 dB is a power ratio of :
- At 100 dB. It would be 41 pF, and the transconductors driving it a hundred times stronger.
- What sets the power. So most filters' power is set by their dynamic range more than by their bandwidth.
Answer each integrating capacitor must be 0.41 pF.
Check
A unity-gain Sallen–Key low-pass has both resistors 10 kΩ, = 1 nF and = 4 × .
(a)
What is its pole frequency?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What is its Q?
Check
A biquad low-pass has Q = 1.3.
(a)
What is its peak gain?
(b)
What is its gain at exactly , in dB?
Check
A gm-C integrator has = 100 µS and C = 0.5 pF.
(a)
What is its unity-gain frequency?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
(b)
Where does it land if comes out 20% high and C 10% low?
Check
A filter must keep 80 dB of SNR with 0.3 V rms of signal at 350 K.
(a)
How big must each integrating capacitor be?
Write units the way you normally would: 1.5 pF and 0.0015 nF are the same answer.
(b)
By what factor must the capacitors grow for 6.02 dB more SNR?
Check
A Tow–Thomas biquad has integrators of R = 10 kΩ and C = 10 nF, and a damping resistor 1 times R.
(a)
What is its pole frequency?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What is its Q?
Check
Why do gm-C filters on a chip usually need an automatic tuning loop, while an active-RC filter built from matched on-chip resistors and capacitors may only need a trim?
Check
A unity-gain Sallen–Key low-pass has resistors a and b, feedback capacitor c and grounded capacitor d.
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is Q?
Step 3
What is Q when a = b?
Check
Write biquad_mag(f, f0, Q): the magnitude of the low-pass biquad, and butter_q(n): the Q values of the second-order sections of an n-th order Butterworth filter (n even), for k = 1..n/2, sorted ascending.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does a filter's dynamic range, rather than its frequency, usually set how much power it burns?
Every integrator's capacitor carries thermal noise of kT/C, independent of the resistance or transconductance around it, so reaching a given signal-to-noise ratio for a given signal swing demands a minimum capacitance. Placing the poles at a given frequency then fixes the transconductance or conductance needed to drive that capacitance, , and transconductance costs bias current. Each extra 6 dB of SNR quadruples the capacitance and therefore the current, while the frequency only scales it linearly, so high-resolution filters spend most of their power fighting their own noise.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.