Chapter 7 Finite Impulse Response(FIR) Filter Design

Slides:



Advertisements
Similar presentations
Chapter 8. FIR Filter Design
Advertisements

Nonrecursive Digital Filters
Signal and System IIR Filter Filbert H. Juwono
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.
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
Parks-McClellan FIR Filter Design
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.
ELEN 5346/4304 DSP and Filter Design Fall Lecture 11: LTI FIR filter design Instructor: Dr. Gleb V. Tcheslavski Contact:
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
1 Lecture 2: February 27, 2007 Topics: 2. Linear Phase FIR Digital Filter. Introduction 3. Linear-Phase FIR Digital Filter Design: Window (Windowing)
Practical Signal Processing Concepts and Algorithms using MATLAB
1 Diagramas de bloco e grafos de fluxo de sinal Estruturas de filtros IIR Projeto de filtro FIR Filtros Digitais.
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.
Chapter 7 IIR Filter Design
Filter Design Techniques
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.
1 BIEN425 – Lecture 11 By the end of the lecture, you should be able to: –Design and implement FIR filters using frequency-sampling method –Compare the.
Chapter 8 Design of infinite impulse response digital filter.
1 Chapter 7 Filter Design Techniques (cont.). 2 Optimum Approximation Criterion (1)  We have discussed design of FIR filters by windowing, which is straightforward.
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.
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 9: Filter Design: FIR 1.Windowed Impulse Response 2.Window Shapes 3.Design by Iterative.
1 Lecture 3: March 6, 2007 Topic: 1. Frequency-Sampling Methods (Part I)
1 Chapter 7 FIR Filter Design Techniques. 2 Design of FIR Filters by Windowing (1)  We have discussed techniques for the design of discrete-time IIR.
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.
FIR Filter Design & Implementation
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
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:
The IIR FILTERs These are highly sensitive to coefficients,
The IIR FILTERs These are highly sensitive to coefficients which may affect stability. The magnitude-frequency response of these filters is established.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
Chapter 5. Transform Analysis of LTI Systems Section
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.
Digital Signal Processing
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
J McClellan School of Electrical and Computer Engineering
Fourier Series FIR About Digital Filter Design
Chapter 8 Design of Infinite Impulse Response (IIR) Digital Filter
LINEAR-PHASE FIR FILTERS DESIGN
Filter Design by Windowing
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
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.
Lect6 Finite Impulse response (FIR) filter design
Lecture 16a FIR Filter Design via Windowing
Chapter 6 Discrete-Time System
Chapter 7 FIR Digital Filter Design
Quadrature-Mirror Filter Bank
ELEN E4810: Digital Signal Processing Topic 9: Filter Design: FIR
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:

Chapter 7 Finite Impulse Response(FIR) Filter Design

Properties of FIR filter FIR filter has characteristics: Always stable Exactly linear phase response Simple to implement The effect of finite wordlength in FIR is less than in IIR filters (7-1) (7-2)

Linear phase response Phase response of FIR filter Phase delay and group delay (7-3) where (7-4) (7-5) (7-6)

Conditions to be linear phase response (7-7) (7-8) where and are constants  Constant group and constant phase delay responses

Impulse response of the filter should have positive symmetry to satisfy Eq. (7-7), thus (7-9) (7-10)

For symmetry condition (7-11) (7-12) (7-13) (7-14)

For the condition given in Eq. (7-8) Constant group delay only Negative symmetric impulse response (7-15) (7-16)

Fig. 7-1.

Example 7-1 Symmetric impulse response for linear phase response No phase distortion Using the symmetry condition For

Using the symmetry condition Frequency response Using the symmetry condition Compact form where

Using the symmetry condition where

Table 7.1 A summary of the key point about the four types of linear phase FIR filters

Zeros of FIR filters Transfer function for FIR filter Positive symmetry (types 1 and 2) (7-17)

This means that should be zero. has zero at (i.e., ) , then should have zero at This means that should be zero. If each complex zero does not exist on the unit circle, then have 4 conjugate reciprocal zeros : If is real and is complex number, should have conjugate zero at

If zero exists on unit circle, then , i.e., becomes If zeros are real and do not exist on the unit circle, then If zeros exist on , then

Impulse response of type 3 (even N) and type 4 (odd N) If zeros exist on , then For symmetry and odd N, Should have mandatory zero at Impulse response of type 3 (even N) and type 4 (odd N) For z = 1 Mandatory zero at For and even N (7-18)

Mandatory zero Mandatory zero Mandatory zero Mandatory zero Fig. 7-2.

FIR filter design Design of FIR Filter Need to decide : Type of filter Amplitude and/or phase responses Tolerances Sampling frequency Wordlength of the input data To calculate filter coefficients, select the method from: Window method, Optimal method, Frequency sampling method

Filter specifications Important parameters Another important parameter peak passband deviation (or ripples) stopband deviation passband edge frequency stopband edge frequency sampling frequency Filter order N

ILPF Fig. 7-3.

FIR coefficient calculation Most commonly used methods for obtaining Window, optimal, and frequency sampling methods

Window method Design of FIR filter using window methods Frequency response of filter, Impulse response, Ideal lowpass response (7-19) (7-20)

Fig. 7-4.

Truncation for FIR Rectangular Window

Fig. 7-5.

Fig. 7-6.

Fig. 7-7.

