Friday, 22 April 2016

EXP 7: DESIGN OF FIR FILTER (Window Function Method)

Design of Linear Phase FIR Filter using Window Function. It was designed for two cases: LPF and BPF using Scilab and C programming. The C program accepted input values and gave output as h(n). The scilab code accepted h(n) and gave magnitude and phase spectrum.
The input specifications were:
For LPF  filter Design :
(1) Pass band Attenuation (Ap) (2) Stop band Attenuation (As )
(3) Pass band Frequency (Fp) in Hz (4) Stop band Frequency (Fs) in Hz
(5) Sampling Frequency in Hz
 For BPF  filter Design :
(1) Pass band Attenuation (Ap) (2) Stop band Attenuation (As )
(3) Pass band Frequency (Fp1, Fp2) in Hz (4) Stop band Frequency (Fs) in Hz
(5) Sampling Frequency in Hz
The phase spectrum showed linear phase. Hence it is a FIR Filter.

https://drive.google.com/open?id=0Bzfvoo_rjoa8VHVVYVpLS3lpdjA

3 comments:

  1. As we go on increasing As, depending upon filter, side lobe width decreases with increasing main lobe width.

    ReplyDelete
    Replies
    1. yes but maximum energy is in main lobe

      Delete
  2. window function convert infinite data sequence hd(n) to finite function h(n)

    ReplyDelete