IIR Filter Design: S S S Z
IIR Filter Design: S S S Z
IIR Filter
Design
IIR filters have infinite-duration impulse responses, and hence they can
be matched to analog filters, all of which generally have infinitely long im-
pulse responses. Therefore, the basic technique of IIR filter design trans-
forms well-known analog filters into digital filters using complex-valued
mappings. The advantage of this technique lies in the fact that both
analog filter design (AFD) tables and the mappings are available exten-
sively in the literature. This basic technique is called the A/D (analog-
to-digital) filter transformation. However, the AFD tables are available
only for lowpass filters. We also want to design other frequency-selective
filters (highpass, bandpass, bandstop, etc.). To do this, we need to apply
frequency-band transformations to lowpass filters. These transformations
are also complex-valued mappings, and they are also available in the liter-
ature. There are two approaches to this basic technique of IIR filter design:
Approach 1:
Approach 2:
370
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Some Preliminaries 371
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
372 Chapter 8 IIR FILTER DESIGN
|Ha( j Ω)|2
1
1+
1
A2
0 Ω
0 Ωp Ωs
1
|Ha (jΩp )|2 = at Ω = Ωp
1 +
2
(8.2)
1
|Ha (jΩs )|2 = at Ω = Ωs
A2
The parameters
and A are related to parameters Rp and As , respec-
tively, of the dB scale. These relations are given by
1 7
Rp = −10 log10 2
=⇒
= 10Rp /10 − 1 (8.3)
1+
and
1
As = −10 log10 =⇒ A = 10As /20 (8.4)
A2
The ripples, δ1 and δ2 , of the absolute scale are related to
and A by
√
1 − δ1 1 2 δ1
= =⇒
=
1 + δ1 1 +
2 1 − δ1
and
δ2 1 1 + δ1
= =⇒ A =
1 + δ1 A δ2
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Some Preliminaries 373
Ha (jΩ) = Ha (s)|s=jΩ
Then we have
or
2
Ha (s)Ha (−s) = |Ha (jΩ)| (8.5)
Ω=s/j
Therefore, the poles and zeros of the magnitude-squared function are dis-
tributed in a mirror-image symmetry with respect to the jΩ axis. Also for
real filters, poles and zeros occur in complex conjugate pairs (or mirror-
image symmetry with respect to the real axis). A typical pole-zero pat-
tern of Ha (s)Ha (−s) is shown in Figure 8.2. From this pattern, we can
construct Ha (s), which is the system function of our analog filter. We
want Ha (s) to represent a causal and stable filter. Then all poles of Ha (s)
must lie within the left half-plane. Thus we assign all left-half poles of
Ha (s)Ha (−s) to Ha (s). However, zeros of Ha (s) can lie anywhere in the
s-plane. Therefore, they are not uniquely determined unless they all are
on the jΩ axis. We will choose the zeros of Ha (s)Ha (−s) lying left to or
on the jΩ axis as the zeros of Ha(s). The resulting filter is then called a
minimum-phase filter.
jΩ
s-plane
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
374 Chapter 8 IIR FILTER DESIGN
0.8
0.8
0.6
0.6 0.4
Imaginary Part
0.4 0.2
0
0.2 –1 –1/3 0 1/3 1
0
2
Phase Response
–0.2
0.5
Radians / π
–0.4
–0.6
0
–0.8
–1
–0.5
–1 –0.5 0 0.5 1 –1 –1/3 0 1/3 1
Real Part ω in π Units
FIGURE 8.3 Pole positions and frequency response of a digital resonator with
r = 0.9 and ω0 = π/3
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Some Special Filter Types 375
b0
H(z) = −1
(1 − jω
re z )(1
0 − re−jω0 z −1 )
b0
= (8.7)
1 − (2r cos ω0 )z −1 + r2 z −2
which defines precisely the resonant frequency of the filter. Note that
when r is very close to unity, ωr ≈ ω0 , which is the angular position of
the pole. Furthermore, as r approaches unity, the resonant peak becomes
sharper (narrower) because D1 (ω) changes rapidly in the vicinity of ω0 .
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
376 Chapter 8 IIR FILTER DESIGN
∆ω ≈ 2(1 − r) (8.14)
Figure 8.3 illustrates the magnitude and phase responses of a digital res-
onator with ω0 = π/3, r = 0.90. Note that the phase response has its
greatest rate of change near the resonant frequency ωr ≈ ω0 = π/3.
This resonator has two zeros at z = 0. Instead of placing zeros at the
origin, an alternative choice is to locate the zeros at z = 1 and z = −1.
This choice completely eliminates the response of the filter at the frequen-
cies ω = 0 and ω = π, which may be desirable in some applications. The
corresponding resonator has the system function
G(1 − z −1 )(1 + z −1 )
H(z) =
(1 − rejω0 z −1 )(1 − re−jω0 z −1 )
1 − z −2
=G (8.15)
1 − (2r cos ω0 )z −1 + r2 z −2
1 − e−j2ω
H ejω = G (8.16)
[1 − rej(ω0 −ω) ][1 − re−j(ω0 +ω) ]
where G is a gain parameter that is selected so that H ejω0 = 1.
The introduction of zeros at z = ±1 alters both the magnitude and
phase response of the resonator. The magnitude response may be ex-
pressed as
jω N (ω)
H e = G (8.17)
D1 (ω)D2 (ω)
where N (ω) is defined as
7
N (ω) = 2(1 − cos 2ω) (8.18)
Due to the presence of the zeros at z = ±1, the resonant frequency of the
resonator is altered from the expression given by (8.13). The bandwidth
of the filter is also altered. Although exact values for these two parameters
are rather tedious to derive, we can easily compute the frequency response
when the zeros are at z = ±1 and z = 0 and compare the results.
Figure 8.4 illustrates the magnitude and phase responses for the cases
z = ±1 and z = 0, for pole location at ω = π/3 and r = 0.90. We observe
that the resonator with z = ±1 has a slightly smaller bandwidth than
the resonator with zeros at z = 0. In addition, there appears to be a very
small shift in the resonant frequency between the two cases.
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Some Special Filter Types 377
Magnitude Response
1
Magnitude
0.8
0.6
0.4
0.2
0
–1 –1/3 0 1/3 1
Phase Response
0.5
Radians/ π
–0.5
–1 –1/3 0 1/3 1
ω in π Units
FIGURE 8.4 Magnitude and phase responses of digital resonator with zeros at
z = ±1 (solid lines) and z = 0 (dotted lines) for r = 0.9 and ω0 = π/3
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
378 Chapter 8 IIR FILTER DESIGN
Decibels
0.8
0.6
0.4
Imaginary Part
0.2 –50
–1 0 1
0
2
Phase Response
–0.2
1
Radians / π
–0.4
0.5
–0.6
0
–0.8
–0.5
–1
–1
–1 –0.5 0 0.5 1 –1 0 1
Real Part ω in π Units
FIGURE 8.5 Frequency response of a typical notch filter
around the desired null are severely attenuated. To reduce the band-
width of the null, we may resort to the more sophisticated, longer FIR
filter designed according to the optimum equiripple design method de-
scribed in Chapter 7. Alternatively, we could attempt to improve the fre-
quency response of the filter by introducing poles in the system function.
0.8
0.6
0.4
Imaginary Part
0.2 –50
–1 –1/4 0 1/4 1
0
2
Phase Response
–0.2
1
–0.4
Radians / π
0.5
–0.6
0
–0.8
–0.5
–1
–1
–1 –0.5 0 0.5 1 –1 –1/4 0 1/4 1
Real Part ω in π Units
FIGURE 8.6 Frequency response of a notch filter with ω0 = π/4
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Some Special Filter Types 379
Decibels
0.8
0.6
0.4
Imaginary Part
0.2 –50
–1 –1/4 0 1/4 1
0
Phase Response
–0.2
1
–0.4
Radians / π
0.5
–0.6
0
–0.8
–0.5
–1
–1
–1 –0.5 0 0.5 1 –1 –1/4 0 1/4 1
Real Part ω in π Units
FIGURE 8.7 Magnitude and phase responses of notch filter with poles (solid
lines) and without poles (dotted lines) for ω0 = π/4 and r = 0.85
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
380 Chapter 8 IIR FILTER DESIGN
We can create a comb filter by taking our FIR filter with system
function
M
H(z) = h(k)z −k (8.23)
k=0
L
and replacing z by z , where L is a positive integer. Thus the new FIR
filter has the system function
M
HL (z) = h(k)z −kL (8.24)
k=0
If the frequency response of the original FIR filter is H ejω , the frequency
response of the filter given by (8.24) is
M
HL ejω = h(k)e−jkLω = H ejLω (8.25)
k=0
Consequently, the
jωfrequency
response characteristic HL ejω is an L-order
repetition of H e in the
range
0≤ ω ≤ 2π. Figure 8.8 illustrates the
relationship between HL ejω and H ejω for L = 4. The introduction of
a pole at each notch may be used to narrow the bandwidth of each notch,
as just described.
FIGURE 8.8 Comb filters with frequency response HL ejω obtained from
jω
H e for L = 4
Copyright 201 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.