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

Similar documents
(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

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

Experiment 4- Finite Impulse Response Filters


F I R Filter (Finite Impulse Response)

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

FINITE IMPULSE RESPONSE (FIR) FILTERS

4. Design of Discrete-Time Filters

Digital Filtering: Realization

Electrical & Computer Engineering Technology

Design of FIR Filters

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

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

7B.2 The optimal method

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

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

Digital Filters FIR and IIR Systems

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

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

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

The Design of Experimental Teaching System for Digital Signal Processing Based on GUI

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

Simulation Based Design Analysis of an Adjustable Window Function

EE 311 February 13 and 15, 2019 Lecture 10

Advanced Digital Signal Processing Part 5: Digital Filters

EECE 301 Signals & Systems Prof. Mark Fowler

Multirate DSP, part 1: Upsampling and downsampling

Analog Lowpass Filter Specifications

FIR Filter Design using Different Window Techniques

CHAPTER 14. Introduction to Frequency Selective Circuits

Design of FIR Filter for Efficient Utilization of Speech Signal Akanksha. Raj 1 Arshiyanaz. Khateeb 2 Fakrunnisa.Balaganur 3

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

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

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques

ELEC3104: Digital Signal Processing Session 1, 2013

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

Lecture 3, Multirate Signal Processing

EEO 401 Digital Signal Processing Prof. Mark Fowler

Frequency-Response Masking FIR Filters

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

Experiment 2 Effects of Filtering

Performance Analysis of FIR Digital Filter Design Technique and Implementation

Filters. Phani Chavali

ECE503 Homework Assignment Number 8 Solution

Aparna Tiwari, Vandana Thakre, Karuna Markam Deptt. Of ECE,M.I.T.S. Gwalior, M.P, India

EE 422G - Signals and Systems Laboratory

Laboratory Assignment 4. Fourier Sound Synthesis

FIR Filters in Matlab

ECE 5650/4650 MATLAB Project 1

Fourier Series and Gibbs Phenomenon

Design a DAC sinx/x Corrector

Discrete Fourier Transform (DFT)

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

ASN Filter Designer Professional/Lite Getting Started Guide

ECE 4213/5213 Homework 10

Design Digital Non-Recursive FIR Filter by Using Exponential Window

Digital Filters - A Basic Primer

A Lower Transition Width FIR Filter & its Noise Removal Performance on an ECG Signal

Florida International University

Optimal FIR filters Analysis using Matlab

Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

Distortion Analysis T S. 2 N for all k not defined above. THEOREM?: If N P is an integer and x(t) is band limited to f MAX, then

FIR Filters Digital Filters Without Feedback

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

Interpolated Lowpass FIR Filters

Digital Filter Design using MATLAB

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

Biosignal filtering and artifact rejection. Biosignal processing, S Autumn 2012

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

Corso di DATI e SEGNALI BIOMEDICI 1. Carmelina Ruggiero Laboratorio MedInfo

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Copyright S. K. Mitra

ISSN: X International Journal of Advanced Research in Electronics and Communication Engineering (IJARECE) Volume 7, Issue 5, May 2018

FIR window method: A comparative Analysis

Signals and Systems Lecture 6: Fourier Applications

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

DIGITAL FILTERING AND THE DFT

ECE 2713 Design Project Solution

Appendix D: Design of lowpass, highpass, bandpass, and bandstop filters as well as Hilbert transformers and differentiators using fixed windows

UNIVERSITY OF SWAZILAND

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

Digital Signal Processing

Digital FIR LP Filter using Window Functions

Brief Introduction to Signals & Systems. Phani Chavali

Signal Processing Toolbox

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)

Signal Processing. Introduction

ECE 421 Introduction to Signal Processing

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

Moku:Lab. Specifications. Revision Last updated 15 th April, 2018.

DESIGN OF FIR AND IIR FILTERS

APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES

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

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

Transcription:

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 method (Fourier transform design with window method) is developed. The Gibbs oscillations mainly result from the abrupt truncation of the infinite-length coefficient sequence of impulse response of the FIR filter. A window function is a symmetrical function which can gradually weight the designed FIR coefficients down to zeros at both ends of for the range. Applying the window sequence to the filter coefficients gives where, are: designates the window function. Commonly used window functions in FIR filters 1. Rectangular Window: 2. Triangular (Bartlett) Window: 3. Hanning Window: 4. Hamming Window: 5. Blackman Window:

Example: (a) Calculate the filter coefficients for a 3-tap FIR lowpass filter with a cutoff frequency of 800 Hz and a sampling rate of 8000 Hz using the Hamming window function. (b) Determine the transfer function and difference equation of the designed FIR system. (c) Compute and plot the frequency response. Solution (a): We first determine the normalized cutoff frequency In this case, therefore, using table 7.1 radians Therefore, (using symmetry) The windowed impulse response is calculated as Delaying by samples, we get,, and.

(b): Therefore, the transfer function in this case is The difference equation is Part (c): The frequency response of the filter is It can be written as Thus, the magnitude frequency response is And the phase response is A MATLAB program to plot the frequency response is given in the following. % % Example 7.5 % fs = 8000; B = [0.01497 0.2 0.01497]; A = [1]; [h w] = freqz(b, A, 1024); f = w*fs/(2*pi); phi = 180*unwrap(angle(h))/pi; figure subplot(2,1,1), plot(f, 20*log10(abs(h))); grid on; axis([0 fs/2-30 0]); xlabel('frequency (Hz)'); ylabel('magnitude'); subplot(2,1,2), plot(f, phi); grid on; axis([0 fs/2-200 50]); xlabel('frequency (Hz)'); ylabel('phase (degrees)');

Figure: Frequency response Example: (a) Design a 5-tap FIR bandreject filter with a lower cutoff frequency of 2000 Hz, an upper cutoff frequency of 2400 Hz and a sampling rate of 8000 Hz using the Hamming window method. (b) Determine the transfer function. Solution (a): We first determine the normalized cutoff frequencies radians radians In this case, therefore, using table 7.1 Therefore,

(using symmetry) (using symmetry) Applying the Hamming window function, we have The windowed impulse response is calculated as (using symmetry) (using symmetry) Delaying by samples, we get,,, and. (b): Therefore, the transfer function in this case is

FIR Filter Length Estimation using Window Functions Given the required passband ripples specification and stopband attenuation, the appropriate window length can be estimated based on the performances of the window functions. For illustrative purpose, we use the lowpass filter frequency domain specification (the same can be extended to other types of filter specifications). The normalized transition band frequency is defined as Based on this, the FIR filter lengths for various window functions are given in Table 7.7 below. It can be noted that the cutoff frequency is determined by The passband ripple is defined as while the stopband attenuation is defined as Table: Filter length estimation using window ( ) Window Type Window Function, Window Length Passband Ripple (db) Stopband Attenuation (db) Rectangular 0.7416 21 Hanning 0.0546 44 Hamming 0.0194 53 Blackman 0.0017 74 Example: Design a bandpass FIR filter with the following specifications:

Lower Stopband = 0-500 Hz Passband = 1600-2300 Hz Upper Stopband = 3500-4000 Hz Stopband Attenuation = 50 db Passband ripple = 0.05dB Sampling rate = 8000 Hz Determine the FIR filter length and the cutoff frequency to be used in the design equation. Solution We first determine the normalized transition band The filter lengths based on above transition bands (for Hamming window) are The nearest higher odd is chosen as for the Hamming window The lower and higher cutoff frequencies for the bandpass filter will be The normalized lower and higher cutoff frequencies for the bandpass filter will be In this case will be the number of taps for the bandpass filter. A MATLAB program to plot the frequency response is given in the following.

% % Example 7.10 % Ntap = 25; % number of filter taps Ftype = 3; % lowpass filter WnL = 0.2625*pi; % lower cutoff frequency WnH = 0.725*pi; % upper cutoff frequency Wtype = 4; % Hamming window type fs = 8000; % sampling rate % use firwd to compute B coefficients B = firwd(ntap, Ftype, WnL, WnH, Wtype); A = 1; omega = 0:0.01:pi; fhz = omega*fs/(2*pi); % frequency response of the fir filter [hz, w] = freqz(b, A, omega); magnitude = 20*log10(abs(hz)); phase = 180*unwrap(angle(hz))/pi; figure, subplot(2,1,1); plot(fhz, magnitude,'k','linewidth',2); grid on; xlabel('frequency (Hz)'); ylabel('magnitude response(db)'); subplot(2,1,2); plot(fhz, phase,'k','linewidth',2); grid on; xlabel('frequency (Hz)'); ylabel('phase response(degrees)'); Figure: Frequency response