13
1 z Transform Signal and System Analysis Chapter 12 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 2 Block Diagrams and Transfer 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 difference equation can be determined. y n [ ] = 2x n [ ] ! x n ! 1 [ ] ! 1 2 y n ! 1 [ ] 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 3 Block Diagrams and Transfer Functions From a z-domain block diagram the transfer function can be determined. Y z ( ) = 2X z ( ) ! z !1 X z ( ) ! 1 2 z !1 Y z ( ) H z ( ) = Y z ( ) X z ( ) = 2 ! z !1 1 + 1 2 z !1 = 2 z ! 1 z + 1 2 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 4 Block Diagram Reduction All the techniques for block diagram reduction introduced with the Laplace transform apply exactly to z transform block diagrams. 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 5 System Stability A DT system is stable if its impulse response is absolutely summable. That requirement translates into the z-domain requirement that all the poles of the transfer function must lie in the open interior of the unit circle. 7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 6 System Interconnections Cascade Parallel

z Analysis - CSE at UNTrakl/class3020/Chapter12.pdf · T s 7/21/06 M.J.Roberts-AlRightsReserved.EditedbyDr.RobertAkl 29 Sampled-Data Systems In the modified CT system, In the modified

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

1

z Transform Signal and SystemAnalysisChapter 12

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 2

Block Diagrams and TransferFunctions

Just as with CT systems, DT systems areconveniently described by block diagrams andtransfer functions can be determined from them. Forexample, from this DT system block diagram thedifference equation can be determined.

y n[ ] = 2x n[ ]! x n !1[ ]!1

2y n !1[ ]

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 3

Block Diagrams and TransferFunctions

From a z-domain block diagram the transfer function canbe determined.

Y z( ) = 2X z( )! z!1 X z( )!1

2z!1Y z( )

H z( ) =Y z( )

X z( )=2 ! z

!1

1+1

2z!1

=2z !1

z +1

2

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 4

Block Diagram ReductionAll the techniques for block diagram reductionintroduced with the Laplace transform apply exactly to ztransform block diagrams.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 5

System Stability

A DT system is stable if its impulse responseis absolutely summable. That requirementtranslates into the z-domain requirement thatall the poles of the transfer function must liein the open interior of the unit circle.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 6

System InterconnectionsCascade

Parallel

2

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 7

System Interconnections

H z( ) =Y z( )

X z( )=

H1z( )

1+H1z( )H

2z( )

=H1z( )

1+ T z( )

T z( ) = H1z( )H

2z( )

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 8

Responses to Standard Signals

If the system transfer function is the z

transform of the unit-sequence response is

which can be written in partial-fraction form as

If the system is stable the transient term, , dies out

and the steady-state response is .

H z( ) =N z( )

D z( )

Y z( ) =z

z !1

N z( )

D z( )

Y z( ) = zN1z( )

D z( )+H 1( )

z

z !1

zN1z( )

D z( )

H 1( )z

z !1

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 9

Responses to Standard Signals

Let the system transfer function be

Then

and

Let the constant, K be 1 - p. Then

H z( ) =Kz

z ! p

Y z( ) =z

z !1Kz

z ! p=

Kz

1! pz

z !1!

pz

z ! p"

# $

%

& '

y n[ ] =K

1! p1! p

n+1( )u n[ ]

y n[ ] = 1! pn+1( )u n[ ]

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 10

Responses to Standard SignalsUnit Sequence Response

One-Pole System

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 11

Responses to Standard SignalsUnit Sequence Response

Two-Pole System

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 12

Responses to Standard SignalsIf the system transfer function is the z transform

of the response to a suddenly-applied sinusoid is

The system response can be written as

and, if the system is stable, the steady-state response is

a DT sinusoid with, generally, different magnitude and phase.

H z( ) =N z( )

D z( )

Y z( ) =N z( )

D z( )

z z ! cos "0( )[ ]

z2! 2z cos "

0( ) +1

y n[ ] = Z!1zN1 z( )

D z( )

"

# $

%

& ' + H p1( ) cos (0n + )H p1( )( )u n[ ]

H p1

( ) cos !0n + "H p

1( )( )u n[ ]

3

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 13

For a stable system, the response to a suddenly-appliedsinusoid approaches the response to a true sinusoid (appliedfor all time).

Pole-Zero Diagrams andFrequency Response

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 14

Let the transfer function of a DT system be

Pole-Zero Diagrams andFrequency Response

H z( ) =z

z2 !z

2+5

16

=z

z ! p1( ) z ! p2( )

p1

=1+ j2

4

p2

=1! j2

4

