Skip to main content

Low-pass FIR window design, αs = 40 dB

Short answer

Use Hanning window (44 dB attenuation). Transition width Δω=0.2π gives filter length M=41, α=20, cutoff ωc=0.4π. Impulse response h(n)=h_d(n)·w(n) symmetric, with h(20)=0.4.

Design a low pass FIR filter having pass band edge frequency ωp = 0.3π, stop band edge frequency ωs = 0.5π and stop band attenuation αs = 40 dB using any appropriate window function.

Choice of window

Required stop-band attenuation: 40 dB. The minimum attenuation of the standard windows: rectangular 21 dB, Bartlett 25 dB, Hanning 44 dB, Hamming 53 dB, Blackman 74 dB. The simplest window meeting 40 dB is the Hanning window (its main lobe is 8π/M wide).

Length

Transition width: Δω = ωs − ωp = 0.5π − 0.3π = 0.2π.

M ≥ 8π/Δω = 8π/0.2π = 40. Take M = 41 (odd, so the filter is Type I with an integer delay α = (M−1)/2 = 20).

Cut-off

ωc = (ωp + ωs)/2 = (0.3π + 0.5π)/2 = 0.4π

Ideal and window sequences

h_d(n) = sin(0.4π(n − 20)) / (π(n − 20)), n ≠ 20; h_d(20) = ωc/π = 0.4

w(n) = 0.5 [1 − cos(2πn/40)], 0 ≤ n ≤ 40

h(n) = h_d(n) · w(n)

Coefficients (h(n) = h(40 − n))

nh_d(n)w(n)h(n)
00.00000.00000.0000
1−0.01590.0062−0.0001
2−0.01040.0245−0.0003
30.01100.05450.0006
40.01890.09550.0018
50.00000.14640.0000
6−0.02160.2061−0.0045
7−0.01440.2730−0.0039
80.01560.34550.0054
90.02750.42180.0116
100.00000.50000.0000
11−0.03360.5782−0.0194
12−0.02340.6545−0.0153
130.02670.72700.0194
140.05050.79390.0401
150.00000.85360.0000
16−0.07570.9045−0.0685
17−0.06240.9455−0.0590
180.09350.97550.0913
190.30270.99380.3009
200.40001.00000.4000

Impulse response: h(n) = {0, −0.0001, −0.0003, 0.0006, 0.0018, 0, −0.0045, −0.0039, 0.0054, 0.0116, 0, −0.0194, −0.0153, 0.0194, 0.0401, 0, −0.0685, −0.0590, 0.0913, 0.3009, 0.4000, 0.3009, … (symmetric) …, 0}.

The transfer function is H(z) = Σ (n = 0 to 40) h(n) z⁻ⁿ, with linear phase θ(ω) = −20ω.

Check

Evaluating H(e^jω) numerically: the pass-band ripple is under 0.7 %, and the largest stop-band peak is −43.9 dB, which satisfies the 40 dB requirement.

Answer: Hanning window, M = 41, ωc = 0.4π, h(n) as in the table (h(20) = 0.4).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Signal Analysis and Processing chapter 5 questions →