Tool/software: Code Composer Studio
Hello Every one,
I am using the launchpad LAUNCHXL28379D for my experimental purpose. I am able to sense the signal through an ADC channel (A, B, and C). successfully and the sensed signal has noise aswell. Therefore, I want to eliminate the noise from the signal by using a moving/running average algorithm to get the DC component of the signal. How to implement that I don't know so far for the particular sensed signal bu theoretical I know as well.
For example, if i want to perform a filter on the last 8 samples, the moving avarage of the signal woulb be: SUM = (x[n] + x[n-1] + x[n-2] + x[n-3]+x[n-4] + x[n-5] + x[n-6] + x[n-7])/8.
Consider I am sensing the signal through the ADCA4 pin.
Can anyone help me out with these issues?
Thanks in advance.
P. Ramesh