Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

slaa357 filter question

$
0
0

I am not very clear about how FIR filter works.

My questions is after I generated the assembly code and include it in the main.c.

How many inputs do I feed in once to get a filtered output?

For example, my filter is 7th order. (Slaa357 will generate 8 coefficients and have input_delay0 to input_delay7.)

The function name is fir_filter.

When I declare the function , should I just do "extern fir_filter(int)" ? 

That means I just feed in one input , right?

Or if I've already assigned proper values to input_delay0 to input_delay7, the function will generated a filtered result of input_delay0 to output.

If I want to have a second filtered input ( originally input_delay1) , I need to add a new value to input_delay7 and run the code again(feed in input_delay0) because in the assembly code, the last several steps is to shift inputs to one left.

Just want to confirm if I am correct or not.

Thank you!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>