SlideShare a Scribd company logo
1 of 8
Download to read offline
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:
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
)
(
)
(
)
(
]
[
]
[
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 



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;
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
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
)
(




















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 

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.

More Related Content

Similar to Filters.pdf

Dss
Dss Dss
Dss nil65
 
DSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersDSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersAmr E. Mohamed
 
FILTER DESIGN
FILTER DESIGNFILTER DESIGN
FILTER DESIGNnaimish12
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignAmr E. Mohamed
 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignAmr E. Mohamed
 
Adaptive filters and band reject filters
Adaptive filters and band reject filtersAdaptive filters and band reject filters
Adaptive filters and band reject filtersSanSan149
 
design of sampling filter
design of sampling filter design of sampling filter
design of sampling filter Anuj Arora
 
DSP (T)_Important Topics.pdf
DSP (T)_Important Topics.pdfDSP (T)_Important Topics.pdf
DSP (T)_Important Topics.pdfveeramaniks
 
1-Digital filters (FIR).pdf
1-Digital filters (FIR).pdf1-Digital filters (FIR).pdf
1-Digital filters (FIR).pdfsnehasingh75493
 
dsp unit4-vrc 2222222.pptx important to read
dsp unit4-vrc 2222222.pptx important to readdsp unit4-vrc 2222222.pptx important to read
dsp unit4-vrc 2222222.pptx important to readSahithikairamkonda
 
PID-Control_automation_Engineering_chapter6.ppt
PID-Control_automation_Engineering_chapter6.pptPID-Control_automation_Engineering_chapter6.ppt
PID-Control_automation_Engineering_chapter6.pptmohamed abd elrazek
 
Design and determination of optimum coefficients of iir digital highpass filt...
Design and determination of optimum coefficients of iir digital highpass filt...Design and determination of optimum coefficients of iir digital highpass filt...
Design and determination of optimum coefficients of iir digital highpass filt...Subhadeep Chakraborty
 

Similar to Filters.pdf (20)

Dss
Dss Dss
Dss
 
DSP-UNIT-V-PPT-1.pptx
DSP-UNIT-V-PPT-1.pptxDSP-UNIT-V-PPT-1.pptx
DSP-UNIT-V-PPT-1.pptx
 
DSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersDSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital Filters
 
FILTER DESIGN
FILTER DESIGNFILTER DESIGN
FILTER DESIGN
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter Design
 
Filters2
Filters2Filters2
Filters2
 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
 
Lecture 18 (5)
Lecture 18 (5)Lecture 18 (5)
Lecture 18 (5)
 
Adaptive filters and band reject filters
Adaptive filters and band reject filtersAdaptive filters and band reject filters
Adaptive filters and band reject filters
 
lecture_16.ppt
lecture_16.pptlecture_16.ppt
lecture_16.ppt
 
design of sampling filter
design of sampling filter design of sampling filter
design of sampling filter
 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
 
DSP (T)_Important Topics.pdf
DSP (T)_Important Topics.pdfDSP (T)_Important Topics.pdf
DSP (T)_Important Topics.pdf
 
Sampling.pptx
Sampling.pptxSampling.pptx
Sampling.pptx
 
DSP.ppt
DSP.pptDSP.ppt
DSP.ppt
 
1-Digital filters (FIR).pdf
1-Digital filters (FIR).pdf1-Digital filters (FIR).pdf
1-Digital filters (FIR).pdf
 
filter design
filter designfilter design
filter design
 
dsp unit4-vrc 2222222.pptx important to read
dsp unit4-vrc 2222222.pptx important to readdsp unit4-vrc 2222222.pptx important to read
dsp unit4-vrc 2222222.pptx important to read
 
PID-Control_automation_Engineering_chapter6.ppt
PID-Control_automation_Engineering_chapter6.pptPID-Control_automation_Engineering_chapter6.ppt
PID-Control_automation_Engineering_chapter6.ppt
 
Design and determination of optimum coefficients of iir digital highpass filt...
Design and determination of optimum coefficients of iir digital highpass filt...Design and determination of optimum coefficients of iir digital highpass filt...
Design and determination of optimum coefficients of iir digital highpass filt...
 

Recently uploaded

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...Call girls in Ahmedabad High profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(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.