digital filter design

52
DIGITAL FILTER DESIGN 1

Upload: ila

Post on 29-Sep-2015

239 views

Category:

Documents


2 download

DESCRIPTION

Design of digital filter FIR and IIRbrief discussion on filters

TRANSCRIPT

DIGITAL FILTER DESIGN

DIGITAL FILTER DESIGN1Digital Filter DesignObjective: Determination of the realizable transfer function G(Z) approximating a given frequency response specification is an important step in the development of a digital filter.If an IIR filter is desired, G(Z) should be a stable real function.Digital filter design is the process of deriving the transfer function G(z).2Digital Filter SpecificationsUsually, either the magnitude and/or the phase (delay) response is specified for the design of digital filter for most applications.In some situations, the unit sample response or the step response may be specified.In most practical applications. The problem of interest is the development of a realizable approximation to a given magnitude response specification.3Digital Filter SpecificationsWe discuss in this course only the magnitude approximation problem.There are four basic types of ideal filters with magnitude responses as shown below

4Digital Filter SpecificationsAs the impulse response corresponding to each of these ideal filters is noncausal and of infinite length, these filters are not realizable.In practice, the magnitude response specifications of a digital filter in the passband and in the stopband are given with some acceptable tolerance.In addition, a transition band is specified between the passband and stopband.5Digital Filter SpecificationsFor example, the magnitude response of a digital lowpass filter may be given as indicated below

6Digital Filter SpecificationsAs indicated in the figure, in the passband,defined by 0 p, we require that with an error ,i.e.,

In the stopband, defined by s , we require that with an error ,i.e.,

7Digital Filter Specificationsp - passband edge frequencys - stopband edge frequencyp- peak ripple value in the passband s- peak ripple value in the stopband Since is a periodic function of , and of a real-coefficient digital filter is an even function of As a result, filter specifications are given only for the frequency range 0 .

8Digital Filter SpecificationsSpecifications are often given in terms of loss function (in dB) Peak passband ripple dBMinimum stopband attenuation dB

9Digital Filter SpecificationsMagnitude specifications may alternately be given in a normalized form as indicated below

10Digital Filter SpecificationsHere, the maximum value of the magnitude in the passband is assumed to be unity.

- Maximum passband deviation, given by the minimum value of the magnitude in the passband.

- Maximum stopband magnitude

11Digital Filter SpecificationsFor the normalized specification, maximum value of the gain function or the minimum value of the loss function is 0 dBMaximum passband attenuation

For p