Block Diagrams and Transfer Functions: Z Transform Signal and System
Block Diagrams and Transfer Functions: Z Transform Signal and System
Functions
Just as with CT systems, DT systems are
conveniently described by block diagrams and
transfer functions can be determined from them. For
example, from this DT system block diagram the
z Transform Signal and System difference equation can be determined.
Analysis
Chapter 12
1
y[ n ] = 2 x[n ] ! x[n ! 1] ! y[n ! 1]
2
1
Y( z) = 2 X( z) ! z !1 X( z ) ! z !1 Y( z)
2
Y( z) 2 ! z !1 2z ! 1
H( z ) = = =
X( z) 1+ 1 z !1 z + 1
2 2
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 3 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 4
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 5 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 6
1
System Interconnections Responses to Standard Signals
N( z)
If the system transfer function is H( z ) = the z
D( z)
z N( z)
transform of the unit-sequence response is Y( z) =
z ! 1 D( z)
which can be written in partial-fraction form as
N ( z) z
Y( z) = z 1 + H(1)
D( z ) z !1
Y( z) H1( z) H (z )
H( z ) = = = 1 N (z )
X( z) 1+ H1( z) H2 ( z) 1 + T( z) If the system is stable the transient term, z 1 , dies out
D( z)
z
and the steady-state response is H(1) .
T( z) = H1( z) H 2 ( z) z !1
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 7 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 8
z Kz Kz " z pz %
Then Y( z) = = $ ! '
z ! 1 z ! p 1 ! p # z ! 1 z ! p&
and y[ n ] =
K
1! p
(1 ! pn+1 ) u[n]
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 9 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 10
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 11 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 12
2
Pole-Zero Diagrams and Pole-Zero Diagrams and
Frequency Response Frequency Response
For a stable system, the response to a suddenly-applied
sinusoid approaches the response to a true sinusoid (applied Let the transfer function of a DT system be
z z
for all time). H( z ) = =
z 5 ( z ! p1 )( z ! p2 )
z ! +
2
2 16
1+ j2 1! j2
p1 = p2 =
4 4
e j!
H( e j! ) =
e " p1 e j! " p2
j!
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 13 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 14
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 15 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 16
The fourth row is the same set as the third row except in CT systems: If the root locus crosses into the
reverse order. Then the c’s are computed from the b’s in
the same way the b’s are computed from the a’s. This
right half-plane the system goes unstable at that
continues until only three entries appear. Then the system gain.
is stable if
D(1) > 0 (!1)D D( !1) > 0 DT systems: If the root locus goes outside the
aD > a0 , b0 > bD!1 , c0 > cD!2 , !, s0 > s2 unit circle the system goes unstable at that gain.
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 17 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 18
3
Simulating DT Systems with DT Simulating DT Systems with DT
Systems Systems
The ideal simulation of a CT system by a DT system would have One approach to simulation is to make the impulse response of
the DT system’s excitation and response be samples from the CT the DT system be a sampled version of the impulse response of
system’s excitation and response. But that design goal is never the CT system.
achieved exactly in real systems at finite sampling rates.
h[ n ] = h( nTs )
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 19 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 20
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 21 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 22
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 23 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 24
4
Sampled-Data Systems Sampled-Data Systems
Consider the response of the CT system not to the actual signal,
The desired equivalence between a CT and a DT system is x(t), but rather to an impulse-sampled version of it,
#
illustrated below. x! (t ) = $ x(nT )! (t " nT ) = x(t ) % f
n="#
s s s comb( fst )
The response is
$ $
y( t ) = h( t ) ! x " (t ) = h(t ) ! % x[m ]" (t # mT ) = % x[m]h(t # mT ) s s
m =#$ m=#$
where x[ n ] = x( nTs ) and the response at the nth multiple of Ts
"
is
y( nTs ) = # x[ m] h(( n ! m)Ts )
m=!"
The design goal is to make y d (t ) look as much like y c ( t ) as The response of a DT system with h[ n ] = h( nTs ) to the excitation,
possible by choosing h[n] appropriately. x[ n ] = x( nTs ) is
#
y[ n ] = x[n ] ! h[n ] = $ x[m ]h[n " m ]
m ="#
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 25 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 26
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 27 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 28
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 29 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 30
5
Digital Filters Digital Filters
• Practical CT filters have infinite-duration
• Digital filter design is simply DT system impulse responses, impulse responses which
design applied to filtering signals never actually go to zero and stay there
• A popular method of digital filter design is to • Some digital filter designs produce DT filters
simulate a proven CT filter design with infinite-duration impulse responses and
• There many design approaches each of which these are called IIR filters
yields a better approximation to the ideal as • Some digital filter designs produce DT filters
the sampling rate is increased with finite-duration impulse responses and
these are called FIR filters
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 31 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 32
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 33 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 34
z "1
!
Z z z
H (z ) H z ( z)
z !1 z
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 35 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 36
6
Digital Filters Digital Filters
Impulse and Step Invariant Design Impulse and Step Invariant Design
1 1
Let a be one and let Ts = 0.1 in H z ( z) = Step response of H z ( z) =
1 ! e! aTs z !1 1 ! e! aTs z !1 Notice scale difference
CT Filter CT Filter
Impulse Response Step Response
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 37 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 38
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 39 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 40
z( z ! 0.9135 )
H( z ) =
z 2 ! 1.508z + 0.6703
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 41 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 42
7
Digital Filters Digital Filters
Impulse and Step Invariant Design Finite Difference Design
Step invariant approximation of Every CT transfer function implies a corresponding differential
equation. For example,
1 d
H s ( s) = ! ( y(t )) + a y( t ) = x(t )
s s + a dt
H s ( s) = 2
s + 400s + 2 ! 10 5
Derivatives can be approximated by finite differences.
with a 1 kHz sampling rate Forward Backward
( y( t )) ! [ ] [ ] ( y( t )) ! [ ] [ ]
yields d y n +1 " y n d y n " y n "1
dt Ts dt Ts
7.97 ! 10 "4 ( z " 1)
H z ( z) =
z2 " 1.509z + 0.6708 Central
d y[n + 1] " y[n " 1]
( y( t )) !
dt 2Ts
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 43 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 44
1 y[n + 1] " y[ n ] H s ( s) =
1 " 1 %
! H z ( z) = $ =
Ts
H s ( s) = ! + a y[n ] = x[n ]
s+a Ts s+a # s + a &' s( z )1 z ) (1) aTs )
Ts
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 45 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 46
8
Digital Filters Digital Filters
Direct Substitution and Matched z-Transform Design Bilinear Transformation
Matched z-transform approximation of This method is based on trying to match the frequency response
of a digital filter to that of the CT filter. As a practical matter it
s is impossible to match exactly because a digital filter has a
H s ( s) = periodic frequency response but a good approximation can be
s2 + 400s + 2 ! 10 5
made over a range of frequencies which can include all the
expected signal power.
with a 1 kHz sampling rate
yields The basic idea is to use the transformation,
z( z ! 1) s!
1
ln( z ) e sTs ! z
H z ( z) = Ts
or
z2 ! 1.509z + 0.6708
to convert from the s to z domain.
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 49 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 50
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 51 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 52
9
Digital Filters Digital Filters
Bilinear Transformation Bilinear Transformation
The bilinear transformation is unique among the digital filter design
methods because of the unique mapping of points between the two Bilinear approximation of
complex planes. There is however a “warping” effect. It can be seen
by mapping real frequencies in the z plane (the unit circle) into s
corresponding points in the s plane. Letting z = e j! with Ω real, the H s ( s) =
s2 + 400s + 2 ! 10 5
corresponding contour in the s plane is
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 55 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 56
FIR digital filters are based on the FIR digital filters can also
idea of approximating an ideal approximate non-causal filters
impulse response. Practical CT by truncating the impulse
filters have infinite-duration impulse response both before time t = 0
response. The FIR filter and after some later time which
approximates this impulse by includes most of the signal
sampling it and then truncating it to energy of the ideal impulse
a finite time (N impulses in the response.
illustration).
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 57 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 58
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 59 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 60
10
Digital Filters Digital Filters
FIR Filters FIR Filters
The effect of truncating an impulse response can be modeled by
multiplying the ideal impulse response by a “window” function. If The frequency-domain effect of truncating an impulse response is
a CT filter’s impulse response is truncated between t = 0 and t = T, to convolve the ideal frequency response with the transform of the
the truncated impulse response is window function.
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 61 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 62
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 63 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 64
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 65 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 66
11
Digital Filters Digital Filters
FIR Filters FIR Filters
The effects of windowing a digital filter’s impulse response are
similar to the windowing effects on a CT filter.
"h[n ] , 0 ! n < N %
h N [n] = # & = h[ n ] w[n ]
$0 , otherwise '
H N ( j! ) = H( j! ) W( j!)
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 67 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 68
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 69 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 70
w[n ] = $
2 I0 ' ! a # " n"
%2 ! 2n , N ! 1 " n < N $ $ 2 & $ 2 & (&
& w[n ] =
N !1 N " 1%
I0#! a
2
$ 2 &
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 71 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 72
12
Digital Filters Digital Filters
FIR Filters FIR Filters
Windows Window Transforms Windows Window Transforms
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 73 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 74
Cascade
7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 77 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 78
13