Vous êtes sur la page 1sur 27

AGC

DSP
Professor A G Constantinides
Professor A G
Constantinides
11
IIR Digital Filter Design
Standard approach
(1) Convert the digital filter specifications
into an analogue prototype lowpass filter
specifications
(2) Determine the analogue lowpass filter
transfer function
(3) Transform by replacing the
complex variable to the digital transfer
function
) (s H
a
) (z G
) (s H
a
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
22
IIR Digital Filter Design
n
Let an analogue transfer function be
where the subscript a indicates the
analogue domain
n
A digital transfer function derived from
this is denoted as
) (
) (
) (
s D
s P
s H
a
a
a

) (
) (
) (
z D
z P
z G
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
33
IIR Digital Filter Design
n
Basic idea behind the conversion of
into is to apply a mapping from the
s-domain to the z-domain so that essential
properties of the analogue frequency
response are preserved
n
Thus mapping function should be such that
n
Imaginary ( ) axis in the s-plane be
mapped onto the unit circle of the z-plane
n
A stable analogue transfer function be
mapped into a stable digital transfer
function
) (s H
a
) (z G
j
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
44
IIR Digital Filter: The bilinear
transformation
n
To obtain G(z) replace s by f(z) in H(s)
n
Start with requirements on G(z)
G(z) Available H(s)

Stable Stable
Real and Rational in z Real and Rational in
s
Order n Order n
L.P. (lowpass) cutoff L.P. cutoff T
c

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
55
IIR Digital Filter
n
Hence is real and rational in z of
order one
n
i.e.
n
For LP to LP transformation we require

n
Thus
) (z f
d cz
b az
z f
+
+
) (
1 0 z s 0 0 ) 1 ( + b a f
1 t z j s 0 ) 1 ( t d c j f
1
1
. ) (
+

,
_

z
z
c
a
z f
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
66
IIR Digital Filter
n
The quantity is fixed from
n
ie on
n
Or
n
and

,
_

c
a
c c
T
2
tan . ) ( 1 :
T
j
c
a
z f z C
c

,
_


2
tan .
T
j
c
a
j
c
c

,
_


1
1
1
1
.
2
tan

,
_

,
_

z
z
T
s
c
c

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
77
Bilinear Transformation
n
Transformation is unaffected by scaling.
Consider inverse transformation with scale
factor equal to unity
n
For
n
and so
s
s
z

1
1
o o
j s +
2 2
2 2
2
) 1 (
) 1 (
) 1 (
) 1 (
o o
o o
o o
o o
z
j
j
z
+
+ +


+ +

1 0 z
o

1 0 < < z
o

1 0 > > z
o

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
88
Bilinear Transformation
n
Mapping of s-plane into the z-plane
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
99
Bilinear Transformation
n
For with unity scalar we have
or
) 2 / tan(
1
1

j
e
e
j
j
j

j
e z
) 2 / tan(
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1010
Bilinear Transformation
n
Mapping is highly nonlinear
n
Complete negative imaginary axis in the
s-plane from to is mapped
into the lower half of the unit circle in
the z-plane from to
n
Complete positive imaginary axis in the
s-plane from to is mapped
into the upper half of the unit circle in
the z-plane from to
0
0
1 z 1 z
1 z 1 z
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1111
Bilinear Transformation
n
Nonlinear mapping introduces a
distortion in the frequency axis called
frequency warpi ng
n
Effect of warping shown below
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1212
Spectral Transformations
n
To transform a given lowpass
transfer function to another transfer
function that may be a lowpass,
highpass, bandpass or bandstop filter
(solutions given by Constantinides)
n
has been used to denote the unit
delay in the prototype lowpass filter
and to denote the unit delay in
the transformed filter to avoid
confusion
) (z G
L
)

(z G
D
1

z
1
z
) (z G
L
)

(z G
D
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1313
Spectral Transformations
n
Unit circles in z- and -planes defined
by
,
n
Transformation from z-domain to
-domain given by
n
Then
z

j
e z

j
e z
)

(z F z
)}

