C627 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 f0 stays put.
  • Change f0: 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?

Name it

The two-integrator loop

The second-order low-pass equation can be written as v=−1ω02v¨−1ω0Qv˙+vin: 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 1RC, so

f0=12πRC

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 RQ across the first capacitor and an input resistor Rin:
f0=12πRC,Q=RQR,|HBP(f0)|=RQRin,|HLP(0)|=RRin.

The responses

With x=f/f0, the three outputs share one denominator D=(1−x2)2+(x/Q)2:

|HLP|=1D,|HBP|=x/QD,|HHP|=x2D.

Higher orders

A higher-order filter is a cascade of second-order sections, each with its own f0 and Q from a table. A fourth-order Butterworth uses two sections at the same f0 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
  1. Integrator resistors. For both integrators, R=12π×1kHz×10nF=15.9kΩ
  2. Damping resistor. Q = 10 needs RQ=10R=159kΩ
  3. Input resistor. Unity gain at the center needs Rin=RQ = 159 kΩ.
  4. Bandwidth. f0Q=100Hz
  5. Retuning. To retune it to 2 kHz, halve both integrator resistors; Q and the gain are untouched only if RQ is halved too, since Q is RQ/R. Change only RQ to change Q.

Answer R = 15.9 kΩ for both integrators, and RQ=Rin = 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
  1. Section Qs. Q1=12cos⁡(π/8)=0.541 and Q2=12cos⁡(3π/8)=1.307
  2. Damping resistors. With Q=RQR: RQ1=0.541×15.9kΩ=8.61kΩRQ2=1.307×15.9kΩ=20.8kΩ
  3. 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
  1. Tow-Thomas. Q=RQR, so a 1% change in RQ moves Q by 1%, to 10.1.
  2. Sallen-Key. Q=13−K needs K = 2.9. A 1% rise in K, to 2.929, gives Q=10.071=14.1 which is 41% higher.
  3. 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 f0?

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°.

Explain why

Why is a two-integrator filter's Q less sensitive to component errors than a single-op-amp Sallen-Key's?

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.