Design
Window method
Spring 2012
© Ammar Abu-Hudrouss - ١
Islamic University Gaza
Introduction
1, c
H ( )
0 , c
c
, n0
hn
sin c n n0
n
١
Paely-Weiner Theorem
For practical implementation, the filter function should be causal.
Paely – Weiner theorem summarize the conditions that should be
satisfied to guarantee causality which are :
٣
Digital Signal Processing
Slide ٣
Practical Filter
٢
FIR Filter
H z b0 b1 z 1 b2 z 2 bM z M 1
The impulse response is
hn b0 , b1 , b2 , , bM
Then H(z) can be expressed as
M 1
H z h( k ) z k
k 0
H z h0 1 z 6 h1 z 1 z 5 h2 z 2 z 4 h3z 3
٣
Type I Symmetric FIR filter
Or
H z z 3 h0 z 3 z 3 h1 z 2 z 2 h2 z1 z 1 h3
Converting to DTFT
H e j 3 H R
HR() is a real-valued function but it can be positive or
negative, then the phase is given by
3 H R 0
3 H R 0
Digital Signal Processing
Slide ٧
H e j N / 2 H R
٤
Type II Symmetric FIR filter
j N / 2 N 1/ 2 N 1
H e 2h 2 n cosn 0.5
n 1
The phase is given by
N / 2 H R 0
N / 2 H R 0
And M =N -1 is even
After mathematic manipulation, we get
N /2 N
H e j N / 2 2 h n sin n
n 1 2
The phase is given by
N / 2 H R 0
N / 2 H R 0
٥
Type IV Symmetric FIR filter
And M =N -1 is even
After mathematic manipulation, we get
j N / 2 N 1/ 2 N 1
H e 2 h 2 n sin n 0.5
n 1
The phase is given by
N / 2 H R 0
N / 2 H R 0
All the four type have constant group delay (linear phase)
d
N / 2
d
1. Type I FIR filters have either an even number of
zeros or no zeros at z = 1 and z = −1.
٦
Properties of Linear Phase FIR Filters
Window method
٧
Windows method
c
, n0
hLP n
sin c n n0
n
1, N n N
w ( )
0, otherwise
Rectangular window
hd n wn hLP n
The new Hd (), will not be the same as the ideal H (). Gibbs phenomena is
raised by this truncation of h(n). The overshot can be reduced by
increasing M but the oscillation increases.
٨
other windows
3) Hamming windows
2 n
w n 0 . 54 0 . 46 cos 0 n M 1
M 1
4) Blackman window
2 n 4 n
w n 0 . 42 0 . 5 cos 0 .08 cos 0 n M 1
M 1 M 1
5) Kaiser window
6) Lanczose window
٩
4) Tukey window
c 2 c1
, n0
h n
1 sin n sin n n 0
n c1 c2
١٠
Examples
0,0.0289,0.1633,0.2449,0.1156,0.4,0.1156,
h n
0.2449,0.1633,0.0289,0
2 n
w n 0 . 54 0 . 46 cos 0 n9
10
Digital Signal Processing
Slide ٢١
Examples
Example 1:
2 n
w n 0 . 54 0 . 46 cos 0 n9
11
١١
Hamming Window Examples
Example 2
a) Calculate the filter coefficients for a 3-tap FIR lowpass filter
with a cutoff frequency of 800 Hz and a sampling rate of 8,000
Hz using Hamming window
b) Determine the transfer function and difference equation of the
designed FIR system.
c) plot the magnitude frequency response
١٢
Hamming Window Examples
١٣
Hamming Window Examples
Example 3:
a) Design a 5-tap FIR band reject filter with a lower cutoff frequency of
2,000 Hz, an upper cutoff frequency of 2,400 Hz, and a sampling rate
of 8,000 Hz using the Hamming window method.
b) Determine the transfer function.
١٤