Hello,
I am planning to implement a lowpass fitler of fc=2.6 Hz with a sampling rate of 100Hz on microcontroller(16-bit) using the filter coefficients generated from Matlab.
But I am confused of which filter method to use FIR or the IIR method to generate the fitler coefficients from Matlab designed filter.
Can someone explain me what is the best one to use for my requirement and what will be the difference in using them on microcontroller.I mean will there be any difference in the filter response at the micrcontroller.
You can test FIR versus IIR implementation in Matlab. To get the same behaviour as in the microcontroller, you'll use a fixed-point simulation.
You'll find out that for the given fs and fc values, a FIR implementation doesn't produce a reasonable frequency response below 100, better 200 taps, which gives a strong bias towards IIR, I think.