Table 7.2 Summary of ideal impulse responses for standard frequency selective filters and are the normalized passband or stopband cutoff frequencies

Some common window functions Hamming window Appropriate relationship between transition width and filter length (7-21) (7-22) where N is filter order and is normalized transition width

Properties of common window functions Fig. 7-8.

Table 7.3 summary of important features of common window functions

Kaiser window Trade-off transition width against ripple Using a ripple control parameter (7-23) where is zero-order modified Bessel function of the first kind where typically

Determination of parameter Using the stopband attenuation requirements Using empirical relationships The number of filter coefficients N where is the stopband attenuation , since the passband and stopband ripples are nearly equal (7-25) where is the normalized transition width

The window method of calculating FIR filter coefficients Step 1 : specify the desired frequency response of filter, Step 2 : obtain the impulse response, , of desired filter by evaluating the inverse Fourier transform Step 3 : select a window function and then determine the number of coefficients using the appropriate relationship between the filter length and the transition width, Step 4 : obtain values of for chosen window function and the values of the actual FIR coefficient, , by multiplying by (7-26)

Example 7-2 Obtain coefficients of FIR lowpass filter using hamming window Lowpass filter Passband cutoff frequency Transition width Stopband attenuation Sampling frequency

Using Hamming window Considering the smearing effect of the window function

Symmetrical function Calculation of Using the symmetry property to obtain the other coefficients

Fig. 7-9.

Example 7-3 Obtain coefficients using Kaiser or Blackman window From filter specifications Stopband attenuation passband attenuation Transition region Sampling frequency Passband cutoff frequency

Using Kaiser window The number of filter order N The ripple parameter Normalized cutoff frequency

Calculation of FIR coefficients

Symmetrical function Calculation of Using the symmetry property to obtain the other coefficients

Fig. 7-10.

Advantages and disadvantages Simplicity Lack of flexibility The passband and stopband edge frequencies cannot be precisely specified For a given attenuation specification, filter designer must find a suitable window

The optimal method Basic concepts Equiripple passband and stopband For linear phase lowpass filters m+1 or m+2 extrema (minima and maxima) Weighted Approx. error Weighting function Ideal desired response Practical response where m=(N+1)/2 (for type1 filters) or m =N/2 (for type2 filters)

Practical response Ideal response Fig. 7-11.

Fig. 7-12.

The procedure of optimal method Use the Remez exchange algorithm to find the optimum set of extremal frequencies Determine the frequency response using the extremal frequencies Obtain the impulse response coefficients

Optimal FIR filer design Transfer function of lowpass filter Symmetric property gives (7-28) where where and ,

Let Normalized passband : Normalized stopband : Desired magnitude response Weighting function (7-30) (7-31)

Find with , (7-32) (7-33) where are and

Alternation theorem Let If has equiripple inside and exhibit at least m+2 alternations, then (7-34) where

From equation (7-33) and (7-34) Matrix form (7-35)

Summary Step 1. Select filter length as 2m+1 Step 2. Select m+2 points of in F Step 3. Calculate and e using equation (7-36) Step 4. Calculate using equation (7-29). If , go to step 5, otherwise go to step 6 Step 5. Determine m local minima or maxima points Step 6. Calculate ,

Example 7-4 Specification of desired filter Normalized frequency Filter length : 3 , Normalized frequency

From and (7-37)

Transfer function of optimal filter Selection of new Transfer function of optimal filter (7-38) (7-39)

Fig. 7-13.

Optimal method using MATLAB Based on Park-McClellan and Remez algorithm Calculation of coefficient for FIR filter using Remez where N is the filter length F is the normalized frequency band edges M is the magnitude response WT is the relative weight between ripples

Example 7-5 Specification of desired filter Pass band : 0 – 1000Hz Transition band : 500Hz Filter length : 45 Sampling frequency : 10,000Hz Normalized frequency band edges Magnitude response

Table 7-4.

Fig.7-14.

Example 7-6 Specification of desired filter Pass band : 3kHz – 4kHz Transition band : 500Hz Pass band ripple : 1dB Rejection band attenuation : 25dB Sampling frequency : 20kHz Frequency band edges and magnitude response

Estimation of filter length Pass and rejection band ripples Using Remezord in MATLAB where and are ripples of dB scale in pass and rejection band

Table 7-5.

Fig. 7-15.

Frequency sampling method Design of FIR filter Taking N samples of the frequency response at intervals of , Filter coefficients (7-40) where , are samples of desired frequency response

Linear phase filters with positive symmetrical impulse response For N even For N odd Upper limit in the summation is (7-41) where

Fig. 7-16.

Example 7-7 (1) Show the From equation (7-40) is symmetry is real value (7-42)

(2) Design of FIR filter Specification of desired filter Pass band : 0 – 5kHz Sampling frequency : 18kHz Filter length : 9 Selection of frequency samples at intervals of Fig. 7-17.

Coefficient of FIR filter using equation (7-42) Table 7-6.

Comparison of the window, optimum and frequency sampling methods Optimal method Easy and efficient way of computing FIR filter coefficients Making filter with good amplitude response characteristics for reasonable values of N Window method In the absence of the optimal software or when the passband and stopband ripples are equal, the window method represents a good choice Particularly simple method to apply and conceptually easy to understand Frequency sampling method Filters with arbitrary amplitude-phase response can be easily designed Lack of precise control for the location of the bandedge frequencies or the passband ripples