Professional Documents
Culture Documents
Chapter 6 Part 1 - Handout
Chapter 6 Part 1 - Handout
Chapter 6 Part 1 - Handout
Chapter 6:
FILTER DESIGN TECHNIQUES
- Design of FIR Filters
- Design of IIR Filters
By
Digital Filters
• Filters: Frequency selective devices.
• It is an LTI system performs a type of discrimination or
filtering among the various frequency components at
its input.
• The nature of this filtering action is determined by the
frequency response characteristics H( 𝑒 𝑗𝜔 ) which in
turn depends on the choice of the system parameters.
N M
y (n) − ak y (n − k ) = bk x(n − k )
𝑀
𝑦(𝑛) = 𝑏𝑘 𝑥(𝑛 − 𝑘)
k =1 k =0
𝑘=0
𝐻(𝑧)
σ𝑀𝑘= 𝑏𝑘 𝑧
−𝑘 𝑀
IIR Filter = 𝑁
1 − σ𝑘=1 𝑎𝑘 𝑧 −𝑘 𝐻(𝑧) = 𝑏𝑘 𝑧 −𝑘
FIR Filter 𝑘=0
1
06-04-2022
2
06-04-2022
p 2 Fp
p = = = 2 FpT radians
FT FT
s 2 Fs
s = = = 2 Fs T radians
FT FT
3
06-04-2022
Then
2 (7 103 ) p 2 Fp
p = = 0.56 p = = = 2 FpT
25 103 radians FT FT
2 (3 103 ) s 2 Fs
s = = 0.24 s = = = 2 Fs T
25 103 radians FT FT
4
06-04-2022
𝐻 𝑒 𝑗𝜔 = ℎ(𝑛)𝑒 −𝑗𝜔𝑛
𝑛=0
5
06-04-2022
Magnitude
Phase
𝛼 - Constant phase delay
◼ From the above Equation, the magnitude of freq.
response is constant. Therefore, the phase function
of frequency response of a filter is linear function of
phase, then the filter is called linear phase filter.
Low Pass
High Pass
6
06-04-2022
Band Pass
Band Stop
Notch Filter or Band Reject Filter
◼ Methods:
◼ Fourier Series method
◼ Window method
7
06-04-2022
8
06-04-2022
Step 4:
Take Z- Transform of the impulse response h(n) to get the
transfer function H(z) of the filter.
Transfer function
𝑁−1
𝐻 𝑧 =𝑍 ℎ 𝑛 = ℎ(𝑛)𝑧 −𝑛
𝑛=0
9
06-04-2022
Rectangular
Bartlett
OR
Triangular
10
06-04-2022
Hanning
Hamming
Blackman
11
06-04-2022
Example 1:
Design a Linear phase FIR Low Pass filter using rectangular window by taking
7 samples of window Sequence and with a cut-off frequency, 𝝎𝒄 = 𝟎. 𝟐𝛑
rad/sample.
Solution :
Choose Symmetric impulse response with symmetry condition h(N-1-n)=h(n)
Desired ideal frequency response Hd(𝑒 𝑗𝜔 ) of FIR low Pass filter is
Step 2:
• Determine the desired impulse response, hd(n) by taking inverse Fourier
transform of the desired frequency response 𝐻𝑑 (𝑒 𝑗𝜔 )
1 +𝜋 1 +𝜔𝑐
ℎ𝑑 𝑛 = ) 𝜔𝑗 𝑒( 𝐻
2𝜋 −𝜋 𝑑
𝑒 𝑗𝜔𝑛 𝑑𝜔 = 𝐻 (𝑒 𝑗𝜔 )
2𝜋 −𝜔𝑐 𝑑
𝑒 𝑗𝜔𝑛 𝑑𝜔
+𝜔𝑐
1 +𝜔𝑐 𝑗𝜔(𝑛−𝛼) 1 𝑒 𝑗𝜔(𝑛−𝛼) 1 𝑒 𝑗𝜔𝑐 (𝑛−𝛼)
= න 𝑒 𝑑𝜔 = = ቈ
2𝜋 −𝜔𝑐 2𝜋 𝑗(𝑛 − 𝛼) −𝜔𝑐
2𝜋 𝑗(𝑛 − 𝛼)
−𝑗𝜔𝑐 (𝑛−𝛼)
𝑒 WKT
−
𝑗(𝑛 − 𝛼)
12
06-04-2022
13
06-04-2022
Symmetry condition
h (N-1-n)=h(n)
That is , h(6-n)=h(n)
14
06-04-2022
Example 2:
Design a Linear phase FIR High Pass filter using hamming window by taking 7 samples
of window Sequence and with a cut-off frequency, 𝝎𝒄 = 𝟎. 𝟖𝛑 rad/sample.
Solution :
Choose Symmetric impulse response with symmetry condition h(N-1-n)=h(n)
Desired ideal frequency response Hd(𝑒 𝑗𝜔 ) of FIR High Pass filter is
Step 2:
• Determine the desired impulse response, hd(n) by taking inverse Fourier
transform of the desired frequency response 𝐻𝑑 (𝑒 𝑗𝜔 )
15
06-04-2022
WKT
16
06-04-2022
Symmetry condition
h (N-1-n)=h(n)
That is , h(6-n)=h(n)
17
06-04-2022
18
06-04-2022
Example 3:
Design a Linear phase FIR Band Pass filter using hanning window by taking 7 samples
of window Sequence and with a frequency range𝟎. 𝟒𝛑 𝒕𝒐 𝟎. 𝟔𝟓𝛑 rad/sample.
Solution :
Choose Symmetric impulse response with symmetry condition h(N-1-n)=h(n)
Desired ideal frequency response Hd(𝑒 𝑗𝜔 ) of FIR High Pass filter is
Step 2:
• Determine the desired impulse response, hd(n) by taking inverse Fourier
transform of the desired frequency response 𝐻𝑑 (𝑒 𝑗𝜔 )
WKT
19
06-04-2022
20
06-04-2022
Calculate Ɵ by keeping
calculator in radian
mode
Symmetry condition
h (N-1-n)=h(n)
That is , h(6-n)=h(n)
21
06-04-2022
Excercise:
Design a Linear phase FIR Band stop filter using Rectangular window by taking 7
samples of window Sequence and with a frequency range 𝟎. 𝟒𝛑 𝒕𝒐 𝟎. 𝟔𝟓𝛑 rad/sample.
Answer:
22
06-04-2022
23
06-04-2022
24