Finite Impulse Response Filters

Slides:



Advertisements
Similar presentations
Signal Processing in the Discrete Time Domain Microprocessor Applications (MEE4033) Sogang University Department of Mechanical Engineering.
Advertisements

EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
AMI 4622 Digital Signal Processing
LINEAR-PHASE FIR FILTERS DESIGN
Discrete-Time Convolution Linear Systems and Signals Lecture 8 Spring 2008.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Systems: Definition Filter
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
ECE 352 Systems II Manish K. Gupta, PhD Office: Caldwell Lab ece. osu. ece. osu. edu Home Page:
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
UNIT I. SIGNAL ► Signal is a physical quantity that varies with respect to time, space or any other independent variable Eg x(t)= sin t. Eg x(t)= sin.
EE313 Linear Systems and Signals Fall 2005 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Infinite Impulse Response Filters
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Z TRANSFORM AND DFT Z Transform
EE313 Linear Systems and Signals Spring 2013 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Chapter 7 Finite Impulse Response(FIR) Filter Design
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Fall.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
ES97H Biomedical Signal Processing
ES97H Biomedical Signal Processing
Digital Signal Processing
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Chapter 2. Fourier Representation of Signals and Systems
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
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.
Review of DSP.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Discrete Time Signal Processing Chu-Song Chen (陳祝嵩) Institute of Information Science Academia Sinica 中央研究院 資訊科學研究所.
IIR Filter design (cf. Shenoi, 2006)
Finite Impulse Response Filters
Review of DSP.
Digital Signal Processing
In summary If x[n] is a finite-length sequence (n0 only when |n|
CEN352 Dr. Nassim Ammour King Saud University
Amplitude Modulation X1(w) Y1(w) y1(t) = x1(t) cos(wc t) cos(wc t)
EEE422 Signals and Systems Laboratory
Transfer Functions.
Linear Constant-coefficient Difference Equations
Lecture 12 Linearity & Time-Invariance Convolution
J McClellan School of Electrical and Computer Engineering
Recap: Chapters 1-7: Signals and Systems
The Laplace Transform Prof. Brian L. Evans
EE Audio Signals and Systems
LAPLACE TRANSFORMS PART-A UNIT-V.
Description and Analysis of Systems
UNIT II Analysis of Continuous Time signal
Infinite Impulse Response Filters
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Research Methods in Acoustics Lecture 9: Laplace Transform and z-Transform Jonas Braasch.
UNIT V Linear Time Invariant Discrete-Time Systems
Z TRANSFORM AND DFT Z Transform
Chapter 7 Finite Impulse Response(FIR) Filter Design
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Frequency Response Transfer Function Introduction to Filters.
Lecture #8 (Second half) FREQUENCY RESPONSE OF LSI SYSTEMS
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Discrete-Time Signal processing Chapter 3 the Z-transform
Chapter 9 Advanced Topics in DSP
Chapter 7 Finite Impulse Response(FIR) Filter Design
Review of DSP.
Presentation transcript:

Finite Impulse Response Filters

Discrete-Time Impulse Signal Let d[k] be a discrete-time impulse function, a.k.a. Kronecker delta function: Impulse response is response of discrete-time LTI system to discrete impulse function Example: delay by one sample Finite impulse response filter Non-zero extent of impulse response is finite Can be in continuous time or discrete time Also called tapped delay line (see slides 3-13, 3-19, 5-3) d[k] h[k]

Discrete-time Tapped Delay Line Impulse response h[k] of finite extent k = 0,…, M-1 Block diagram (finite impulse response filter) Discrete-time convolution z-1 … x[k] S y[k] h[0] h[1] h[2] h[M-1] x[k-1] Applications of continuous-time tapped delay lines?

Discrete-time Convolution Derivation Output y[k] for input x[k] Any signal can be decomposed into sum of discrete impulses Apply linear properties Apply shift-invariance Apply change of variables k h[k] Averaging filter impulse response 1 2 3 y[k] = h[0] x[k] + h[1] x[k-1] = ( x[k] + x[k-1] ) / 2

Comparison to Continuous Time Continuous-time convolution of x(t) and h(t) For each t, compute different (possibly) infinite integral In discrete-time, replace integral with summation For each k, compute different (possibly) infinite summation LTI system From impulse response and input, one can determine output Impulse response uniquely characterizes LTI system

Convolution Demos Johns Hopkins University Demonstrations http://www.jhu.edu/~signals (http://www.jhu.edu/~signals) Convolution applet to animate convolution of simple signals and hand-sketched signals Convolving two rectangular pulses of same width gives triangle with width of twice the width of rectangular pulses (also see Appendix E for intermediate calculations) t 1 x(t) Ts 2Ts h(t) * = y(t)

Linear Time-Invariant Systems Complex exponentials zk have a special property when they are input into LTI systems Output will be same complex exponential weighted by H(z) When we specialize the z-domain to frequency domain, magnitude of H(z) will control which frequencies are attenuated or passed H(z) is also known as the transfer function

Linear Time-Invariant Systems The Fundamental Theorem of Linear Systems If a complex sinusoid were input into an LTI system, then the output would be a complex sinusoid of the same frequency that has been scaled by the frequency response of the LTI system at that frequency Scaling may attenuate the signal and shift it in phase Example in continuous time: see handout F Example in discrete time. Let x[k] = e j W k, H(W) is discrete-time Fourier transform of h[k] H(W) is also called the frequency response H()

Frequency Response For continuous-time systems, response to complex sinusoid is For discrete-time systems, z-k = (r e j w)–k = r-k e – j w k and the response is For discrete-time systems, response to complex sinusoid is frequency response frequency response

Example: Ideal Delay Continuous Time Discrete Time Delay by T seconds Impulse response Frequency response Discrete Time Delay by 1 sample Impulse response Frequency response x(t) y(t) x[k] y[k] w = W T Allpass Filter Linear Phase

Frequency Response System response to complex sinusoid e j W t for all possible frequencies W where W = 2 p f : Above: passes low frequencies, a.k.a. lowpass filter FIR filters are only realizable LTI filters that can have linear phase over all frequencies Not all FIR filters exhibit linear phase |H(W)| |H(W)| Linear phase stopband stopband W W -Ws -Wp Wp Ws passband

Linear Time-Invariant Systems Any linear time-invariant system (LTI) system, whether continuous-time or discrete-time, can be uniquely characterized by its Impulse response: response of system to an impulse OR Frequency response: response of system to a complex sinusoid (e j W t or e j w k) for all possible frequencies OR Transfer function: general transform of impulse response (Laplace transform for continuous-time systems and z-transform for discrete-time systems) Given one, we can find other two if they exist Give an impulse response that has a Laplace transform but not a Fourier transform? What about the other way?

Mandrill Demo (DSP First) Five-tap discrete-time averaging FIR filter with input x[k] and output y[k] Lowpass filter (smooth/blur input signal) Impulse response is {1/5, 1/5, 1/5, 1/5, 1/5} First-order difference FIR filter Highpass filter (sharpens input signal) Impulse response is {1, -1} h[k] First-order difference impulse response k

Mandrill Demo (DSP First) DSP First demos: http://users.ece.gatech.edu/~dspfirst From lowpass filter to highpass filter original image  blurred image  sharpened/blurred image From highpass to lowpass filter original image  sharpened image  blurred/sharpened image Frequencies that are zeroed out can never be recovered (e.g. DC is zeroed out by highpass filter) Order of two LTI systems in cascade can be switched under the assumption that computations are performed in exact precision

Mandrill Demo (DSP First) Precision Input is represented as eight-bit numbers [0,255] per image pixel (i.e. fewer than three decimal digits of accuracy) Filter coeffients represented by one decimal digit each Intermediate computations (filtering) in double-precision floating-point arithmetic (15-16 decimal digits of accuracy) Output is represented as eight-bit number [-128, 127] (i.e. fewer than three decimal digits) No output precision was harmed in the making of this demo 

Finite Impulse Response Filters Duration of impulse response h[k] is finite, i.e. zero-valued for k outside interval [0, M-1]: Output depends on current input and previous M-1 inputs Summation to compute y[k] reduces to a vector dot product between M input samples in the vector and M values of the impulse response in vector What instruction set architecture features would you add to accelerate FIR filtering?

Symmetric FIR Filters Impulse response often symmetric about midpoint Phase of frequency response is linear (slides 5-9 to 5-11) Example: three-tap FIR filter (M = 3) with h[0] = h[2] Implementation savings Reduce number of multiplications from M to M/2 for even-length and to (M+1)/2 for odd-length impulse responses Reduce storage of impulse response by same amount TI TMS320C54 DSP has an accelerator instructor FIRS to compute h[0] ( x[k] + x[k-2] ) in one instruction cycle On most DSPs, no accelerator instruction is available

Filter Design Specify a desired piecewise constant magnitude response Lowpass filter example w  [0, wp], mag  [1-dp, 1] w  [ws, p], mag  [0, ds] Transition band unspecified Symmetric FIR filter design methods Windowing Least squares Remez (Parks-McClellan) Lowpass Filter Example Desired Magnitude Response forbidden 1 1-dp forbidden Achtung! forbidden ds w wp ws p Passband Transition band Stopband Red region is forbidden dp passband ripple ds stopband ripple

Importance of Linear phase Speech signals Use phase differences to locate a speaker Once locked onto a speaker, our ears are relatively insensitive to phase distortion in speech from that speaker (underlies speech compression systems, e.g. digital cell phones) Linear phase crucial Audio Images Communication systems Linear phase response Need FIR filters Realizable IIR filters cannot achieve linear phase response over all frequencies

Z-transform Definition For discrete-time systems, z-transforms play same role as Laplace transforms do for continuous-time systems Inverse transform requires contour integration over closed contour (region) R Contour integration covered in a Complex Analysis course Compute forward and inverse transforms using transform pairs and properties Bilateral Forward z-transform Bilateral Inverse z-transform

Common Z-transform Pairs h[k] = d[k] Region of convergence: entire z-plane h[k] = d[k-1] h[n-1]  z-1 H(z) h[k] = ak u[k] Region of convergence: |z| > |a| |z| > |a| is the complement of a disk

Region of Convergence Region of the complex z-plane for which forward z-transform converges Four possibilities (z=0 is a special case that may or may not be included) Im{z} Re{z} Entire plane Im{z} Re{z} Disk Im{z} Re{z} Complement of a disk Im{z} Re{z} Intersection of a disk and complement of a disk

Stability Rule #1: For a causal sequence, poles are inside the unit circle (applies to z-transform functions that are ratios of two polynomials) OR Rule #2: Unit circle is in the region of convergence. (For continuous-time signal, imaginary axis would be in region of convergence of Laplace transform.) Example: Stable if |a| < 1 by rule #1 or equivalently Stable if |a| < 1 by rule #2 because |z|>|a| and |a|<1 pole at z=a

Transfer Function Transfer function is z-transform of impulse response; e.g. for FIR filter with M taps (slide 5-3) Region of convergence is entire z-plane FIR filters are always stable Substitute z = e j w into transfer function to obtain frequency response Valid when unit circle is in region of convergence (i.e. for stable systems according to rule #2 on last slide)