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.
Infinite Impulse Response (IIR) Filters
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
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
Nov'04CS3291: Section 41 University of Manchester Department of Computer Science CS3291 Digital Signal Processing '04-'05 Section 4: ‘A design technique.
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.
Chapter 8 Design of infinite impulse response digital filter.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
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:
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.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
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,
Chapter 6. Digital Filter Structures and Designs Section
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.
IIR Filter design (cf. Shenoi, 2006)
UNIT - 5 IIR FILTER DESIGN.
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
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 7 FIR Digital Filter Design
Chapter 7 Finite Impulse Response(FIR) Filter Design
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

1. Features of FIR filter Characteristic of FIR filter FIR filter is always stable FIR filter can have an exactly linear phase response FIR filter are very simple to implement. Nonrecursive FIR filters suffer less from the effect of finite wordlength than IIR filters

2. Linear phase response Phase response of FIR filter Phase delay and group delay (1) where (2)

Condition of linear phase response (3) (4) Where and is constant Constant group delay and phase delay response

If a filter satisfies the condition given in equation (3) From equation (1) and (2) thus

It is represented in Fig 7.1 (a),(b)

When the condition given in equation (4) only The filter will have a constant group delay only It is represented in Fig 7.1 (c),(d)

Center of symmetry Fig. 7-1.

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

Example 7-1 Symmetric impulse response for linear phase response. No phase distortion

Frequency response where

(3) where

3. Zero distribution of FIR filters Transfer function for FIR filter

Four types of linear phase FIR filters have zero at is real and is imaginary

If zero on unit circle If zero not exist on the unit circle If zeros on

Necessary zero Necessary zero Necessary zero Necessary zero Fig. 7-2.

4. FIR filter specifications peak passband deviation (or ripples) stopband deviation passband edge frequency stopband edge frequency sampling frequency

ILPF Satisfies spec’s Fig. 7-3.

Characterization of FIR filter Most commonly methods for obtaining Window, optimal and frequency sampling methods

5. Window method FIR filter Frequency response of filter Corresponding impulse response Ideal lowpass response

Fig. 7-4.

Truncation to 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 edge frequencies; N is the length of filter

Common window function types Hamming window where N is filter length and is normalized transition width

Characteristics of common window functions Fig. 7-8.

Table 7.3 summary of important features of common window functions

Kaiser window where is the zero-order modified Bessel function of the first kind where typically

Kaiser Formulas – for LPF design

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

Using Hamming window

Fig. 7-9.

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

Using Kaiser window

Fig. 7-10.

Summary of window method 1. Specify the ‘ideal’ or desired frequency response of filter, 2. Obtain the impulse response, , of the desired filter by evaluating the inverse Fourier transform 3. Select a window function that satisfies the passband or attenuation specifications and then determine the number of filter coefficients 4. Obtain values of for the chosen window function and the values of the actual FIR coefficients, , by multiplying by

Advantages and disadvantages Simplicity Lack of flexibility The passband and stopband edge frequencies cannot be precisely specified For a given window(except the Kaiser), the maximum ripple amplitude in filter response is fixed regardless of how large we make N

6. 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.

Optimal method involves the following steps 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 where where and , Let This weighting function permits different peak error in the two band

where are and Find

Alternation theorem Let If has equiripple inside bands and more than m+2 extremal point then where

From equation (7-33) and (7-34) Equation (7-35) is substituted equation (7-32) Matrix form

Summary Step 1. Select filter length as 2m+1 Step 2. Select m+2 point in F Step 3. Calculate and e using equation (7) Step 4. Calculate using equation (5). If in some of f , go to step 5, otherwise go to step 6 Step 5. Determine m local minma or maxma points Step 6. Calculate when where

Example 7-4 Specification of desired filter Ideal low pass filter Filter length : 3 Normalized frequency

From Cutoff frequency : not the optimal filter

: has the minimum (N=3)

Fig. 7-13.

Optimization using MATLAB Park-McClellan Remez where N is the filter order (N+1 is the filter length) F is the normalized frequency of border of pass band M is the magnitude of frequency response WT is the weight between ripples

Example 7-5 Specification of desired filter Band pass region : 0 – 1000Hz Transition region : 500Hz Filter length : 45 Sampling frequency : 10,000Hz Normalized frequency of border of passband Magnitude of frequency response

Table 7-4.

Fig.7-14.

Example 7-6 Specification of desired filter Band pass region : 3kHz – 4kHz Transition region : 500Hz Pass band ripple : 1dB Rejection region : 25dB Sampling frequency : 20kHz Frequency of border of passband

Transform dB to normal value Filter length Remezord (MATLAB command) where and ripple value(dB) of pass band and rejection band

Table 7-5.

Fig. 7-15.

7. Frequency sampling method Frequency sampling filters Taking N samples of the frequency response at intervals of Filter coefficients where are samples of the ideal or target frequency response

For linear phase filters (for N even) For N odd Upper limit in summation is where

Fig. 7-16.

Example 7-7 (1) Show the Expanding the equation is real value

Sampling frequency : 18kHz Filter length : 9 (2) Design of FIR filter Band pass region : 0 – 5kHz Sampling frequency : 18kHz Filter length : 9 Fig. 7-17.

Samples of magnitude in frequency Table 7-6.

8. Comparison of most commonly method Window method The easiest, but lacks flexibility especially when passband and stopband ripples are different Frequency sampling method Well suited to recursive implementation of FIR filters Optimal method Most powerful and flexible