Professional Documents
Culture Documents
DSP Unit 4 Iir Filters
DSP Unit 4 Iir Filters
In literature
• There are several methods to design IIR filters.
• All are based on converting stable analog filter into
stable Infinite duration Impulse Response Digital
filters.
May 31, 2024 Prof K.Venkat Reddy 4
Stability in Both Domains
Z-plane S-plane
Im Im
Marginally
Stable Marginally
Unstable
Stable
-1 1
Re Re
Stable
Stable Unstable
Topics:
1. IIR Filter design: Impulse-Invariant Method
h[t] h[n]
34567 n
t
-8-7-6-5-4-3 -2 -1 1 2 8 9 10
H ( z ) Z .T h(t )
May 31, 2024 Prof K.Venkat Reddy 10
Impulse Invariance Transformation
n 0 n 0
re e j ( j ) T
r e T
and T
May 31, 2024 Prof K.Venkat Reddy 11
Impulse Invariance Transformation
On jΩ-
axis
0 r e 1 0.T
UNIT CIRCLE
Left-half S-plane
0 r eT 1 INSIDE UNIT CIRCLE
Right-half S-plane
ΩT ΩT
Re σT
• Disadvantage:
It is not one-to-one mapping it is many-to-one
mapping.
May 31, 2024 Prof K.Venkat Reddy 14
Impulse Invariance Transformation
jΩ
UNIT CIRCLE Im Z-plane 2π/T
S-plane
π/T
ΩT Ω
Re 2π/T
σ
-π/T
Where {pk} are the poles of the analog filter and {Ck}
are the coefficients in the partial fraction expansion.
It’s inverse Laplace Transform is
N
ha (t ) Ck e p t
k
t0
k 1
k 1
May 31, 2024 Prof K.Venkat Reddy 17
Impulse Invariance Transformation method-
Derivation of steps
• We know that
H ( z ) h[n]z n
n 0
N
by substituting h[ n ] ha ( nT ) k
C e p nT
k 1
k
1
z Ck e z
N N N
H ( z ) Ck e pk nT n pk T 1 n
Ck p T 1
n 0 k 1 k 1 n 0 k 1 1 e z
k
.i.e. if
Ck
N
CkN
H a (s) then H ( z) p T 1
k 1 s pk k 1 1 e z
k
Ck Ck Ck Ck
pk T 1
s pk s pk 1 e z 1 e pk T z 1
May 31, 2024 Prof K.Venkat Reddy 20
Impulse Invariance Transformation method-
Steps in solving problems
2 2 2 2
H ( z) 1 1
2 1
1
1 e z 1 e z 1 0.3678z 1 0.1353z 1
0.465 z 1
H ( z)
1 0.503z 0.04976 z
1 2
1 1 1
H ( z)
2 1 e ( a jb )T z 1 1 e ( a jb )T z 1
1 e aT cos(bT ) z 1
H ( z)
1 2e aT cos(bT ) z 1 e 2 aT z 2
0.453z 1
Answer : H ( z )
(1 0.7497 z 1 0.2432 z 2 )
hs[t] hs[n]
34567 n
t
-8-7-6-5-4-3 -2 -1 1 2 8 9 10
H s ( z ) Z .T of hs (t ) after sampling
H s ( z ) Z .T I .L.T I
H (s)
s
z 1 H (s)
So we can write H ( z) Z .T I .L.T
z s
May 31, 2024 Prof K.Venkat Reddy 28
Step Invariance Transformation method-
Example.12:
For an analog system whose transfer function is given by
2
H (s)
( s 1)( s 2)
10 3 z (9.055 z 8.194)
H s ( z)
( z 1)( z 2 1.7235 z 0.7408)
z 1 9.055x103 ( z 1 0.9048z 2 )
H ( z) H s ( z)
z (1 1.7235z 1 0.7408z 2 )
May 31, 2024 Prof K.Venkat Reddy 30
Bilinear Transformation Method
The IIR filter design techniques described in the
previous sections have severe limitations in that
they are appropriate only for low-pass filter
design and limited class of band-pass filter
design.
In this section we describe a mapping from the s-
plane to the z-plane, called the bilinear
transformation, that overcomes the limitation of
the other design methods described previously.
H ( z)
Y ( z)
bT
2 1 z1
X ( z ) 1 aT2 1 aT2 z 1
bT
1 z
1 bT
2
1 z
2
1 z 1 aT
2
1 1 z 1
1 z 1
aT
2
b
H ( z) (9)
a
2 1 z
T 1 z 1
1
b b
H ( z)
H (s)
sa a
2 1 z 1
T 1 z 1
S (10)
2 1 z 1
T 1 z 1
This relationship between s and Z is known as
Bilinear transformation.
May 31, 2024 Prof K.Venkat Reddy 37
Bilinear Transformation
one-to-one mapping
S T2
1 z1
1 z 1
z 1 sT
1 sT2
2
2arctan 2T
T
2
2
2 s 2 2
j arctan
j 2 / T
z T e
T
2 s T
2 j
2
2
2 e
j arctan
2 / T
T T
T
2
2
2
T
z
2
2
2
T
May 31, 2024 Prof K.Venkat Reddy 43
Conclusion 3:
If 0 (left-half s-plane), we find z 1(inside
unit circle)
Conclusion 4:
If 0 (right-half s-plane), we find z 1 (outside
unit circle)
j j Im[s ]
Im[ z ]
0 1
Re[s ] 0 Re[ z ]
Then calculate
p 20 log10 1
s 20 log10 2
Solution Given H ( s ) 2
( s 1)( s 2 ) and T 1sec
: so
H ( z ) H ( s ) s 2 1z1 2
( s 1)( s 2 ) s 2 1 z 1
T 1 z 1 1
1 z
We can get
H ( z) 2
2 1 z 1 1 2 1 z 1 2
1 z 1 1 z 1
May 31, 2024 Prof K.Venkat Reddy 48
Bilinear Transformation method
Example.13 Cont.d
So 2 (1 z 1 ) 2
H ( z ) 2 (1 z 1
) (1 z 1 ) 2 (1 z 1 ) 2 (1 z 1 )
2 (1 z 1 ) 2
H ( z ) 2 2 z 1
1 z 1 2 2 z 1 2 2 z 1 )
2 (1 z 1 ) 2 0.5 (1 z 1 ) 2
H ( z) 4 ( 3 z ) 1 ( 3 z 1 )
0.166 (1 z 1 ) 2
H ( z) (1 0.333 z 1 )
k sin 2 2 k 1
2
sinh
1
2
1 1
sinh ( ) k cos2 2 k21 cosh 12 sinh 1 ( 1 )
1
2
1 1
sinh ( ) 0.5493 sinh 1
2 sinh 1 1
( ) 0.5773
cosh 12 sinh 1 ( 1 ) 1.1547
1, 2 sin 2 12 (0.5773) 0.4082
1, 2 cos2 12 (1.1547) 0.8165
1 2
0.64
H (S )
S 2 0.816 S 0.83
Denormalized Transfer function is
0.64 0.64
H (s) H (S ) S s
c S 2 0.816S 0.83 S 0.s75 ( 0.s75 ) 2 0.816( 0.s75 ) 0.83
0.36
H (s) 2
s 0.612 s 0.467
May 31, 2024 Prof K.Venkat Reddy 52
Bilinear Transformation method
Example.14 Cont.d
0.36
H ( z ) H ( s ) s 2 1z1 2
T 1 z 1 s 0.612s 0.467 s 2 1z11
1 z
0.36
H ( z)
4 0.6122 0.467
1 z 1
1 z 1
2
1 z 1
1 z 1
0.36(1 z 1 ) 2
H ( z)
4(1 z 1 ) 2 1.224(1 z 1 )(1 z 1 ) 0.467(1 z 1 ) 2
0.36( z 2 2 z 1 1)
H ( z)
4( z 2 2 z 1 1) 1.224(1 z 2 ) 0.467( z 2 2 z 1 1)
1 2
0.36(1 2 z z )
H ( z) 1 2
5.691 7.066 z 3.243z
1 2
0.063(1 2 z z )
H ( z) 1 2
1 1.242 z 0.57 z
aT 1
0.48e sin(bT ) z
H ( z) aT 1 2 aT 2
1 2e cos(bT ) z e z
0.453z 1
Answer : H ( z )
(1 0.7497 z 1 0.2432 z 2
k 1 1 k z 1
sin p 'p 2
sin p 'p 2
p : passband frequency of lowpass filter
'p : passband frequency of new filter
z 1
H z 1 H
1
1 z
May 31, 2024 Prof K.Venkat Reddy 62
Frequency Transformations in
Digital Domain
2. Low-Pass to High-Pass Transformation
1 z 1
z
1 z 1
cos 'p p 2
cos '
p p 2
p : passband frequency of lowpass filter
'p : passband frequency of highpass filter
z 1
H z 1 H
1
1 z
May 31, 2024 Prof K.Venkat Reddy 63
Frequency Transformations in
Digital Domain
3. Low-Pass to Band-Pass Transformation
2k 1 k 1 cosu l 2
z 2
z
1 k 1 k 1 cosu l 2
z
k 1 2 2k 1
z z 1 p
k 1 k 1 k cotu l 2 tan
u : upper passband frequency
2
l : lower passband frequency
2 2k 1 k 1
z z
H z
1
H k 1 k 1
k 1 z 2 2k z 1 1
k 1 k 1
May 31, 2024 Prof K.Venkat Reddy 64
Frequency Transformations in
Digital Domain
4. Low-Pass to Band-Stop Transformation
2 1 1 k cosu l 2
z 2
z
1 k 1 k cosu l 2
z 1
1 k 2 2 1
z z 1 p
1 k 1 k k tanu l 2 tan
2
u : upper passband frequency
l : lower passband frequency
2 2 1 1 k
z z
H z 1
H 1 k 1 k
1 k z 2 2 z 1 1
1 k 1 k
May 31, 2024 Prof K.Venkat Reddy 65
Comments on frequency
transformations in digital domain
Since, the frequency transformations may be
performed either in the analog domain or in the
digital domain, a filter designer has a choice which
approach will take.
We know that the impulse invariance method
and the step invariance method are
inappropriate to use in designing high-pass
and many band-pass filters due to the aliasing
problem.
Consequently, one would not employ analog
frequency transformations followed by conversion of
the result into digital domain by use of these two
mappings.
May 31, 2024 Prof K.Venkat Reddy 66
Comments on frequency
transformations in digital domain
• Parameters
1 0.01
2 0.001
p 22000
s 23000
• Specs in dB
– Ideal passband gain =20log(1) = 0 dB
– Max passband gain = 20log(1.01) = 0.086dB
– Max stopband gain = 20log(0.001) = -60 dB
May 31, 2024 Prof K.Venkat Reddy 68
Butterworth Lowpass Filters
• Passband is designed to be maximally flat
• The magnitude-squared function is of the form
1 1
Hc j Hc s
2 2
1 j / j c 1 s / j c
2N 2N
Hc j
2 1
1 V / c
2 2
VN x cos N cos 1 x
N
k 1
• System function
N
TdAk
Hz sk Td 1
k 1 1 e z
esk Td
• Pole s=sk in s-domain transform into pole at
May 31, 2024 Prof K.Venkat Reddy 72
Example
• Impulse invariance applied to Butterworth
0.89125 H e j 1 0 0.2
He 0.17783
j
0.3
1 j / j c
2N
• Which yields
2 Td
tan or 2 arctan
Td 2 2
1 / c
2N
• To get
2N 2 2N 2
2 tan 0.1 1 2 tan 0.15 1
1 and 1
c 0.89125 c 0.17783
• Resulting in
0.20238
Hc s
s2 0.3996 s 0.5871 s2 1.0836 s 0.5871 s2 1.4802 s 0.5871
• Applying the bilinear transform yields
Hz
0.0007378 1 z 1
6
1 1.2686z 1
0.7051z 2 1 1.0106 z 1 0.3583z 2
1
1 0.9044z 1
0.2155z 2
May 31, 2024 Prof K.Venkat Reddy 80
Example Cont’d