DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,

Slides:



Advertisements
Similar presentations
Digital filters: Design of FIR filters
Advertisements

Nonrecursive Digital Filters
Signal and System IIR Filter Filbert H. Juwono
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Infinite Impulse Response (IIR) Filters
Unit 9 IIR Filter Design 1. Introduction The ideal filter Constant gain of at least unity in the pass band Constant gain of zero in the stop band The.
ELEN 5346/4304 DSP and Filter Design Fall Lecture 7: Z-transform Instructor: Dr. Gleb V. Tcheslavski Contact:
AMI 4622 Digital Signal Processing
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.
LINEAR-PHASE FIR FILTERS DESIGN
Chapter 8 FIR Filter Design
Lesson 3 Signals and systems Linear system. Meiling CHEN2 (1) Unit step function Shift a Linear system.
EE-2027 SaS, L18 1/12 Lecture 18: Discrete-Time Transfer Functions 7 Transfer Function of a Discrete-Time Systems (2 lectures): Impulse sampler, Laplace.
Frequency Response of Discrete-time LTI Systems Prof. Siripong Potisuk.
FILTERING GG313 Lecture 27 December 1, A FILTER is a device or function that allows certain material to pass through it while not others. In electronics.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Systems: Definition Filter
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 6: Filters - Introduction 1.Simple Filters 2.Ideal Filters 3.Linear Phase and FIR filter.
Analysis of Discrete Linear Time Invariant Systems
Digital Signals and Systems
1 Lecture 2: February 27, 2007 Topics: 2. Linear Phase FIR Digital Filter. Introduction 3. Linear-Phase FIR Digital Filter Design: Window (Windowing)
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
CE Digital Signal Processing Fall 1992 Z Transform
1 Lecture 5: March 20, 2007 Topics: 1. Design of Equiripple Linear-Phase FIR Digital Filters (cont.) 2. Comparison of Design Methods for Linear- Phase.
(Lecture #08)1 Digital Signal Processing Lecture# 8 Chapter 5.
Chapter 7 LTI Discrete-Time Systems in the Transform domain.
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
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 8 Design of infinite impulse response digital filter.
DISP 2003 Lecture 5 – Part 2 Digital Filters 2 Implementation of FIR Filters IIR Filters Properties, Design and Implementation Philippe Baudrenghien, AB-RF.
DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.
Chapter 5 Z Transform. 2/45  Z transform –Representation, analysis, and design of discrete signal –Similar to Laplace transform –Conversion of digital.
1 Z-Transform. CHAPTER 5 School of Electrical System Engineering, UniMAP School of Electrical System Engineering, UniMAP NORSHAFINASH BT SAUDIN
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
5.Linear Time-Invariant System
Z TRANSFORM AND DFT Z Transform
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
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
ES97H Biomedical Signal Processing
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
Digital Signal Processing
Chapter 4 LTI Discrete-Time Systems in the Transform Domain
Z Transform The z-transform of a digital signal x[n] is defined as:
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 DISCRETE SIGNALS AND SYSTEMS.
Chapter 6 Discrete-Time System. 2/90  Operation of discrete time system 1. Discrete time system where and are multiplier D is delay element Fig. 6-1.
Digital Signal Processing Lecture 6 Frequency Selective Filters
Lecture 09b Finite Impulse Response (FIR) Filters
Chapter 5. Transform Analysis of LTI Systems Section
 What is Filter ? A Filter is an electrical network that can transmit signal within a specified frequency range. This Frequency range is called PASS BAND.
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.
IIR Filter design (cf. Shenoi, 2006)
Lecture: IIR Filter Design
EEE422 Signals and Systems Laboratory
Speech Signal Processing
IIR Filters FIR vs. IIR IIR filter design procedure
EE Audio Signals and Systems
Chapter 8 Design of Infinite Impulse Response (IIR) Digital Filter
LINEAR-PHASE FIR FILTERS 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.
UNIT V Linear Time Invariant Discrete-Time Systems
Z TRANSFORM AND DFT Z Transform
Chapter 7 Finite Impulse Response(FIR) Filter Design
Signal Processing First
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien, AB-RF

20 March 2003P Baudrenghien AB/RF2 Frequency Response (1) Transfer Function H(z) is the z-transform of the impulse response h(n) Output y(n) is the convolution of the input x(n) and impulse response h(n)

20 March 2003P Baudrenghien AB/RF3 Frequency Response (2) Consider a pure phasor input x(n) = e j 2   n The output y(n) is y(n) = h(n) * x(n) The response to a phasor is a phasor at the same frequency the gain is the modulus of H(e j 2   ) the phase shift is the argument of H(e j 2   )

20 March 2003P Baudrenghien AB/RF4 Frequency Response (3) Frequency response is obtained by evaluating the transfer function on the unit circle in the z-plane Analogy with continuous- time systems where the frequency response is obtained by evaluating the transfer function (Laplace transform of h(t)) on the imaginary axis in the s- plane

20 March 2003P Baudrenghien AB/RF5 Difference Equation (1) Linear Time-Invariant -> Constant Coefficient Linear Difference Equation y(n) = a y(n-1) + x(n) ICs: y(-1) =0 then for x(n)=  (n) we get y(0) = 1 y(1) = a y(0) + x(1) = a y(2) = a y(1) + x(2) = a 2 -> h(n) = a n U(n) Knowledge of underlying physics gives the difference equation. Measurement gives impulse response.

20 March 2003P Baudrenghien AB/RF6 Difference Equation (2) Let y(n) be linear combination of the N past output values and the present and M past input values (causal) we get: or (with a 0 = 1) General difference equation representing a causal linear time-invariant filter.

20 March 2003P Baudrenghien AB/RF7 Rational Transfer Function Now take the z-transform of both sides The filter transfer function H(z) is H(z) is rational, with a M th order polynomial as numerator and N th order polynomial as denominator -> it has M zeros and N poles in the z-plane

20 March 2003P Baudrenghien AB/RF8 Frequency Response revisited Factorization of the transfer function H(z) M zeros z 0, z 1, …, z M-1 N poles p 0, p 1, …, p N-1 Graphic evaluation of the frequency response

20 March 2003P Baudrenghien AB/RF9 FIR versus IIR (1) FIR = Finite Impulse Response filter h(n) non zero only for n in [n 1,n 2 ] example: rectangular response IIR = Infinite Impulse Response filter example: h(n) = a n U(n)

20 March 2003P Baudrenghien AB/RF10 FIR versus IIR (2) Difference Equation For FIR we have N=0 and … for causal FIR or for non-causal FIR For IIR N is not zero and the difference equations are recursive: y(n) depends on the past (and future) output values.

20 March 2003P Baudrenghien AB/RF11 FIR versus IIR (3) FIR transfer function no pole except at z=0 (causal) or z=infinity (anti-causal) IIR transfer function has both poles and zeros in the z-plane

20 March 2003P Baudrenghien AB/RF12 FIR properties Frequency response is defined by location of zeros only. For a given complexity (nbr of multiply/add) the transition band will be smoother (that is less sharp) than with a IIR. The FIR are always stable:

20 March 2003P Baudrenghien AB/RF13 Even-symmetric FIR h(n) = h(-n) Evaluate the frequency response (assuming that N is odd) and h(n) is real-valued The frequency response is real: phase shift is 0 or 180 degrees

20 March 2003P Baudrenghien AB/RF14 Odd-symmetric FIR h(n) = - h(-n) Evaluate the frequency response (assuming that N is odd) and h(n) is real-valued The frequency response is imaginary: phase shift is 90 or -90 degrees

20 March 2003P Baudrenghien AB/RF15 Constant Group Delay Filter Take even-symmetric FIR H(z) and shift its symmetry axis by L time samples Since H(e j2  ) is purely real, H 1 has a linear phase characteristic -> Constant Group Delay

20 March 2003P Baudrenghien AB/RF16 FIR Filter Design Signal Processing Toolkit of MATLAB Define the frequency response template. Case of LPF: Pass band End F pass Pass band Ripple D pass Stop band Start F stop Stop band Attenuation D stop F stop -F pass = Transition band

20 March 2003P Baudrenghien AB/RF17 Example 1: Equiripple LP FIR (1) LPF example: Pass band End F pass = 0.1 Pass band Ripple D pass =0.05 (5%) Stop band Start F stop = 0.13 Stop band Attenuation D stop = 0.1 (1/10) Minimum of 31 coefficients needed to achieved required specifications Even-symmetric impulse response

20 March 2003P Baudrenghien AB/RF18 Example 1: Equiripple LP FIR (2) Achieved frequency response Purely linear phase response = constant group delay filter Exact zeros in the stop band

20 March 2003P Baudrenghien AB/RF19 Example 1: Equiripple LP FIR (3) Pole-Zero plot in the z-plane FIR -> pole at zero (causal) Location of zeros: On the unit circle in the Stop band Far from unit circle in Pass band -> ripples

20 March 2003P Baudrenghien AB/RF20 Example 2: Design using Windows (1) Idea: start from an ideal frequency response template (rectangular) expand this function as an infinite Fourier series over the normalized frequency interval [-1/2,1/2] identify the Fourier coefficients as the FIR coefficients h(n) truncate this series to the desired number of FIR coefficients multiply the impulse response by a window to limit the Gibbs phenomenon

20 March 2003P Baudrenghien AB/RF21 Example 2: Design using Windows (2) Using Kaiser window Same spec as before: Pass band End = 0.1 Pass band Ripple = 5% Stop band Start = 0.13 Stop band Attenuation = 1/10 Comparison with Equiripple design: 43 coefficients vs. 31 (-) Decreasing amplitude ripples in the Stop band (+)

20 March 2003P Baudrenghien AB/RF22 Example 2: Design using Windows (3) Pole-Zero plot Location of zeros: On the unit circle in the Stop band Far from unit circle in Pass band

20 March 2003P Baudrenghien AB/RF23 Needed number of coefficients For equiripple LP FIR filters: Independent of BW (F pass )! Weak (logarithmic) dependence on the Pass band ripple level and the Stop band attenuation Linear dependence on the transition band! Our example: Ne = 29 (compared to 31) Problem: Very narrow filters -> Decimating