EECE 301 Signals & Systems Prof. Mark Fowler

Size: px
Start display at page:

Download "EECE 301 Signals & Systems Prof. Mark Fowler"

Transcription

1 EECE 31 Signals & Systems Prof. Mark Fowler D-T Systems: FIR Filters Note Set #29 1/16

2 FIR Filters (Non-Recursive Filters) FIR (Non-Recursive) filters are certainly the most widely used DT filters. There are several reasons for this: Simple & effective design methods exist Designs are always stable (since only poles at origin) Linear phase designs can be easily achieved However, the only real downside of FIR filters is that they can be computationally complex High-quality frequency response requires long filters (M > 1) That means your computer will have to a lot of computation M+1 Multiplies & M Additions We ll look at 3 methods So it s easy to meet part of the requirements for ideal filters! So The goal in FIR design is to get the Freq. Resp. specs you want with the smallest M!!! 2/16

3 FIR LPF Design Windowed sinc Method (fir1) We looked at a truncated sinc as a way to design the b m : b m But we saw that this gave only mediocre designs in particular, it gave poor stop-band performance. M/2 M m We could use math to explain why but the reason is pretty easy to see by recalling that the frequency response of an FIR filter is the DTFT of the b m coefficients: H( ) DTFT{ b } b be... b e m 1 j j M M Now we can reason that: The truncation causes discontinuities at the edges of the b m sequence Discontinuities (i.e., rapid changes) require high frequencies Thus the poor stopband!!! H ( ) (db) Red: M = 3 Blue: M = /16

4 This reasoning also gives us an idea as to how to fix it: Multiply the sinc-generated b m by a tapering window Then we can try different shaped windows to see which is best sinc 1 window b m M/2 M m M/2 M m M/2 M m MATLAB has a function that lets you easily design filters this way. That s a one The command is called fir1 and here is how it is used: >> b = fir1(m,omega_c,window(m+1,opt)) Filter Order fir1 has many other options and can be used to design more than just LPF see MATLAB help. Normalized Cutoff Frequency between & 1 Specified Window (length = M+1) Some have optional parameters! 4/16

5 2 H( ) (db) M = 3 Blue: No Window (Rectangle Win) Red: Hamming Window Green: Chebyshev 6 db Magenta: Chebyshev 1 db >> b_rect=fir1(3,.6,rectwin(31)); >> b_hamm=fir1(3,.6,hamming(31)); >> b_chebwin=fir1(3,.6,chebwin(31,6)); >> b_cheb_1=fir1(3,.6,chebwin(31,1)); Note: Putting 6 (db) in here gets a stopband of about -7dB Note: Putting 1 (db) in here gets a stopband of about -12dB A General Trend: For a fixed M choosing the window to get more stopband attenuation (good!) causes the transition band to widen (bad!!). 5/16

6 A General Trend: For a fixed window choosing Larger M narrows transition band (GOOD!) H( ) (db) Window: Chebyshev 1 db So the general design approach is guided trial and error: Pick window to get desired stopband level (Chebyshev window helps with this) Increase order (M = order ) to get desired transition band width Note that passband is VERY flat (good!) 6/16

7 FIR LPF Design Frequency Sampling Method (fir2) Still uses windowing of a non-causal impulse response But it comes from IFFTing a user specified a desired frequency response function b = fir2_min(nn, ff, aa) % nn = order of the filter... must be an integer... % Must be less than 124!!! % ff = row vector of frequency "break points" relative to 1 (which corresponds to Fs/2) % First element MUST be. Last element MUST be 1. Elements must NOT decrease % aa = row vector of amplitudes desired (last element MUST be ) % Work with filter length instead of filter order nn = nn + 1; %% nn as imput was order now nn is length % Set some parameters needed npt = 512; %%% npt sets the FFT size used... This value is good as long as filter order < 124 lap = fix(npt/25); % set # of points to use as transition band if no transition band is spec'd wind = hamming(nn); % use Hamming window %%% Convert from rows to columns ff = ff'; aa = aa'; 1.8 This a simplified version of MATLAB s fir2 command the real one does not have this constraint and has many options for the design MATLAB s fir2 command allows any window aa aa = [1 1 ] ff = [.5.6 1] ff 7/16

