Ch10 - FIr - Filter Design - Structure - Lecture
Ch10 - FIr - Filter Design - Structure - Lecture
August 9, 2016
August 9, 2016
August 9, 2016
Zero-phase Filters
h(n)
August 9, 2016
H ( z ) z 1 z 0 z 1
H ( z ) 2 ( z1 z 1 ) / 2
j
H (e ) 2 cos
How do we realize the above non-causal function ?
August 9, 2016
Phase
(1) Find the phase of
1
H ( z ) 1 z 1
2
and plot
and plot
1
H ( z ) 1 z 1
2
August 9, 2016
h(n)
1
1
2
and plot
August 9, 2016
h[n] h[ N n]
Impulse response : symmetric / Antisymmetric
Length (N+1) must be even or odd
August 9, 2016
H ( z ) h[n] z
n 0
10
c ,
where c and are constants
Frequency response of H(z) is H(ej)
He
August 9, 2016
j c
11
H e
He
Since,
He
August 9, 2016
12
i.e., H H
Hence, we get
h[n] h[ N n]
August 9, 2016
13
August 9, 2016
14
LINEAR PHASE
h[n] h[ N n]
N=6
August 9, 2016
15
Magnitude Response
16
N=7
August 9, 2016
17
18
N=6
August 9, 2016
19
20
August 9, 2016
21
22
Phase Response
August 9, 2016
23
Problems
(1) Consider the causal TYPE 1 FIR transfer
function
1
H ( z ) 1 2 z 3z 6 z 3z 2 z z
August 9, 2016
24
August 9, 2016
25
Problems
(2) Consider the causal TYPE 1 FIR transfer
function
1
H ( z ) 1 2 z 3z 6 z 3z 2 z z
August 9, 2016
26
Answer
August 9, 2016
27
Problems
(3) Consider the causal TYPE 3 FIR transfer
function
1
H ( z ) 1 2 z 3z 3z 2 z z
August 9, 2016
28
Answer
August 9, 2016
29
August 9, 2016
31
Hermanns Formula
August 9, 2016
32
August 9, 2016
33
Bellangers Formula
August 9, 2016
2 log10 (10 p s )
2 s p / 2
34
Problem
Estimate the order of a linear phase
lowpass FIR filter with the following
specifications: passband edge F p = 1.8
kHz , stopband edge Fs= 2 kHz,
passband ripple p =0.00114469,
stopband ripple s =0.01778279 and
sampling rate FT=12 kHz
Using Kaisers, Hermanns and
Bellangers Formula
August 9, 2016
35
Problem
N = 98.2730
Bellangers Formula
N = 106.6525 107
August 9, 2016
36
August 9, 2016
37
August 9, 2016
38
August 9, 2016
39
August 9, 2016
40
August 9, 2016
41
August 9, 2016
42
August 9, 2016
43
August 9, 2016
44
August 9, 2016
45
August 9, 2016
46
August 9, 2016
47
August 9, 2016
48
August 9, 2016
49
August 9, 2016
50
August 9, 2016
51
August 9, 2016
52
August 9, 2016
53
August 9, 2016
54
August 9, 2016
55
August 9, 2016
56
M n M
otherwise
1,
Rectangular : w[n]
0
Bartlett : w[n] 1
n
M 1
M n M
1
2n
Hann : w[n] 1 cos
2
2M 1
M n M
2n
Hamming : w[ n] 0.54 0.46 cos
2M 1
2n
4n
Blackman : w[ n] 0.42 0.5 cos
0.08 cos
2M 1
2M 1
August 9, 2016
M n M
M n M
57
August 9, 2016
58
August 9, 2016
59
August 9, 2016
60
August 9, 2016
61
August 9, 2016
62
August 9, 2016
63
August 9, 2016
64
August 9, 2016
65
August 9, 2016
66
August 9, 2016
67
August 9, 2016
68
August 9, 2016
69
70
August 9, 2016
71
August 9, 2016
72
August 9, 2016
73
August 9, 2016
74
August 9, 2016
75
August 9, 2016
76
August 9, 2016
77
Problems
(1) A low-pass filter is to be designed with the following
desired frequency response
j
e j 2 ,
4 4
0,
H d (e )
1,
w(n)
0,
0n4
otherwise
78
solution
First Step :
August 9, 2016
Find hd[n]
79
1
hd [n]
2
1
hd [n]
2
/4
j 2
j n
/4
j
jn
H
e
e
d
d
/ 4
/4
hd [n]
sin n 2 ,
( n 2)
4
1
hd [n]
2
/4
j ( n 2 )
e
d
/ 4
n2
1
For n 2, hd [2]
4
August 9, 2016
80
1
hd [0]
hd [4]
2
1
hd [1]
hd [3]
2
August 9, 2016
81
ht[n] = hd[n]w[n]
ht[n] = hd[n]
August 9, 2016
82
H (e j ) h[n]e jn
n 0
H (e ) e
August 9, 2016
j 2
2
1
cos cos 2
83
for
H d [ e j ]
0 for
August 9, 2016
1 cos
2
2M
M n M
84
1
hd [n]
[
2
/ 4
j
jn
H
e
e
d
d
1
hd [n]
[
2
/ 4
jn
j
jn
H
e
e
d ]
d
/4
jn
d ]
/4
1
n
hd [n]
sin n sin
n
4
August 9, 2016
85
3
For n 0, hd [0]
4
86
1
2n
Hann : w[n] 1 cos
2
2M
M n M
For N = 11
n
Hann : w[n] 0.5 0.5 cos
5
August 9, 2016
87
n
Hann : w[n] 0.5 0.5 cos
5
w[0] 0.5 0.5 1
88
August 9, 2016
89
H (e j ) h[0] h[n] z n z n
n 0
August 9, 2016
90