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

C4 · Lesson 15 · Notch and all-pass filters

Removing one frequency, and changing phase without changing gain

A sensitive measurement picks up 50 or 60 Hz hum from the mains wiring. A low-pass or high-pass would remove the signal along with it; what's wanted is a filter that removes one narrow band and leaves everything else alone: a notch. At the other extreme sits a filter that passes every frequency at full strength and changes only their phase: an all-pass. It sounds useless, yet all-pass networks straighten out the group delay of other filters and build the phase shifters in radios and audio effects.

  • A second-order notch filter's gain against frequency (relative to the notch frequency, log scale), for quality factor Q.
  • The notch is infinitely deep at f0 in theory; its −3 dB width is f0/Q. Raise Q for a narrower notch that leaves nearby frequencies alone.
  • A notch made of real parts only reaches a finite depth, limited by how well they match.

Predict

A first-order all-pass filter has τ = 1 ms. What is its gain at 159 Hz, and its phase?

Name it

Notch filters

A second-order notch (band-stop) has

H(s)=s2+ω02s2+ω0Qs+ω02

Its zeros sit right on the jω axis at ±jω0, so the gain there is zero. Its −3 dB band is f0/Q wide, the same Q as a band-pass. A notch is 1−HBP: the input minus a band-pass's output.

The passive twin-T notch, two T-networks in parallel (one of R, R and 2C, the other of C, C and R/2), nulls at

f0=12πRC

but alone has a low Q of 1/4; feeding back part of its output with an op amp raises it. In practice the depth is set by how closely the parts match: 1% resistors typically leave a notch 30 to 40 dB deep.

All-pass filters

A first-order all-pass,

H(s)=1−sτ1+sτ

has |H|=1 at every frequency and phase −2tan−1⁡ωτ, sweeping from 0° to −180°. Its group delay is 2τ1+(ωτ)2, twice an RC low-pass's. A second-order all-pass sweeps 0° to −360°, reaching −180° at its ω0.

Uses: delay equalizers that add delay where another filter has too little, flattening the total group delay (lesson 3); phase shifters for single-sideband radios and phasing audio effects; and fractional delays in digital signal processing.

Worked example

A 50 Hz hum notch has Q = 10. How wide is the notch, and how much does it take off at 45 Hz?

Show the solution
  1. Notch width. B=5010=5Hz
  2. Gain at 45 Hz. At r=0.9: |H|=|1−0.810.19+j0.09|=0.90 or −0.9 dB.
  3. Compare. A signal at 45 Hz is barely touched while 50 Hz is removed.

Answer the notch is 5 Hz wide, and it takes 0.9 dB off at 45 Hz.

Worked example

What twin-T resistor gives a 50 Hz notch with C = 0.33 µF?

Show the solution
  1. Resistor for 50 Hz. R=12πf0C=12π×50×0.33×10−6=9.6kΩ
  2. With a standard 10 kΩ. The notch would sit at 48 Hz, so precision parts or a trimmer are used.

Answer 9.6 kΩ.

Worked example

A first-order all-pass has its 90° point at 1 kHz. What phase does it give at 3 kHz, and what's its group delay at DC?

Show the solution
  1. Phase. ϕ=−2arctan⁡ff0 which is −90° at 1 kHz.
  2. At 3 kHz. ϕ=−2arctan⁡3=−143° heading for −180°.
  3. Group delay at DC. τg=2ω0=1πf0=0.318ms
  4. Where it's used. Cascading a few such sections with spread-out corners builds a phase-shift network, used in single-sideband modulators to make two signals 90° apart over a whole audio band.

Answer −143° at 3 kHz, and a group delay of 0.318 ms at DC.

Check

A twin-T notch uses R = 10 kΩ and C = 0.1 µF. Where is its null?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

Check

A notch at 60 Hz has Q = 2. How wide is it between the −3 dB points?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

Check

A notch with Q = 5 is driven at 0.8 times its center frequency. What is its gain?

Check

A first-order all-pass with τ = 0.1 ms carries a 100 Hz sinusoid. What phase does it add?

Check

What group delay does a first-order all-pass with τ = 0.5 ms give at low frequencies?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

Check

A second-order all-pass is centered at 2 kHz. What phase does it give there?

Check

A first-order all-pass has its 90° point at 1 kHz.

(a)

What phase does it give at 0.5 times that?

(b)

What's its group delay at DC?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

Check

A first-order all-pass with 90° at f, evaluated at g (both Hz).

Step 1

What's its phase?

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

How can a filter that passes every frequency at the same strength be useful?

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.