Filter Intro
Filter Intro
1
Need for Filters
• Most of the signals we deal with in real life get corrupted
in some way or another by some unwanted signals.
3
Signal separation
• Signal separation is needed when a signal has been
contaminated with interference, noise, or other signals.
5
• Based
Filter Classification
on the transfer function (It depends on
– the length
Finite of its impulse response
impulse response (FIR) transfer
– function
Infinite
function impulse response (IIR) transfer
• For digital
selective transferresponses,
frequency functions one
withclassification
frequency-
is based
|H(ω)| oron
thethe
formshape of phase
of the the magnitude
function function
θ(ω)
6
Ideal Filter
•An ideal filter is a digital filter designed to pass signal
components of certain frequencies without distortion,
which therefore has a frequency response equal to 1 at
these frequencies, and has a frequency response equal to
0 at all other frequencies
H e j 1
0
0
8
Ideal filter – High pass filter
• High-pass filters are designed to pass high frequencies,
from a certain cut off frequency to, and to block low
frequencies
Ideal magnitude frequency response
H e j
1
0
0
9
Ideal filter – Band pass filter
• Band-Pass Filters: Band-pass filters are designed to pass a
certain frequency range, which does not include zero, and
to block other frequencies
H e j 1
0
1 2
10
Ideal filter – Band stop filter
• Band-Stop Filters: Band-stop filters are designed to block
a certain frequency range, which does not include zero,
and to pass other frequencies
Ideal magnitude frequency response
H e j 1
0
1 2
11
Multi Band filter
• This type of filters generalizes the previous four types of
filters in that it allows for different gains or attenuations in
different frequency bands
H e j 1
0
1 2 3 4 5 6
12
Based on phase response
The phase response is the relationship between the
phase of a sinusoidal input and the output signal passing
through the system, such as an amplifier or a filter
• Phase delay: a measure of the time delay of the phase
• Group delay: First derivative of phase delay
• Input: j t ( )
x(t ) e T
• Output: y (t ) e jt H ( j )
d ( )
Tg
e jt H ( j ) e j ( ) d
13
Based on phase response
– Zero phase
One way to avoid any phase distortion is to make sure the frequency response
of the filter does not delay any of the spectral components. Such a transfer
function is said to have a zero – phase characteristic.
– Linear phase
For a causal transfer function with a nonzero phase response, the phase
distortion can be avoided by ensuring that the transfer function has (preferably)
a unity magnitude and a linear-phase characteristic in the frequency band of
interest
– Generalized linear phase
As long as the system response does not change signs for different values of ω,
it can be written as a linear phase transfer function. Therefore, such systems are
said to have generalized linear phase
– Non-linear phase
• Phase response of filter with non linear phase or non constant group delay
14
Filters are further classified as Analog and Digital
filter
15
• Placing a digital filter in an analog signal chain would
require the analog signal to be converted to a digital
signal before the digital filtering could be applied
and, with any conversion, there are trade-offs in
signal integrity.
16
Specifications Analog Filter Digital Filter
embedded in a chip that
resistors, capacitors, inductors, operates on digital
Components and op amps signals, such as an MCU,
SoC, processor, or DSP.
Programmable
coefficients No Yes
Additive noise It adds component based thermal It adds digital noise due
introduction noise in the bands to quantization process
17
Analog Filter Specifications
18
• In the passband defined by 0 ≤ Ω ≤ Ωp
1 − δp ≤ |Ha(jΩ)| ≤ 1 + δp, for |Ω| ≤ Ωp
20