I am working on moving average code for ADC. I got 8 samples from ADC and as per my knowledge, while moving average: (1+2+.....8)/8 will be first average, (2+3+....9)/8 will be second ...
Is this a correct way of implementation?
If anyone has a sample code, then please provide.
Thank you in advance.