DIGITAL SIGNAL PROCESSING. Chapter 6 IIR Filter Design

Similar documents
EE482: Digital Signal Processing Applications

Digital Signal Processing

Digital Control & Digital Filters. Lectures 21 & 22

Digital Signal Processing IIR Filter Design via Bilinear Transform

Chapter 7: IIR Filter Design Techniques

DIGITAL SIGNAL PROCESSING. Chapter 3 z-transform

Digital Signal Processing Lecture 8 - Filter Design - IIR

DIGITAL SIGNAL PROCESSING UNIT III INFINITE IMPULSE RESPONSE DIGITAL FILTERS. 3.6 Design of Digital Filter using Digital to Digital

Filter Analysis and Design

Design of IIR filters

EE 521: Instrumentation and Measurements

Lecture 7 Discrete Systems

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

ECE 410 DIGITAL SIGNAL PROCESSING D. Munson University of Illinois Chapter 12

Lecture 16: Filter Design: Impulse Invariance and Bilinear Transform

Lecture 3 - Design of Digital Filters

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

Lecture 9 Infinite Impulse Response Filters

INFINITE-IMPULSE RESPONSE DIGITAL FILTERS Classical analog filters and their conversion to digital filters 4. THE BUTTERWORTH ANALOG FILTER

ELEG 305: Digital Signal Processing

INF3440/INF4440. Design of digital filters

UNIVERSITI SAINS MALAYSIA. EEE 512/4 Advanced Digital Signal and Image Processing

Electronic Circuits EE359A

APPLIED SIGNAL PROCESSING

IIR digital filter design for low pass filter based on impulse invariance and bilinear transformation methods using butterworth analog filter

PS403 - Digital Signal processing

Quadrature-Mirror Filter Bank

Electronic Circuits EE359A

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Discrete-Time David Johns and Ken Martin University of Toronto

Stability Condition in Terms of the Pole Locations

MITOCW watch?v=jtj3v Rx7E

V. IIR Digital Filters

There are two main classes of digital lter FIR (Finite impulse response) and IIR (innite impulse reponse).

Analog and Digital Filter Design

The Approximation Problem

-Digital Signal Processing- FIR Filter Design. Lecture May-16

Filters and Tuned Amplifiers

1 1.27z z 2. 1 z H 2

Chapter 7: Filter Design 7.1 Practical Filter Terminology

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

ELEG 5173L Digital Signal Processing Ch. 5 Digital Filters

Design IIR Filters Using Cascaded Biquads

Digital Signal Processing

Lecture 8 - IIR Filters (II)

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

Signals and Systems. Lecture 11 Wednesday 22 nd November 2017 DR TANIA STATHAKI

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

The Approximation Problem

Multirate Digital Signal Processing

Filter structures ELEC-E5410

The Approximation Problem

Butterworth Filter Properties

Digital Signal Processing

Digital Signal Processing

Optimum Ordering and Pole-Zero Pairing of the Cascade Form IIR. Digital Filter

EE 225D LECTURE ON DIGITAL FILTERS. University of California Berkeley

An Iir-Filter Example: A Butterworth Filter

24 Butterworth Filters

EE 508 Lecture 15. Filter Transformations. Lowpass to Bandpass Lowpass to Highpass Lowpass to Band-reject

Vel Tech High Tech Dr.Ranagarajan Dr.Sakunthala Engineering College Department of ECE

Grades will be determined by the correctness of your answers (explanations are not required).

Lecture 8 - IIR Filters (II)

2.161 Signal Processing: Continuous and Discrete Fall 2008

SIDDHARTH GROUP OF INSTITUTIONS:: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

2.161 Signal Processing: Continuous and Discrete Fall 2008

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF INFORMATION TECHNOLOGY. Academic Year

Digital Signal Processing

Grades will be determined by the correctness of your answers (explanations are not required).

EECE 301 Signals & Systems Prof. Mark Fowler

Fourier Series Representation of

LINEAR-PHASE FIR FILTERS DESIGN

Part 4: IIR Filters Optimization Approach. Tutorial ISCAS 2007

Speaker: Arthur Williams Chief Scientist Telebyte Inc. Thursday November 20 th 2008 INTRODUCTION TO ACTIVE AND PASSIVE ANALOG

