FIR Filter Design & Implementation

Slides:



Advertisements
Similar presentations
Chapter 14 Finite Impulse Response (FIR) Filters
Advertisements

Chapter 8. FIR Filter Design
Chapter 14 Finite Impulse Response (FIR) Filters.
Lecture 18: Linear convolution of Sequences and Vectors Sections 2.2.3, 2.3.
Nonrecursive Digital Filters
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Chapter 6 Infinite Impulse Response Filter Design.
CHAPTER 7 Digital Filter Design Wang Weilian School of Information Science and Technology Yunnan University.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Equiripple Filters A filter which has the Smallest Maximum Approximation Error among all filters over the frequencies of interest: Define: where.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
ECE651 Digital Signal Processing I Digital IIR Filter Design.
So far We have introduced the Z transform
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
LINEAR-PHASE FIR FILTERS DESIGN
Chapter 8 FIR Filter Design
Finite-duration impulse response (FIR) filter (Order=M-1, Length=M) The impulse response The system function The difference equation (Linear convolution)
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Practical Signal Processing Concepts and Algorithms using MATLAB
0 - 1 © 2010 Texas Instruments Inc Practical Audio Experiments using the TMS320C5505 USB Stick “FIR Filters” Texas Instruments University Programme Teaching.
Transition Converter " Supply signals from new antennas to old correlator. " Will be discarded or abandoned in place when old correlator is turned off.
Chapter 7 IIR Filter Design
Nov'04CS3291: Section 41 University of Manchester Department of Computer Science CS3291 Digital Signal Processing '04-'05 Section 4: ‘A design technique.
EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
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.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
1 Lab. 4 Sampling and Rate Conversion  Sampling:  The Fourier transform of an impulse train is still an impulse train.  Then, x x(t) x s (t)x(nT) *
1 BIEN425 – Lecture 10 By the end of the lecture, you should be able to: –Describe the reason and remedy of DFT leakage –Design and implement FIR filters.
1 Lecture 3: March 6, 2007 Topic: 1. Frequency-Sampling Methods (Part I)
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
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
Lecture 5 BME452 Biomedical Signal Processing 2013 (copyright Ali Işın, 2013)1 BME 452 Biomedical Signal Processing Lecture 5  Digital filtering.
EE422 Signals and Systems Laboratory Infinite Impulse Response (IIR) filters Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
First-Order System Revisited
Passive filters A frequency selective circuit, or filter, enables signals at certain frequencies to reach the output, and it attenuates (weaken or lessen.
Summary of Widowed Fourier Series Method for Calculating FIR Filter Coefficients Step 1: Specify ‘ideal’ or desired frequency response of filter Step 2:
The IIR FILTERs These are highly sensitive to coefficients,
FILTER DESIGN Ideal Filter Magnitude Response NumericLogaritmic.
The IIR FILTERs These are highly sensitive to coefficients which may affect stability. The magnitude-frequency response of these filters is established.
Lecture 09b Finite Impulse Response (FIR) Filters
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
EEE4176 Application of Digital Signal Processing
Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
IIR Filter design (cf. Shenoi, 2006)
Lecture: IIR Filter Design
EEE422 Signals and Systems Laboratory
Speech Signal Processing
IIR Filters FIR vs. IIR IIR filter design procedure
Infinite Impulse Response (IIR) Filters
蔡宗珉 : Multi-stage Filter Implementation
Review of Filter Design
ECET 350 Competitive Success/snaptutorial.com
ECET 350 Education for Service-- snaptutorial.com.
ECET 350 Teaching Effectively-- snaptutorial.com.
LINEAR-PHASE FIR FILTERS DESIGN
Everything You Ever Wanted to Know About Filters*
MMSE Optimal Design: The Least Squares method
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Lecture 16a FIR Filter Design via Windowing
Software Tools for Digital Down-Converters Design
Chapter 7 Finite Impulse Response(FIR) Filter Design
Green Filters Cascade Polyphase M-to-1 Down Sample Filter, Inner Filter, and Polyphase 1-to-M Up Sample Filter fred harris.
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

FIR Filter Design & Implementation To fully design and implement a filter five steps are required: (1) Filter specification (2) Coefficient calculation (3) Structure selection (4) Simulation (optional) (5) Implementation

Software Tools for Designing Filter MATLAB provides some advanced tools for filters design Signal Processing Tool (SPTool) Filter Design (FDATool) There are also some free software packages to design filters Our main problem is how to implement the filter given the coefficients So we will design FIR filters using the relatively simple method of Windowing -- write Matlab scripts

Lowpass Filter Specification

Window Method : Step 1 First stage of this method is to calculate the coefficients of the ideal filter. This is calculated as follows:

Normalized Transition Width Window Method : Step 2 Second stage of this method is to select a window function based on the passband or attenuation specifications, then determine the filter length based on the required width of the transition band Window Type Normalized Transition Width Passband Ripple (dB) Stopband Attenuation (dB) Rectangular 0.9/N 0.7416 21 Hanning 3.1/N 0.0546 44 Hamming 3.3/N 0.0194 53 Blackman 5.5/N 0.0017 74

Window Method : Step 2 The normalized transition bandwidth as listed in the table is defined as Example: If we choose the Hamming window, and specify a transition band from 6kHz to 7kHz, with sampling frequency at 40kHz, then the filter order is calculated as

Window Method : Step 3 The third stage is to calculate the set of truncated or windowed impulse response coefficients, h[n]: for

Using Matlab's fir1() Instead of doing the design start from the ideal reponse, we shall use Matlab's fir1() function We will design a FIR filter with the following specification sampling frequency = 8000 passband edge frequency = 1200 stopband edge frequency = 1800 minimum stopband attenuation = 40 dB By using the Hamming window, the stopband attenuation specification is met By default, fir1() uses the Hamming window For more information, please refer to the Matlab on-line help

Using Matlab's fir1() fsamp = 8000; fp = 1200; % passband fs = 1800; % stopband fc = (fp+fs)/2; % cutoff % default using Hamming window, compute order N = round(3.3*fsamp/(fs-fp)); str=sprintf('Filter order = %d', N); disp(str); wc = 2*fc/fsamp; % normalize to pi radian b=fir1(N,wc); freqz(b,1,512,fsamp); filtdesign.m

FIR Filter Structure - Direct Form

Linear Phase FIR For linear phase FIR, such as those designed with the window method, the coefficients have to be symmetrical We can then make use of the symmetry to reduce the multiplications

Example of Symmetrical FIR - Even Length

Example of Symmetrical FIR - Odd Length

FIR Filters Design with FDATool The Filter Design and Analysis Tool (FDATool) is a graphical user interface (GUI) for designing, quantizing, and analyzing digital filters. It includes a number of advanced filter design techniques and supports all the filter design methods in the Signal Processing Toolbox. designing filters by setting filter specifications; analyzing designed filters; converting filters to different structures; and quantizing and analyzing quantized filters. Open the FDATool by typing "fdatool" at theMATLAB command window.