Objectives:

8
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example Digital Controller Design Step-Response Matching Resources: ISIP: Filter Transformations Wiki: Finite Impulse Response CNX: FIR Filters Wiki: Window Function EAW: Window Functions LECTURE 37: DESIGN OF FIR FILTERS AND CONTROLLERS Audio: URL:

description

LECTURE 37: DESIGN OF FIR FILTERS AND CONTROLLERS. Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example Digital Controller Design Step-Response Matching - PowerPoint PPT Presentation

Transcript of Objectives:

Page 1: Objectives:

ECE 8443 – Pattern RecognitionEE 3512 – Signals: Continuous and Discrete

• Objectives:FIR FiltersDesign of Ideal Lowpass FiltersFilter Design ExampleDigital Controller DesignStep-Response Matching

• Resources:ISIP: Filter TransformationsWiki: Finite Impulse ResponseCNX: FIR FiltersWiki: Window FunctionEAW: Window Functions

LECTURE 37: DESIGN OF FIR FILTERSAND CONTROLLERS

Audio:URL:

Page 2: Objectives:

EE 3512: Lecture 37, Slide 2

Finite Impulse Response Filters

• Consider a filter with only feedforward components:

• The transfer function is:

• Since the impulse response of this filter, h[n], has a finite number of nonzero terms, this filter is referred to as a finite impulse response (FIR) filter.

• Observe that this filter only has zeroes (the roots of H(z)).

M

l

ll

M

ll

zbzX

zYzH

lnxbny

0

1

)(

)()(

][][

Page 3: Objectives:

EE 3512: Lecture 37, Slide 3

• The simplest method for designing an FIR filter is to construct an ideal frequency response, perform an inverse Fourier transform to obtain the impulse response, and then truncate the impulse response:

• As we discussed previously, we can view this truncation operation as multiplication of a signal by a window:

• Since multiplication in the time domain implies convolution in the frequency domain, the spectrum of the windowed signal is given by:

• In the case of the rectangular window:

Design of FIR Filters

otherwise,0

10],[][

Nnnhnhd

otherwise,0

10,1][

][][][

Nnnw

nhnwnhd

jjjd eWeHdWHeH *

2

1

2/)1(

2/sin

2/sin Njj eN

eW

Page 4: Objectives:

EE 3512: Lecture 37, Slide 4

• Consider the design of an ideallowpass filter. The ideal filter is noncausal for the response shown.

• Introduce a phase delay which willhelp us create a causal approximation:

• We can truncate the impulse response to obtain our FIR filter:

• Examples of the frequency response:

FIR Design Example

mn

mn

mnnh

eeH ccc

c

cmj

j sincsin

][if,0

if,

otherwise,0

10for,sinc][

Nnmn

nhcc

d

N = 21

N = 21 N = 41 Wc = 0.4;N = 21;m = (N-1)/2;n = 0:2*m + 10;h = Wc/pi*sinc(Wc*(n-m)/pi);

w = [ones(1,N) zeros(1,length(n)-N)];

hd = h.*w;

Page 5: Objectives:

EE 3512: Lecture 37, Slide 5

Digital Controllers

• There are many strategies for approximating an analog controllerwith a digital controller.

• This is analogous to the filter designproblem, and many of the sametechniques (e.g., bilinear transform)can be applied.

• This process is referred to asanalog emulation.

• In this section, we will explore a technique known as step-responsematching in which we design the digital system to approximate the step response of the analog system.

• The approach involves taking the inverse Laplace transform of the output, y(t), corresponding to the response of the system to a step function:

• We will need to make sure the sampling interval is chosen to be small enough that the discrete system matches the analog system.

nTt

tynysYtys

sGsY

)(][)()(1

)()( 1L

Page 6: Objectives:

EE 3512: Lecture 37, Slide 6

Design Example

• Consider a CT system with transfer function:

• The transform of the step response is:

• The inverse Laplace transform is:

• The discrete version is:

• We can work backwards to derive the equivalent transfer function:

• We can compare the frequency response of the discrete system to the analog system, and also compare impulse responses.

2

1.02.0)(s

ssG

2

19.001.01

2

1.02.0

1)()(

ssss

s

ssGsY

0,19.001.0)( 2 tety t

0,19.001.0][ 2 neny nT

T

T

d

T

T

T

ez

zez

z

zzYzG

ezz

zez

ez

z

z

zzY

2

2

2

22

2

19.001.02.01)(

))(1(

19.001.02.019.0

101.0)(

Page 7: Objectives:

EE 3512: Lecture 37, Slide 7

Design of a Feedback Controller

• Consider a feedback system:

• The overall transfer function is:

• Using our step-response design method, with , we have:

• The step response of this system can be plotted using MATLAB.

• Note how the overshoot varies asa function of the sample interval.

• There are a variety of ways we canapproximate an analog control systemusing a digital controller. For example,we can match the impulse responserather than the step response.

2

1.02.0

1.0

10

1)(

s

ssG

sssG

sGsG

sGsGsG cp

pc

pccl

rad/sec41.12:Note22

2)(

2

ncl ss

sG

644.0

982.02.0)(

z

zzGd

)22.0(20 Tns

Page 8: Objectives:

EE 3512: Lecture 37, Slide 8

Summary

• Reviewed FIR filters.

• Introduced a design methodology based on truncating the impulse response of an ideal lowpass filter.

• Demonstrated an application of this design approach.

• Introduced a methodology for design digital controllers that can approximate an equivalent analog controller.

• Demonstrated an approach involving matching the step response.

• Applied this to two control examples.