Presentation 10
Presentation 10
Following are the steps to design linear phase FIR filters Using Windowing Method.
III. Compute the desired Impulse Response hd (n) using particular Window Eg:
b_rect1=fir1(order, Wc , 'high', boxcar(31));
(Matlab function for Generating high pass filter coefficients with order equal to 30, cut-off frequency
400 Hz with Rectangular window. Parameters within the functions can be changed to obtain coefficients
of different types of filter)
IV. Convolve input sequence with truncated Impulse Response x (n)*h (n)
Matlab program for generating filter coefficients of high pass filter with cut off frequency of 400, 800 and
1200 with order equal to 30 and using different windows like rectangular, triangular and Kaiser
// C program to implement low pass, high pass and band pass filter with order 30 and rectangular window
// For low pass and high pass cut off is 2 KHz and for band pass 3-10KHz
#include "L138_LCDK_aic3106_init.h"
#define N 31 //number of coefficients
L138_initialise_intr(FS_48000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT);
while(1);
} // end of main()
PROCEDURE: