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

Similar documents
Optimal FIR filters Analysis using Matlab

(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

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

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

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

Design Digital Non-Recursive FIR Filter by Using Exponential Window

F I R Filter (Finite Impulse Response)

Design of FIR Filters


Digital Filters FIR and IIR Systems

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

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

Advanced Digital Signal Processing Part 5: Digital Filters

Analog Lowpass Filter Specifications

4. Design of Discrete-Time Filters

UNIT-II MYcsvtu Notes agk

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

Design and Simulation of Two Channel QMF Filter Bank using Equiripple Technique.

Performance Analysis of FIR Digital Filter Design Technique and Implementation

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

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

Simulation Based Design Analysis of an Adjustable Window Function

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

FIR Digital Filter and Its Designing Methods

Design and Implementation of Digital Butterworth IIR filter using Xilinx System Generator for noise reduction in ECG Signal

Experiment 4- Finite Impulse Response Filters

EE 422G - Signals and Systems Laboratory

DESIGN OF FIR AND IIR FILTERS

EE 470 Signals and Systems

Design of Digital Filter and Filter Bank using IFIR

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

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

FIR FILTER DESIGN USING A NEW WINDOW FUNCTION

Performance Analysis of FIR Filter Design Using Reconfigurable Mac Unit

Implementation and Comparison of Low Pass FIR Filter on FPGA Using Different Techniques

FIR window method: A comparative Analysis

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques

Fig 1 describes the proposed system. Keywords IIR, FIR, inverse Chebyshev, Elliptic, LMS, RLS.

Multirate Digital Signal Processing

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

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

Signal processing preliminaries

Digital Filtering: Realization

Design of IIR Filter Using Model Order Reduction. Techniques

Design of a Sharp Linear-Phase FIR Filter Using the α-scaled Sampling Kernel

FIR Filter Design using Different Window Techniques

Design and Implementation of Efficient FIR Filter Structures using Xilinx System Generator

Florida International University

Brief Introduction to Signals & Systems. Phani Chavali

Analog Design-filters

Analysis The IIR Filter Design Using Particle Swarm Optimization Method

ECE 4213/5213 Homework 10

ELEC3104: Digital Signal Processing Session 1, 2013

Narrow-Band Low-Pass Digital Differentiator Design. Ivan Selesnick Polytechnic University Brooklyn, New York

Digital Filters - A Basic Primer

Filters. Phani Chavali

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

Digital Processing of Continuous-Time Signals

Frequency-Response Masking FIR Filters

Digital Processing of

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

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

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

A Comparative Study on Direct form -1, Broadcast and Fine grain structure of FIR digital filter

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

Performance Evaluation of Mean Square Error of Butterworth and Chebyshev1 Filter with Matlab

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

AUDIO SIEVING USING SIGNAL FILTERS

Spring 2014 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #2. Filter Analysis, Simulation, and Design

Experiment 2 Effects of Filtering

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)

FPGA Implementation of High Speed FIR Filters and less power consumption structure

Final Exam Solutions June 14, 2006

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

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

ECE 5650/4650 MATLAB Project 1

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

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

HIGH FREQUENCY FILTERING OF 24-HOUR HEART RATE DATA

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

Interpolated Lowpass FIR Filters

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

Design and comparison of butterworth and chebyshev type-1 low pass filter using Matlab

Signal Processing Toolbox

CHAPTER 14. Introduction to Frequency Selective Circuits

MULTIRATE IIR LINEAR DIGITAL FILTER DESIGN FOR POWER SYSTEM SUBSTATION

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

Performance Analysis on frequency response of Finite Impulse Response Filter

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

Contents. Introduction 1 1 Suggested Reading 2 2 Equipment and Software Tools 2 3 Experiment 2

Signals and Filtering

FINITE IMPULSE RESPONSE (FIR) FILTERS

Noise removal example. Today s topic. Digital Signal Processing. Lecture 3. Application Specific Integrated Circuits for

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

DIGITAL SIGNAL PROCESSING FOR THE AUDITORY SCIENTIST: A TUTORIAL INTRODUCTION

PHYS225 Lecture 15. Electronic Circuits

