Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters

Similar documents
Computing Tools in an Advanced Filter Theory Course

Digital Filtering: Realization

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

UNIT II IIR FILTER DESIGN

Digital Signal Processing

LECTURER NOTE SMJE3163 DSP


ECE503: Digital Filter Design Lecture 9

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

EE 470 Signals and Systems

4. Design of Discrete-Time Filters

Bibliography. Practical Signal Processing and Its Applications Downloaded from

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization

Signals and Filtering

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #2

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Experiment 4- Finite Impulse Response Filters

A comparative study on main lobe and side lobe of frequency response curve for FIR Filter using Window Techniques

CS3291: Digital Signal Processing

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

Design of IIR Digital Filters with Flat Passband and Equiripple Stopband Responses

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

8: IIR Filter Transformations

Signals and Systems Lecture 6: Fourier Applications

ECE 429 / 529 Digital Signal Processing

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

UNIT-II MYcsvtu Notes agk

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

A Comparative Performance Analysis of High Pass Filter Using Bartlett Hanning And Blackman Harris Windows

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

Final Exam. EE313 Signals and Systems. Fall 1999, Prof. Brian L. Evans, Unique No

F I R Filter (Finite Impulse Response)

Frequency Response Analysis

Discretization of Continuous Controllers

EE 422G - Signals and Systems Laboratory

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

EELE 4310: Digital Signal Processing (DSP)

Chapter 7 Filter Design Techniques. Filter Design Techniques

Dorf, R.C., Wan, Z. Transfer Functions of Filters The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000

Lecture 17 Date: Parallel Resonance Active and Passive Filters

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

Digital Filters IIR (& Their Corresponding Analog Filters) 4 April 2017 ELEC 3004: Systems 1. Week Date Lecture Title

Design of IIR Half-Band Filters with Arbitrary Flatness and Its Application to Filter Banks

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Review of Filter Types

Real-time Data Collections and Processing in Open-loop and Closed-loop Systems

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK

ActiveLowPassFilter -- Overview

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2016/17 Class 6, 31st October

Operational Amplifiers

ELEC3104: Digital Signal Processing Session 1, 2013

Design IIR Band-Reject Filters

ECE 301, final exam of the session of Prof. Chih-Chun Wang Saturday 10:20am 12:20pm, December 20, 2008, STEW 130,

Digital Filters FIR and IIR Systems

FLASH rf gun. beam generated within the (1.3 GHz) RF gun by a laser. filling time: typical 55 μs. flat top time: up to 800 μs

Fourier Transform Analysis of Signals and Systems

1 PeZ: Introduction. 1.1 Controls for PeZ using pezdemo. Lab 15b: FIR Filter Design and PeZ: The z, n, and O! Domains

Infinite Impulse Response Filters

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Chapter 2 Infinite Impulse Response (IIR) Filter

Continuous-Time Analog Filters

Signals and Systems Lecture 6: Fourier Applications

COURSE PLAN. : DIGITAL SIGNAL PROCESSING : Dr.M.Pallikonda.Rajasekaran, Professor/ECE

Transactions on Engineering Sciences vol 3, 1993 WIT Press, ISSN

IJSER. Chen [2] has gave a lot of information in digital filtering with additions in the area of computer-aided design of digital filters.

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques

Department of Electrical and Electronics Engineering Institute of Technology, Korba Chhattisgarh, India

Multirate DSP, part 1: Upsampling and downsampling

GUJARAT TECHNOLOGICAL UNIVERSITY

Electrical & Computer Engineering Technology

Lecture 2 Review of Signals and Systems: Part 1. EE4900/EE6720 Digital Communications

Poles and Zeros of H(s), Analog Computers and Active Filters

Analog and Telecommunication Electronics

Design IIR Filter using MATLAB

Lab 0: Introduction to TIMS AND MATLAB

Design of FIR Filters

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

Adaptive Filters Application of Linear Prediction

PROBLEM SET 5. Reminder: Quiz 1will be on March 6, during the regular class hour. Details to follow. z = e jω h[n] H(e jω ) H(z) DTFT.

Final Exam Solutions June 14, 2006

FIR window method: A comparative Analysis

APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES

Implementation of Sallen-Key and Multi-Feedback (MFB) Architecture for Higher Order Butterworth Filters

Circuit Systems with MATLAB and PSpice

Departmentof Electrical & Electronics Engineering, Institute of Technology Korba Chhattisgarh, India

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

DESIGN OF FIR AND IIR FILTERS

Analog Filters D R. T A R E K T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

Continuous-Time Signal Analysis FOURIER Transform - Applications DR. SIGIT PW JAROT ECE 2221

EECE 301 Signals & Systems Prof. Mark Fowler

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters

Transcription:

Paper ID #12370 Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters Chengying Xu, Florida State University Dr. Chengying Xu received the Ph.D. in 2006 in mechanical engineering from Purdue University, U.S.A., and the M.S. in 2001 in mechanical manufacturing and automation from Beijing University of Aeronautics and Astronautics, China. She currently is an associate professor at the Florida State University, Tallahassee, Florida. Her research interests include high temperature sensor design, intelligent systems and control theory, manufacturing of advanced materials. Dr. Xu has co-authored a textbook: Intelligent Systems: Modeling, Optimization and Control (CRC Press, 2008, 433 pages) and four book chapters. She has authored and coauthored more than 30 journal papers and 30 refereed conference proceedings. She has served as an organizing committee member and session co-chair for a number of national and international conferences. She also worked as an organizer for the Symposium Sensor Technology for the International Congress on Ceramics in Japan. She served as the Guest Editor for Transactions of the ASME, Journal of Micro- and Nano- Manufacturing, and has been an Associate Editor of the International Journal of Nanomanufacturing since 2008, and has been on the Board of Editor of Journal of Aviation and Aerospace Industry Manufacturing since 2010 and International Journal of Computational Materials Science and Surface Engineering since 2007. Dr. S. Hossein Mousavinezhad, Idaho State University Dr. Hossein Mousavinezhad is an active member of ASEE, IEEE and is a program evaluator for engineering programs (ABET). Hossein is a Professor of Electrical Engineering at Idaho State University and serves as IEEE Education Society VP, is the Founding General Chair of IEEE International Conferences on Electro Information Technology. c American Society for Engineering Education, 2015

Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters A b s t r a c t. Computer Tools are integral part of many engineering design courses, they should be used in the right place, right time. Courses in the Digital Signal Processing/Filter areas (including speech, image and video processing) have been traditionally viewed by students to be fairly mathematical subjects including many abstractions (e.g., spectrum, analysis/design methods in time/frequency domains, SNR, bandwidth, white/pink noise, various transforms, etc.) The pedagogical value of this work is that, with the help of modern engineering tools, engineering educators can better help students visualize these apparently difficult (but important) concepts. We focus on the subject of designing digital filters, both with and without feedback, as well as analog prototypes. In addition to the use of popular software packages like MATLAB & MATHCAD, our filter course uses a tool accompanying the textbook that can help students with various designs of these digital, analog systems and at the same time (in case of analog prototype ) come up with PSpice circuit elements as well as providing frequency response plots, pole/zero diagram. Introduction. Engineering, computing curricula include courses on signals & systems as well as analysis/design of frequency selective circuits/systems called filters. The subject of filters (both analysis and design) are usually covered in several classes. Even at introductory level courses (e.g., circuits & systems, see, for example, [1]) whenever we are dealing with alternating current (AC) topics students are being introduced to simple forms of frequency selective structures. As example, in first order circuits (RC or RL) if we include AC excitations we are really dealing with filters: low-pass, high-pass, band-pass or band-stop (reject) devices. These simple circuits are examples of passive circuits & systems. With the introduction of operational amplifiers (Op- Amps) integrated circuits, we start description of so-called active filters. Studying the input/output (I/O) models of these systems, students are gradually introduced to using computeraided design, CAD, or analysis tools that can be beneficial in their work. For example after digitizing the differential equation of the system, they can solve the I/O model (linear, constant-coefficient difference equation) of the system. The digital I/O models include both recursive and non-recursive systems. For the CAD design there is a need for utilizing window functions, one important class of windows require the use of high-level mathematical functions for which an algorithm is introduced so that students can come up with their final design and again use the software tool for the verification/validation step. Whenever possible students are given opportunity to make presentation in the class where more results can be discussed and a term paper/report submitted to receive credit toward their grades. Since the required subjects/topics are very complex by nature, these tools can be very beneficial for both learners and engineering educators. Finally there are cases that a regular design employing the so-called classical system approach may not be practical, however it will be possible to design the system using, for example, non-recursive, digital systems. The subject of digital signal processing (DSP) is covered in most computing and electrical engineering programs, as example see the textbook by Lathi & Green, [6]. We next show an important application of DSP in mobile computing, e.g., smartphones in simplified block diagram form, [2]:

