IIR Filter Design Lecture PDF
IIR Filter Design Lecture PDF
(11.1)
analog-to-digital
analog lowpass frequency band
filter
filter filter design transformation
transformation
specifications
(11.2)
and
(11.3)
In particular, at and , we have:
(11.4)
and
(11.5)
(11.6)
and
(11.7)
The magnitude square response of a th-order Butterworth
lowpass filter is:
(11.8)
(11.9)
(11.10)
(11.11)
-plane -plane
(11.12)
Example 11.1
The magnitude square response of a Butterworth lowpass
filter has the form of:
Expressing as:
(11.13)
and
(11.14)
Solving (11.13)-(11.14) and noting that should be an
integer, we get
(11.15)
(11.16)
From (11.14), is computed as:
(11.17)
(11.18)
Example 11.2
Determine the transfer function of a Butterworth lowpass
filter whose magnitude requirements are ,
, dB and dB.
Employing (11.15) yields:
-8
-16
-50
0 4 6 20
/
Each has its pros and cons and thus optimal transformation
does not exist
Impulse Invariance
(11.19)
(11.20)
(11.21)
(11.22)
(11.23)
Substituting (11.23) into (11.19), we have:
(11.24)
(11.25)
(11.26)
Expressing :
(11.27)
and
Using Example 11.2, a Butterworth filter which meets the
magnitude requirements are:
It is a one-to-one mapping
(11.28)
Employing , can be expressed as:
(11.29)
(11.30)
Example 11.5
The transfer function of an analog filter has the form of
Example 11.6
Determine the transfer function of a digital lowpass
filter whose magnitude requirements are , ,
dB and dB. Use the Butterworth lowpass filter
and bilinear transformation in the design.
Following (11.11)-(11.12):
(11.31)
Highpass
Bandpass
Bandstop
Example 11.7
Determine the transfer function of a digital highpass
filter whose magnitude requirements are , ,
dB and dB. Use the Butterworth lowpass filter
and bilinear transformation in the design.
Family PB SB
Butterworth flat flat
Chebyshev I ripples flat
Chebyshev II flat ripples
Elliptical ripples ripples
10
CT Transfer Functions
Analog systems: s-transform (Laplace)
Continuous-time Discrete-time
Transform H a (s) = ha (t )e st
dt H d (z ) = hd [n] z n
Frequency
response H a ( j) Hd e( )j
Im{s} Im{z}
j ej
Pole/zero Re{z}
diagram Re{s}
1
stable s-plane stable z-plane
poles poles
Dan Ellis 2005-11-10 11
Butterworth Filters
Maximally flat in pass and stop bands
Magnitude 1 filter
response (LP): H a ( j) =
2
order
( )
2N N
1+ c
<<c,
|Ha(j)|2 1
= c,
|Ha(j)|2 = 1/2
3dB point
12
Butterworth Filters 6N dB/oct
rolloff
>>c, |Ha(j)|2 (c/)2
Log-log
magnitude
response
n
d
H a ( j) = 0
2
flat n
d
@ = 0 for n = 1 .. 2N-1
13
Butterworth Filters
How to meet design specifications?
1 1
( ) 1+2
p 2N
1+ c
Design
Equation
( )
1 1
2 1
2
A
1 log10 2
1+( )
s 2N A N
c
( )
2 log10 s
p
p
k1 = k=
A 1
2
s
=“discrimination”, <<1 =“selectivity”, < 1
14
Butterworth Filters
1
H a ( j) =
2
but what is Ha(s)?
1+ ( )2 N
c
s 2N
= 1
j N +2 i1
where pi = c e 2N
i = 1..N c
s-plane
15
Butterworth Example
Design a Butterworth
filter with 1 dB cutoff
at 1kHz and a
minimum attenuation
of 40 dB at 5 kHz
1
1dB = 20 log10 = 0.259
2
1+ 2
9999
40dB = 20 log10 A A = 100
1 log
N 21 10 0.259
s log10 5
=5
p N = 4 3.28
16
Butterworth Example
Order N = 4 will satisfy constraints;
What are c and filter coefficients?
from a table, -1dB = 0.845 when c = 1
c = 1000/0.845 = 1.184 kHz
from a table, get normalized coefficients for
N = 4, scale by 1184·2
Or, use Matlab:
[b,a] =
butter(N,Wc,’s’);
17
M
Chebyshev I Filter
Equiripple in passband (flat in stopband)
minimize maximum error
1
H a ( j)
2
=
1+ 2TN2 (p )
Chebyshev
polynomial TN () =
(
cos N cos1 ) 1
of order N (
cosh N cosh 1 ) >1
18
Chebyshev I Filter
Design procedure:
desired passband ripple
min. stopband atten., p, s N :
1 1 1
= =
[
A 1+ TN ( p ) 1+ 2 cosh N cosh 1 s
( )]
2 2 2 s 2
p
N
cosh 1
( A 2 1
) 1/k1, discrimination
1 s
cosh p ( ) 1/k, selectivity
19
Chebyshev I Filter
What is Ha(s)?
complicated, get from a table
.. or from Matlab cheby1(N,r,Wp,’s’)
1
H a ( j) =
2
constant
T ( s )
2
2 N p
1+
TN (s )
~1/TN(1/)
zeros on imaginary axis
21
Elliptical (Cauer) Filters
Ripples in both passband and stopband
1
H a ( j)
2
=
1+ 2 RN2 (p )
function; satisfies
RN(-1) = RN()-1 very narrow
zeros for <1 poles for >1 transition band
N=6
r = 3 dB
A = 40 dB
23