H ej!( ) =

e j!

ej!" p

1ej!" p

2

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 15

Pole-Zero Diagrams andFrequency Response

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 16

The Jury Stability TestLet a transfer function be in the form,

where

Form the “Jury” array

H z( ) =N z( )

D z( )

D z( ) = aDzD

+ aD!1zD!1

+!+ a1z + a

0

1 a0

a1

a2! a

D!2aD!1

aD

2 aD

aD!1

aD!2

! a2

a1

a0

3 b0

b1

b2! b

D!2bD!1

4 bD!1

bD!2

bD!3

! b1

b0

5 c0

c1

c2! c

D!2

6 cD!2

cD!3

cD!4

! c0

" " " " #

2D ! 3 s0

s1

s2

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 17

The Jury Stability TestThe third row is computed from the first two by

The fourth row is the same set as the third row except inreverse order. Then the c’s are computed from the b’s inthe same way the b’s are computed from the a’s. This continues until only three entries appear. Then the system is stable if

b0

=a0

aD

aD

a0

, b1

=a0

aD!1

aD

a1

, b2

=a0

aD!2

aD

a2

,! , bD!1

=a0

a1

aD

aD!1

D 1( ) > 0

!1( )D

D !1( ) > 0

aD

> a0, b

0> b

D!1, c

0> c

D!2,!, s

0> s

2

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 18

Root LocusRoot locus methods for DT systems are like rootlocus methods for CT systems except that theinterpretation of the result is different.

CT systems: If the root locus crosses into theright half-plane the system goes unstable at thatgain.

DT systems: If the root locus goes outside theunit circle the system goes unstable at that gain.

4

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 19

Simulating DT Systems with DTSystems

The ideal simulation of a CT system by a DT system would havethe DT system’s excitation and response be samples from the CTsystem’s excitation and response. But that design goal is neverachieved exactly in real systems at finite sampling rates.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 20

Simulating DT Systems with DTSystems

One approach to simulation is to make the impulse response ofthe DT system be a sampled version of the impulse response ofthe CT system.

With this choice, the response of the DT system to a DT unitimpulse consists of samples of the response of the CT system to aCT unit impulse. This technique is called impulse-invariantdesign.

h n[ ] = h nTs

( )

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 21

Simulating DT Systems with DTSystems

When the impulse response of the DT system is asampled version of the impulse response of the CT system but theunit DT impulse is not a sampled version of the unit CT impulse.

A CT impulse cannot be sampled. First, as a practical matterthe probably of taking a sample at exactly the time of occurrenceof the impulse is zero. Second, even if the impulse were sampledat its time of occurrence what would the sample value be? Thefunctional value of the impulse is not defined at its time ofoccurrence because the impulse is not an ordinary function.

h n[ ] = h nTs

( )

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 22

Simulating DT Systems with DTSystems

In impulse-invariant design, even though the impulse response is asampled version of the CT system’s impulse response that does notmean that the response to samples from any arbitrary excitationwill be a sampled version of the CT system’s response to thatexcitation.

All design methods for simulating CT systems with DT systemsare approximations and whether or not the approximation is a goodone depends on the design goals.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 23

Sampled-Data Systems

Real simulation of CT systems by DT systems usuallysamplethe excitation with an ADC, process the samples and thenproduce a CT signal with a DAC.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 24

Sampled-Data SystemsAn ADC simply samples a signal and produces numbers. Acommon way of modeling the action of a DAC is to imaginethe DT impulses in the DT signal which drive the DAC areinstead CT impulses of the same strength and that the DAChas the impulse response of a zero-order hold.

5

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 25

Sampled-Data Systems

The desired equivalence between a CT and a DT system isillustrated below.

The design goal is to make look as much like aspossible by choosing h[n] appropriately.

ydt( )

yct( )

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 26

Sampled-Data SystemsConsider the response of the CT system not to the actual signal,x(t), but rather to an impulse-sampled version of it,

The response is

where and the response at the nth multiple ofis

The response of a DT system with to the excitation, is

x! t( ) = x nTs( )! t " nTs( )n="#

#

$ = x t( )% fs comb fst( )

y t( ) = h t( )!x" t( ) = h t( )! x m[ ]" t #mTs

( )m=#$

$

% = x m[ ]h t # mTs

( )m=#$

$

%

x n[ ] = x nTs

( )

Ts

y nTs

( ) = x m[ ]h n ! m( )Ts

( )m=!"

"

#

h n[ ] = h nTs

( )

x n[ ] = x nTs

( )

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 27

Sampled-Data Systems

The two responses are equivalent in the sense that the valuesat corresponding DT and CT times are the same.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 28