As can be seen several of the system components are related to the subject of DSP. Design of FILTERS is a major topic in DSP including analog filter design (passive, active electronic circuits), classical filters, and digital filters. There are two main kinds of digital filters used in practice: filters with feedback (also known as IIR, ARMA filters) and filters without feedback (or FIR, MA filters.) IIR Filters. Analog filter design, a mature subject studied by several investigators and welldocumented (as example see [3]), is the starting point for design of IIR (infinite impulse response) digital filters. Basically we are dealing with K-th order differential equation input/output (I/O) model, with x(t) being the input (excitation) and y(t) the response or output: K k=0 a k d k dt k y(t) = b L l=0 l d l dt l x(t) Digital filter is then obtained by using several transformations as developed in the DSP literature: H(s) H(z) (mapping from the s-plane to the z-plane), Laplace transforms, z- transforms Backward Difference Approximation, s (1/T) [ 1 z -1 ] where 1/ T is the sampling frequency of DSP system Impulse Invariance, h(t) h(nt) = h[n] H(z) (also step invariance) Bilinear Transformation, s (2/T) ( z 1) / (z + 1) CAD tools, e.g., MATLAB, MATHCAD, WFilter Like in any engineering design problem there is a trade-off in the design process. The most optimum method of designing IIR filters is using the bilinear transformation, however this transformation creates a non-linear relationship between analog and digital frequencies. We need to use pre-warping techniques to avoid distortion in the final design. Impulse invariance method

also requires using a high sampling rate to avoid aliasing, this method is only used to design lowpass and ban-pass filters. From the stability point of view we need a transformation that results in a stable, causal system (filter.) While all methods mentioned above result in a stable final filter (the so-called forward difference transformation may result in unstable filter), the backward difference transformation is not widely used because pole locations do not occupy all the space within the unit circle (u.c.) in the z-plane but a sub-set inside u.c. To design digital filters with feedback we first introduce students to the subject of analog filter design, a difficult subject but most engineering curricula in affected disciplines do include courses (for example second electric circuit class) on this subject. Signals & systems courses also cover filters especially when studying system frequency response. In our school the recent book by Lathi & Green [6] is used in the digital signal processing senior, first-year graduate classes. Practical filter design discussion starts with the fact that ideal filters cannot be realized in practice. As example if we look at following ideal LPF, BPF, HPF and BSF frequency responses, we can show that their impulse response, h(t), will not represent a causal system. In case of LPF with cutoff frequency ω c and assuming zero phase response, it is easily seen that inverse Fourier transform gives: h(t) = (Aω c /π) Sa(ω c t) ; - < t <, where sampling function is defined as Sa(x) = sin(x) /x. On the other hand a simple RC LPF circuit shown below:

will result in the causal impulse response: h RC (t) = (1/RC) exp(-t/rc) u(t) which is the inverse Fourier transform of frequency response: H(ω) = 1/(1 + jω / ω c ), where ω c = 1/(RC) is the so-called 3-dB (radian) cutoff frequency. Many practical filters are defined by their magnitude response squared function, H(ω) 2. For this simple RC filter we have: H RC (ω) 2 = 1/[1 + (ω / ω c ) 2 ] In the classical filter literature (see, for example, [3]), these filters are known as Butterworth filters, which for order K are defined as: H B (ω) 2 = 1/[1 + (ω / ω c ) 2K ] Once analog filter is designed to specifications, one gets the digital filter by using transformations (mappings) mentioned earlier. We show an example next. Example, IIR filter design. Design a digital Butterworth LPF to satisfy the following specifications: 3-dB cutoff frequency of f c = 3 khz, the minimum stopband attenuation of 23 db for frequencies f 6 khz. Use a sampling frequency of f s = 20 KHz in your digital design utilizing the bilinear transformation mapping. Using the design statement, a Butterworth filter of order K = 3 will satisfy the design requirements after applying the so-called pre-warping operation needed in the bilinear transformation. H(s) = 1/[(s + 1)(s 2 + s +1)] (note that pre-warped cutoff frequency is actually 2 tan (0.15π) which is approximately 1 r/s.)

