(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
Filters.pdf
1. 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
URL:
2. EE 3512: Lecture 37, Slide 1
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
l
l
M
l
l
z
b
z
X
z
Y
z
H
l
n
x
b
n
y
0
1
)
(
)
(
)
(
]
[
]
[
3. EE 3512: Lecture 37, Slide 2
• 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
1
0
],
[
]
[
N
n
n
h
n
hd
otherwise
,
0
1
0
,
1
]
[
]
[
]
[
]
[
N
n
n
w
n
h
n
w
n
hd
j
j
j
d e
W
e
H
d
W
H
e
H *
2
1
2
/
)
1
(
2
/
sin
2
/
sin
N
j
j
e
N
e
W
4. EE 3512: Lecture 37, Slide 3
• Consider the design of an ideal
lowpass filter. The ideal filter is
noncausal for the response shown.
• Introduce a phase delay which will
help us create a causal approximation:
• We can truncate the impulse response to obtain our FIR filter:
• Examples of the frequency response:
FIR Design Example
m
n
m
n
m
n
n
h
e
e
H c
c
c
c
c
m
j
j
sinc
sin
]
[
if
,
0
if
,
otherwise
,
0
1
0
for
,
sinc
]
[
N
n
m
n
n
h
c
c
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;
5. EE 3512: Lecture 37, Slide 4
Digital Controllers
• There are many strategies for
approximating an analog controller
with a digital controller.
• This is analogous to the filter design
problem, and many of the same
techniques (e.g., bilinear transform)
can be applied.
• This process is referred to as
analog emulation.
• In this section, we will explore a technique known as step-response
matching 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.
nT
t
t
y
n
y
s
Y
t
y
s
s
G
s
Y
)
(
]
[
)
(
)
(
1
)
(
)
( 1
L
6. EE 3512: Lecture 37, Slide 5
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
.
0
2
.
0
)
(
s
s
s
G
2
19
.
0
01
.
0
1
2
1
.
0
2
.
0
1
)
(
)
(
s
s
s
s
s
s
s
G
s
Y
0
,
19
.
0
01
.
0
)
( 2
t
e
t
y t
0
,
19
.
0
01
.
0
]
[ 2
n
e
n
y nT
T
T
d
T
T
T
e
z
z
e
z
z
z
z
Y
z
G
e
z
z
z
e
z
e
z
z
z
z
z
Y
2
2
2
2
2
2
19
.
0
01
.
0
2
.
0
1
)
(
)
)(
1
(
19
.
0
01
.
0
2
.
0
19
.
0
1
01
.
0
)
(
7. EE 3512: Lecture 37, Slide 6
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 as
a function of the sample interval.
• There are a variety of ways we can
approximate an analog control system
using a digital controller. For example,
we can match the impulse response
rather than the step response.
2
1
.
0
2
.
0
1
.
0
10
1
)
(
s
s
s
G
s
s
s
G
s
G
s
G
s
G
s
G
s
G c
p
p
c
p
c
cl
rad/sec
41
.
1
2
:
Note
2
2
2
)
( 2
n
cl
s
s
s
G
644
.
0
982
.
0
2
.
0
)
(
z
z
z
Gd
)
22
.
0
(
20
T
n
s
8. EE 3512: Lecture 37, Slide 7
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.