Sampled-Data SystemsModify the CT system to reflect the last analysis.

Then multiply the impulse responses of both systems by

Ts

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 29

Sampled-Data SystemsIn the modified CT system,

In the modified DT system,

where and h(t) still represents the impulseresponse of the original CT system. Now let approach zero.

This is the response, , of the original CT system.

y t( ) = x! t( )"Tsh t( ) = x nT

s( )! t # nT

s( )

n=#$

$

%&

' (

)

* + "h t( )T

s= x nT

s( )h t # nT

s( )T

s

n=#$

$

%

y n[ ] = x m[ ]h n ! m[ ]m=!"

"

# = x m[ ]Tsh n !m( )T

s( )

m=!"

"

#

h n[ ] = Tsh nT

s( )

Ts

limTs!0

y t( ) = limTs!0

x nTs

( )h t " nTs

( )Ts

n="#

#

$ = x %( )h t " %( )d%"#

#

&

yct( )

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 30

Sampled-Data Systems

Summarizing, if the impulse response of the DT system ischosen to be then, in the limit as the sampling rateapproaches infinity, the response of the DT system is exactlythe same as the response of the CT system.

Of course the sampling rate can never be infinite in practice.Therefore this design is an approximation which gets better asthe sampling rate is increased.

Tsh nT

s( )

6

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 31

Digital Filters

• Digital filter design is simply DT systemdesign applied to filtering signals

• A popular method of digital filter design is tosimulate a proven CT filter design

• There many design approaches each of whichyields a better approximation to the ideal asthe sampling rate is increased

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 32

Digital Filters• Practical CT filters have infinite-duration

impulse responses, impulse responses whichnever actually go to zero and stay there

• Some digital filter designs produce DT filterswith infinite-duration impulse responses andthese are called IIR filters

• Some digital filter designs produce DT filterswith finite-duration impulse responses andthese are called FIR filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 33

Digital Filters

• Some digital filter design methods use time-domain approximation techniques

• Some digital filter design methods usefrequency-domain approximation techniques

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 34

Digital FiltersImpulse and Step Invariant Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 35

Hss( )

Impulse invariant:

h t( )

L!1 Sample

h n[ ]

Z

Hzz( )

Step invariant:

Hss( )

!1

s

Hss( )

s

L!1

h!1t( )

Sample

h!1n[ ]

Z

z

z !1H

zz( )

!z "1

z

Hzz( )

Impulse and Step Invariant DesignDigital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 36

Impulse invariant approximation of the one-pole system,

yields

Hss( ) =

1

s + a

Hzz( ) =

1

1! e! aT

s z!1

Digital FiltersImpulse and Step Invariant Design

7

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 37

Let a be one and let in

Hzz( ) =

1

1! e! aT

s z!1

Ts

= 0.1

Digital FilterImpulse Response

CT FilterImpulse Response

Digital FiltersImpulse and Step Invariant Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 38

Step response of

Hzz( ) =

1

1! e! aT

s z!1

Digital FilterStep Response

CT FilterStep Response

Notice scale difference

Digital FiltersImpulse and Step Invariant Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 39

Digital FiltersWhy is the impulse response exactlyright while the step response is wrong?

This design method forces an equalitybetween the impulse strength of a CTexcitation, a unit CT impulse at zero,and the impulse strength of thecorresponding DT signal, a unit DTimpulse at zero. It also makes theimpulse response of the DT system,h[n], be samples from the impulseresponse of the CT system, h(t).

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 40

A CT step excitation is not an impulse. So what should thecorrespondence between the CT and DT excitations be now? If thestep excitation is sampled at the same rate as the impulse responsewas sampled, the resulting DT signal is the excitation of the DTsystem and the response of the DT system is the sum of theresponses to all those DT impulses.

Digital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 41

Digital FiltersIf the excitation of the CT system were a sequence of CT unitimpulses, occurring at the same sampling rate used to form h[n],then the response of the DT system would be samples of theresponse of theCT system.

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 42

Impulse invariant approximation of

with a 1 kHz sampling rate yields

Hss( ) =

s

s2

+ 400s + 2 !105

H z( ) =z z ! 0.9135( )

z2!1.508z + 0.6703

Digital FiltersImpulse and Step Invariant Design

8

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 43

Step invariant approximation of

with a 1 kHz sampling rateyields

Hss( ) =

s

s2

+ 400s + 2 !105

Hzz( ) =

7.97 !10"4z "1( )

z2"1.509z + 0.6708

Digital FiltersImpulse and Step Invariant Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 44

Every CT transfer function implies a corresponding differentialequation. For example,

Derivatives can be approximated by finite differences.

Hss( ) =

1

s + a!

d

dty t( )( ) + ay t( ) = x t( )

d

dty t( )( ) !

y n +1[ ]" y n[ ]Ts

d

dty t( )( ) !

y n[ ]" y n "1[ ]Ts

d

dty t( )( ) !

y n +1[ ]" y n "1[ ]2T

s

Forward Backward

Central

Finite Difference DesignDigital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 45

Using a forward difference to approximate the derivative,

A more systematic method is to realize that every s in a CTtransfer function corresponds to a differentiation in the timedomain which can be approximated by a finite difference.

Hss( ) =

1

s + a!y n +1[ ]" y n[ ]

Ts

+ ay n[ ] = x n[ ]

s!z "1

Ts

X z( )

s!1" z

"1

Ts

X z( )

s!z " z

"1

2Ts

X z( )

Forward Backward Central

Digital FiltersFinite Difference Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 46

Then

Hss( ) =

1

s + a!H

zz( ) =

1

s + a

"

# $ %

& ' s(

z)1

Ts

=Ts

z ) 1) aTs( )

Digital FiltersFinite Difference Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 47

Finite difference approximation of

with a 1 kHz sampling rateyields

Hss( ) =

s

s2

+ 400s + 2 !105

H z( ) =6.25 !10

"4z z "1( )

z2"1.5z + 0.625

Digital FiltersFinite Difference Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 48

Direct substitution and matched filter design use the relationship, to map the poles and zeros of an s-domain transferfunction into corresponding poles and zeros of a z-domaintransfer function. If there is an s-domain pole at a, the z-domainpole will be at .

Direct Substitution

Matched z-Transform

Direct Substitution and Matched z-Transform Design

z = esTs

z = esTs

eaTs

s ! a" z ! eaTs

s ! a"1! eaTs z

!1

Digital Filters

9

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 49

Matched z-transform approximation of

with a 1 kHz sampling rateyields

Hss( ) =

s

s2

+ 400s + 2 !105

Hzz( ) =

z z !1( )

z2!1.509z + 0.6708

Digital FiltersDirect Substitution and Matched z-Transform Design

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 50

This method is based on trying to match the frequency responseof a digital filter to that of the CT filter. As a practical matter itis impossible to match exactly because a digital filter has aperiodic frequency response but a good approximation can bemade over a range of frequencies which can include all theexpected signal power.

The basic idea is to use the transformation,

to convert from the s to z domain.

s!1

Ts

ln z( )

esTs ! zor

Bilinear TransformationDigital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 51

The straightforward application of the transformation,would be the substitution,

But that yields a z-domain function that is a transcendentalfunction of z with infinitely many poles. The exponentialfunction can be expressed as the infinite series,

and then approximated by truncating the series.

s!1

Ts

ln z( )

Hzz( ) = H

ss( )

s!1

Ts

ln z( )

ex

= 1+ x +x2

2!+x3

3!+!=

xk

k!k=0

!

"

Digital FiltersBilinear Transformation

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 52

Truncating the exponential series at two terms yields thetransformation,

or

This approximation is identical to the finite difference methodusing forward differences to approximate derivatives. Thismethod has a problem. It is possible to transform a stable s-domain function into an unstable z-domain function.

1+ sTs! z

s!z "1

Ts

Digital FiltersBilinear Transformation

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 53

The stability problem can be solved by a very clevermodification of the idea of truncating the series. Express theexponential as

Then approximate both numerator and denominator with atruncated series.

This is called the bilinear transformation because bothnumerator and denominator are linear functions of z.

esTs =

esTs

2

e!sTs

2

" z

1+sT

s

2

1!sT

s

2

" z

s!2

Ts

z "1

z +1

Digital FiltersBilinear Transformation

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 54

The bilinear transformationhas the quality that everypoint in the s plane maps intoa unique point in the z plane,and vice versa. Also, the lefthalf of the s plane maps intothe interior of the unit circlein the z plane so a stable s-domain system istransformed into a stable z-domain system.

Digital FiltersBilinear Transformation

10

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 55

The bilinear transformation is unique among the digital filter designmethods because of the unique mapping of points between the twocomplex planes. There is however a “warping” effect. It can be seenby mapping real frequencies in the z plane (the unit circle) intocorresponding points in the s plane. Letting with Ω real, thecorresponding contour in the s plane is

or

z = ej!

s =2

Ts

e j! "1ej!

+1= j

2

Tstan

!2

#

$

%

&

! = 2 tan"1 #T

s

2

$

%