We show a MATHCAD simulation of this analog filter next. Once bilinear transformation is applied we replace s by 2(z 1) / (z + 1) to find the digital filter transfer function: H(z) = (z + 1) 3 /[(3z 1)(7z 2 6z +3)]. The simulation of digital filter is shown next (note that Ω represents digital frequency in radians). There are simple transformations in the s-domain to design other types of filters. For example simple replacement of s by 1/s will transform a LPF into a HPF. Table look-ups can be used for other filter types starting with a prototype LPF. FIR Design. These digital filters are also popular in practice because they do not require the design of an analog prototype first. Also these filters can be designed to have linear phase but the designed filter order is much higher as compared to IIR filters. Another strength of FIR filters is that they can be designed to implement any given desired frequency response including designing multi-band filters, Hilbert transformers, digital differentiators, and comb filters. We show a couple of examples of FIR designs used in the class next.

Example, multi-band FIR design. Design an FIR 111-tap (order) linear phase digital filter approximating the desired frequency response: H d (Ω) = 1 ; -π/4 Ω π/4 & H d (Ω) = 2 ; π/4 Ω π/2 & H d (Ω) = 0 ; π/2 Ω π. We use the Hanning window function in our design: w[n] = 0.5 + 0.5 cos (πn/5) ; -55 n 55, w[n] = 0 ; otherwise. Simulation of this filter is shown next. Example, FIR Hilbert transformer. This filter is actually a phase shifter (-90 o ) system: Y(Ω) = -j X(Ω) for 0 < Ω < π and Y(Ω) = j X(Ω) for - π < Ω < 0, or using the so-called signum (sign) function, sgn (Ω), filter s desired (ideal) frequency is given by: H d (Ω) = -j sgn(ω) This kind of transformation has application in communication systems, [4], [5], for example, in single-sideband modulation. In DSP this is just another given frequency response to be implemented. The impulse response is given by: h d [n] = [1-cos(nπ)] / (nπ), h d [n = 0] = 0.

Using an appropriate window function w[n], h w [n] = h d [n] w[n], and designed frequency response is: H(Ω) = -2j{h w [1] sin (Ω) + h w [2] sin (2Ω) + h w [3] sin (3Ω) +..}. We show simulation result next. Conclusions. In this paper we have shown how computer-aided design tools can be utilized in design of digital filters. These frequency selective systems have widespread applications in many engineering disciplines including computing, electrical/computer engineering, telecommunications and biomedical signal processing. From engineering educators perspective, there is a right place, right time for introducing modern tools to enhance student learning. Overall students find these tools useful for their design work as well as helping them in visualizing some difficult DSP concepts such as frequency response, various filter design methods, linear phase, multi-band filter characteristics, z-tranform and Laplace transform applications. Enrollment in the DSP course in our school has increased over the years despite the fact that, by nature, these subjects are considered by many students to be highly theoretical and with difficult concepts to understand. We have tried to include many MATLAB/MATHCAD examples throughout our lectures so that students are not bored with mathematical details. This semester we are trying a software laboratory component for the DSP course. More examples and student satisfaction results will be presented at the Annual Conference.

REFERENCES [1]. Fundamentals of Electric Circuits, Alexander & Sadiku, fifth edition, McGraw-Hill, 2013. [2]. Applied Digital Signal Processing, Manolakis and Ingle, Cambridge University Press, 2011. [3]. Design of Analog Filters, Schaumann and Van Valkenburg, Oxford University Press, 2001. [4]. Introduction to Communication Systems, 3 rd edition, Stremler, Addison Wesley, 1990. [5]. Communication Systems, 4 th edition, Haykin, Wiley, 2001. [6]. Essentials of Digital Signal Processing, Lathi & Green, Cambridge University Press, 2014.