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.

Slides:



Advertisements
Similar presentations
Digital filters: Design of FIR filters
Advertisements

Chapter 8. FIR Filter Design
Nonrecursive Digital Filters
Husheng Li, UTK-EECS, Fall The specification of filter is usually given by the tolerance scheme.
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
ECE651 Digital Signal Processing I Digital IIR Filter Design.
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
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)
Lecture 9 FIR and IIR Filter design using Matlab
Unit III FIR Filter Design
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
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.
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 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
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,
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
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.
Lecture 09b Finite Impulse Response (FIR) Filters
Chapter 6. Digital Filter Structures and Designs Section
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
Linear Constant-coefficient Difference Equations
IIR Filters FIR vs. IIR IIR filter design procedure
Infinite Impulse Response (IIR) Filters
Fourier Series FIR About Digital Filter Design
LINEAR-PHASE FIR FILTERS DESIGN
Filter Design by Windowing
Quick Review of LTI Systems
Lecture 13 Outline: Windowing in FIR Filter Design
z Transform Signal and System Analysis
Usıng the impulse sampling method Prepared by: Dr. Erhan A. INCE
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:

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 of the frequency spectrum

Conditions for Non-Distortion Problem: ideally we do not want the filter to distort the signal we want to recover. Same shape as s(t), just scaled and delayed. IDEAL FILTER Consequence on the Frequency Response: constant linear

For real time implementation we also want the filter to be causal, ie. since FACT (Bad News!): by the Paley-Wiener Theorem, if h(n) is causal and with finite energy, ie cannot be zero on an interval, therefore it cannot be ideal.

Characteristics of Non Ideal Digital Filters Positive freq. only NON IDEAL

Two Classes of Digital Filters: a) Finite Impulse Response (FIR), non recursive, of the form With N being the order of the filter. Advantages: always stable, the phase can be made exactly linear, we can approximate any filter we want; Disadvantages: we need a lot of coefficients (N large) for good performance; b) Infinite Impulse Response (IIR), recursive, of the form Advantages: very selective with a few coefficients; Disadvantages: non necessarily stable, non linear phase.

Finite Impulse Response (FIR) Filters Definition: a filter whose impulse response has finite duration.

Problem: Given a desired Frequency Response of the filter, determine the impulse response . Recall: we relate the Frequency Response and the Impulse Response by the DTFT: Example: Ideal Low Pass Filter DTFT

Notice two facts: the filter is not causal, i.e. the impulse response h(n) is non zero for n<0; the impulse response has infinite duration. This is not just a coincidence. In general the following can be shown: If a filter is causal then the frequency response cannot be zero on an interval; magnitude and phase are not independent, i.e. they cannot be specified arbitrarily As a consequence: an ideal filter cannot be causal.

Problem: we want to determine a causal Finite Impulse Response (FIR) approximation of the ideal filter. We do this by Windowing By setting all impulse response coefficient outside the range equal to zero,we arrival at a finite-length noncausal approximation of length ,which when shifted to the right yield the coeffcients of a causal FIR lowpass filter

Gibbs phenomenon Cause of Gibbs phenomenon: The causal FIR filter obtained by simply truncating the impulse response coefficients of the ideal filters exhibit an oscillatory behavior in their respective magnitude responses.which is more commonly referred to as the Gibbs phenomenon. Cause of Gibbs phenomenon: The FIR filter obtained by truncation can be expressed as:

Illustration of the effect of the windowing in frequency domain

infinite impulse response rectangular window hamming window infinite impulse response (ideal) finite impulse response

Effects of windowing and shifting on the frequency response of the filter: a) Windowing: since then rectangular window hamming window

For different windows we have different values of the transition region and the attenuation in the stopband: Rectangular -13dB Bartlett -27dB Hanning -32dB Hamming -43dB Blackman -58dB attenuation with transition region

The window used to achieve simple truncation of the ideal filter is rectangular window: So two basic reason of the oscillatory behavior: (1)the impulse response of a ideal filter is infinitely long and not absolutely summable. (2)the rectangular window has an abrupt transition to zero. How to reduce the Gibbs phenomenon? (1 )using a window that tapers smoothly to zero at each end. (2)providing a smooth transition from the passband to the stopband.

Fixed Window Functions Hann: Hamming: Blackman:

Two important parameters: (1)main lobe width. (2)relative sidelobe level. The effect of window function on FIR filter design (1) the window have a small main lobe width will ensure a fast transition from the passband to the stopband. (2)the area under the sidelobes small will reduce the ripple

Designing an FIR filter (1)select a window above mentioned. (2)get (3)determine the cutoff frequency by setting: (4)M is estimated using ,the value of the constant c is obtain from table given.

Adjustable Window Functions Windows have been developed that provide control over ripple by means of an additional parameter. (1)Dolph-Chebyshev window (2)Kaiser window

b) Shifting in time, to make it causal:

Frequency Response Impulse response h(n)

Effect of windowing and shifting on the frequency response: b) shifting: since then Therefore See what is For a Low Pass Filter we can verify the symmetry Then real for all . Then

The phase of FIR low pass filter: Which shows that it is a Linear Phase Filter. don’t care

Example of Design of an FIR filter using Windows: Specs: Pass Band 0 - 4 kHz Stop Band > 5kHz with attenuation of at least 40dB Sampling Frequency 20kHz Step 1: translate specifications into digital frequency Pass Band Stop Band Step 2: from pass band, determine ideal filter impulse response

Step 3: from desired attenuation choose the window Step 3: from desired attenuation choose the window. In this case we can choose the hamming window; Step 4: from the transition region choose the length N of the impulse response. Choose an odd number N such that: So choose N=81 which yields the shift L=40. Finally the impulse response of the filter

The Frequency Response of the Filter:

A Parametrized Window: the Kaiser Window The Kaiser window has two parameters: Window Length To control attenuation in the Stop Band

There are some empirical formulas: Attenuation in dB Transition Region in rad Example: Sampling Freq. 20 kHz Pass Band 4 kHz Stop Band 5kHz, with 40dB Attenuation

Then we determine the Kaiser window

ideal impulse response Then the impulse response of the FIR filter becomes ideal impulse response with

Impulse Response Frequency Response

Example: design a digital filter which approximates a differentiator. Specifications: Desired Frequency Response: Sampling Frequency Attenuation in the stopband at least 50dB. Solution. Step 1. Convert to digital frequency

Step 2: determine ideal impulse response From integration tables or integrating by parts we obtain Therefore

Step 3. From the given attenuation we use the Blackman window Step 3. From the given attenuation we use the Blackman window. This window has a transition region region of . From the given transition region we solve for the complexity N as follows which yields . Choose it odd as, for example, N=121, ie. L=60. Step 4. Finally the result