&

'

Digital FiltersBilinear Transformation

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 56

Bilinear approximation of

with a 1 kHz sampling rateyields

Hss( ) =

s

s2

+ 400s + 2 !105

H z( ) =z2!1

z2!1.52z + 0.68

Digital FiltersBilinear Transformation

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 57

FIR digital filters are based on theidea of approximating an idealimpulse response. Practical CTfilters have infinite-duration impulseresponse. The FIR filterapproximates this impulse bysampling it and then truncating it toa finite time (N impulses in theillustration).

FIR FiltersDigital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 58

FIR digital filters can alsoapproximate non-causal filtersby truncating the impulseresponse both before time t = 0and after some later time whichincludes most of the signalenergy of the ideal impulseresponse.

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 59

The design of an FIRfilter is the essence ofsimplicity. It consists ofmultiple feedforwardpaths, each with adifferent delay andweighting factor and allof which are summed toform the response.

hNn[ ] = a

m! n " m[ ]

m=0

N "1

#

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 60

Since this filter has no feedback paths its transfer function is of theform,

and it is guaranteed stable because it has N - 1 poles, all of whichare located at z = 0.

HNz( ) = a

mz!m

m=0

N !1

"

Digital FiltersFIR Filters

11

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 61

The effect of truncating an impulse response can be modeled bymultiplying the ideal impulse response by a “window” function. Ifa CT filter’s impulse response is truncated between t = 0 and t = T,the truncated impulse response is

where, in this case,

hTt( ) =

h t( ) , 0 < t < T

0 , otherwise

! " #

$ % &

= h t( )w t( )

w t( ) = rect

t !T

2

T

"

#

$ $ $

%

&

' ' '

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 62

The frequency-domain effect of truncating an impulse response isto convolve the ideal frequency response with the transform of thewindow function.

If the window is a rectangle,

HT f( ) = H f( )!W f( )

W f( ) = T sinc Tf( )e! j"fT

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 63

Let the ideal transfer function beThe corresponding impulse response is

The truncated impulse response is

The transfer function for the truncated impulse response is

H f( ) = rectf

2B

!

"

#

$ e% j&fT

hTt( ) = 2Bsinc 2B t !

T

2

"

#

$

%

"

# &

$

% ' rect

t !T

2

T

"

#

& & &

$

%

' ' '

h t( ) = 2Bsinc 2B t !T

2

"

#

$

%

"

# &

$

% '

HT f( ) = rectf

2B

!

"

#

$ e% j&fT 'T sinc Tf( )e% j&fT

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 64

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 65

FIR FiltersDigital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 66

Digital FiltersFIR Filters

12

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 67

The effects of windowing a digital filter’s impulse response aresimilar to the windowing effects on a CT filter.

hNn[ ] =

h n[ ] , 0 ! n < N

0 , otherwise

" # $

% & '

= h n[ ]w n[ ]

HN j!( ) = H j!( ) W j!( )

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 68

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 69

FIR FiltersDigital Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 70

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 71

The “ripple” effect in the frequency domain can be reducedby windows of different shapes. The shapes are chosen tohave DTFT’s which are more confined to a narrow range offrequencies. Some commonly used windows are

1. von Hann

2. Bartlett

w n[ ] =1

21! cos

2"nN !1

#

$

%

&

'

( )

*

+ , , 0 - n < N

w n[ ] =

2n

N !1, 0 " n "

N !1

2

2 !2n

N !1,N !1

2" n < N

#

$ %

& %

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 72

3. Hamming

4. Blackman

5. Kaiser

w n[ ] = 0.54 ! 0.46cos2"nN !1

#

$

%

& , 0 ' n < N

w n[ ] = 0.42 ! 0.5cos2"nN !1

#

$

%

& + 0.08cos

4"nN !1

#

$

%

& , 0 ' n < N

w n[ ] =

I0!

a

N "12

#

$

%

&

2

" n "N "12

#

$

%

&

2#

$ '

%

& (

I0!

a

N "12

#

$

%

&

(windows continued)

Digital FiltersFIR Filters

13

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 73

Windows Window Transforms

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 74

Windows Window Transforms

Digital FiltersFIR Filters

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 75

Standard Realizations• Realization of a DT system closely parallels

the realization of a CT system• The basic forms, canonical, cascade and

parallel have the same structure• A CT system can be realized with integrators,

summers and multipliers• A DT system can be realized with delays,

summers and multipliers

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 76

Standard RealizationsCanonical

Delay

Summer

Multiplier

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 77

Standard Realizations

Cascade

7/21/06 M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 78

Standard RealizationParallel