This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C123GH6PM: FIR Filter

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

Hi,

I used the CMSIS DSP library arm_fir_f32 function to create a low pass filter to filter 512 samples sampled at 256Hz. This worked perfectly.

Now I have 2 arrays of same size(512). I have used the filter twice one data set is filtered properly while the first few samples of the other array is corrupted. 

ip=&fFFT_Input[0];
op=&Output[0];
arm_fir_instance_f32 S;
arm_fir_init_f32(&S, NUM_TAPS, (float32_t *)&firCoeffs32[0], &firStateF32[0], blockSize);

ip1=&fFFT_Input1[0];
op1=&Output1[0];
arm_fir_instance_f32 T;
arm_fir_init_f32(&T, NUM_TAPS, (float32_t *)&firCoeffs32[0], &firStateF32_2[0], blockSize);

while(1){

if(complete_conv){

for(i=0; i < (numBlocks); i++){
arm_fir_f32(&S, ip + (i*blockSize), op + (i*blockSize), blockSize);
}

for(i=0; i < (numBlocks); i++){
arm_fir_f32(&T, ip1 + (i*blockSize), op1 + (i*blockSize), blockSize);
}

}