( { )

( z F G z G
L D

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1414
Spectral Transformations
n
From , thus ,
hence
n
Therefore must be a stable allpass
function
)

(z F z )

(z F z

'

< <

> >
1 if , 1
1 if , 1
1 if , 1
)

(
z
z
z
z F
)

( / 1 z F
1 ,

1
)

(
1
1
*
<

,
_

L
z
z
z F
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1515
Lowpass-to-Lowpass
Spectral Transformation
n
To transform a lowpass filter with a
cutoff frequency to another lowpass filter
with a cutoff frequency , the
transformation is
n
On the unit circle we have
which yields
) (z G
L
)

(z G
D
c

z
z
z F
z

1
)

(
1
1

1
j
j
j
e
e
e

) 2 / tan(
1
1
) 2 / tan(


,
_

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1616
Lowpass-to-Lowpass
Spectral Transformation
n
Solving we get
n
Example - Consider the lowpass digital
filter
which has a passband from dc to
with a 0.5 dB ripple
n
Redesign the above filter to move the
passband edge to
( )
( ) 2 / ) ( sin
2 / ) ( sin
c c
c c

) 3917 . 0 6763 . 0 1 )( 2593 . 0 1 (


) 1 ( 0662 . 0
) (
2 1 1
3 1

+
+

z z z
z
z G
L
25 . 0
35 . 0
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1717
Lowpass-to-Lowpass
Spectral Transformation
n
Here
n
Hence, the desired lowpass transfer
function is
1934 . 0
) 3 . 0 sin(
) 05 . 0 sin(

1
1
1
1934 . 0 1
1934 . 0 ) ( )

+
+

z
z
z
L D
z G z G
0 0.2 0.4 0.6 0.8 1
-40
-30
-20
-10
0

G
a
i
n
,

d
B G
L
(z) G
D
(z)
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1818
Lowpass-to-Lowpass
Spectral Transformation
n
The lowpass-to-lowpass transformation
can also be used as highpass-to-
highpass, bandpass-to-bandpass and
bandstop-to-bandstop transformations


z
z
z F
z

1
)

(
1
1
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
1919
Lowpass-to-Highpass
Spectral Transformation
n
Desired transformation
n
The transformation parameter is given by
where is the cutoff frequency of the
lowpass filter and is the cutoff frequency of
the desired highpass filter
1
1
1

+
+

z
z
z

( )
( ) 2 / ) ( cos
2 / ) ( cos
c c
c c

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2020
Lowpass-to-Highpass
Spectral Transformation
n
Example - Transform the lowpass filter
n
with a passband edge at to a
highpass filter with a passband edge at
n
Here
n
The desired transformation is
) 3917 . 0 6763 . 0 1 )( 2593 . 0 1 (
) 1 ( 0662 . 0
) (
2 1 1
3 1

+
+

z z z
z
z G
L
25 . 0
55 . 0
3468 . 0 ) 15 . 0 cos( / ) 4 . 0 cos(
1
1
1

3468 . 0 1
3468 . 0


z
z
z
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2121
Lowpass-to-Highpass
Spectral Transformation
n
The desired highpass filter is
1
1
1
3468 . 0 1
3468 . 0 ) ( )

z
z
z
D
z G z G
0 0.2 0.4 0.6 0.8
80
60
40
20
0
Normalized frequency
G
a
i
n
,

d
B
AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2222
Lowpass-to-Highpass
Spectral Transformation
n
The lowpass-to-highpass transformation
can also be used to transform a
highpass filter with a cutoff at to a
lowpass filter with a cutoff at
n
and transform a bandpass filter with a
center frequency at to a bandstop
filter with a center frequency at
c

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2323
Lowpass-to-Bandpass
Spectral Transformation
n
Desired transformation
1

1
2

1
1
1
1

1
2

1 2
1 2
1
+
+

+
+

z z
z z
z

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2424
Lowpass-to-Bandpass
Spectral Transformation
n
The parameters and are given by
where is the cutoff frequency of the
lowpass filter, and and are the
desired upper and lower cutoff frequencies of
the bandpass filter

( ) ) 2 / tan( 2 / ) ( cot
1 2 c c c

( )
( ) 2 / ) ( cos
2 / ) ( cos
1 2
1 2
c c
c c

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2525
Lowpass-to-Bandpass
Spectral Transformation
n
Special Case - The transformation can
be simplified if
n
Then the transformation reduces to
where with denoting
the desired center frequency of the
bandpass filter
1 2

c c c

o
cos
o

1
1
1 1


z
z
z z

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2626
Lowpass-to-Bandstop
Spectral Transformation
n
Desired transformation
1

1
2

1
1
1
1

1
2

1 2
1 2
1
+
+

+
+

z z
z z
z

AGC
DSP
Professor A G Constantinides
Professor A G
Constantinides
2727
Lowpass-to-Bandstop
Spectral Transformation
n
The parameters and are given
by
where is the cutoff frequency of
the lowpass filter, and and are
the desired upper and lower cutoff
frequencies of the bandstop filter
c

( )
( ) 2 / ) ( cos
2 / ) ( cos
1 2
1 2
c c
c c

( ) ) 2 / tan( 2 / ) ( tan
1 2 c c c

Vous aimerez peut-être aussi