Fir-Filter-Design (1) - 1-14
Fir-Filter-Design (1) - 1-14
−π −ωc 0 ωc π ω
The impulse response is given by
Figure 1: Ideal low pass filter
Zωc ( ωc
1 π
n=0
h(n) = H(ω)e jωn dω = ωc sin(ωc n)
2π π ωc n
n 6= 0
−ωc
Paley-Wiener Theorem:
If h(n) has finite energy and h(n) = 0 for n < 0
then
Zπ
| ln |H(ω)||dω < ∞ Figure 2: Unit sample response
−π
H(ω) can be zero at some frequencies. but it cannot be zero over any finite of
frequencies, since the integral then becomes infinite.
H(ω) cannot be exactly zero over any band of frequencies. (Except in the trivial case where h[n]
= 0.) Furthermore, |H(ω)| cannot be flat (constant) over any finite band.
FIR Filter Design Introduction
Ideal filters are noncausal, hence physically unrealizable for real time signal processing
applications.
Causality implies that the frequency response characteristic H(ω) of the filter cannot be
zero, except at finite set of points in the frequency range. And also H(ω) cannot have an
infinitely sharp cutoff from passband to stopband, that is H(ω) cannot drop from unity to
zero abruptly.
It is not necessary to insist that the magnitude be constant in the entire passband of the
filter. A small amount of ripple in the passband is usually tolerable.
The filter response may not be zero in the stopband, it may have small nonzero value or
ripple.
The transition of the frequency response from passband to stopband defines transition
band.
The passband is usually called bandwidth of the filter.
The width of transition band is ωs − ωp where ωp defines passband edge frequency and ωs
defines stopband edge frequency.
The magnitude of passband ripple is varies between the limits 1 ± δ1 where δ1 is the ripple
in the passband
The ripple in the stopand of the filter is denoted as δ2
FIR Filter Design FIR Filter Design
An FIR system does not have feedback. Hence y (n − k) term is absent in the system. FIR
output is expressed as
M
X
y (n) = bk x(n − k)
k=0
Linear phase is a property of a filter, where the phase response of the filter is a linear
function of frequency. The result is that all frequency components of the input signal are
shifted in time (usually delayed) by the same constant amount, which is referred to as the
phase delay. And consequently, there is no phase distortion due to the time delay of
frequencies relative to one another.
Linear-phase filters have a symmetric impulse response.
The FIR filter has linear phase if its unit sample response satisfies the following condition:
h(n) = h(M − 1 − n) n = 0, 1, 2, . . . , N − 1
M−1
X
H(z) = h(n)z −n
n=0
FIR Filter Design Symmetric and Antisymmetric FIR Filters
-2 -1 0 1 2 3 4
-2 -1 0 1 2 3 4
0 1 2 3 4 5 6 7 8 n 0 1 2 3 4 5 6 7 8 n
-2 -1 0 1 2 3 4
0 1 2 3 4 5 6 7 8 n 0 1 2 3 4 5 6 7 8 n
Center of Symmetry
Center of Symmetry
-2 -1 0 1 2 3 4
-2 -1 0 1 2 3 4
Symmetric impulse response with M=odd Then
h(n) = h(M − 1 − n) and (z = e jω )
(M−3)/2 0 1 2 3 4 5 6 7 8 n
M −1 M−1 X h i
H(z) = h z 2 + h(n) z −n + z −(M−1−n)
2 n=0 Center of Symmetry
-2 -1 0 1 2 3 4
-2 -1 0 1 2 3 4
M−1 M−1 M−1 M−1
e −jωn = e −jωn e jω( 2
)
e −jω( 2
)
= e jω( 2
−n)
.e −jω( 2
)
M−1
−jω M−1 jω −n −jω M−1 −n
e −jωn + e −jω(M−1−n) = e 2 e 2 +e 2 Center of Symmetry
−jω M−1 M −1
= e 2 2cosω −n
2
FIR Filter Design Symmetric and Antisymmetric FIR Filters
M−3
2
M − 1 −jω( M−1 ) X
H(e jω
) = h( )e 2 + h(n)[e −jωn + e −jω(M−1−n) ]
2 n=0
M−3
2
M −1 −jω M−1 X M −1
−jω M−1
= h e 2 + h(n)e −n2 2cosω
2 n=0
2
M−3
2
−jω M−1 M − 1 X M − 1
= e 2
h +2 h(n)cos ω −n
2 n=0
2
M−3
2
M −1 X M −1
|H(ω)| = h +2 h(n)cos ω −n
2 n=0
2
−ω M−1 for |H(ω)| > 0
2
∠H(ω) =
−ω M−1 + π for |H(ω)| < 0
2
FIR Filter Design Symmetric and Antisymmetric FIR Filters
-2 -1 0 1 2 3 4
-2 -1 0 1 2 3 4
H(ω) = |H(ω)|e j∠H(ω)
M −1
2 0 1 2 3 4 5
6 7 8 n 0 1 2 3 4 5 6 7 8 n
X M −1
|H(ω)| = 2 h(n)cos ω −n
n=0
2
Center of Symmetry Center of Symmetry
−ω M−1 for |H(ω)| > 0
Antisymmetry: h(n)=-h(M-1-n) Odd M Antisymmetry: h(n)=-h(M-1-n) Even M
2
∠H(ω) = h[n] h[n]
−ω M−1 + π for |H(ω)| < 0
2
-2 -1 0 1 2 3 4
-2 -1 0 1 2 3 4
0 1 2 3 4 5 6 7 8 n 0 1 2 3 4 5 6 7 8 n
Center of Symmetry
Center of Symmetry