IIR FilterDesign
IIR FilterDesign
Youssef Jaffal
Phoenicia University
Electrical & Communication Engineering
EENG 233: Digital Signal Processing
The figures in this presentation are taken from “Proakis & Manolakis, Digital Signal Processing, 4th edition.”
1/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
But if this were the case, the filter would have a mirror-image pole
outside the unit circle for every pole inside the unit circle. Hence the filter
would be unstable. Consequently, a causal and stable IIR filter cannot
have linear phase.
3/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design IIR Filter Design by Impulse Invariance
Characteristics of Commonly Used Analog Filters IIR Filter Design by the Bilinear Transformation
Impulse Invariance
Impulse response h[n] that is the sampled version of the impulse response
of the analog filter ha (t)
In frequency domain,
∞
H(ω) = Fs ∑ Ha [( f − k)Fs ]
k=−∞
or
∞
1 2πk
H(ΩT ) = ∑ a H Ω −
T k=−∞ T
5/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design IIR Filter Design by Impulse Invariance
Characteristics of Commonly Used Analog Filters IIR Filter Design by the Bilinear Transformation
Impulse Invariance
Express the system function of the analog filter in partial-fraction form
N
c
Ha (s) = ∑ s −kpk
k=1
Consequently
N
ha (t) = ∑ ck e p t , k
t ≥0
k=1
Example 1
Convert the analog filter with system function
s + 0.1
Ha (s) =
(s + 0.1)2 + 9
into a digital IIR filter by means of the impulse invariance method.
Solution:
The poles are at pk = −0.1 ± 3 j
By partial fraction expansion
0.5 0.5
Ha (s) = +
s + 0.1 − 3 j s + 0.1 + 3 j
Then
0.5 0.5
H(z) = +
1 − e−0.1T e3 jT z−1 1 − e−0.1T e−3 jT z−1
1 − e−0.1T cos(3T )z−1
=
1 − 2e−0.1T cos(3T )z−1 + e−0.2T z−2
7/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design IIR Filter Design by Impulse Invariance
Characteristics of Commonly Used Analog Filters IIR Filter Design by the Bilinear Transformation
Example 1 (cont’d)
Bilinear Transformation
The Impulse Invariance method have a severe limitation in that it is
appropriate only for lowpass filters and a limited class of bandpass filters.
The bilinear transformation is a one-to-one mapping that transforms the
jΩ-axis into the unit circle in the z-plane only once, thus avoiding aliasing
of frequency components.
Furthermore, all points in the LHP of s are mapped inside the unit circle
in the z-plane and all points in the RHP of s are mapped into
corresponding points outside the unit circle in the z-plane.
2 1 − z−1
s=
T 1 + z−1
9/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design IIR Filter Design by Impulse Invariance
Characteristics of Commonly Used Analog Filters IIR Filter Design by the Bilinear Transformation
Bilinear Transformation
Let z = re jω , s = σ + jΩ
r2 −1 2r sin(ω)
Then s = T2 1+r2 +2r cos(ω)
+ j 1+r2 +2r cos(ω)
if r = 1, then
2 sin(ω) 2 ω
Ω= = tan
T 1 + cos(ω) T 2
−1 ΩT
ω = 2 tan
2
10/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design IIR Filter Design by Impulse Invariance
Characteristics of Commonly Used Analog Filters IIR Filter Design by the Bilinear Transformation
Example 2
Design a single-pole lowpass digital filter with a 3−dB bandwidth of
O.2π, using the bilinear transformation applied to the analog filter
Ωc
Ha (s) =
s + Ωc
where Ωc is the 3−dB bandwidth of the analog filter.
Solution:
ωc = 0.2π corresponds to Ωc = T2 tan(0.1π) = 0.65/T
Thus the analog filter has the system function
0.65/T
Ha (s) =
s + 0.65/T
Now, we apply the bilinear transformation. Thus we obtain
0.245(1 + z−1 )
H(z) =
1 − 0.509z−1
The frequency response of the digital filter is
0.245(1 + e− jω )
H(ω) =
1 − 0.509e− jω
11/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
Butterworth filters
Lowpass Butterworth filters are all-pole filters characterized by the
magnitude-squared frequency response
1 1
|H(Ω)|2 = =
1 + (Ω/Ωc )2N 1 + ε 2 (Ω/Ω p )2N
where N is the order of the filter, Ωc is the −3-dB frequency, Ω p is the
passband edge frequency, and 1/(1 + ε 2 ) is the band edge value of
|H(Ω)|2 .
In the s-domain
1
H(s)H(−s) =
1 + (−s2 /Ω2c )N
13/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
14/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
Example 3
Determine the order and the poles of a lowpass Butterworth filter that has
a −3-dB bandwidth of 500Hz and an attenuation of 40-dB at 1000Hz.
Solution:
Ωc = 1000π and Ωs = 2000π
40-dB attenuation corresponds to δ2 = 0.01
log(104 −1)
Thus N = 2 log(2) = 6.64
To meet the desired specifications, we select N = 7.
The pole positions are
15/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
16/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
17/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
Elliptic filters
Elliptic (or Cauer) filters exhibit equiripple behavior in both the passband
and the stopband:
1
|H(Ω)|2 =
1 + ε 2UN (Ω/Ω p )
18/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
19/20
Youssef Jaffal Design of IIR Filters
IIR Filter Design
Characteristics of Commonly Used Analog Filters
20/20
Youssef Jaffal Design of IIR Filters