EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Digital filters: Design of FIR filters
Lecture 18: Linear convolution of Sequences and Vectors Sections 2.2.3, 2.3.
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
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.
Infinite Impulse Response (IIR) Filters
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
Parks-McClellan FIR Filter Design
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
FILTERING GG313 Lecture 27 December 1, A FILTER is a device or function that allows certain material to pass through it while not others. In electronics.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
Systems: Definition Filter
ELEN 5346/4304 DSP and Filter Design Fall Lecture 11: LTI FIR filter design Instructor: Dr. Gleb V. Tcheslavski Contact:
Network Analysis and Synthesis
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
Digital Signals and Systems
Practical Signal Processing Concepts and Algorithms using MATLAB
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
DTFT And Fourier Transform
1 Lecture 5: March 20, 2007 Topics: 1. Design of Equiripple Linear-Phase FIR Digital Filters (cont.) 2. Comparison of Design Methods for Linear- Phase.
Filter Design Techniques
6.2 - The power Spectrum of a Digital PAM Signal A digtal PAM signal at the input to a communication channl scale factor (where 2d is the “Euclidean.
EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
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.
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.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
EE422 Signals and Systems Laboratory Infinite Impulse Response (IIR) filters Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Chapter 7. Filter Design Techniques
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
Design of FIR Filters. 3.1 Design with Least Squared Error Error Criterion.
Summary of Widowed Fourier Series Method for Calculating FIR Filter Coefficients Step 1: Specify ‘ideal’ or desired frequency response of filter Step 2:
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example.
6.0 Time/Frequency Characterization of Signals/Systems
The IIR FILTERs These are highly sensitive to coefficients,
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Digital Signal Processing Lecture 6 Frequency Selective Filters
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Eeng360 1 Chapter 2 Linear Systems Topics:  Review of Linear Systems Linear Time-Invariant Systems Impulse Response Transfer Functions Distortionless.
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
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)
Figure 8.1 (p. 615) Time-domain condition for distortionless transmission of a signal through a linear time-invariant system. Signals and Systems, 2/E.
UNIT - 5 IIR FILTER DESIGN.
Lecture: IIR Filter Design
EEE422 Signals and Systems Laboratory
Speech Signal Processing
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
IIR Filters FIR vs. IIR IIR filter design procedure
Infinite Impulse Response (IIR) Filters
J McClellan School of Electrical and Computer Engineering
Fourier Series FIR About Digital Filter Design
EE Audio Signals and Systems
LINEAR-PHASE FIR FILTERS DESIGN
Filter Design by Windowing
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
Chapter 7 Finite Impulse Response(FIR) Filter Design
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky

Filters Filter are designed based on specifications given by:  spectral magnitude emphasis  delay and phase properties through the group delay and phase spectrum  implementation and computational structures Filter implementations are broadly classified based on the extent of their impulse responses:  FIR = finite impulse response (impulse response goes to zero and stays there after a finite number of time samples)  IIR = infinite impulse response (impulse response continues infinitely in time).

Filter Specifications Example:Low-pass filter frequency response

Filter Specifications Example Low-pass filter frequency response (in dB)

Filter Specifications Example Low-pass filter frequency response (in dB) with ripple in both bands

Useful Filter Functions The sinc function and the rectangular pulse form a Fourier transform pair.

Ideal Low-Pass Filter Response indicates the ideal low-pass filter is non-causal and infinite. If using in a filter design process need to approximate

Impulse Response Method for FIR Filter Design Approach:  Create ideal filter specifications for the magnitude response.  Generate impulse response through sinc function relationship.  Shift (delay) in time so sufficient response energy occurs after t=0 to make response closer to ideal in a causal implementation  Truncate sequence to make causal and finite: include 0 to N-1 to obtain coefficients for an N th order filter. A tapering window is used to limit sharp transitions at the end points, which translate into ripple in the pass and stop bands.

Example Use impulse response method to compute a 24 th order low-pass filter for f s = 1 and cut-off frequency of.125 Hz.

Example Use impulse response method to compute a 24 th order low-pass filter for f s = 1 and cut-off frequency of.125 Hz. t = [24/2:1:24/2]; % evaluate since at 25 symmetric time points btemp = 0.25*sinc(0.25*t)

Example Delay response by 24/2 = 12 seconds. Then apply tapering window: wtap = hamming(25); plot(t+12,wtap,’g—’)

Example Plot below are the coefficient values used to implement the FIR filter. Because is symmetric it will have a linear phase that accounts for the shift in time. All filtered outputs will undergo a 24/2 sample delay.

Example Use fir1() Generate filter coefficient and check response by examining the Magnitude and Phase response. fs = 1; % Sampling Frequency b = fir1(24,.125/(fs/2), hamming(25)); % Compute filter coefficients, normalize frequency by Nyquest [h,f] = freqz(b,1,1024,1); % Arguments: b is vector of FIR coefficients, 1 is the scaling on the output term, 1024 are number of points to evaluate frequency response at, 1 is the sampling frequency plot(f,abs(h)) plot(f,phase(h))

Example Use fir1() Generate filter coefficients without a tapering window and plot magnitude and phase response: fs = 1; % Sampling Frequency b = fir1(24,.125/(fs/2), boxcar(25)); % Compute filter coefficients, normalize frequency by Nyquest [h,f] = freqz(b,1,1024,1); % Arguments: b is vector of FIR coefficients, 1 is the scaling on the output term, 1024 are number of points to evaluate frequency response at, 1 is the sampling frequency plot(f,abs(h)) plot(f,phase(h))

Parks-Mcclellan Filter To better control ripple over designated pass and stop bands, an iterative algorithm was applied to adjust filter coefficients to spread the ripple out making it uniform over the bands of interest, thus minimizing the maximum deviation from the ideal flat pass/stop band for a given order.

Parks-Mcclellan Filter Example Need to specify band range and amplitude over normalized frequency range. Can use as many bands as desired, but there should be space between defined bands for a transition to occur. Example: apply previous design specs for PM filter fs = 1 % Sampling Frequency f = [ ]/(fs/2) % Need to normalize at Nyquest mag = [ ]; % define pass and stopband amplitudes corresponding to vector f bpm = firpm(24, f,mag); % create FIR filter coefficients Interval between pass and stop band – transition band include specified cut-off (.125 Hz)

PM Filter Results Examine magnitude and phase response of resulting filter:

Parks-Mcclellan Filter Example Try again with bigger transition band fs = 1 % Sampling Frequency f = [ ]/(fs/2) % Need to normalize at Nyquest mag = [ ]; % define pass and stopband amplitudes corresponding to vector f bpm = firpm(24, f,mag); % create FIR filter coefficients Interval between pass and stop band – transition band include specified cut-off (.125 Hz)

PM Filter Results Examine and compare magnitude and phase responses of resulting filters: