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
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),