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
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
As we go on increasing As, depending upon filter, side lobe width decreases with increasing main lobe width.
ReplyDeleteyes but maximum energy is in main lobe
Deletewindow function convert infinite data sequence hd(n) to finite function h(n)
ReplyDelete