Professional Documents
Culture Documents
HHP (e j )
c 0
c2 c1
HBS (e j )
HBP (e j )
c1
c2
c2 c1
c1
c2
1 p G ( e j ) 1 + p ,
11
10
2(3 103 )
= 0.24
25 103
13
Advantages in using an FIR filter (1) Can be designed with exact linear phase,
(2) Filter structure always stable with
quantized coefficients
Disadvantages in using an FIR filter - Order
of an FIR filter, in most cases, is
considerably higher than the order of an
equivalent IIR filter meeting the same
specifications, and FIR filter has thus higher
computational complexity
H ( z ) = h[n] z n
n =0
16
18
20
22
T 1+ z 1
Bilinear Transformation
Bilinear transformation 1
s = 2 1 z 1
T 1 + z
23
24
Bilinear Transformation
Bilinear Transformation
For s = o + jo
2
2
(1 + o ) + jo
2 (1 + o ) + o
z=
z =
(1 o ) jo
(1 o ) 2 + o2
o = 0 z = 1
Thus,
o < 0 z < 1
o > 0 z > 1
25
26
Bilinear Transformation
Bilinear Transformation
27
29
= tan(/2)
Bilinear Transformation
Bilinear Transformation
Nonlinear mapping introduces a distortion
in the frequency axis called frequency
warping
Effect of warping shown below
Steps in the design of a digital filter (1) Prewarp ( p , s ) to find their analog
equivalents ( p , s )
(2) Design the analog filter H a (s )
(3) Design the digital filter G(z) by applying
bilinear transformation to H a (s )
Transformation can be used only to design
digital filters with prescribed magnitude
response with piecewise constant values
Transformation does not preserve phase
response of analog filter
30
Example - Consider
c
s + c
Applying bilinear transformation to the above
we get the transfer function of a first-order
digital lowpass Butterworth filter
H a ( s) =
1+ z 1
where
c (1 + z 1 )
=
(1 z 1 ) + c (1 + z 1 )
31
32
33
H a ( j 0) = H a ( j) = 1
o is called the notch frequency
If H a ( j 2 ) = H a ( j1 ) = 1 / 2 then
B = 2 1 is the 3-dB notch bandwidth
Copyright 2005, S. K. Mitra
Then
=
35
1+
1 2 z + z
2 1 2 (1 + ) z 1 + z 2
1 + o2 B 1 tan( Bw / 2)
=
1 + o2 + B 1 + tan( Bw / 2)
1 o2
=
= cos o
Copyright 2005, S. K. Mitra
1 + o2
34
G( z) =
2
0
-10
-20
-30
= 0.587785
Copyright 2005, S. K. Mitra
where =
Gain, dB
= 0.90993
G ( z ) = H a ( s ) s =1 z
1+ z 1
2
2
(1 + o ) 2(1 o ) z 1 + (1 + o2 ) z 2
(1 + o2 + B) 2(1 o2 ) z 1 + (1 + o2 B ) z 2
1
2
1 c 1 tan(c / 2)
=
1 + c 1 + tan(c / 2)
Phase, radians
G ( z ) = H a ( s ) s =1 z 1
1
G ( z ) = 1 1 + z 1
2 1 z
36
-40
0
50
100
150
Frequency, Hz
200
1
0
-1
-2
0
50
100
150
Frequency, Hz
200
Prewarping we get
p = tan( p / 2) = tan(0.25 / 2) = 0.4142136
s = tan(s / 2) = tan(0.55 / 2) = 1.1708496
The inverse transition ratio is
1 s
=
= 2.8266809
k p
The inverse discrimination ratio is
If G (e j 0 ) = 1 this implies
20 log10 G (e j 0.25 ) 0.5
20 log10 G (e j 0.55 ) 15
37
38
N=
We choose N = 3
To determine c we use
2
1
1
=
2N
1 + ( p / c )
1 + 2
39
Ha ( s ) = Han
0.588148
40
1+ z 1
0
-10
Gain, dB
Magnitude
41
-20
-30
0.2
0
0.2
0.4
0.6
/
0.8
-40
0
0.2
0.4
0.6
We then get
c = 1.419915 ( p ) = 0.588148
log10 (1 / k1 )
= 2.6586997
log10 (1 / k )
H a ( j p ) =
A2 1
= 15.841979
1
=
k1
0.8
Copyright
2005, S. K. Mitra
/
42
43
46
s = tan(s / 2) = 1.0
Using = p p we get s = 1.962105
0
Gain, dB
-10
s = 1.926105 , p = 1dB, s = 32 dB
Copyright 2005, S. K. Mitra
2 Fp
2 700
=
= 0.7
FT
2000
2 Fs 2 500
s =
=
= 0.5
FT
2000
p =
47
-20
-30
-40
48
-50
0
0.2
0.4
0.6
/
0.8
1
Copyright 2005, S. K. Mitra
p 2 = tan( p 2 / 2) = 1.6318517
p2
p1 = 0.777771
Width of passband Bw =
o2 =
p1
p 2 = 1.393733
s1
s 2 = 1.23010325
o2
s1and
exhibit
geometric
symmetry
with
s2
o2
respect to
s1 = 0.5773031
We set
For the prototype analog lowpass filter we
choose p = 1
s1 = tan(s1 / 2) = 0.5095254
s 2 = tan(s 2 / 2) = 2.41421356
49
50
2 2
Using = p o we get
Bw
s =
1.393733 0.3332788
= 2.3617627
0.5773031 0.777771
0
Gain, dB
-10
-20
-30
-40
-50
52
0.2
0.4
0.6
0.8
/
Copyright 2005, S. K. Mitra
p 2 = 2.4142136
p1 = 0.5095254,
s2
s1 = 0.777771
Width of stopband Bw =
p1and
p2
p1so that
We therefore modify
exhibit geometric symmetry with respect to
o2
53
o2 =
s 2
s1 = 1.393733
o2
p 2 p1 = 1.230103
Copyright 2005, S. K. Mitra
p1 = 0.577303
We set
For the prototype analog lowpass filter we
choose s = 1
B
Using = s 2 w 2 we get
o
0.5095254 0.777771
p =
= 0.4234126
1.393733 0.3332787
54
-10
-20
-30
-40
-50
0
55
0.2
0.4
0.6
0.8
/
Copyright 2005, S. K. Mitra
10