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

S7 · Lesson 16 · Linear-phase FIR systems

The four types of linear-phase FIR filter, their amplitude functions and forced zeros, zero quadruples, and which type suits which job

A symmetric impulse response gives a filter that delays every frequency equally, the property lesson 12 showed matters for pulses and data. But symmetry comes in four flavors, odd or even length and symmetric or antisymmetric, and each one forces zeros onto the unit circle at particular places. One kind can't make a highpass filter at all; another can't pass DC. Knowing the four types before designing saves discovering, after an hour of optimization, that the requested filter was impossible with the chosen length.

  • Amplitude responses of the simplest filters of each type, all with a free coefficient b: Type I [1,b,1], Type II [1,b,b,1], Type III [1,0,−1] and Type IV [1,b,−b,−1].
  • Whatever b is, Type II is zero at ω = π, Type IV is zero at ω = 0, and Type III is zero at both.
  • Only Type I is free at both ends, which is why it's the default for lowpass, highpass and bandstop designs.

Predict

A designer asks for a linear-phase highpass FIR filter with 32 taps and symmetric coefficients. What goes wrong?

Name it

Four types

With N taps (order M = N − 1) and H(ejω)=A(ω)e−jωM/2ejβ, A real:

TypeSymmetryLengthForced zerosSuits
Ih[n]=h[M−n]oddnoneany filter
IIh[n]=h[M−n]evenω = πlowpass, bandpass
IIIh[n]=−h[M−n]oddω = 0 and πHilbert transformers, bandpass
IVh[n]=−h[M−n]evenω = 0differentiators, Hilbert, highpass

Types III and IV add a constant 90° (β = π/2), which differentiators and Hilbert transformers need. All four have constant group delay M/2 samples.

Zero locations

For real, linear-phase h[n], zeros come in groups: if c is a zero, so are c*, 1/c and 1/c*. Zeros on the unit circle come in conjugate pairs, real zeros in reciprocal pairs, and zeros at ±1 alone. Types II to IV have their forced zeros at z = −1, ±1 and +1.

Amplitude functions

Type I with h=[a,b,a]: A(ω)=b+2acos⁡ω. Type II with [a,b,b,a]: 2bcos⁡ω2+2acos⁡3ω2. Type III with [a,0,−a]: 2asin⁡ω. Type IV with [a,b,−b,−a]: 2asin⁡3ω2+2bsin⁡ω2.

Worked example

Show that h=[1,2,2,1] can't pass high frequencies, and find its gain at DC and at ω = 2π/3.

Show the solution
  1. At ω = π. H(−1)=1−2+2−1=0 This is the Type II forced zero, so high frequencies can't pass.
  2. At DC. The gain is the sum of the taps, 6.
  3. At 2π/3. A=2(2)cos⁡(π/3)+2cos⁡π=2−2=0 a second null.
  4. Factor. The coefficients factor as (1+z−1)(1+z−1+z−2) with zeros at −1 and at e±j2π/3.

Answer the response is forced to zero at ω = π; the gain is 6 at DC and 0 at 2π/3.

Worked example

A linear-phase filter has a zero at 0.5ejπ/4. What's the shortest real linear-phase filter with that zero?

Show the solution
  1. The zeros it brings. The zero brings its conjugate and reciprocals with it: 0.5e−jπ/4, 2ejπ/4 and 2e−jπ/4.
  2. Multiply the factors. (1−0.7071z−1+0.25z−2)×(1−2.828z−1+4z−2) gives [1, −3.536, 6.25, −3.536, 1].
  3. Check its type. The taps are symmetric: 5 taps, Type I, with group delay 2 samples.

Answer h = [1, −3.536, 6.25, −3.536, 1], a 5-tap Type I filter with a group delay of 2 samples.

Worked example

A Type I filter has h = [−1, 2, 6, 2, −1]/8. Find its amplitude at 0, π/4, π/2 and π, and its delay.

Show the solution
  1. Amplitude. A(ω)=68+2⋅28cos⁡ω+2⋅−18cos⁡2ω=0.75+0.5cos⁡ω−0.25cos⁡2ω
  2. Evaluate. It's 1 at DC, 1.10 at π/4, 1 at π/2 and exactly 0 at π.
  3. Shape. The negative end taps sharpen the response, peaking slightly above 1 before the null.
  4. Delay. 5−12=2samples at every frequency.

Answer the amplitude is 1 at DC, 1.10 at π/4, 1 at π/2 and 0 at π, and the delay is 2 samples.

Check

A Type I filter [1,1,1]. What's its amplitude A(ω) at ω = 2.6?

Check

A Type II filter [1,1,1,1]. What's A(ω) at ω = 2.5?

Check

A Type III filter [1,0,−1]. What's |A(ω)| at ω = 0.3?

Check

A Type IV filter [1,2,−2,−1]. What's A(ω) at ω = 2.8?

Check

A linear-phase filter's zero at 0.6e^{j20°} forces three more zeros. In the resulting 5-tap filter [1, ·, c₂, ·, 1], what's the center coefficient c₂?

Check

What's the gain at ω = π of the Type I filter [1,1,1,1,1] (with signs)?

Check

A Type I filter has taps [−1, 2, 10, 2, −1].

(a)

What is A(ω) at ω = 2.5?

(b)

What is A(π)?

Check

A Type I filter has taps [a, b, c, b, a].

Step 1

What is its amplitude A(w)?

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 must a symmetric filter with an even number of taps have zero gain at the Nyquist frequency?

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.