C6 · Lesson 27 · Biquad and state-variable filters
Filters whose frequency and Q are set by separate resistors
The Sallen-Key and multiple-feedback filters of lesson 26 use one op amp per second-order section, and their frequency, Q and gain are tangled together: change one resistor and all three move, and a high-Q section becomes hypersensitive to its parts. Spend two more op amps and the tangle comes apart. A loop of two integrators and a summer realizes the second-order equation directly, gives low-pass, band-pass and high-pass outputs at once, and sets f₀ and Q with different resistors.
Play
- The three curves are the low-pass, band-pass and high-pass outputs of one state-variable filter, against frequency.
- Change Q: the band-pass narrows and the low-pass and high-pass peak, but stays put.
- Change : all three slide together, and the Q stays put. In this filter the two knobs are independent.
Predict
In a state-variable filter, the resistor that sets Q is increased by 1%. What happens to the Q of a section designed for Q = 10?
About 1%. In a state-variable or Tow-Thomas filter, Q is a resistor ratio, so its sensitivity to that resistor is 1. An equal-component Sallen-Key with Q = 10 needs a gain of 2.9, and a 1% rise in that gain takes Q to 14: the 40% answer belongs to the single-op-amp filter. That difference is why high-Q filters use two integrators.
Name it
The two-integrator loop
The second-order low-pass equation can be written as : the output is a sum of its own integrals. Build it literally: a summing amplifier makes the high-pass signal, an integrator turns it into the band-pass, a second integrator into the low-pass, and both are fed back to the summer. Each integrator has , so
and Q is set by how much band-pass signal is fed back: a resistor ratio of its own.
Two common forms
- State-variable (KHN): summer, two integrators; outputs low-pass, band-pass and high-pass. Q and gain are set by the summer's resistors.
- Tow-Thomas: a damped (lossy) integrator, an ideal integrator and an inverter. With integrator resistors R and capacitors C, a damping resistor across the first capacitor and an input resistor :
The responses
With , the three outputs share one denominator :
Higher orders
A higher-order filter is a cascade of second-order sections, each with its own and Q from a table. A fourth-order Butterworth uses two sections at the same with Q = 0.541 and 1.307. Tuning all sections together is as simple as ganging the integrator resistors.
Worked example
Design a Tow-Thomas band-pass at 1 kHz with Q = 10 and unity gain at the center, using 10 nF capacitors.
Show the solution
- Integrator resistors. For both integrators,
- Damping resistor. Q = 10 needs
- Input resistor. Unity gain at the center needs = 159 kΩ.
- Bandwidth.
- Retuning. To retune it to 2 kHz, halve both integrator resistors; Q and the gain are untouched only if is halved too, since Q is . Change only to change Q.
Answer R = 15.9 kΩ for both integrators, and = 159 kΩ, giving a 100 Hz bandwidth.
Worked example
Build a fourth-order Butterworth low-pass at 1 kHz from two Tow-Thomas sections with the same integrators (R = 15.9 kΩ, C = 10 nF). What damping resistors?
Show the solution
- Section Qs. and
- Damping resistors. With :
- Order of the sections. Put the low-Q section first, so the high-Q section's peak doesn't overload the first stage on large inputs below the corner.
Answer damping resistors of 8.61 kΩ and 20.8 kΩ, with the low-Q section first.
Worked example
Compare the sensitivity of Q to a 1% part error in a Tow-Thomas section with Q = 10 and in an equal-component Sallen-Key with Q = 10.
Show the solution
- Tow-Thomas. , so a 1% change in moves Q by 1%, to 10.1.
- Sallen-Key. needs K = 2.9. A 1% rise in K, to 2.929, gives which is 41% higher.
- Why. The Sallen-Key's Q depends on the small difference 3 − K, which magnifies errors by about 3Q; the two-integrator loop doesn't.
Answer a 1% error moves the Tow-Thomas Q by 1%, to 10.1, and the Sallen-Key Q by 41%, to 14.1.
Check
A Tow-Thomas band-pass at 1 kHz with Q = 20 uses 1 nF capacitors.
(a)
What integrator resistors?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
(b)
What damping resistor?
Check
A Tow-Thomas section with R = 10 kΩ and Q = 3 must have a center gain of 2.
(a)
What input resistor?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
(b)
What's then its low-pass gain at DC?
Check
A band-pass section has Q = 3. What's its gain at 0.5 times its center frequency, relative to the center?
Check
An equal-component Sallen-Key section has K = 2.5, and K comes out 0.5% high.
(a)
What's its design Q?
(b)
By what percentage does its Q change?
Check
An order-8 Butterworth filter is built from second-order sections, numbered from the lowest Q. What Q does section 1 need?
Check
A filter must be tuned over 100 Hz to 10 kHz without its Q changing. Which structure is easiest?
Check
A Tow-Thomas section has integrator resistors R, capacitors C, damping resistor q and input resistor i.
Step 1
What's ?
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's Q?
Step 3
What's the band-pass gain at ?
Step 4
What's the bandwidth?
Explain why
Why is a two-integrator filter's Q less sensitive to component errors than a single-op-amp Sallen-Key's?
In the two-integrator loop, Q is set by how much of the band-pass signal is fed back, which is a ratio of two resistors, so a 1% error in either changes Q by about 1%. In an equal-component Sallen-Key, Q is one over three minus the amplifier's gain. For a high Q, the gain has to sit just below three, so Q depends on a small difference between two nearly equal numbers, and any error in the gain is magnified by roughly three times Q. A Q of ten turns a 1% gain error into a 40% Q error. The extra op amps buy a structure where each parameter has its own resistor.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.