Design IIR Butterworth Filters Using 12 Lines of Code

FIR BAND-PASS DIGITAL DIFFERENTIATORS WITH FLAT PASSBAND AND EQUIRIPPLE STOPBAND CHARACTERISTICS. T. Yoshida, Y. Sugiura, N.

DSP-CIS. Chapter-4: FIR & IIR Filter Design. Marc Moonen

Homework Assignment 11

Design of Stable IIR filters with prescribed flatness and approximately linear phase

Multirate signal processing

Examination with solution suggestions SSY130 Applied Signal Processing

CMPT 889: Lecture 5 Filters

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

SIGNAL PROCESSING. B14 Option 4 lectures. Stephen Roberts

Op-Amp Circuits: Part 3

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

Time Series Analysis: 4. Linear filters. P. F. Góra

Analysis of Finite Wordlength Effects

All-Pole Recursive Digital Filters Design Based on Ultraspherical Polynomials

Matched Second Order Digital Filters

On the Frequency-Domain Properties of Savitzky-Golay Filters

Oversampling Converters

Design of Digital Filters

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

Lectures: Lumped element filters (also applies to low frequency filters) Stub Filters Stepped Impedance Filters Coupled Line Filters

EE482: Digital Signal Processing Applications

Lecture 5 - Assembly Programming(II), Intro to Digital Filters

DEPARTMENT OF EI DIGITAL SIGNAL PROCESSING ASSIGNMENT 1

Transcription:

DIGITAL SIGNAL PROCESSING Chapter 6 IIR Filter Design OER Digital Signal Processing by Dr. Norizam Sulaiman work is under licensed Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Filter design Aims To explain type of IIR filter, filter design steps, and filter conversion (analogue to digital and vice versa) Expected Outcomes The outcome of the topic should have student to be able to design IIR digital filter based on the filter specifications, and to convert analogue filter to digital filter and vice versa using Bilinear transformation method and Impulse Invariant method.

Definition of Filter Filter is required in the digital signal processing to filter the raw input signals to the desired frequency and suppress noise in signal processing. Filter consists of Finite Impulse Response (FIR) and Infinite Impulse Response Filter (IIR). There are four type filter such as Low -pass, High-pass, Band-pass and Band -stop filter.

IIR Filter It is a system where the output of the system not only depend on the input signals but the past values of the output signals. The system only has both zeros and poles. The system has feedback. The stability of the system depends on its poles. Example of the difference equation that can describe the system; y[n] = ½ y[n-1] + 2x[n] + x[n-1]

IIR Filter Specifications The process of filter design begins with filter specifications which include the filter characteristics (Lowpass, high-pass, band-pass, band-stop filter), filter type, passband frequency, stopband frequency, transistion width frequency, sampling frequency and filter length. The second step is obtain filter response, H( ). Third step is to find the filter coefficient and acceptable filter. The last step is to implement filter coefficient and choose appropriate filter structure for filter implementation.

