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

C4 · Lesson 8 · Filter specifications

From a requirement to the number of poles it takes

"Make a low-pass filter" isn't a specification. A real one says: frequencies up to 1 kHz must pass with at most 1 dB of loss, and anything above 5 kHz must be at least 40 dB down. Between those edges lies the transition band, and how narrow it is decides how many poles the filter needs, and so how many capacitors, inductors and amplifiers. Choosing the order from the specification is the first step of every filter design, before any component values.

  • Butterworth low-pass responses of order n, against frequency relative to the corner (log scales). The marker is the stopband edge.
  • Each extra order adds 20 dB per decade of roll-off. The readout gives the attenuation at the marker.
  • Find the smallest order that's 40 dB down at five times the corner.

Predict

A Butterworth low-pass with a 1 kHz corner must be 40 dB down at 5 kHz. What is the lowest order that works?

Name it

The specification

A low-pass specification has four numbers:

  • passband edge fp, with at most Ap dB of loss below it;
  • stopband edge fs, with at least As dB of loss above it.

The region between is the transition band; the ratio fs/fp measures how sharp the filter must be.

Butterworth order

A Butterworth response has |H|2=11+ε2(f/fp)2n, where ε2=10Ap/10−1 sets the loss at fp (Ap = 3 dB gives ε = 1, the usual corner). Meeting both edges needs

n≥log10⁡10As/10−110Ap/10−12log10⁡(fs/fp)

rounded up. Far above the corner it falls at 20n dB per decade, 6n dB per octave.

Chebyshev order

A Chebyshev response (lesson 9) allows ripple in the passband and rolls off faster, needing

n≥cosh−1⁡10As/10−110Ap/10−1cosh−1⁡(fs/fp)

with cosh−1⁡x=ln⁡(x+x2−1). For the same specification it often needs one or two fewer poles.

Other filter types

High-pass, band-pass and band-stop specifications are turned into an equivalent low-pass one (lesson 12), designed, and transformed back.

Worked example

A low-pass must lose at most 1 dB below 1 kHz and at least 40 dB above 5 kHz. What Butterworth order does it need?

Show the solution
  1. Ripple factor. ε2=100.1−1=0.259
  2. Order. n≥log10⁡(9999/0.259)2log10⁡5=4.5871.398=3.28 so order 4.
  3. With a 3 dB edge. With a 3 dB passband edge instead, n ≥ 2.86: order 3.

Answer order 4 (order 3 if the passband edge were the 3 dB point).

Worked example

The same 1 dB, 40 dB specification with a Chebyshev response: what order?

Show the solution
  1. Numerator. 9999/0.259=196.5cosh−1⁡196.5=5.97
  2. Denominator. cosh−1⁡5=2.29
  3. Order. n≥5.972.29=2.61 so order 3, one fewer than Butterworth.

Answer order 3, one fewer than the Butterworth's order 4.

Worked example

A Chebyshev filter is allowed 0.5 dB of passband ripple. What's its ripple factor ε?

Show the solution
  1. The dip. The passband dips to 11+ε2
  2. Set the dip to 0.5 dB. 10log⁡(1+ε2)=0.5
  3. Solve for ε. ε=100.05−1=0.349
  4. What ε sets. ε then sets the stopband: beyond the edge the attenuation is A=10log⁡(1+ε2Tn2(x))Tn(x)=cosh⁡(narccoshx)
  5. More ripple. More ripple means a larger ε and a steeper fall for the same order.

Answer ε = 0.349.

Check

A Butterworth low-pass of order 4 (3 dB corner) is driven at 2 times its corner. How much does it attenuate?

Check

A Butterworth low-pass (3 dB corner) must be 50 dB down at 2 times its corner. What is the lowest order that works?

Check

What ε goes with 0.5 dB of loss at the passband edge?

Check

A Chebyshev low-pass with 0.5 dB of passband ripple must be 40 dB down at 5 times the passband edge. What order does it need?

Check

By how many dB per octave does an order-5 low-pass roll off far above its corner?

Check

How far above its 3 dB corner, as a ratio, is an order-3 Butterworth filter 40 dB down?

Check

A Chebyshev filter has 0.5 dB of ripple and order 3.

(a)

What's its ripple factor ε?

(b)

How far down is it at 2 times the ripple edge?

Check

A Chebyshev filter with r dB of ripple and order n, at x = f/f_p beyond its edge.

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

Explain why

Why does a filter's order grow so quickly as the transition band narrows?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.