Professional Documents
Culture Documents
DSP LECT 18a PDF
DSP LECT 18a PDF
Andreas Spanias
spanias@asu.edu
Ch. 5 - Lecture 18
Disadvantages:
• Feedback and stability concerns
• Sensitive to Finite Word Length Effects
• Generally non-Linear Phase
Applications:
• Speech Processing, Telecommunications
• Data Processing, Noise Suppression, Radar
L M
y (n) ¦ b x (n i) ¦
i 0
i
i 1
ai y (n i)
y n
xn
z
1
... z
1
bK
¦ z
1
z
1
... z
1
-
b K 1 -
- a1
. .. .. ..
b1 a2
...
b0 aM
Y ( z) b0 b1 z 1 ... bL z L
H ( z)
X ( z) 1 a1 z 1 ... a M z M
The frequency-response function :
b0 b1e j: ... bL e jL :
H ( e j: )
1 a1e j: ... a M e jM :
Copyright © Andreas Spanias Ch. 5 -5
or
1 RCt 1
ha (t ) e u (t ) and H a ( jZ ) .
RC 1 jZ RC
A discrete-time approximation of the impulse response can be written as
nT
h( n) T ha (t ) |t . T RC
nT h ( n) e u ( n).
RC
(T / RC )
H ( z) .
1 e (T / RC ) z 1
T T T
H ( z) p1T 1
p2T 1
..... .
1 e z 1 e z 1 e pM T z 1
Clearly, if the s-domain poles are on the left-half of the s plane, i.e.
Re[pi]<0, the z-domain poles will be inside the unit circle, that is |epiT
|<1. The disadvantage of the impulse invariance method is the
unavoidable frequency-domain aliasing.
1 s
Bilinear Transform z
1 s
S plane z plane
Im Im
Re Re
z 1
H (z) H (s )
z 1
Copyright © Andreas Spanias Ch. 5 -10
Z >f, f@ l : >S,S@
The non-linear frequency transformation (frequency warping
function) is given by
15
Z 10
§:· 5
Z tan ¨ ¸ 0
©2¹ -5
-10
-15
-3 -2 -1 0 1 2 3 ȍ
Copyright © Andreas Spanias Ch. 5 -11
4. Bilinear Transformation
5. Realization
specification
ȍ
Prewarping
Ȧ
Design
Ȧ
bilinear
transformation
:c S / 2 :c S
Step 1: Step 2: Zc tan( ) tan( ) 1
2 4
z 1 1
H ( z ) H (s ) 0.5 0.5z 1
z 1 1 z 1
z 1
Step 5: Realization
xn y n
0.5 ¦
z 1
0.5
-20
1
-40
0.5
-60
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Im aginary part
0
0
0 X
-20
P hase (degrees )
-0.5
-40
-1
-60
-1 -0.5 0 0.5 1
-80 Real part
-100
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Norm aliz ed frequenc y (Nyquis t = = 1)
Old title/number:
MATLAB for DSP EEE 598
Title/Number:
spanias@asu.edu
Ch. 5 - Lecture 19
1
| H (Z ) |2
Z 2M
1 ( )
ZC
Copyright © Andreas Spanias Ch. 5 -20
0.9
0.8
magnitude
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 20 40 60 80 100 120 140
frequency)
1
H ( s) H ( s )
s 2N
1 ( )
jZ C Poles on a circle of
radius Zc
s
( )2N 1
jZ C
j S ( 2 k N 1 )
sk ( 1) 1 / 2 N j Z C ZC e 2N
k 0 ,1,..., 2 N 1
note that roots can not fall on imaginary axis
Copyright © Andreas Spanias Ch. 5 -22
• The poles falling on the left hand s-plane (stable poles) are
chosen to form H(s)
Butterworth Example
Determine the order and poles of a digital Butterworth filter
.Sampling =8 kHz, passband edge=1 kHz, stopband
edge=1.6 kHz, gain at passband edge=-1 dB, and gain at
stopband edge=-40 dB. We use the bilinear transformation
and we take the following steps:
2M 2M
1 § 0.414 · 1 § 0.7265 ·
1 ¨ ¸ and 1 ¨ ¸
0.794 © Zc ¹ 0.0001 © Zc ¹
1
1 2M
0.794 § 0.414 · 5
G
1 ¨ 0.7265 ¸ G 2.59 u 10
1 © ¹
0.0001
log (2.59 u 105 )
Mt , hence M t 9.3898 10.
§ 0.414 ·
2log ¨ ¸
© 0.7265 ¹
20
1 § 0.7265 ·
1 ¨ ¸ .
0.0001 © Zc ¹
p1 p20
p2p19
x x x x p18
p3
p4 x x
p
x 58 x 17
jS ( 2 k N 1)
p5 0.4
x Ȧ= x p161
pk (1)1/ 2 N jZC ZC e 2N
p6 x x p15
p7 x x p14
p8 x x xp
x x x
13
p9 p12
p10 p11
1 2 3 4 5 6 7 8 9
§ 0.0002 z 0.0010z + 0.0028z +0.0049z +0.0058z +0.0049z 0.0028z 0.0010z +0.0002 z ·
H ( z) ¨ 1 2 3 4 5 6 7 8 9 10
© 1 - 4.5143z 10.0097z - 13.948z + 13.3604z - 9.1159z + 4.4615z - 1.5399z 0.3575z 0.0503 z 0.0032z ¹
1 .2
0 .8
m agnitude
0 .6
0 .4
0 .2
0
0 20 40 60 80 100 120 140
d i s c r e t e fr e q u e n c y i n d e x ( N i s t h e s a m p l i n g fr e q . )
0.5
Im aginary part
-0.5
-1
-1 -0.5 0 0.5 1
Real part
clear
N=256; %for the computation of N discrete frequencies
-10
-20
-30
m agnitude (dB )
-40
-50
-60
-70
-80
-90
-100
0 20 40 60 80 100 120 140
discrete frequency index (N is the s am pling freq.)
.0274
Im aginary part
-0.0002 -1
-1 -0.5 0 0.5 1
Real part
Copyright © Andreas Spanias Ch. 5 -37
IIR Elliptic
frequenc y respons e 4
0
-10 3
-20 2
-30
1
m agnitude (dB )
-40
0
-50
-1
-60
-2
-70
-80 -3
-90 -4
0 20 40 60 80 100 120 140 0 20 40 60 80 100 120 140
dis crete frequenc y index (N is the s ampling freq.)
0.5
b= 0.0181 0.0431 0.0675 0.0675 0.0431 0.0181
Im aginary part
-1
-1 -0.5 0 0.5 1
Real part
Copyright © Andreas Spanias Ch. 5 -39
Frequency Transformations
H (z) H LP ( zˆ ) | zˆ 1 T ( z 1
)
K
z 1 G
T (z 1
) r k 1 1 G k z
k
1
G k defined in tables
Copyright © Andreas Spanias Ch. 5 -40
z 1 a
H AP (z)
1 az 1
Copyright © Andreas Spanias Ch. 5 -41
H ( z) H 1 ( z ) H 2 ( z )...H q ( z )
H (z) H 1 ( z ) H 2 ( z ) ... H q ( z ) B0
FIR IIR
Always stable Not always stable
Transversal Recursive
All-zero model All-pole or Pole-zero model
Moving Average(MA) model Autoregressive(AR) or
Autoregressive Moving
Average (ARMA) model
Inefficient for spectral peaks Efficient for spectral peaks (all-
pole, pole-zero)
Efficient for spectral notches All pole inefficient for spectral
notches
FIR IIR
Pole-zero efficient for both
notches and peaks
Requires high order design Generally requires lower
order design
Less sensitive to finite word More sensitive to finite word
length implementation length implementation
Linear phase design Generally non-linear phase