P20 IIR Filters Part3
P20 IIR Filters Part3
(IIR)
Digital Filters (III)
Bilinear mapping
Yogananda Isukapalli
1
• Mapping of integrals
Consider an analog integrator:
1
H (s) =
s
t
y (t ) = ò x(t )dt
0
nth sample
2
We now have a recursion formula:
nT +T
x(t)
0 T 2T nT nT+T t
3
Follows:
nT +T
1
= T [x(nT + T ) - x(nT )] + [Tx (nT )]
2
T
= [x(nT ) + x(nT + T )]
2
Therefore,
T
y (nT + T ) = y (nT ) + [x(nT ) + x(nT + T )]
2
Digital Integrator
Z-transform:
T
zY ( z ) = Y ( z ) + [ X ( z ) + zX ( z )]
2
Y ( z) T z + 1
H ( z) = =
X ( z) 2 z - 1
4
• Conclusion:
1 T z +1
H (s) = H ( z) =
s 2 z -1
Implies: s z mapping
T z +1
s -1 =
2 z -1 Bilinear
2 z -1 mapping
s=
T z +1
5
Bilinear transformation: General approach:
z -1
s= (T is ignored)
z +1
1+ s
z=
1- s
H ( z ) = H (s) z -1
s=
z +1
Evaluation of mapping:
then
(1 + s ) 2 + w ¢2
z =r=
(1 - s ) 2 + w ¢2
6
w¢ -1 - w ¢
y = tan (-1
) - tan ( )
1+ s 1-s
w¢ w¢
y = tan (
-1 -1
) + tan ( )
1+ s 1-s
(b) Consider the points on the imaginary axis of
the s-plane for all w ¢ .
s = 0 Þ z = r =1 all w ¢
Im(s)
s-plane
0 Re(s)
Im(z)
z-plane
Re(z)
z =1
7
(c) Consider the points in the left-half of the
s-plane.
Re( s ) = s < 0
Re(s)
Im(z)
|z|=1 z-plane
Re(z)
z <1
8
(d) Consider the points in the right-half of the
s-plane.
Re( s ) = s > 0
Re(s)
Im(z)
z-plane
Re(z)
z >1
9
Conclusion: Stable analog filters are mapped from
s-plane to z-plane as stable digital filters. Aliasing
problem is eliminated.
Consider
z -1
s=
z +1
jw T jw T / 2 jw T / 2 - jw T / 2
e p - 1 e p (e p - e p )
jw ¢p = jw pT = jw p T / 2 jw p T / 2 - jw p T / 2
e +1 e (e +e )
j sin(w pT / 2)
= = j tan(w pT / 2)
cos(w pT / 2)
w ¢p = k tan(w pT / 2)
k = 1 or 2/T
T = sampling period
10
Frequency scale distortion:
w¢
w ¢ = k tan(wT / 2)
0 p p w
2
11
Summary of Bilinear Transformation method1
12
Example 1:
13
Example 2:
Soln.
14
Example 3:
Soln.
15
Use of BZT and Classical Analog Filters
æ 10 As
ö
ç 10 - 1 ÷
logç Ap ÷
ç 10 10 - 1 ÷
Filter order N N³ è ø (8.26)
æ w s¢ ö
2 logç ÷
ç w¢ ÷
è pø
16
Analog Filters Review contd
Frequency K
| H ( jw ¢) | =
2
response 1 + e 2C N2 (w ¢ / w ¢p )
(8.27)
æ 10 As
ö
-1 ç 10 - 1 ÷
cosh ç Ap ÷
Filter order N ç 10 10 - 1 ÷
(8.29)
N³ è ø
æ ö
-1 ç w s¢ ÷
2 cosh
ç w¢ ÷
è pø
17
Analog Filters Review contd
Frequency K
response
| H ( jw ¢) |2 =
1 + e 2GN2 (w ¢)
(8.30)
18
Analog Frequency Transformations
wlp wlp
jw = j
p
i.e. w =
p
(8.31)
w ¢p w ¢p
19
2. Desired High pass Low pass prototype
The low pass to high pass transformation is:
w ¢p
s= From 8.21 (b)
s
Denote frequencies for
w ¢p w ¢p
jw = - j
p
i.e. w = -
p (8.32)
w hp w hp
20
2. Desired Band pass Low pass prototype
The low pass to band pass transformation is:
s 2 + w o2
s= From 8.21 (c)
Ws
Denote frequencies for
jw p = i.e. w p =
bp o
(8.33)
jWw bp Ww bp
21
From eqn (8.33)
22
2. Desired Band stop Low pass prototype
The low pass to band stop transformation is:
Ws
s= From 8.21 (d)
s 2 + wo2
Denote frequencies for
23
24
25
Design Examples
26
27
28
29
30
Problem
Design a low-pass digital filter operating at the rate of 20 kHz.
And having pass-band extending to 3 kHz. with a maximum
Pass-band attenuation of 0.5 dB, and stop-band starting at
5 kHz. with a minimum stop-band attenuation of 10 dB.
a) Use Butter-worth design b) Using Chebyshev design
Solution:
31
a) Using the Butter-worth design:
1
= 4 3 2
æ z -1ö æ z -1ö æ z -1ö
ç ÷ + 2.6131ç ÷ + 3.4142ç ÷
è z +1ø è z +1ø è z +1ø
æ z -1ö
+ 2.6131ç ÷ +1
è z + 1 ø
b) Using the Chebyshev design:
1
= 3 2
æ z -1ö æ z -1ö æ z -1ö
ç ÷ + 1.253ç ÷ + 1.535ç ÷ + 0.716
è z + 1 ø è z + 1 ø è z + 1 ø
33