DF Lesson 06
DF Lesson 06
Topics:
1. IIR Filter design: Impulse-Invariant Method
2. IIR Filter design: The Matched Z-Transform
3. IIR Filter design: Bilinear Transformation
Method
4. Frequency Transformations
1
Lecture 6: March 26, 2007
Topic:
1. IIR Filter design: Impulse-Invariant Method
3
Lecture 6: March 26, 2007
Topic:
3. IIR Filter design: Bilinear Transformation
Method
• basic principle: application of the trapezoidal formula for
numerical integration of differential equation,
• mapping: HA(p) -> H(z),
• summary on digital filter design.
4
Lecture 6: March 26, 2007
Topic:
4. Frequency Transformations
5
5.3. Impulse-Invariant Method
(Impulse Invariant Transformation)
Objective: to design an IIR filter having an impulse
response h(n) as the sampled version of the
impulse response of the analogue filter hA (t ):
L y (t ) B ( p ) k
b p k
H A ( p) k 0
L x(t ) A( p ) N
k
a
k 0
p k
7
Let us assumed that the order M of the numerator is less
that the order N of the denominator and that all poles
of H A ( p ) are simple. If the poles of H A ( p ) are not simple,
the discussion in this section can be appropriately
modified. Then, we rewrite the transfer function of the
analogue filter in its partial expansion, as follows
M
k
b p k
N
ck
H A ( p) k 0
N
p dk
k
a
k 0
p k k 1
ck H A ( p )( p d k ) p d 8
k
The impulse response of the analogue filter hA (t ) :
hA (t ) L 1 H A ( p )
N
c N
1 ck
L
1 k
L
k 1 p d k k 1 p dk
N
ck e dk t t nT
k 1
n 0,1,2,3, , 9
Transfer function of the digital filter:
H ( z ) Z h( n)
h( n) z n
n 0
N
z n ck e dk nT
n 0 k 1
N
ck e
dkT n
1
z
k 1 n 0
N
1
ck
k 1 1 e pkT z 1 10
Transfer function of Transfer function of
the analogue filter: the digital filter:
N
ck N
ck
H A ( p) H ( z) d k T 1
k 1 p dk k 1 1 e z
12
With the previous given expressions for the transfer
function H(z), the IIR filter is easily realized as a
parallel bank of single-pole filters:
N
ck
H ( z) dkT
k 1 1 e z 1
13
With the previous given expressions for the transfer
function H(z), the IIR filter is easily realized as a
parallel bank of single-pole filters.
If some of poles are complex-valued, they may be
paired together and combined to form two-pole filter
sections with real-valued coefficients:
ck ck
1 d k T
p dk 1 z e
ck ck
p d k 1 z 1e dkT
ck ck ck ck
1 d k T
p dk p dk 1 z e 1 z 1e dkT 14
When: d k k jk and ck g k jhk d k , ck C
ck ck 2 g k p 2 k g k k hk
p dk p dk p 2 2 k p k2 k2
ck ck
1 d k T
1 z e
1 z 1e kd T
2 gk z e
1 k T
2 g k cos(k T ) 2hk sin(k T )
1 2 z 1e kT cos(kT ) z 2e2 kT
15
With the previous given expressions for the transfer
function H(z), the IIR filter is easily realized as a
parallel bank of single-pole filters.
If some of poles are complex-valued, they may be
paired together and combined to form two-pole filter
sections with real-valued coefficients.
In addition, two factors containing real-valued poles
may be combined to form two-pole filters with real-
valued coefficients.
16
With the previous given expressions for the transfer
function H(z), the IIR filter is easily realized as a
parallel bank of single-pole filters.
If some of poles are complex-valued, they may be
paired together and combined to form two-pole filter
sections with real-valued coefficients.
In addition, two factors containing real-valued poles
may be combined to form two-pole filters with real-
valued coefficients.
Consequently, the resulting filter may be realized as
a parallel bank of two-pole filters with real-valued
coefficients.
17
Aliasing Effect:
When a continuous time signal hA (t ) with spectrum H A ()
is sampled with sampling frequency S 2 FS , the
spectrum of the sampled signal is given by the following
expressions:
H ( j) FT hA nT FT hA n / FS
1
H ( j) H A j jk S
T k
1
H ( f ) H A f kFS where f / 2
T k
19
Magnitude response property illustration
H A f 2 FS Hf
H A f FS H A f FS
ALIASING ! HA f H A f 2 FS
1
H ( f ) H A f kFS
T k
20
2 FS FS FS 2 FS
Aliasing effect impact:
21
p - > z mapping:
To investigate the mapping between the p-plane and the
z-plane implied by the sampling process, we rely on a
generalization of the expression relating Z-transform of
h(n) to the Laplace transform of hA(nT). This
relationship is given by
1 2 k
H ( z ) z e pT H ( p ) H A p j
T k T
H ( z) h (
n
n ) z n
H ( z ) z e pT h (
n
n ) e pTn
z e pT
the p -> z mapping 22
Note that when,p j
1 2 k
H ( z ) z e pT HA p j
T k T
reduces to
1
H (e ) H A j jk S
j
T k
23
The general characteristic of the p->z mapping defined
as
z e pT
can be obtained by substitutions:
p j z re j
z re j e( j )T e T e jT
r e T T /T
24
Consequences:
a) 0 0 r 1 0r 1 0r 1
Then, the left-half of p-plane is mapped inside the
unite circle in z-plane and right-half of p-plane is
mapped into points that fall outside the unit circle
in z-plane. This is one of the desirable properties
of a good p -> z mapping.
25
Comments on j -axis mapping: T
b) / T / T
/ T 3 / T
d) General case:
(2k 1) / T (2k 1) / T
26
Conclusions:
27
Mapping: z e pT
j j Im[ p ]
3 /T The mapping of strips of the width 2
Im[ z ]
p-plane
/T
0 1
Re[ p] 0 Re[ z ]
/T
H A k S ~ 0 for k 0
we can obtain:
1
H (e ) ~ H A
j
T 30
If it is desired to get a digital filter with the same gain
as the analogue filter possesses, it is necessary to
transform the expression for H(z) originally given by
N
ck
H ( z) d k T 1
k 1 1 e z
in the form
N
ck
H ( z) T d k T 1
k 1 1 e z
Then:
H (e j ) ~ H A
31
5.4. The Matched Z-Transform
Basic principle:
Mapping the poles and zeros of H A ( p ) (from the p-plane)
directly into poles and zeros of H ( z ) (in the z-plane).
32
Transfer function of Transfer function of
the analogue filter: the digital filter:
M
M M
b p k
k
p z k
1 e zkT z 1
H A ( p) k 0
k 1 H ( z) k 1
N
1 e
N N
a p p
pk T 1
k p k
k
z
k 0 k 1 k 1
T is sampling interval.
Comparing HA(p) and H(z) it can be seen that H(z) is
obtained from HA(p) by using the mapping relation:
p a 1 e aT z 1
34
Comments:
35
Although the matched Z-transformation is easy to apply,
there are many cases when it is not a suitable mapping:
A. If the analogue system has zeros with center
frequencies greater that half sampling frequency, their z-
plane positions will be greatly aliased.
B. Another case where the matched Z-transformation is
unsuitable is where the continuous transfer function is an
all-pole system. Then the digital transfer function is an
all-pole system that, in any cases, does not adequately
represent the desired continuous system.
In general, use of impulse-invariant transformation is
to be preferred over the matched Z-transformation.
36
5.5. 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 p-plane to
the z-plane, called the bilinear transformation, that
overcomes the limitation of the other three design
methods described previously.
aT aT bT
1 y (nT ) 1 y (nT T ) x(nT ) x(nT T )
2 2 2
aT aT 1 bT
1 Y ( z ) 1 z Y ( z ) X ( z ) z 1
X ( z )
2 2 2
Y ( z)
H ( z)
X ( z) 41
bT
Y ( z) 2
1 z 1
H ( z)
X ( z) aT aT 1
1 1 z
2 2
bT bT
2
1 z
1
2 b
1 z 2 1 z 1 z 1 aT a 2 1 z 1
aT 1 1
1 1
1 z 2 T 1 z
b
H ( z)
2
1
1 z
a
T 1 z 1
42
Transfer function of Transfer function of
the analogue filter: the digital filter:
b b
H A ( p) H ( z)
pa 2 1 z
1
a
T 1 z 1
Comparing HA(p) and H(z) it can be seen that H(z) is
obtained from HA(p) by using the mapping relation:
2
p
2 1 z 1
z -> p: p p -> z: z T
T 1 z 1 2
p
T 43
Investigation of the properties of the bilinear transformation:
2
p
z re j
p j zT
2
p
If p j T
2
2 2
j 2
j arctan
T
T
j T T
e 2 j 2 arctan
z re T e 2
2 2 j arctan
j 2
2 e 2
T
T
45
2arctan 2T
T
46
If p j we obtain for z:
2
2 2 2
p j 2
j arctan
2 / T
T e
zT T
2 2 2
2 j arctan
p j 2 e 2 / T
T T
T
2
2
2
T
z
2
2
2
T
47
Conclusion 3:
If 0 (left-half p-plane), we find z 1 (inside
unit circle)
Conclusion 4:
If 0 (right-half p-plane), we find z 1 (outside
unit circle)
48
2 p
Mapping:z T
2 p
T
j j Im[ p ]
Im[ z ]
0 1
Re[ p] 0 Re[ z ]
51
The treatment in the preceding sections was focused
primarily on the design of low-pass IIR filters. If we
wish to design a high-pass or a band-pass or a band-stop
filter, it is a simple matter to take a low-pass prototype
filter and perform a frequency transformation.
1. One possibility is to perform the frequency
transformation in the analogue domain and then to
convert the analogue filter into a corresponding digital
filter by a mapping of the p-plane into z-plane.
2. An alternative approach is first to convert the analogue
low-pass filter into a low-pass digital filter and then to
transform the low-pass digital filter into desired digital
filter by a digital transformation.
52
6.1. Frequency Transformations
in Analogue Domain
53
6.1.1. Low-Pass to Low-Pass Transformation
Suppose that we have a low-pass filter with cut off
frequency C and we wish to convert it to another
'
low-pass filter with cut off frequency C . The
transformation that accomplish this is
C
p ' p
C
Thus we obtain a low-pass filter with system function
C
H L ( p) H P ' p
C
where H P ( p ) is the system function of the prototype
low-pass filter with cut off frequency C . 54
6.1.2. Low-Pass to High-Pass Transformation
If we wish to convert a low-pass filter into a high-pass
filter with cut off frequency C , the desired
'
transformation is
C C' 1
p
p p
C C'
The system function of the high-pass filter is
C C'
H H ( p) H P
p
where H P ( p ) is the system function of the prototype
low-pass filter with cut off frequency C . 55
6.1.3. Low-Pass to Band-Pass Transformation
The transformation for converting a low-pass analogue
filter with cut off frequency C into a band-pass filter,
having a lower cut off frequency L and an upper cut
off frequency U , may be accomplished by means of
transformation
p 2 L U
p C
p U L
Thus we obtain
p 2 L U
H B ( p ) H P C
p U L
58
6.1.5. Comments on Frequency Transformations
in the Analogue Domain
59
6.1.5. Comments on Frequency Transformations
in the Analogue Domain
60
6.2. Frequency Transformations
in Digital Domain
61
As in the analogue domain, frequency
transformations can be performed on a digital low-
pass filter to convert it to either a band-pass, band-
stop, or stop-band filter. The transformation involves
replacing the variable z by a rational functiong z ,
1 1
1. The mapping z 1
g must map points inside
z 1
62
The second condition implies that for r=1,
g e g ( ) e
j j j arg g ( )
e
k 1 1 k z 1
1
1 z a
z
1 az 1
z a
1
H z H
1
1
1 az
64
6.2.2. Low-Pass to High-Pass Transformation
1
1 z a
z
1 az 1
z a
1
H z H
1
1
1 az 65
6.2.3. Low-Pass to Band-Pass Transformation
2 1
1 z a z a2
z 1
a2 z 2 a1 z 1 1
a1 2 K / K 1 a2 K 1 / K 1
cos U L / 2 U L C
K cot tan
cos U L / 2 2 2
z 2
a z 1
a2
H z H
1
2
1
1
a2 z a1 z 1 66
6.2.4. Low-Pass to Stop-Band Transformation
2 1
1 z a z a2
z 1
a2 z 2 a1 z 1 1
a1 2 / K 1 a2 1 K / 1 K
cos U L / 2 U L C
K tan tan
cos U L / 2 2 2
z 2
a z 1
a2
H z H
1
2
1
1
a2 z a1 z 1 67
Comments on frequency transformations
in digital domain
68
We know that the impulse invariance method and
the mapping of derivatives are inappropriate to use
in designing high-pass and many band-pass filters
due to the aliasing problem.
Consequently, one would not employ analogue
frequency transformations followed by conversion of
the result into digital domain by use of these two
mappings.
Instead, it is much better to perform the mapping from
an analogue low-pass filter into a digital low-pass filter
by either of these mappings and then to perform the
frequency transformations in the digital domain. Thus
the problem of aliasing is avoided. 69
In the case of bilinear transformation, where aliasing is
not a problem, it does not matter the frequency
transformation is performed in the analogue domain or
in the digital domain. In fact, in this case only, the two
approaches result in identical digital filters.
70
THANK YOU
VERY MUCH
FOR YOUR
ATTENTION
71