Spring 2018 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #2. Filter Analysis, Simulation, and Design

LECTURER NOTE SMJE3163 DSP

Transcription:

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 of FIR Lowpass Digital Filter Parameters Ziad Alqadi *, Bilal Zahran *, Jihad Nader * Department of Computer Engineering, Faculty of Engineering Technology, Al-Balqaa Applied University, Jordan DOI:.3956/ijarcsse/V7I/9 Abstract Finite impulse response (FIR) digital filters are known to have many distinguishable features such as stability, linear phase characteristic at all frequencies and digital implementation as non-recursive structures. FIR filter design can be considered as an optimization problem. In this paper an estimation method of FIR filter parameters is proposed. The method relies on establishing a relationship between the signal input parameters and the filter parameters. An FIR lowpass filter was implemented and tested using various parameter values. The results showed efficient performance characteristics of FIR lowpass filters. Keywords FIR lowpass filter, transition bandwidth, sampling frequency, window length, filter order, and stopband attenuation. I. INTRODUCTION Designing digital filters involves the determination of a set of filter coefficients to meet a set of design specifications. Digital filters can be classified in two categories: finite impulse response (FIR) filters and infinite impulse response (IIR) filters. By varying the weight of the coefficients and number of filter taps, virtually any frequency response characteristics can be realized with an FIR filter. FIR filter is an attractive choice because of the ease in design, linear phase shift property and stability [[], []]. Designing an FIR digital filter require specifying passband, stopband, and transition band. In passband, frequencies are needed to be passed unattenuated. In stopband, frequencies needs to be passed attenuated. Transitionband contains frequencies which are lying between the passband and stopband. Therefore, the entire frequency range is split into one or even more passbands, stopbands, and transition bands. In practical, the magnitude is not necessary to be constant in the passband of a filter. A small amount of ripple is usually allowed in the passband. Similarly, the filter response does not to be zero in the stopband. A small, nonzero value is also tolerable in the stopband as shown in Fig. The transition band of the filter as shown in Fig. is between the passband and the stopband. The frequency ω p denotes the edge of the passband, and the band-edge frequency ωs defines the edge of the stopband. So, the difference of ω s and ω p is the width of the transition band, i.e. ω t = ω s - ω p. The ripple in the passband of the filter is denoted as δp, and the magnitude of the filter varies from -δp to + δp. δs are the ripple in the stopband. Usually we use a Logarithmic scale to show the frequency response, hence, the ripple in the passband is logδp db, and the ripple in the stopband is logδs db.[[3], [4]] Different methods are used to design a lowpass filter such as: window method, frequency sampling method, and optimization method. In window method, a truncated ideal lowpass filter with a certain bandwidth is generated, and then we use a chosen window to get certain stopband attenuation. The filter order L can be adjusted to meet a specified roll-off rate in the transition band. Any finite-length (order) of the ideal lowpass impulse response may be considered as the product of the infinite-length lowpass impulse response and a window function W, which has a finite number of contiguous nonzero-valued samples [[]-[4]] where L is the window length, M=(L-)/, n L-, and WL[n] is generally a function F E [n] which has even symmetry about M defined as The result is a finite-length or truncated lowpass filter. The frequency sampling method will work in following way, we start in the frequency domain, and sample the desired frequency response with N evenly-spaced samples instead of a continuous frequency, and 7, IJARCSSE All Rights Reserved Page 8

Alqadi et al., International Journal of Advanced Research in Computer Science and Software Engineering 7(), February - 7, pp. 8-3 get (k=,,, N-). Then, let H(k)= Hd(k)=, we get the unit impulse response, h(n) = IDFT[H(k)], where IDFT is Inverse Discrete Fourier Transform. The inverse DFT then yields an impulse response which will lead to a filter whose frequency response the same as that of the specification exactly at the location of the frequency samples. The advantage of this method is that we can design filters directly in the frequency domain, but the disadvantage is that the sampling frequency can only be integer times of π/n, and we cannot ensure a random cutoff frequency. Lacking precise control of the specified frequencies, like ωp and ωs, is the most serious disadvantage of the window function method in the design of a lowpass FIR filter. The frequency sampling method is better than the window method in the aspect that the real-valued frequency response characteristics Hr (ω) is specified, which can be either zero or unity at all frequencies, except the transition band. The Chebyshev approximation method offers completely control of the filter requirements. As a result, this method is more preferable than the other two. It is based on the Remez exchange algorithm, which minimizes the error with respect to the max-norm [[]-[4]]. Fig. Amplitude-frequency characteristics of lowpass filter II. LITERATURE REVIEW Designing FIR digital filter is an important field in digital signal processing. Several conventional and new methods have been suggested to design efficient digital filters. Here we present some of new researches in this field. In [5] the researchers presented the design and implementation of a lowpass, highpass and a handpass Finite Impulse Response (FIR) Filter using SPARTAN-6 Field Programmable Gate Array (FPGA) device. The filter performance is tested using Filter Design and Analysis (FDA) and FIR tools from Mathworks. The FDA Tool is used to define the filter order and coefficients, and the FIR tool is used for Simulink simulation. In [6] the FIR filter is designed and simulated using Matlab. Different methods like frequency sampling, window function and convex optimization technique are processed using Matlab in the design of FIR filter. By comparing the signal s -frequency diagrams which have been generated the filtering effect of different digital filters are analyzed by using FIR digital filters which are designed to process the input signal based on the Matlab function. In [7] the researchers used an evolutionary algorithm to design linear phase FIR lowpass filter. They presented a novel approach using cuckoo Search Algorithm (CSA). Cuckoo-inspired algorithms are population based new optimization purposes. A CSA is proposed to achieve flat passband and high stopband attenuation in FIR filter design. III. EXPERIMENTAL REALIZATION OF LOWPASS FILTER Designing a lowpass filter using the window function method with these requirements [8] Using the Hamming window and the sampling frequency is Hz. Cutoff frequency of passband is.π, and cutoff frequency of stopband is.7π. The passband attenuation is less than or equal to.db, and the stopband attenuation is greater than or equal to 5dB. Here, the cutoff frequency is all normalized frequency, we get this from ω=πf/fs, where fs is the sampling frequency. The order of the digital filter must be carefully selected in order to get the required filter. A matlab code was written to design a lowpass filter and it was implemented using different filter orders. (The implementation results are shown in Figures, 3 and 4. 7, IJARCSSE All Rights Reserved Page 9

gain/db Alqadi et al., International Journal of Advanced Research in Computer Science and Software Engineering 7(), February - 7, pp. 8-3 - - -3-4 -5-6 -7-8 The gain response of lowpass filter of order= -9 4 6 8 Fig. Gain response of lowpass filter of order= Time-domain diagram before filtering filter order= - -..4.6.8. Frequency-domain diagram before filtering 5 5 4 6 8 Fig. 3 Time and frequency domain before filtering Time-domain diagram after filtering filter order= - -...4.6.8. Frequency-domain diagram after filtering 5 5 4 6 8 Fig. 4 Time and frequency domain after filtering 7, IJARCSSE All Rights Reserved Page

gain/db Alqadi et al., International Journal of Advanced Research in Computer Science and Software Engineering 7(), February - 7, pp. 8-3 Here from Fig. 4 we can see that the filter failed to give one band frequency. Increasing the filter order to we can get the following results as shown in Fig.s 5, 6 and 7. The gain response of lowpass filter of order= - -4-6 -8 - - -4 4 6 8 Fig. 5 Gain response of lowpass filter of order= Time-domain diagram before filtering filter order= - -..4.6.8. Frequency-domain diagram before filtering 5 5 4 6 8 Fig. 6 Time and frequency domain before filtering Time-domain diagram after filtering filter order= - -...4.6.8. Frequency-domain diagram after filtering 8 6 4 4 6 8 Fig. 7 Time and frequency domain after filtering 7, IJARCSSE All Rights Reserved Page

Alqadi et al., International Journal of Advanced Research in Computer Science and Software Engineering 7(), February - 7, pp. 8-3 Comparing Fig. 6 and 7, it is easy to see that the input signal is made up of two superposition signals with different frequencies. The passband is - Hz, and stopband starts from 7Hz, and there are two frequencies of Hz and Hz needing to be filtered. The signal with frequency of Hz which is in the range of passband is kept, while the signal with frequency of Hz which is in the range of stopband is filtered. The minimum stopband attenuation values for hamming window are db, which meets the requirements. A matlab program was built and tested to evaluate digital filter parameters taking in consideration the following: - Two sines frequencies ( and Hz) where used as an inputs to the filter. - The filter has to keep Hz signal and to filter the Hz signal. - The program accepts: sampling frequency, transition bandwidth, window length and filter order as input parameters. - The input parameters where used to filter the signal and calculate the stopband attenuation. The results of program running are shown in Table. IV. RESULTS AND DISCUSSIONS Referring to results shown in Table we can conclude the following facts and recommendations: The successful operation of the digital lowpass filters to remove the unwanted frequency highly depends on the selected values of transition width, window length and filter order. Transition band length must be small and less than. Increasing transition band width toward leads to increase stop band attenuation, while decreasing it value leads to decreasing stop band attenuation. Window length and filter order are related to transition width, sampling frequency and the frequency of the signal to be kept. Choosing random values to filter parameter may leads to filter failing by keeping the unwanted frequency. Experimentally we estimated FIR lowpass filter parameters by using regression and the following equations obtained: m=(c*f)/(fs/), M=round (8/m) and N=M- Where m is the transition bandwidth, c small value coefficient less than, f frequency to keep after filtering, fs sampling frequency, M window length and N filter order. These equations were tested using various values for f, fs, and c. The calculation and simulation results show the efficient use of the digital filter by means of filtering the unwanted frequencies and controlling the stop band attenuation. Transition bandwidth(m)...............3...4.5.5.5.5.5 Window length(m) 4 67 7999 3999 999 5 3 4 5 8 Table : Experimental results Filter order(n) Amplitude of Amplitude of the signal to the signal to be kept be filtered 45 8 48 8 98 4 3 83 4 8 5 8 6 75 76 4 4 4 4 66 7 8.3 4.8 6 35 3 8 4 5 8 Remarks Failed to remove Hz signal Failed to remove Hz signal Failed to remove Hz signal Failed to remove Hz signal 7, IJARCSSE All Rights Reserved Page

Alqadi et al., International Journal of Advanced Research in Computer Science and Software Engineering 7(), February - 7, pp. 8-3 V. CONCLUSIONS A digital lowpass filter was implemented and a relationship between the input parameters(sampling frequency, frequency to be kept, and transtion band width) and the calculated filter parameters(window length and filter order) was formed. The equations obtained are used to estimate the FIR digital lowpass filter parameters. As a result, the performnace chractaristics of the FIR filters has been improved. REFERENCES [] J. G. Prokis. D. G. Manolakis. Digital Signal Processing. Fourth Edition. 7 [] J. H. McClellan. R. W. Schafer. Mark A. Yoder. Signal Processing First. 3 [3] T.W. Parks, C.S. Burrus, Digital Filter Design, Wiley, New York, 987. [4] A. Antoniou, Digital filters Analysis, Design, and Application, McGraw-Hill, Second Edition 993. [5] S. Emmanuel Kolawole, H. Warsame Ali, Penrose Cofie, John Fuller, C. Tolliver, Pamela Obiomon, "Design and Implementation of Lowpass, High-Pass and Band-Pass Finite Impulse Response (FIR) Filters Using FPGA", Circuits and Systems, 6, 3-48, 5. [6] M. Iqbal, N. Muslim, H. Ahamd and F. Ullah, "Analysis and Design of FIR filters using Window Function in Matlab", International Journal of Computer Engineering and Information Technology VOL. 3, NO., 4 47, 5. [7] T. Singh, H. Singh Josan, "Design of Lowpass Digital FIR Filter Using Cuckoo Search Algorithm", Int. Journal of Engineering Research and Applications, Vol. 4, Issue 8, pp.7-77, 4. [8] S. Peng, "Design and analysis of FIR filters based on Matlab", Thesis,Linnaeus University, 3 7, IJARCSSE All Rights Reserved Page 3