DSP First, 2/e Lecture 11 FIR Filtering Intro. May 2016 © 2003-2016, JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released.

Slides:



Advertisements
Similar presentations
Review of Frequency Domain
Advertisements

Chapter 8: The Discrete Fourier Transform
MM3FC Mathematical Modeling 3 LECTURE 2 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Discrete-Time and System (A Review)
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Prof. Nizamettin AYDIN Digital Signal Processing 1.
Prof. Nizamettin AYDIN Digital Signal Processing 1.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Prof. Nizamettin AYDIN Digital Signal Processing 1.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Fourier Analysis of Discrete-Time Systems
1 Prof. Nizamettin AYDIN Digital Signal Processing.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Department of Electrical and Computer Engineering Brian M. McCarthy Department of Electrical & Computer Engineering Villanova University ECE8231 Digital.
Prof. Nizamettin AYDIN Digital Signal Processing 1.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Digital Signal Processing
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 DISCRETE SIGNALS AND SYSTEMS.
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Analysis of Linear Time Invariant (LTI) Systems
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 3
Real-time Digital Signal Processing Digital Filters.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
DSP First, 2/e Lecture 7 Fourier Series Analysis.
DSP First, 2/e Lecture 5 Spectrum Representation.
DSP First, 2/e Lecture 6 Periodic Signals, Harmonics & Time-Varying Sinusoids.
DSP First, 2/e Lecture 18 DFS: Discrete Fourier Series, and Windowing.
DSP-First, 2/e LECTURE #3 Complex Exponentials and Complex Numbers.
DSP First, 2/e LECTURE #1 Sinusoids Aug © , JH McClellan & RW Schafer.
DSP First, 2/e Lecture 16 DTFT Properties. June 2016 © , JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released under.
Lecture 19 Spectrogram: Spectral Analysis via DFT & DTFT
Lecture 6 Periodic Signals, Harmonics & Time-Varying Sinusoids
Signal Processing First
Digital Signal Processing
Lecture 11 FIR Filtering Intro
Lect2 Time Domain Analysis
CEN352 Dr. Nassim Ammour King Saud University
LECTURE #3 Complex Exponentials & Complex Numbers
Signal Processing First
Lecture 12 Linearity & Time-Invariance Convolution
Sampling and Reconstruction
Lecture 14 Digital Filtering of Analog Signals
Lecture 10 Digital to Analog (D-to-A) Conversion
Lecture 8 Fourier Series & Spectrum
LECTURE #2 Phase & Time-Shift Delay & Attenuation
UNIT V Linear Time Invariant Discrete-Time Systems
Multiplier-less Multiplication by Constants
Lecture 13 Frequency Response of FIR Filters
Lecture 18 DFS: Discrete Fourier Series, and Windowing
Lecture 17 DFT: Discrete Fourier Transform
Lecture 15 DTFT: Discrete-Time Fourier Transform
LECTURE #4 Phasor Addition Theorem
Digital Signal Processing
Lecture 7C Fourier Series Examples: Common Periodic Signals
Lecture 20 Z Transforms: Introduction
Signal Processing First
LECTURE 05: CONVOLUTION OF DISCRETE-TIME SIGNALS
Assignment # 3 Chapter 4 End of Chapter questions P-4.6 Page 97
Lecture 22 IIR Filters: Feedback and H(z)
Lecture 5A: Operations on the Spectrum
Lecture 4: Linear Systems and Convolution
Lecture 24 Time-Domain Response for IIR Systems
Lecture 21 Zeros of H(z) and the Frequency Domain
Presentation transcript:

DSP First, 2/e Lecture 11 FIR Filtering Intro

May 2016 © , JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released under a Creative Commons License with the following terms:Creative Commons License  Attribution  The licensor permits others to copy, distribute, display, and perform the work. In return, licensees must give the original authors credit.  Non-Commercial  The licensor permits others to copy, distribute, display, and perform the work. In return, licensees may not use the work for commercial purposes—unless they get the licensor's permission.  Share Alike  The licensor permits others to distribute derivative works only under a license identical to the one that governs the licensor's work.  Full Text of the License Full Text of the License  This (hidden) page should be kept with the presentation

May 2016 © , JH McClellan & RW Schafer 3 READING ASSIGNMENTS  This Lecture:  Chapter 5, Sects. 5-1, 5-2, 5-3 & 5-4 (partial)  Other Reading:  Recitation: Ch. 5, Sects 5-4, 5-6, 5-7 and 5-8  CONVOLUTION  Next Lecture: Ch 5, Sects. 5-3, 5-5 and 5-6

May 2016 © , JH McClellan & RW Schafer 4 LECTURE OBJECTIVES  INTRODUCE FILTERING IDEA  Weighted Average  Running Average  FINITE IMPULSE RESPONSE FILTERS  FIR  FIR Filters  Show how to compute the output y[n] from the input signal, x[n]

May 2016 © , JH McClellan & RW Schafer 5 DIGITAL FILTERING  Characterized SIGNALS (Fourier series)  Converted to DIGITAL (sampling)  Today: How to PROCESS them (DSP)?  CONCENTRATE on the COMPUTER  ALGORITHMS, SOFTWARE (MATLAB) and HARDWARE (DSP chips, VLSI) COMPUTER D-to-AA-to-D x(t)y(t)y[n]x[n]

May 2016 © , JH McClellan & RW Schafer 6 The TMS32010, 1983 First PC plug-in board from Atlanta Signal Processors Inc.

May 2016 © , JH McClellan & RW Schafer 7 Rockland Digital Filter, 1971 Cost was about the same as the price of a small house.

May 2016 © , JH McClellan & RW Schafer 8 Digital Cell Phone (ca. 2000) Now, digital cameras and video streaming rely on DSP algorithms

May 2016 © , JH McClellan & RW Schafer 9 DISCRETE-TIME SYSTEM  OPERATE on x[n] to get y[n]  WANT a GENERAL CLASS of SYSTEMS  ANALYZE the SYSTEM  TOOLS: TIME-DOMAIN & FREQUENCY-DOMAIN  SYNTHESIZE the SYSTEM COMPUTER y[n]x[n]

May 2016 © , JH McClellan & RW Schafer 10 D-T SYSTEM EXAMPLES  EXAMPLES:  POINTWISE OPERATORS  SQUARING: y[n] = (x[n]) 2  RUNNING AVERAGE  RULE: “the output at time n is the average of three consecutive input values” SYSTEM y[n]x[n]

May 2016 © , JH McClellan & RW Schafer 11 DISCRETE-TIME SIGNAL  x[n] is a LIST of NUMBERS  INDEXED by “ n ” STEM PLOT

May 2016 © , JH McClellan & RW Schafer 12 3-PT AVERAGE SYSTEM  ADD 3 CONSECUTIVE NUMBERS  Do this for each “ n ” Make a TABLE n=0 n=1

May 2016 © , JH McClellan & RW Schafer 13 INPUT SIGNAL OUTPUT SIGNAL

May 2016 © , JH McClellan & RW Schafer 14  SLIDE a WINDOW across x[n] PAST, PRESENT, FUTURE Figure 5-3 Filter calculation at the present time ( ℓ = n) uses values within a sliding window. Gray shading indicates the past ( ℓ n). Here, the sliding window encompasses values from both the future and the past. “n” is PRESENT TIME

May 2016 © , JH McClellan & RW Schafer 15 ANOTHER 3-pt AVERAGER  Uses “PAST” VALUES of x[n]  IMPORTANT IF “n” represents REAL TIME  WHEN x[n] & y[n] ARE STREAMS

May 2016 © , JH McClellan & RW Schafer 16 CAUSAL 3-pt AVERAGER

May 2016 © , JH McClellan & RW Schafer 17 GENERAL CAUSAL FIR FILTER  FILTER COEFFICIENTS {b k }  DEFINE THE FILTER  For example,

May 2016 © , JH McClellan & RW Schafer 18 GENERAL CAUSAL FIR FILTER  FILTER COEFFICIENTS {b k }  FILTER ORDER is M  FILTER “LENGTH” is L = M+1  NUMBER of FILTER COEFFS is L

May 2016 © , JH McClellan & RW Schafer 19  SLIDE a WINDOW across x[n] x[n]x[n]x[n-M] GENERAL CAUSAL FIR FILTER

May 2016 © , JH McClellan & RW Schafer 20 FILTERED STOCK SIGNAL OUTPUT INPUT 50-pt Averager

May 2016 © , JH McClellan & RW Schafer 21 SPECIAL INPUT SIGNALS  x[n] = SINUSOID  x[n] has only one NON-ZERO VALUE 1 n UNIT-IMPULSE FREQUENCY RESPONSE (LATER)

May 2016 © , JH McClellan & RW Schafer 22 UNIT IMPULSE SIGNAL  [n]  [n] is NON-ZERO When its argument is equal to ZERO

May 2016 © , JH McClellan & RW Schafer 23 Sequence Representation Example:

UNIT IMPULSE RESPONSE  FIR filter description usually given in terms of coefficients b k  Can we describe the filter using a SIGNAL instead?  What happens if input is a unit impulse? May 2016 © , JH McClellan & RW Schafer 24

May 2016 © , JH McClellan & RW Schafer 25 Example: 4-pt AVERAGER  CAUSAL SYSTEM: USE PAST VALUES  INPUT = UNIT IMPULSE SIGNAL =  [n]  OUTPUT is called “IMPULSE RESPONSE”  Denoted h[n]=y[n] when x[n]=  [n]

May 2016 © , JH McClellan & RW Schafer 26 Unit Impulse Response

May 2016 © , JH McClellan & RW Schafer 27 SUM of Shifted Impulses

May 2016 © , JH McClellan & RW Schafer 28 4-pt Avg Impulse Response  [n] “READS OUT” the FILTER COEFFICIENTS n=0 “h” in h[n] denotes Impulse Response 1 n n=0 n=1 n=4 n=5 n= –1 NON-ZERO When window overlaps  [n]

May 2016 © , JH McClellan & RW Schafer 29 FIR IMPULSE RESPONSE

May 2016 © , JH McClellan & RW Schafer 30 3 Ways to Represent the FIR filter  Use SHIFTED IMPULSES to write h [ n ] 1 n – : Plot the values 3: List the values True for any signal, x[n]

May 2016 © , JH McClellan & RW Schafer 31 FILTERING EXAMPLE  7-point AVERAGER  Removes cosine  By making its amplitude (A) smaller  3-point AVERAGER  Changes A slightly

May 2016 © , JH McClellan & RW Schafer 32 3-pt AVG EXAMPLE USE PAST VALUES

May 2016 © , JH McClellan & RW Schafer 33 7-pt FIR EXAMPLE (AVG) CAUSAL: Use Previous LONGER OUTPUT

May 2016 © , JH McClellan & RW Schafer 34 MATH FORMULA for x[n]  Use SHIFTED IMPULSES to write x[n]

May 2016 © , JH McClellan & RW Schafer 35 SUM of SHIFTED IMPULSES This formula ALWAYS works

May 2016 © , JH McClellan & RW Schafer 36 PAST, PRESENT, FUTURE “n” is TIME

May 2016 © , JH McClellan & RW Schafer 37  SLIDE a WINDOW across x[n] x[n]x[n]x[n-M] GENERAL CAUSAL FIR FILTER