Design of digital filters

nailabibi3 752 views 33 slides Apr 10, 2018
Slide 1
Slide 1 of 33
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33

About This Presentation

Digital filters Desgn


Slide Content

Design of Digital Filters Naila Bibi BEE (Electronics) 2014 Batch

Content

What are Digital filters? In signal processing, a  digital filter  is a system that performs mathematical operations on a sampled, discrete-time signal to reduce or enhance certain aspects of that signal.

Why digital filters? Digital filters are used for two general purposes Separation of signals that have been combined. Restoration of signals that have been distorted in some way

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.

Example Imagine that you have a project for measuring the infant ECG from the body surface of a mother •The raw signal recordings will likely be corrupted by the breathing and heartbeat (ECG) of the mother •A filter might be used to separate the infant ECG from these combined signals so that they can be individually analyzed

Types of Digital filters

Comparative analysis of digital Filters Finite Impulse Response Implemented non-recursively No Feedback Always stable Simple to implement Linear phase response in pass-band More filter coefficients More memory More processing power Infinite Impulse Response Implement recursively With Feedback Stability not guaranteed Difficult to implement Non-linear phase response in pass-band less filter coefficients than FIR Less memory Less processing power

The ability to have an exactly linear phase response is the one of the most important of FIR filters A general FIR filter does not have a linear phase response but this property is satisfied when, four linear phase filter types,

FIR Fillers Output is function of the present input and the past inputs Output does not depend on the previous outputs L+1 is said to be the filter length

IIR Filters Output is the function of the present input, the past inputs and also the past outputs

FIR Design Methods 1. Windowing 2. Frequency Sampling 3. Computer Aided Design

Window Design Method Also known as Fourier transform method Create an ideal specification of the filter in frequency-domain Take Inverse Fourier Transform to get the time-domain impulse response of the filter

Steps… 1 . Note the specification i) Pass Band frequency ii) Pass Band ripple iii) Stop Band frequency iv) Stop Band attenuation Find the ideal impulse response; approximate where ever necessary Truncate the ideal impulse response to finite number of samples Choose a suitable window function to ‘smoothen out’ the ideal impulse response 5. Multiply the ideal-truncated impulse response with the window function 6. The result is the approximated impulse response of the filter, you ideally wanted to design

Example, Pass band Stop band we need to design a low pass filter. Pass band cut off at – Wc to Wc.

Take the I-DTFT to get the time-domain impulse response of the filter

-∞ < n < ∞ (1)

There are two ‘major’ problems with it The filter has infinite number of coefficients It has to be a non-causal system (system requires future values)

The solution to first problem is to truncate (cut) the impulse response, to a number of coefficients can be implemented with out too much trouble N=41 Truncate to N terms

The solution to second problem is to add a delay to the impulse response, so that all coefficients t0 The left of n=0, can be move on the positive time axis. Move the (N-1)/2 Terms to the right N=41 (N-1)/2 = 20

So, the impulse response with the delay of (N-1)/2 samples is given as,

But… With truncation of impulse response, ripples occur In the pass band and stop band Due to I.R. suddenly becoming zero Going from infinite no. of coefficients to a finite no. Known as Gibb’s effect Can be mitigated by multiplying I.R. by a suitable window function

Window Functions

The filter coefficients can be calculated as n=0,1,2,…..,20 Where, h[0] = h[1] = h[2] = h[3] = h[4] = h[5] = h[6] = h[7] = h[8] = h[9] = h[10] = h[11] = h[12] = h[13] = h[14] = h[15] = h[16] = h[17] = h[18] = h[19] = h[20] = 0.000000 -0.015933 0.010394 0.011006 -0.018921 0.000000 0.021624 -0.014392 -0.015591 0.027521 0.000000 -0.033637 0.023387 0.026728 -0.050455 0.000000 0.075683 -0.062366 -0.093549 0.302731 0.600000

IIR filter Design From Analog Filters By approximation of Derivatives By impulse variance Bilinear transformation

Applications 1 . Noise suppression (a) imaging devices (medical, etc) (b) bio-signals (heart, brain) (c) signals stored on analog media (tapes)

Applications continue.. 2. Enhancement of selected frequency ranges (a) equalizers for audio systems (increasing the bass) (b) Edge enhancement in images

Applications continue.. 3. Simulation/Modeling (a) Simulating communication channels (b) Modeling human auditory system

Applications continue.. 4. Removal or attenuation of selected frequencies (a) Removing the DC component of a signal Removing interferences at a specic frequency, for example those caused by power supplies

Conclusion Digital Filters Have a linear phase response in the band of interest. Can work for low frequency signals Digital filters is not affected by environmental effects (heat), There frequency can be easily adjusted (since it is a program),

Thank you 