8 % The next few lines and the loop below interpolate breakpoints onto large grid for FFT... H = zeros(1,npt); nbrk=length(ff); nint=nbrk-1; df = diff(ff'); npt = npt + 1; % Length of [dc nyquist] frequencies. nb = 1; H(1)=aa(1); for i=1:nint if df(i) == nb = ceil(nb - lap/2); ne = nb + lap; else ne = fix(ff(i+1)*npt); end if (nb < ne > npt) error(generatemsgid('signalerr'),'too abrupt an amplitude change near end of frequency interval.') end j=nb:ne; if nb == ne inc = ; else inc = (j-nb)/(ne-nb); end H(nb:ne) = inc*aa(i+1) + (1 - inc)*aa(i); nb = ne + 1; end Value of H Index of H %% You now have magnitude interpolated onto a fine grid over the positive frequencies 8/16

9 %% Now want to apply a linear phase response over these positive frequencies. The phase slope is related to %% amount of delay of filter... the delay is what is needed to make the filter causal (the delay is half the order) dt =.5.* (nn - 1); % set delay to half the order (remember that nn is now length and order is length - 1) rad = -dt.* sqrt(-1).* pi.* (:npt-1)./ (npt-1); % create j*phi(n) that is a line with desired slope H = H.* exp(rad); % multiply magnitude (H) by exp(j*phi(n)) to get mag & phase over positive frequencies % Now...Append correct values for the negative frequencies... remember that FT at negative frequencies is just % conjugate of at positive freqs Also... since you are putting them "above" the positive freqs things have % to "run backwards"... They go "above" because we won't use fftshift when we do the ifft H = [H conj(h(npt-1:-1:2))]; 1 Abs Value of H.5 Linear phase but wrapped between - & Angle of H Index of H Index of H 9/16

10 %%% OK... now have the frequency response spec'd at all freqs on a fine grid and the ordering is positive freqs %% first then negative freqs... and we are all set for using ifft without fftshift ht = real(ifft(h)); %%% technically don't need the real( ) operation but... %% roundoff causes the imaginary part to be non-zero (but small!) so... apply real( ) just to be sure Value of ht.3.2 Value of b Index of ht %%% Now you've got an imp. Resp. but it is much longer than desired... so extract the first nn points: b = ht(1:nn); Index of b %%% But that abrupt truncation can cause some problems with the resulting frequency response.6 %% So we apply a window to smooth the %%% discontinuities at the edges:.5 b = b.* wind(:).'; % Apply window. To see the designed filter's frequency response: >> [H,w] = freqz(b,1,8192); >> plot(w/pi,2*log1(abs(h))) Value of b Index of b 1/16

11 B = fir2(m,[ ],[1 1 ],chebwin(m+1,6)); H( ) (db) Longer filter gives better passband edge M = 3 M = 6 M = 12 M = Just because you ASK for a specific transition band does not mean you ll get it!!! You have to ensure you make your filter long enough to get it! 11/16

12 One advantage of fir2 over fir1: it is easy to get very non-standard filter shapes!! B = fir2(22,[ ],[ ],chebwin(221,6)); Remember these are non-db values! H( ) (db) H ( ) (non-db) B = fir2(22,[ ],[ ],chebwin(221,6)); Note: When the last element of aa is non-zero (e.g. for highpass) then the order MUST be specified as being even!!! 12/16

13 FIR LPF Design Parks-McClellan (firpm) This method is also called Optimal Equiripple Design Unlike the other two methods the math here is quite complex so we won t study HOW it does it but only how to apply it This design method is pretty much the standard for FIR design these days, Recall our earlier visualization of how we specify a lowpass filter. firpm and an auxilliary command allow us to specify our desire for these parameters and then design a filter to meet them! 13/16

14 % Lowpass Filter Design Specifications: % Passband cutoff frequency =.3 rad/sample % Stopband cutoff frequency =.31 rad/sample % At least 6 db of stopband attenuation % No more than 1 db passband ripple much lower PBR!!! rp=1; rs=6; % specify passband ripple & stopband attenuation in db f_spec=[.3.31]; % specify passband and stopband edges in normalized DT freq AA=[1 ]; %%% specfies that you want a lowpass filter dev=[(1^(rp/2)-1)/(1^(rp/2)+1) 1^(-rs/2)]; % parm. needed by design routine Fs=2; % Fake value for Fs so our design is done in terms of normalized DT freq [N,fo,ao,w]=firpmord(f_spec,AA,dev,Fs); % estimates filter order and gives other parms needed to run firpm Same as the LPF we designed using fir2 About what we got for our fir2 LPF Our fir2 design gave b=firpm(n,fo,ao,w); % Computes the designed filter coefficients in vector b The resulting value for the order for this design is 385!! 14/16

15 -2 firpm design Order = H( ) (db) fir2 design Order = 385 H( ) (db) firpm design has 1 db of ripple. Could reduce spec but would need longer filter. E.g., for rp =.1 we d get Order = 544 firpm can design outstanding filters but for the most stringent design specs they can be VERY long! 15/16

16 Let s look at pole-zero plot for a simpler firpm-designed filter H( ) (db) <H( ) radians >> zplane(b,1) Linear Phase all designs by firpm have this very desirable trait!!! 1 Imaginary Part In Stopband: zeros placed right on UC In Passband: zeros line the UC Real Part 16/16

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 41 Digital Signal Processing Prof. Mark Fowler Note Set #17.5 MATLAB Examples Reading Assignment: MATLAB Tutorial on Course Webpage 1/24 Folder Navigation Current folder name here Type commands here

More information

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

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title http://elec3004.com Digital Filters IIR (& Their Corresponding Analog Filters) 2017 School of Information Technology and Electrical Engineering at The University of Queensland Lecture Schedule: Week Date

More information

ECE 4213/5213 Homework 10

ECE 4213/5213 Homework 10 Fall 2017 ECE 4213/5213 Homework 10 Dr. Havlicek Work the Projects and Questions in Chapter 7 of the course laboratory manual. For your report, use the file LABEX7.doc from the course web site. Work these

More information

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters FIR Filter Design Chapter Intended Learning Outcomes: (i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters (ii) Ability to design linear-phase FIR filters according

More information

Digital Filters FIR and IIR Systems

Digital Filters FIR and IIR Systems Digital Filters FIR and IIR Systems ELEC 3004: Systems: Signals & Controls Dr. Surya Singh (Some material adapted from courses by Russ Tedrake and Elena Punskaya) Lecture 16 elec3004@itee.uq.edu.au http://robotics.itee.uq.edu.au/~elec3004/

More information

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters FIR Filter Design Chapter Intended Learning Outcomes: (i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters (ii) Ability to design linear-phase FIR filters according

More information

Design of FIR Filters

Design of FIR Filters Design of FIR Filters Elena Punskaya www-sigproc.eng.cam.ac.uk/~op205 Some material adapted from courses by Prof. Simon Godsill, Dr. Arnaud Doucet, Dr. Malcolm Macleod and Prof. Peter Rayner 1 FIR as a

More information

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window: Window Method We have seen that in the design of FIR filters, Gibbs oscillations are produced in the passband and stopband, which are not desirable features of the FIR filter. To solve this problem, window

More information

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

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP DIGITAL FILTERS!! Finite Impulse Response (FIR)!! Infinite Impulse Response (IIR)!! Background!! Matlab functions 1!! Only the magnitude approximation problem!! Four basic types of ideal filters with magnitude

More information

ELEC3104: Digital Signal Processing Session 1, 2013

ELEC3104: Digital Signal Processing Session 1, 2013 ELEC3104: Digital Signal Processing Session 1, 2013 The University of New South Wales School of Electrical Engineering and Telecommunications LABORATORY 4: DIGITAL FILTERS INTRODUCTION In this laboratory,

More information

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 4 Digital Signal Processing Prof. Mark Fowler Note Set #34 IIR Design Characteristics of Common Analog Filters Reading: Sect..3.4 &.3.5 of Proakis & Manolakis /6 Motivation We ve seenthat the Bilinear

More information

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION Version 1. 1 of 7 ECE 03 LAB PRACTICAL FILTER DESIGN & IMPLEMENTATION BEFORE YOU BEGIN PREREQUISITE LABS ECE 01 Labs ECE 0 Advanced MATLAB ECE 03 MATLAB Signals & Systems EXPECTED KNOWLEDGE Understanding

More information

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

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters Date: 19. Jul 2018 Pre-Lab: You should read the Pre-Lab section of

More information

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives Objectives DSP Exercise The objective of this exercise is to provide hands-on experiences on ijdsp. It consists of three parts covering frequency response of LTI systems, pole/zero locations with the frequency

More information

STANFORD UNIVERSITY. DEPARTMENT of ELECTRICAL ENGINEERING. EE 102B Spring 2013 Lab #05: Generating DTMF Signals

STANFORD UNIVERSITY. DEPARTMENT of ELECTRICAL ENGINEERING. EE 102B Spring 2013 Lab #05: Generating DTMF Signals STANFORD UNIVERSITY DEPARTMENT of ELECTRICAL ENGINEERING EE 102B Spring 2013 Lab #05: Generating DTMF Signals Assigned: May 3, 2013 Due Date: May 17, 2013 Remember that you are bound by the Stanford University

More information

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

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 Purdue University: ECE438 - Digital Signal Processing with Applications 1 ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 1 Introduction

More information

UNIT IV FIR FILTER DESIGN 1. How phase distortion and delay distortion are introduced? The phase distortion is introduced when the phase characteristics of a filter is nonlinear within the desired frequency

More information

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

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters (ii) Ability to design lowpass IIR filters according to predefined specifications based on analog

More information

Final Exam Practice Questions for Music 421, with Solutions

Final Exam Practice Questions for Music 421, with Solutions Final Exam Practice Questions for Music 4, with Solutions Elementary Fourier Relationships. For the window w = [/,,/ ], what is (a) the dc magnitude of the window transform? + (b) the magnitude at half

More information

Analog Lowpass Filter Specifications

Analog Lowpass Filter Specifications Analog Lowpass Filter Specifications Typical magnitude response analog lowpass filter may be given as indicated below H a ( j of an Copyright 005, S. K. Mitra Analog Lowpass Filter Specifications In the

More information

UNIT-II MYcsvtu Notes agk

UNIT-II   MYcsvtu Notes agk UNIT-II agk UNIT II Infinite Impulse Response Filter design (IIR): Analog & Digital Frequency transformation. Designing by impulse invariance & Bilinear method. Butterworth and Chebyshev Design Method.

More information

DIGITAL FILTERING AND THE DFT

DIGITAL FILTERING AND THE DFT DIGITAL FILTERING AND THE DFT Digital Linear Filters in the Receiver Discrete-time Linear System Tidbits DFT Tidbits Filter Design Tidbits idealized system Software Receiver Design Johnson/Sethares/Klein

More information

Laboratory Assignment 4. Fourier Sound Synthesis

Laboratory Assignment 4. Fourier Sound Synthesis Laboratory Assignment 4 Fourier Sound Synthesis PURPOSE This lab investigates how to use a computer to evaluate the Fourier series for periodic signals and to synthesize audio signals from Fourier series

More information

The Filter Wizard issue 35: Turn linear phase into truly linear phase Kendall Castor-Perry

The Filter Wizard issue 35: Turn linear phase into truly linear phase Kendall Castor-Perry The Filter Wizard issue 35: Turn linear phase into truly linear phase Kendall Castor-Perry In the previous episode, the Filter Wizard pointed out the perils of phase flipping in the stopband of FIR filters.

More information

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

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS. Lecture 8 Today: Announcements: References: FIR filter design IIR filter design Filter roundoff and overflow sensitivity Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations

More information

Digital Filter Design using MATLAB

Digital Filter Design using MATLAB Digital Filter Design using MATLAB Dr. Tony Jacob Department of Electronics and Electrical Engineering Indian Institute of Technology Guwahati April 11, 2015 Dr. Tony Jacob IIT Guwahati April 11, 2015

More information

Digital Filtering: Realization

Digital Filtering: Realization Digital Filtering: Realization Digital Filtering: Matlab Implementation: 3-tap (2 nd order) IIR filter 1 Transfer Function Differential Equation: z- Transform: Transfer Function: 2 Example: Transfer Function

More information

A filter is appropriately described by the transfer function. It is a ratio between two polynomials

A filter is appropriately described by the transfer function. It is a ratio between two polynomials Imaginary Part Matlab examples Filter description A filter is appropriately described by the transfer function. It is a ratio between two polynomials H(s) = N(s) D(s) = b ns n + b n s n + + b s a m s m

More information

4. Design of Discrete-Time Filters

4. Design of Discrete-Time Filters 4. Design of Discrete-Time Filters 4.1. Introduction (7.0) 4.2. Frame of Design of IIR Filters (7.1) 4.3. Design of IIR Filters by Impulse Invariance (7.1) 4.4. Design of IIR Filters by Bilinear Transformation

More information

Experiment 4- Finite Impulse Response Filters

Experiment 4- Finite Impulse Response Filters Experiment 4- Finite Impulse Response Filters 18 February 2009 Abstract In this experiment we design different Finite Impulse Response filters and study their characteristics. 1 Introduction The transfer

More information

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet Lecture 10: Summary Taneli Riihonen 16.05.2016 Lecture 10 in Course Book Sanjit K. Mitra, Digital Signal Processing: A Computer-Based Approach, 4th

More information

Advanced Digital Signal Processing Part 5: Digital Filters

Advanced Digital Signal Processing Part 5: Digital Filters Advanced Digital Signal Processing Part 5: Digital Filters Gerhard Schmidt Christian-Albrechts-Universität zu Kiel Faculty of Engineering Institute of Electrical and Information Engineering Digital Signal

More information

Octave Functions for Filters. Young Won Lim 2/19/18

Octave Functions for Filters. Young Won Lim 2/19/18 Copyright (c) 2016 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published

More information

Solution Set for Mini-Project #2 on Octave Band Filtering for Audio Signals

Solution Set for Mini-Project #2 on Octave Band Filtering for Audio Signals EE 313 Linear Signals & Systems (Fall 2018) Solution Set for Mini-Project #2 on Octave Band Filtering for Audio Signals Mr. Houshang Salimian and Prof. Brian L. Evans 1- Introduction (5 points) A finite

More information

ELT COMMUNICATION THEORY

ELT COMMUNICATION THEORY ELT 41307 COMMUNICATION THEORY Matlab Exercise #1 Sampling, Fourier transform, Spectral illustrations, and Linear filtering 1 SAMPLING The modeled signals and systems in this course are mostly analog (continuous

More information

Final Exam Solutions June 14, 2006

Final Exam Solutions June 14, 2006 Name or 6-Digit Code: PSU Student ID Number: Final Exam Solutions June 14, 2006 ECE 223: Signals & Systems II Dr. McNames Keep your exam flat during the entire exam. If you have to leave the exam temporarily,

More information

Narrow-Band and Wide-Band Frequency Masking FIR Filters with Short Delay

Narrow-Band and Wide-Band Frequency Masking FIR Filters with Short Delay Narrow-Band and Wide-Band Frequency Masking FIR Filters with Short Delay Linnéa Svensson and Håkan Johansson Department of Electrical Engineering, Linköping University SE8 83 Linköping, Sweden linneas@isy.liu.se

More information

Subtractive Synthesis. Describing a Filter. Filters. CMPT 468: Subtractive Synthesis

Subtractive Synthesis. Describing a Filter. Filters. CMPT 468: Subtractive Synthesis Subtractive Synthesis CMPT 468: Subtractive Synthesis Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University November, 23 Additive synthesis involves building the sound by

More information

Discretization of Continuous Controllers

Discretization of Continuous Controllers Discretization of Continuous Controllers Thao Dang VERIMAG, CNRS (France) Discretization of Continuous Controllers One way to design a computer-controlled control system is to make a continuous-time design

More information

ECE 3793 Matlab Project 4

ECE 3793 Matlab Project 4 ECE 3793 Matlab Project 4 Spring 2017 Dr. Havlicek DUE: 5/3/2017, 11:59 PM What to Turn In: Make one file that contains your solution for this assignment. It can be an MS WORD file or a PDF file. For Problem

More information

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

1 PeZ: Introduction. 1.1 Controls for PeZ using pezdemo. Lab 15b: FIR Filter Design and PeZ: The z, n, and O! Domains DSP First, 2e Signal Processing First Lab 5b: FIR Filter Design and PeZ: The z, n, and O! Domains The lab report/verification will be done by filling in the last page of this handout which addresses a

More information

F I R Filter (Finite Impulse Response)

F I R Filter (Finite Impulse Response) F I R Filter (Finite Impulse Response) Ir. Dadang Gunawan, Ph.D Electrical Engineering University of Indonesia The Outline 7.1 State-of-the-art 7.2 Type of Linear Phase Filter 7.3 Summary of 4 Types FIR

More information

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

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters Islamic University of Gaza OBJECTIVES: Faculty of Engineering Electrical Engineering Department Spring-2011 DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters To demonstrate the concept

More information

CS3291: Digital Signal Processing

CS3291: Digital Signal Processing CS39 Exam Jan 005 //08 /BMGC University of Manchester Department of Computer Science First Semester Year 3 Examination Paper CS39: Digital Signal Processing Date of Examination: January 005 Answer THREE

More information

Lab S-5: DLTI GUI and Nulling Filters. Please read through the information below prior to attending your lab.

Lab S-5: DLTI GUI and Nulling Filters. Please read through the information below prior to attending your lab. DSP First, 2e Signal Processing First Lab S-5: DLTI GUI and Nulling Filters Pre-Lab: Read the Pre-Lab and do all the exercises in the Pre-Lab section prior to attending lab. Verification: The Exercise

More information

Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005

Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005 Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005 Project Assignment Issued: Sept. 27, 2005 Project I due: Nov.

More information

ECE 421 Introduction to Signal Processing

ECE 421 Introduction to Signal Processing ECE 421 Introduction to Signal Processing Dror Baron Assistant Professor Dept. of Electrical and Computer Engr. North Carolina State University, NC, USA Digital Filter Design [Reading material: Chapter

More information

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design EEM478-DSPHARDWARE WEEK12:FIR & IIR Filter Design PART-I : Filter Design/Realization Step-1 : define filter specs (pass-band, stop-band, optimization criterion, ) Step-2 : derive optimal transfer function

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

3F3 Digital Signal Processing (DSP)

3F3 Digital Signal Processing (DSP) 3F3 Digital Signal Processing (DSP) Simon Godsill www-sigproc.eng.cam.ac.uk/~sjg/teaching Course Overview 12 Lectures Topics: Digital Signal Processing DFT, FFT Digital Filters Filter Design Filter Implementation

More information

Digital Processing of Continuous-Time Signals

Digital Processing of Continuous-Time Signals Chapter 4 Digital Processing of Continuous-Time Signals 清大電機系林嘉文 cwlin@ee.nthu.edu.tw 03-5731152 Original PowerPoint slides prepared by S. K. Mitra 4-1-1 Digital Processing of Continuous-Time Signals Digital

More information

ECE503: Digital Filter Design Lecture 9

ECE503: Digital Filter Design Lecture 9 ECE503: Digital Filter Design Lecture 9 D. Richard Brown III WPI 26-March-2012 WPI D. Richard Brown III 26-March-2012 1 / 33 Lecture 9 Topics Within the broad topic of digital filter design, we are going

More information

APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES

APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES A2 TABLE OF CONTENTS... 5 Filter Specifications... 7 3 khz LPF (within the HEADPHONE AMPLIFIER)... 8 TUNEABLE LPF... 9 BASEBAND CHANNEL FILTERS - #2 Butterworth

More information

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

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3 NH 67, Karur Trichy Highways, Puliyur C.F, 639 114 Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3 IIR FILTER DESIGN Structure of IIR System design of Discrete time

More information

Digital Processing of

Digital Processing of Chapter 4 Digital Processing of Continuous-Time Signals 清大電機系林嘉文 cwlin@ee.nthu.edu.tw 03-5731152 Original PowerPoint slides prepared by S. K. Mitra 4-1-1 Digital Processing of Continuous-Time Signals Digital

More information

A band-limited minimum phase calculation

A band-limited minimum phase calculation A band-limited minimum phase calculation Michael P. Lamoureux, and Gary F. Margrave ABSTRACT We look at the general example of computing a minimum phase signal with a bandlimited spectrum, using an IIR

More information

Filters. Phani Chavali

Filters. Phani Chavali Filters Phani Chavali Filters Filtering is the most common signal processing procedure. Used as echo cancellers, equalizers, front end processing in RF receivers Used for modifying input signals by passing

More information

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu Concordia University Discrete-Time Signal Processing Lab Manual (ELEC442) Course Instructor: Dr. Wei-Ping Zhu Fall 2012 Lab 1: Linear Constant Coefficient Difference Equations (LCCDE) Objective In this

More information

NOVEMBER 13, 1996 EE 4773/6773: LECTURE NO. 37 PAGE 1 of 5

NOVEMBER 13, 1996 EE 4773/6773: LECTURE NO. 37 PAGE 1 of 5 NOVEMBER 3, 996 EE 4773/6773: LECTURE NO. 37 PAGE of 5 Characteristics of Commonly Used Analog Filters - Butterworth Butterworth filters are maimally flat in the passband and stopband, giving monotonicity

More information

FIR Filters in Matlab

FIR Filters in Matlab E E 2 7 5 Lab June 30, 2006 FIR Filters in Matlab Lab 5. FIR Filter Design in Matlab Digital filters with finite-duration impulse reponse (all-zero, or FIR filters) have both advantages and disadvantages

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering EIE2106 Signal and System Analysis Lab 2 Fourier series 1. Objective The goal of this laboratory exercise is to

More information

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

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta Infinite Impulse Response (IIR) Filter Ihwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jaarta The Outline 8.1 State-of-the-art 8.2 Coefficient Calculation Method for IIR Filter 8.2.1 Pole-Zero Placement

More information

EE 422G - Signals and Systems Laboratory

EE 422G - Signals and Systems Laboratory EE 422G - Signals and Systems Laboratory Lab 3 FIR Filters Written by Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 September 19, 2015 Objectives:

More information

Optimal FIR filters Analysis using Matlab

Optimal FIR filters Analysis using Matlab International Journal of Computer Engineering and Information Technology VOL. 4, NO. 1, SEPTEMBER 2015, 82 86 Available online at: www.ijceit.org E-ISSN 2412-8856 (Online) Optimal FIR filters Analysis

More information

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

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters Simple Digital Filters Chapter 7B Part B Simple FIR Digital Filters LTI Discrete-Time Systems in the Transform-Domain Simple Digital Filters Simple IIR Digital Filters Comb Filters 3. Simple FIR Digital

More information

APPLIED SIGNAL PROCESSING

APPLIED SIGNAL PROCESSING APPLIED SIGNAL PROCESSING 2004 Chapter 1 Digital filtering In this section digital filters are discussed, with a focus on IIR (Infinite Impulse Response) filters and their applications. The most important

More information

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1) Lecture 5 1.8.1 FIR Filters FIR filters have impulse responses of finite lengths. In FIR filters the present output depends only on the past and present values of the input sequence but not on the previous

More information

EE 470 Signals and Systems

EE 470 Signals and Systems EE 470 Signals and Systems 9. Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah Textbook Luis Chapparo, Signals and Systems Using Matlab, 2 nd ed., Academic Press, 2015. Filters

More information

Interpolated Lowpass FIR Filters

Interpolated Lowpass FIR Filters 24 COMP.DSP Conference; Cannon Falls, MN, July 29-3, 24 Interpolated Lowpass FIR Filters Speaker: Richard Lyons Besser Associates E-mail: r.lyons@ieee.com 1 Prototype h p (k) 2 4 k 6 8 1 Shaping h sh (k)

More information

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number:

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number: TAMPERE UNIVERSITY OF TECHNOLOGY Department of Signal Processing SGN-16006 Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter (2013-2014) Group number: Date: Name: Student

More information

MITOCW MITRES_6-007S11lec18_300k.mp4

MITOCW MITRES_6-007S11lec18_300k.mp4 MITOCW MITRES_6-007S11lec18_300k.mp4 [MUSIC PLAYING] PROFESSOR: Last time, we began the discussion of discreet-time processing of continuous-time signals. And, as a reminder, let me review the basic notion.

More information

Signals are constructed by intuitive expressions in psycon. Generally a signal may have the following format:

Signals are constructed by intuitive expressions in psycon. Generally a signal may have the following format: Signal in psycon (psycon v1.51) 1. Introduction Signals are constructed by intuitive expressions in psycon. Generally a signal may have the following format: scale_factor1* signal1 + scale_factor2* signal2

More information

Plot frequency response around the unit circle above the Z-plane.

Plot frequency response around the unit circle above the Z-plane. There s No End to It -- Matlab Code Plots Frequency Response above the Unit Circle Reference [] has some 3D plots of frequency response magnitude above the unit circle in the Z-plane. I liked them enough

More information

ECE 2713 Design Project Solution

ECE 2713 Design Project Solution ECE 2713 Design Project Solution Spring 218 Dr. Havlicek 1. (a) Matlab code: ---------------------------------------------------------- P1a Make a 2 second digital audio signal that contains a pure cosine

More information

ECE 5650/4650 MATLAB Project 1

ECE 5650/4650 MATLAB Project 1 This project is to be treated as a take-home exam, meaning each student is to due his/her own work. The project due date is 4:30 PM Tuesday, October 18, 2011. To work the project you will need access to

More information

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

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications EE4900/EE6720: Digital Communications 1 Lecture 3 Review of Signals and Systems: Part 2 Block Diagrams of Communication System Digital Communication System 2 Informatio n (sound, video, text, data, ) Transducer

More information

Basic Signals and Systems

Basic Signals and Systems Chapter 2 Basic Signals and Systems A large part of this chapter is taken from: C.S. Burrus, J.H. McClellan, A.V. Oppenheim, T.W. Parks, R.W. Schafer, and H. W. Schüssler: Computer-based exercises for

More information

Lecture 3, Multirate Signal Processing

Lecture 3, Multirate Signal Processing Lecture 3, Multirate Signal Processing Frequency Response If we have coefficients of an Finite Impulse Response (FIR) filter h, or in general the impulse response, its frequency response becomes (using

More information

Project I: Phase Tracking and Baud Timing Correction Systems

Project I: Phase Tracking and Baud Timing Correction Systems Project I: Phase Tracking and Baud Timing Correction Systems ECES 631, Prof. John MacLaren Walsh, Ph. D. 1 Purpose In this lab you will encounter the utility of the fundamental Fourier and z-transform

More information

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

EEM478-WEEK8 Finite Impulse Response (FIR) Filters EEM478-WEEK8 Finite Impulse Response (FIR) Filters Learning Objectives Introduction to the theory behind FIR filters: Properties (including aliasing). Coefficient calculation. Structure selection. Implementation

More information

Introduction to Simulink

Introduction to Simulink EE 460 Introduction to Communication Systems MATLAB Tutorial #3 Introduction to Simulink This tutorial provides an overview of Simulink. It also describes the use of the FFT Scope and the filter design

More information

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises Digital Video and Audio Processing Winter term 2002/ 2003 Computer-based exercises Rudolf Mester Institut für Angewandte Physik Johann Wolfgang Goethe-Universität Frankfurt am Main 6th November 2002 Chapter

More information

Signal processing preliminaries

Signal processing preliminaries Signal processing preliminaries ISMIR Graduate School, October 4th-9th, 2004 Contents: Digital audio signals Fourier transform Spectrum estimation Filters Signal Proc. 2 1 Digital signals Advantages of

More information

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab Summary This Lab introduces a number of Matlab functions used to design and test a lowpass IIR filter. As you have seen in the previous lab, Simulink

More information

Lab 6 rev 2.1-kdp Lab 6 Time and frequency domain analysis of LTI systems

Lab 6 rev 2.1-kdp Lab 6 Time and frequency domain analysis of LTI systems Lab 6 Time and frequency domain analysis of LTI systems 1 I. GENERAL DISCUSSION In this lab and the next we will further investigate the connection between time and frequency domain responses. In this

More information

Continuous-Time Analog Filters

Continuous-Time Analog Filters ENGR 4333/5333: Digital Signal Processing Continuous-Time Analog Filters Chapter 2 Dr. Mohamed Bingabr University of Central Oklahoma Outline Frequency Response of an LTIC System Signal Transmission through

More information

Brief Introduction to Signals & Systems. Phani Chavali

Brief Introduction to Signals & Systems. Phani Chavali Brief Introduction to Signals & Systems Phani Chavali Outline Signals & Systems Continuous and discrete time signals Properties of Systems Input- Output relation : Convolution Frequency domain representation

More information

Generation of Nyquist Filters

Generation of Nyquist Filters NYQUIST FILTERS Generation of Nyquist Filters Use remez( ) in matlab but you must constrain the frequency points and amplitudes in certain ways The frequency vector values must mirror each other in pairs

More information

Design a DAC sinx/x Corrector

Design a DAC sinx/x Corrector Design a DAC sinx/x Corrector This post provides a Matlab function that designs linear-phase FIR sinx/x correctors. It includes a table of fixed-point sinx/x corrector coefficients for different DAC frequency

More information

Multirate DSP, part 1: Upsampling and downsampling

Multirate DSP, part 1: Upsampling and downsampling Multirate DSP, part 1: Upsampling and downsampling Li Tan - April 21, 2008 Order this book today at www.elsevierdirect.com or by calling 1-800-545-2522 and receive an additional 20% discount. Use promotion

More information

Comparative Study of RF/microwave IIR Filters by using the MATLAB

Comparative Study of RF/microwave IIR Filters by using the MATLAB Comparative Study of RF/microwave IIR Filters by using the MATLAB Ravi kant doneriya,prof. Laxmi shrivastava Abstract In recent years, due to the magnificent development of Filter designs take attention

More information

Lecture 4 Frequency Response of FIR Systems (II)

Lecture 4 Frequency Response of FIR Systems (II) EE3054 Signals and Systems Lecture 4 Frequency Response of FIR Systems (II Yao Wang Polytechnic University Most of the slides included are extracted from lecture presentations prepared by McClellan and

More information

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau Imagine we would like to know the precise, instantaneous,

More information

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING 1. State the properties of DFT? UNIT-I DISCRETE FOURIER TRANSFORM 1) Periodicity 2) Linearity and symmetry 3) Multiplication of two DFTs 4) Circular convolution 5) Time reversal 6) Circular time shift