Mapping of s-plane & z-plane The relationship between frequency domain and time domain by backward difference derivative, is shown below: s = (1 z-1) / Ts The mapping of s-plane (analog) to z-plane (digital) is done by: z = 1 / (1 st) or 1 / (1 jωts), H(s) = s, => H(z) = (1 z-1)/ts The mapping of the s-plane to the z-plane is defined as z = rest. Since s = + jω, z = e TejΩT, Thus, r = e T, z = ejωt, ω = ΩT (Unit Circle) as shown in diagram below; jω j s-plane (time domain z-plane (Unit Circle), frequency domain

IIR Filter Type & Charateristics There are 4 commons IIR filter design; 1. Butterworth (As the Filter Order, N increases, the transition band becomes narrower). 2a. Chebyshev Type I (ripple at pass-band) 2b. Chebyshev Type II (ripple at stop-band) 3. Elliptic (ripple at both pass-band & stop-band) 4. Bessel (linear-phase response over the pass-band and exhibit larger transition bandwidth) The analog filter will be mapped to digital filter using transformation of s-domain to z-domain. 2 methods to convert the analog filter to digital filter and vice versa; 1. Impulse Invariance method 2. Bilinear Transformation method (Source: https://upload.wikimedia.org/ wikipedia/commons/thumb/0/0f/filters_order6)

Magnitude Response (db) IIR Filter Specifications: Butterworth filter The example of IIR Butterworth Low-Pass Filter at sampling frequency of 1 khz and cut-off frequency of 300 Hz and filter order of 5 using Impulse Invariance method is illustrated by the diagram below: Amplitude Parameters; Passband ripple = δ p Stopband ripple = δ p Discrimination Factor, d = sqrt[((1-δ p ) -2-1)/ (δ -2 s 1)] or /sqrt(a 2 1) Frequency Parameters; Sampling frequency = F s Selectivity Factor, k = Ω p / Ω s The Filter Order, N is defined as: N log d / log k 5 0-5 -10-15 -20-25 -30-35 -40 0 50 100 150 200 250 300 350 400 450 500 Frequency (Hz)

Phase (degrees) Magnitude (db) Butterworth IIR Low-pass filter : Example Design the Butterworth Low-pass Filter to meet the following specifications: 0 f p = 6 khz, f s = 10 khz, δ p = δ s = 0.1-100 Solution : 1. Calculate d and k, d = sqrt[((1-δ p ) -2-1)/ (δ s -2 1)] = 0.0487 k = Ω p / Ω s = 0.6 2. Calculate Filter Order, N N log d/log k = log (0.0487)/log (0.6) = 5.9 Thus, N = 6-200 -300 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Frequency (Hz) 0-200 -400-600 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Frequency (Hz)

Butterworth IIR Low-pass filter : Example 3. To determine the cut-off frequency, Ω c fp[(1-δ p ) -2 1] -1/2N = 6770 fs[δ s -2 1] -1/2N = 6819 6770 Ω c 6819 4. The pole position are: s k = Ω c e j[ /2 + (2k + 1) /12], k = 0,1,,5 5. The Transfer Function is : H a (s) = 1 / [s 6 + 3.8637s 5 + 7.4641s 4 + 9.1416s 3 + 7.4641s 2 + 3.8637s + 1

Imaginary Part Magnitude Response Butterworth IIR Band-pass filter : Example Design the Butterworth IIR Band-pass Filter to meet the following Filter specifications by using Bilinear Transformation method. f p1 = 200 Hz, f p2 = 300 Hz, f s1 = 50 Hz, 1 f s2 = 450 Hz, A p = 3 db, A s = 20 db, F s =1000 Hz Solution : 1. Calculate δ p and δ s δ p = 1 antilog (-3/20) = 0.2921 δ s = antilog(-20/20) = 0.1 2. Calculate d and k, d = sqrt[((1-δ p ) -2-1)/ (δ s -2 1)] = 0.1 k = Ω p2 / Ω s2 = 300 / 450 = 0.67 3. Calculate Filter Order, N N log d/log k = log (0.1)/log (0.67) N = 6 4. The transfer function, H(s) 0.2857 s^4-0.5714 s^2 + 0.2857 ---------------------------------------------------------------------------- s^4 + 8.882e-16 s^3 + 0.02882 s^2-8.327e-17 s + 0.1717 0.5 0 0 50 100 150 200 250 300 350 400 450 500 Frequency (Hz) 1 0.5 0-0.5-1 2 2-3 -2-1 0 1 2 3 Real Part

IIR Filter Specifications: Chebyshev filter There are 2 types of Chebyshev Filters; Type 1 and Type 2. Type 1 Chebyshev Filter is all-pole with an equiripple passband and a monotonically decreasing stopband. The magnitude of Frequency Response of type 1 Chebyshev Filter is: H a (jω) 2 = 1 / [1 + 2 T N2 (Ω/Ω P )] N = Filter Order Ω P = passband cut-off frequency = parameter that controls passband ripple amplitude

IIR Filter Specifications: Chebyshev filter The discrimination and selectivity factor formula is same as Butterworth IIR filter. The Filter Order, N is determined by : N [cosh -1 (1/d) / cosh -1 (1/k)] The Transfer Function is determined by: G a (s) = H a (s)h a (-s) = 1 / [1 + 2 T N (s/jω p )] = [(1-δ p ) -2 1] 1/2

IIR Filter Specifications: Chebyshev filter The parameter, which control the pass-band ripple can be defined as 2 = 1 /[(1 δ p ) 2 ] 1 The parameter, which is related to is defined as: = [(sqrt(1 + 2 ) + 1) / ] 1/N, N is filter length/order r 1 = Ω p ( 2 + 1)/2 and r 2 = Ω p ( 2-1)/2 The angular position that can be determined by: k = /2 + (2k + 1) /2N, k = 0,1,2, N-1 The coordinate of the poles will be: x k = r 2 cos k, y k = r 1 sin k, k = 0,1,2, N-1 Thus, the poles are: x k + jy k

Magnitude (db) Chebyshev IIR low-pass filter : Example Design a Chebyshev Type 1 low-pass filter to meet the following spec: 1 f p = 6 khz, f s = 10 khz, δ p = δ s = 0.1 Solution : 1. Calculate d & k, d = sqrt[((1-δ p ) -2-1)/ (δ s -2 1)] = 0.0487 k = Ω p / Ω s = 0.6 2. Calculate the Filter Order, N N cosh -1 (1/d) / cosh -1 (1/k) 3.38 = 4 3. Calculate pass-band ripple controller, = [(1-δ p ) -2 1] 1/2 = 0.4843 0 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Frequency, Hz 4. The magnitude of the frequency response of the Chebyshev Type I low-pass filter: H a (Ω) 2 = 1 / [1 + 2 T N2 (Ω/Ω P )] = = 1 / [1 + (0.4843) 2 Ω/(12000 )] = 1 / [1 + 6.22x10-6 Ω] 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1

Imaginary Part Magnitude Response, db Elliptic IIR band-pass filter : Example Design a Elliptic band-pass filter to meet the following spec: Pass-band frequency, f p = 20.5 23.5 khz Stop-band frequency, f s = 0 19 khz, 25 50 khz Pass-band ripple, p 0.25 db 0 Stop-band attenuation 45 db -100 Sampling frequency, Fs = 100 khzf -200 Solution : 1. Calculate d & k, -300 d = sqrt[((1-δ p ) -2-1)/ (δ -2 s 1)] = 0.0284 1 k = Ω p / Ω s = 20.5/25 = 0.82 q = 0.5 (1 (1-k 2 ) 1/4 / (1 + (1-k 2 ) 1/4 0.5 = 0.0693 0 2. Calculate the Filter Order, N N log (16/d 2-0.5 ) / log(1/q) 3.7 = 4-1 3. System transfer function is; H(s) = 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 Frequency (Hz) x 10 4-3 -2-1 0 1 2 3 Real Part 0.006128 s^8-0.008248 s^7 + 0.02362 s^6-0.02211 s^5 + 0.03505 s^4-0.02211 s^3 + 0.02362 s^2-0.008248 s + 0.006128 ----------------------------------------------------------------------------------------------------------------------------------- s^8-1.448 s^7 + 4.483 s^6-4.221 s^5 + 6.647 s^4-3.946 s^3 + 3.919 s^2-1.183 s + 0.7634

Filter Conversion The design of the digital IIR Filter, H(z) from analog filter, H a (s) require a mapping of s- plane to z-plane. The point in the left half s-plane should map to points inside the unit circle to preserve the stability of the analog filter. One method to map the left half s-plane to inside unit circle of z-plane is called : BILINEAR TRANSFORMATION

Filter Conversion The Bilinear Transformation is defined by: s = 2/T s [(1 z -1 )/(1 + z -1 )] Thus, the Transfer Function of Digital Filter is defined as : H(z) = H a 2/T s [(1 z -1 )/(1 + z -1 )] The relation s-plane & z-plane is: s = + jω & z = re jω

Filter Conversion The mapping process is highly non-linear. Thus frequency warping exists. It is defined as : ω = 2tan -1 (ΩT s /2) Bilinear Transformation is generally only used in the design of frequency selective filter. T s does not enter into the filter design process because it only scales the jω axis in the frequency warping function and it can be done in the analog filter specification. The prewarping function is needed to determine the passband and cut-off frequencies of analog low-pass filter. It can be done by inversing the equation above: Ω = 2/T s tan (ω/2)

Filter Conversion : Example using Bilinear Design the Digital Low-Pass Filter with 3-dB Cut-Off Frequency, ω c = 0.25 by using Bilinear Transformation method to analog Butterworth Low-Pass Filter defined below: H a (s) = [1 / 1 + (s/ω s )] Solution : 1. Use the prewarping function to determine Ω. Ω = 2/T s tan (ω/2) = 2/T s tan(0.25 /2) = 0.828/T s 2. The Analog Filter Function will be : H a (s) = [1 / 1 + (st s /0.828)]

Filter Conversion : Example using Bilinear 3. Now, use Bilinear transformation to obtain H(z) H(z) = H a (s) s=2/t(1 z -1 / 1 + z -1 ) = 1 /(1 + 2/0.828)[(1-z -1 )/(1+z -1 )] = 0.292[(1 + z -1 ) / (1 0.4159z -1 )] 4. The Frequency response of the filter will be : H(e jω ) = 0.292[(1 + e -jω ) / (1 0.4159e -jω )

Filter Conversion : Example using Bilinear Determine the Low-Pass Digital Filter with 3-dB Cut-Off Frequency of 0.2 and its Frequency Response from the analog filter given below: H a (s) = Ω c / s + Ω c where Ω c is the 3-dB Cut-Off Frequency. Solution : 1. Use prewarping function to determine Ω, Ω = 2/T s tan (0.2/2) = 0.65/T s 2. The analog transfer function will be: H a (s) = Ω c / s + Ω c = 0.65/T s / s + 0.65/T s T s has been cancelled out.

Filter Conversion : Example using Bilinear 3. Now, Use Bilinear Transformation method to obtain, H(z), H(z) = H a (s) s=2/t(1 z -1 / 1 + z -1 ) = 0.245( 1 + z -1 ) / (1 0.509z -1 ) 4. Thus, the frequency response of the filter is : H(e jω ) = 0.245 ( 1 + e -jω ) / ( 1 0.509e -jω ) 5. at ω = 0, H(0) = 1, and at ω = 2, H(e j0.2 ) = 0.707 the desired response

Filter Conversion : Example using Impulse Invariance Impulse Invariance method is defined as below; H(z) = Σ[A k /(1-e pkt )z -1 A k = Partial Fraction Coefficients pk = Poles for Transfer Function, H(z) T = Sampling Interval / Period

Filter Conversion : Example using Impulse Invariance Convert the following Analog filter into Digital filter using Impulse Invariance method where the sampling frequency is 20 Hz. Solution : H(s) = (6s + 6) / (s 2 + 5s + 6) 1. Use PFE technique to the Transfer function above into its Coefficient and Poles. 2. H(s) = (6s + 6) / (s + 2)(s + 3) = A1/(s+2)+ A2/(s+3) 3. Solve for A1 and A2; A1 = -6, A2 = 12, thus; H(s) = -6/(s+2)+ 12/(s+3) where P 1 = -2 and P 2 = -3, T=1/F = 0.05 4. Thus, H(z) = -6 / (1 e -2(0.05) ) + 12 (1 e -3(0.05) )

Solution : Filter Conversion : Example using Impulse Invariance 5. Thus, H(z) = -6 / (1 e -0.1 z -1 ) + 12 (1 e -0.15 z -1 ) 6. Simplify the equation; H(z) = -6 / (1 0.905z -1 ) + 12 / (1 0.861z -1 ) 7. Thus, the final digital transfer using Impulse Invariance method is; H(z) = (6 5.694z -1 ) / (1 1.766z -1 + 0.8z -2 )

INTRODUCTION TO DISCRETE-TIME SIGNAL To design IIR filter using filter specifications and perform filter conversion using Bilinear and Impulse Invariance techniques 5 To configure IIR filter based on filter parameterss 4 1 To identify type of IIR filter and filter specifications To obtain correct IIR filter response 3 2 To perform IIR filter conversion

Conclusion Able to differentiate the type and the characteristics of IIR filters. Able to design and produce IIR filter response based on the filter specifications. Able to perform filter conversion from analog filter to digital filter and vice versa.

Author Information Dr. Norizam Sulaiman, Senior Lecturer, Applied Electronics and Computer Engineering, Faculty of Electrical & Electronics Engineering, Universiti Malaysia Pahang, Pekan Campus, Pekan, Pahang, Malaysia norizam@ump.edu.my OER Digital Signal Processing by Dr. Norizam Sulaiman work is under licensed Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.