Tutorial No.10
Grade: AA / AB / BB / BC / CC / CD /DD
______________________________________________________________________
Aim and Objective of the Experiment:
1) To Design of FIR filter using different window.
______________________________________________________________________
After successful completion of the course student will able to
CO2:- Design digital FIR filters
______________________________________________________________________
Theory:
The window design method does not produce filters that are optimal (in the sense of
meeting the design specifications in the most computationally-efficient fashion), but the
method is easy to understand and does produce filters that are reasonably good. Of all
the hand-design methods, the window method is the most popular and effective.
In brief, in the window method we develop a causal linear-phase FIR filter by
multipying an ideal filter that has an infinite-duration impulse response (IIR) by a
finite-duration window function
where h[n]is the practical FIR filter, hd[n] is the ideal IIR prototype filter, and w[n] is
the finite-duration window function. An important consequence of this operation is
that the DTFTs of hd[n]and w[n] undergo circular convolution in frequency:
1
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
ALGORITHM:
2
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
3
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
FIR FILTER DESIGN USING HANNING WINDOW
CODE:
4
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
OUTPUT:
5
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-
6
Department of Electronics Engineering
7
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
8
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
OUTPUT:
9
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
2. Design low pass, high pass, band pass using Hanning , Hamming window
ANS:
0,otherwise
0, otherwise
10
Department of Electronics Engineering
DSP/Jan May2018
K.J.Somaiya College of Engineering, Mumbai-77
6.Compute FIR filter coefficients according to the obtained window function and ideal
filter coefficients.
7.If the resulting filter has too wide or too narrow transition region, it is necessary to change
the filter order by increasing or decreasing it according to needs, and after that steps 4, 5 and
6 are iterated as many times as needed.
11
Department of Electronics Engineering
DSP/Jan May2018