More information

Multirate Digital Signal Processing

Multirate Digital Signal Processing Multirate Digital Signal Processing Basic Sampling Rate Alteration Devices Up-sampler - Used to increase the sampling rate by an integer factor Down-sampler - Used to increase the sampling rate by an integer

More information

Application Note 7. Digital Audio FIR Crossover. Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods

Application Note 7. Digital Audio FIR Crossover. Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods Application Note 7 App Note Application Note 7 Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods n Design Objective 3-Way Active Crossover 200Hz/2kHz Crossover

More information

Laboration Exercises in Digital Signal Processing

Laboration Exercises in Digital Signal Processing Laboration Exercises in Digital Signal Processing Mikael Swartling Department of Electrical and Information Technology Lund Institute of Technology revision 215 Introduction Introduction The traditional

More information

Lowpass Filters. Microwave Filter Design. Chp5. Lowpass Filters. Prof. Tzong-Lin Wu. Department of Electrical Engineering National Taiwan University

Lowpass Filters. Microwave Filter Design. Chp5. Lowpass Filters. Prof. Tzong-Lin Wu. Department of Electrical Engineering National Taiwan University Microwave Filter Design Chp5. Lowpass Filters Prof. Tzong-Lin Wu Department of Electrical Engineering National Taiwan University Lowpass Filters Design steps Select an appropriate lowpass filter prototype

More information

Keywords FIR lowpass filter, transition bandwidth, sampling frequency, window length, filter order, and stopband attenuation.

Keywords FIR lowpass filter, transition bandwidth, sampling frequency, window length, filter order, and stopband attenuation. Volume 7, Issue, February 7 ISSN: 77 8X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Estimation and Tuning

More information

E Final Exam Solutions page 1/ gain / db Imaginary Part

E Final Exam Solutions page 1/ gain / db Imaginary Part E48 Digital Signal Processing Exam date: Tuesday 242 Final Exam Solutions Dan Ellis . The only twist here is to notice that the elliptical filter is actually high-pass, since it has

More information