Suppose I am sampling at 2ms intervels so that in 20ms (Period of my
50Hz AC) I get 10 samples to average.
I can do it in two ways. Either I will take reading of 1 channel continuously for 20ms and then move on to next channel sample it 10 times of 2ms gap. So all the channels I read. Then I have other option. read channel 0 and load a ring buffer, next
2ms read channel 1 and load its buffer and do the same for all 12 channles and after that incriment the buffer index and load all channle buffers in the same way. After 12 cycles I can average to get a more widely placed average(??).
Which would be the logical method?
What I understand is if I use first method I can filter out 50Hz noise, but if I use second method it is not possible as channle samples are not within period and requires more RAM. Right?
Thanks
Serpent