2003-11-06Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 8: Filter Design: IIR 1.Filter Design Specifications 2.Analog Filter Design 3.Digital.

Slides:



Advertisements
Similar presentations
Digital Signal Processing IIR Filter IIR Filter Design by Approximation of Derivatives Analogue filters having rational transfer function H(s) can be.
Advertisements

Nonrecursive Digital Filters
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Filters and Difference Equations Signal Flow Graphs FIR and IIR Filters.
Signal and System IIR Filter Filbert H. Juwono
Chapter 6 Infinite Impulse Response Filter Design.
CHAPTER 7 Digital Filter Design Wang Weilian School of Information Science and Technology Yunnan University.
ELEN 5346/4304 DSP and Filter Design Fall Lecture 8: LTI filter types Instructor: Dr. Gleb V. Tcheslavski Contact:
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
1 BIEN425 – Lecture 13 By the end of the lecture, you should be able to: –Outline the general framework of designing an IIR filter using frequency transform.
ECE651 Digital Signal Processing I Digital IIR Filter Design.
So far We have introduced the Z transform
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
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.
LINEAR-PHASE FIR FILTERS DESIGN
IIR Filter Design: Basic Approaches Most common approach to IIR filter design: (1)Convert specifications for the digital filter into equivalent specifications.
Discrete-Time IIR Filter Design from Continuous-Time Filters Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 6: Filters - Introduction 1.Simple Filters 2.Ideal Filters 3.Linear Phase and FIR filter.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
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.
Chapter 7 IIR Filter Design
Filter Design Techniques
Chapter 8 IIR Filter Design
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
MATLAB for Signal Processing The MathWorks Inc. Natick, MA USA Filter Design.
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.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Lecture 10: IIR Filter Designs XILIANG LUO 2014/11 1.
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 9: Filter Design: FIR 1.Windowed Impulse Response 2.Window Shapes 3.Design by Iterative.
Infinite Impulse Response Filters
EKT430/4 DIGITAL SIGNAL PROCESSING 2007/2008 CHAPTER 7 ANALOG FILTER.
1 Digital Signal Processing. 2 Digital Signal Processing Topic 8: Filter Design: IIR 1. Filter Design Specifications 2. Analog Filter Design 3. Digital.
2/17/2007DSP Course-IUST-Spring Semester 1 Digital Signal Processing Electrical Engineering Department Iran University of Science & Tech.
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
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
IIR Digital Filter Design
Lecture 5 BME452 Biomedical Signal Processing 2013 (copyright Ali Işın, 2013)1 BME 452 Biomedical Signal Processing Lecture 5  Digital filtering.
Chapter 7. Filter Design Techniques
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
First-Order System Revisited
Signals and Systems Filter Design. Part III Design.
Nov '03csDSP61 CS3291: Section 6 IIR discrete time filter design Introduction: Many design techniques for IIR discrete time filters have adopted ideas.
CHAPTER 5 Digital Processing of Continuous- Time Signal Wangweilian School of Information Science and Technology Yunnan University.
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology enabled Teaching & Learning, MGI,India DTEL DTEL (Department for Technology.
Analog Lowpass Filter Prototype Design ELEC 423 Prof. Siripong Potisuk.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Digital Signal Processing Lecture 6 Frequency Selective Filters
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
 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.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
Digital Signal Processing
IIR Filter design (cf. Shenoi, 2006)
UNIT - 5 IIR FILTER DESIGN.
Lecture: IIR Filter Design
IIR Filters FIR vs. IIR IIR filter design procedure
Infinite Impulse Response (IIR) Filters
Chapter 6 IIR Digital Filter Design
Filter Design Techniques
Chapter 8 Design of Infinite Impulse Response (IIR) Digital Filter
ME2300 DIGITAL SIGNAL PROCESSING [Slide 6] IIR Filter Design BY DREAMCATCHER
Infinite Impulse Response Filters
Usıng the impulse sampling method Prepared by: Dr. Erhan A. INCE
Chapter 7 Finite Impulse Response(FIR) Filter Design
Chapter 7 Finite Impulse Response(FIR) Filter Design
IIR Digital Filter Design
Presentation transcript:

Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 8: Filter Design: IIR 1.Filter Design Specifications 2.Analog Filter Design 3.Digital Filters from Analog Prototypes

Dan Ellis 2 1. Filter Design Specifications  The filter design process: Design ImplementAnalysis Problem Solution G(z) transfer function performance constraints magnitude response phase response cost/complexity FIR/IIR subtype order platform structure...

Dan Ellis 3 Performance Constraints .. in terms of magnitude response:

Dan Ellis 4  “Best” filter:  improving one usually worsens others  But: increasing filter order (i.e. cost) improves all three measures Performance Constraints smallest Passband Ripple greatest Minimum SB Attenuation narrowest Transition Band

Dan Ellis 5 Passband Ripple  Assume peak passband gain = 1 then minimum passband gain =  Or, ripple PB ripple parameter

Dan Ellis 6 Stopband Ripple  Peak passband gain is A  larger than peak stopband gain  Hence, minimum stopband attenuation SB ripple parameter

Dan Ellis 7 Filter Type Choice: FIR vs. IIR FIR  No feedback (just zeros)  Always stable  Can be linear phase  High order ( )  Unrelated to continuous- time filtering IIR  Feedback (poles & zeros)  May be unstable  Difficult to control phase  Typ. < 1/10th order of FIR (4-20)  Derive from analog prototype BUT

Dan Ellis 8 FIR vs. IIR  If you care about computational cost  use low-complexity IIR (computation no object  Lin Phs FIR)  If you care about phase response  use linear-phase FIR (phase unimportant  go with simple IIR)

Dan Ellis 9 IIR Filter Design  IIR filters are directly related to analog filters (continuous time)  via a mapping of H(s) (CT) to H(z) (DT) that preserves many properties  Analog filter design is sophisticated  signal processing research since 1940s  Design IIR filters via analog prototype  hence, need to learn some CT filter design

Dan Ellis Analog Filter Design  Decades of analysis of transistor-based filters – sophisticated, well understood  Basic choices:  ripples vs. flatness in stop and/or passband  more ripples  narrower transition band FamilyPBSB Butterworthflat Chebyshev Iripplesflat Chebyshev IIflatripples Ellipticalripples

Dan Ellis 11 CT Transfer Functions  Analog systems: s -transform (Laplace) Continuous-timeDiscrete-time Transform Frequency response Pole/zero diagram s-plane Re{s} Im{s} jj stable poles z-plane Re{z} Im{z}  ejej

Dan Ellis 12 Maximally flat in pass and stop bands  Magnitude response (LP):   <<  c,  H a (j  2  1   =  c,  H a (j  2 = 1 / 2 Butterworth Filters filter order N 3dB point

Dan Ellis 13 Butterworth Filters   >>  c,  H a (j  2  (  c /    flat  = 0 for n = 1.. 2N-1 Log-log magnitude response 6N dB/oct rolloff

Dan Ellis 14 Butterworth Filters  How to meet design specifications?  Design Equation =“discrimination”, <<1 =“selectivity”, < 1

Dan Ellis 15 Butterworth Filters  but what is H a (s) ?  Traditionally, look it up in a table  calculate N  normalized filter with  c = 1  scale all coefficients for desired  c  In fact, where s-plane Re{s} Im{s} cc    

Dan Ellis 16 Butterworth Example Design a Butterworth filter with 1 dB cutoff at 1kHz and a minimum attenuation of 40 dB at 5 kHz

Dan Ellis 17 Butterworth Example  Order N = 4 will satisfy constraints; What are  c and filter coefficients?  from a table,  -1dB = when  c = 1   c = 1000/0.845 = kHz  from a table, get normalized coefficients for N = 4, scale by 1184  Or, use Matlab: [b,a] = butter(N,Wc,’s’); M

Dan Ellis 18 Chebyshev I Filter  Equiripple in passband (flat in stopband)  minimize maximum error Chebyshev polynomial of order N

Dan Ellis 19 Chebyshev I Filter  Design procedure:  desired passband ripple    min. stopband atten.,  p,  s  N : 1/k 1, discrimination 1/k, selectivity

Dan Ellis 20 Chebyshev I Filter  What is H a (s) ?  complicated, get from a table .. or from Matlab cheby1(N,r,Wp,’s’)  all-pole; can inspect them:..like squashed-in Butterworth

Dan Ellis 21 Chebyshev II Filter  Flat in passband, equiripple in stopband  Filter has poles and zeros (some )  Complicated pole/zero pattern zeros on imaginary axis constant ~1/T N (1/  )

Dan Ellis 22 Elliptical (Cauer) Filters  Ripples in both passband and stopband  Complicated; not even closed form for  very narrow transition band function; satisfies R N (  -1 ) = R N (  ) -1 zeros for  >1  poles for  <1

Dan Ellis 23 Analog Filter Types Summary N = 6 r = 3 dB A = 40 dB

Dan Ellis 24 Analog Filter Transformations  All filters types shown as lowpass; other types (highpass, bandpass..) derived via transformations  i.e.  General mapping of s -plane BUT keep j   j  ; frequency response just ‘shuffled’ Desired alternate response; still a rational polynomial lowpass prototype ^

Dan Ellis 25 Lowpass-to-Highpass  Example transformation:  take prototype H LP (s) polynomial  replace s with  simplify and rearrange  new polynomial H HP (s) ^

Dan Ellis 26 Lowpass-to-Highpass  What happens to frequency response?   Frequency axes inverted LP passbandHP passband LP stopbandHP stopband imaginary axis stays on self......freq.  freq.

Dan Ellis 27 Transformation Example Design a Butterworth highpass filter with PB edge 4 kHz (  p ) and SB edge kHz (  s )  Lowpass prototype: make  p = 1  Butterworth  p =1,  s =4 ^ ^

Dan Ellis 28 Transformation Example  LPF proto has  Map to HPF: Re{s} Im{s} cc     N s = 0 ^ new s =  p  p /p l ^ ^

Dan Ellis 29 Transformation Example  In Matlab: [N,Wc]=buttord(1,4,0.1,40,'s'); [B,A] = butter(N, Wc, 's'); [n,d] = lp2hp(B,A,2*pi*4000);  p  s R p R s

Dan Ellis Analog Protos  IIR Filters  Can we map high-performance CT filters to DT domain?  Approach: transformation H a (s)  G(z) i.e. where s = F(z) maps s -plane  z -plane: s-plane Re{s} Im{s} z-plane Re{z} Im{z}  Ha(s0)Ha(s0) G(z0)G(z0) Every value of G(z) is a value of H a (s) somewhere on the s -plane & vice-versa s = F(z)

Dan Ellis 31 CT to DT Transformation  Desired properties for s = F(z) :  s -plane j  axis  z -plane unit circle  preserves frequency response values  s -plane LHHP  z -plane unit circle interior  preserves stability of poles s-plane Re{s} Im{s} jj z-plane Re{z} Im{z}  ejej LHHP  UCI Im  u.c.

Dan Ellis 32 Bilinear Transformation  Solution:  Hence inverse:  Freq. axis?  Poles? Bilinear Transform unique, 1:1 mapping  z  = 1 i.e. on unit circle  < 0   z  < 1

Dan Ellis 33 Bilinear Transformation  How can entire half-plane fit inside u.c.?  Highly nonuniform warping! s-plane z-plane

Dan Ellis 34 Bilinear Transformation  What is CT  DT freq. relation  ?  i.e.  infinite range of CT frequency maps to finite DT freq. range  nonlinear; as  u.circle im.axis pack it all in!

Dan Ellis 35 Frequency Warping  Bilinear transform makes for all   Same gain & phase ( , A...), in same ‘order’, but with warped frequency axis

Dan Ellis 36 Design Procedure  Obtain DT filter specs:  general form (LP, HP...),  ‘Warp’ frequencies to CT:   Design analog filter for   H a (s), CT filter polynomial  Convert to DT domain:   G(z), rational polynomial in z  Implement digital filter! Old- style

Dan Ellis 37 Bilinear Transform Example  DT domain requirements: Lowpass, 1 dB ripple in PB,  p = 0.4 , SB attenuation ≥ 40  s = 0.5 , attenuation increases with frequency SB ripples, PB monotonic  Chebyshev I

Dan Ellis 38 Bilinear Transform Example  Warp to CT domain:  Magnitude specs: 1 dB PB ripple 40 dB SB atten.

Dan Ellis 39 Bilinear Transform Example  Chebyshev I design criteria:  Design analog filter, map to DT, check: i.e. need N = 8 >> N=8; >> wp=0.7265; >> [B,A]=cheby1(N,1,wp,'s'); >> [b,a] = bilinear(B,A,.5); M

Dan Ellis 40 Other Filter Shapes  Example was IIR LPF from LP prototype  For other shapes (HPF, bandpass,...):  Transform LP  X in CT or DT domain... DT specs CT specs H LP (s) HD(s)HD(s) G LP (z) GD(z)GD(z) Bilinear warp Analog design CT trans DT trans Bilinear transform Bilinear transform

Dan Ellis 41 DT Spectral Transformations  Same idea as CT LPF  HPF mapping, but in z -domain:  To behave well, should:  map u.c.  u.c. (preserve G(e j  ) values)  map u.c. interior  u.c. interior (stability)  i.e.  in fact, matches the definition of an allpass filter... replace delays with

Dan Ellis 42 DT Frequency Warping  Simplest mapping has effect of warping frequency axis:  > 0 : expand HF  < 0 : expand LF

Dan Ellis 43 Another Design Example  Spec:  Bandpass, from Hz (SR = 8kHz)  Ripple = 1dB, min. stopband atten. = 60 dB  8th order, best transition band  Use elliptical for best performance  Full design path:  design analog LPF prototype  analog LPF  BPF  CT BPF  DT BPF (Bilinear)

Dan Ellis 44 Another Design Example  Or, do it all in one step in Matlab: [b,a] = ellip(8,1,60, [ ]/(8000/2));