Professional Documents
Culture Documents
Processing
Lecture 11- FIR Filter with windowing
IVAN TANRA
Type of filter
a) Finite Impulse Response (FIR) is a filter whose impulse response is a
finite duration. It settles to zero in finite duration. The difference
equation is define as
𝑀 −1 𝑀 −1
𝑦 ( 𝑛 ) = ∑ 𝑏 𝑘 𝑥 (𝑛− 𝑘) 𝐻 ( 𝑧 )= ∑ 𝑏 𝑘 𝑧 − 𝑘
𝑘= 0 𝑘=0
∑ 𝑏𝑖 𝑧 − 𝑖
𝑖 =0
𝐻 ( 𝑧 )=
𝑖=0 𝑗=1 𝑄
∑ 𝑎𝑗 𝑧
− 𝑗
𝑗 =0
An ideal lowpass filter
{
𝜔𝑐
𝑛=𝑛0
h ( 𝑛) = 𝜋
sin 𝜔𝑐 (𝑛 − 𝑛 0)
𝑛 ≠ 𝑛0
(𝑛 − 𝑛0 ) 𝜋
High pass filter
High pass filter is the same as original signal minus low pass filter,
hence the impulse response will be
{
𝜔𝑐
1− 𝑛=𝑛 0
h ( 𝑛) = 𝜋
sin 𝜔 𝑐 (𝑛− 𝑛0 )
− 𝑛 ≠ 𝑛0
(𝑛 − 𝑛 0) 𝜋
Band pass filter
Band pass filter is the same as two low pass filter with different
frequency ( and ) substract each other
{
𝜔𝑐 2 𝜔𝑐 1
− 𝑛=𝑛0
h ( 𝑛) = 𝜋 𝜋
sin 𝜔𝑐 2 (𝑛 − 𝑛 0) − sin 𝜔𝑐 1 (𝑛 − 𝑛0 )
𝑛 ≠ 𝑛0
𝑓 𝑐1 𝑓 𝑐2 (𝑛 − 𝑛 0) 𝜋
Band stop filter
Band pass filter is the same as low pass filter () is added with high pass
filter( )
{
𝜔𝑐 1 𝜔𝑐 2
+1− 𝑛=𝑛0
h ( 𝑛) = 𝜋 𝜋
sin 𝜔𝑐 1 (𝑛 −𝑛 0) − sin 𝜔𝑐 2 (𝑛 − 𝑛0 )
𝑛 ≠ 𝑛0
(𝑛 − 𝑛 0) 𝜋
𝑓 𝑐1 𝑓 𝑐2
Frequency response of low
pass filter
Low pass filter
Blackman Window
Example Low Pass Filter with
windows (M =61)
Rectangular Hamming
Blackman Kaiser
Step to design filter Using
Windows
1. Determine the windows function that you are going to use based on
the allowable attenuation and table below