Digital Signal Processing Reference
In-Depth Information
j = 0;
for (i = 1; i < (N-1); i++) //bit reversal for
resequencing data
{
k = N/2;
while (k <= j)
{
j = j - k;
k = k/2;
}
j = j + k;
if (i<j)
{
temp1.real = (Y[j]).real;
temp1.imag = (Y[j]).imag;
(Y[j]).real = (Y[i]).real;
(Y[j]).imag = (Y[i]).imag;
(Y[i]).real = temp1.real;
(Y[i]).imag = temp1.imag;
}
}
return;
}
E.6.3
Digital Filtering Applications Using the 'C6711 DSK
Digital filtering with FIR filter
//Fir.c FIR filter. Include coefficient file with length N
#include “bs2700.cof” //coefficient file BS @ 2700Hz
int yn = 0; //initialize filter's output
short dly[N]; //delay samples
interrupt void c_int11() //ISR
{
short i;
 
Search WWH ::




Custom Search