Using a FIR_Filter off-line

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

i would like to off-line-filter a sampled array using a FIR-filter, for this i worte a simple code:

   

Filter_1_Start();
    // Enable the interrupt register bit to poll
    // Value 1 for Channel A, Value 2 for Channel B
    Filter_1_INT_CTRL_REG |= (1 << Filter_1_CHANNEL_A);

   

for(n=0; n < N_s; n++)
            {
                Filter_1_Write16(Filter_1_CHANNEL_A, ADC_res);
                while (Filter_1_IsInterruptChannelA() == 0) ;
                ADC_FIR = Filter_1_Read16(Filter_1_CHANNEL_A);
            }

   

 

   

But what i've got is a zero-array ADC_FIR = 0

   

anyone any idea why?

   

 

   

thanks in advance

   

Hosam

   

Ps. i attached the Project, see below

   

the problem is a task in a bigger project, i hoppe, the description is clear enough

0 Likes
3 Replies