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 in theory; its −3 dB width is . 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?
0 dB and −90°. An all-pass, , has the same magnitude for every frequency, so its gain is always 0 dB. Its phase is , and 159 Hz is where : −90°, twice the RC low-pass's −45° there.
Name it
Notch filters
A second-order notch (band-stop) has
Its zeros sit right on the axis at , so the gain there is zero. Its −3 dB band is wide, the same Q as a band-pass. A notch is : 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
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,
has at every frequency and phase , sweeping from 0° to −180°. Its group delay is , twice an RC low-pass's. A second-order all-pass sweeps 0° to −360°, reaching −180° at its .
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
- Notch width.
- Gain at 45 Hz. At : or −0.9 dB.
- 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
- Resistor for 50 Hz.
- 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
- Phase. which is −90° at 1 kHz.
- At 3 kHz. heading for −180°.
- Group delay at DC.
- 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°.
Step 2
What's its group delay?
Explain why
How can a filter that passes every frequency at the same strength be useful?
An all-pass filter leaves every amplitude alone but delays different frequencies by different amounts. That's exactly what's needed to correct another filter whose group delay varies across its band: adding an all-pass that delays the frequencies the first filter rushed through evens out the total delay, so pulses keep their shape. The same frequency-dependent phase shift is used to build phase shifters, for example to make two copies of an audio or radio signal 90° apart over a wide band.
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.