I am using F28069M launchpad .I has multiple control loops. In one of them, I need to get the get the average of a signal with 100Hz ripples. I will average the last N samples of the signal in each cycle. I need the code that is efficient and N is as high as posible. How do Igo about it? Do I use FIR filter code or is there some more efficient method?