Suggestions to select a filter method to use it for micrcontroller implementation

Status
Not open for further replies.

patan.gova

Full Member level 3
Joined
Dec 19, 2011
Messages
172
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,296
Activity points
2,776
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.

thanks.
 
Last edited:

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…