How do I average the values received from the function generator
I'm using microcontroller 68HC11 and I would like to average the values received from it.
Do I store it into array 1st and then loop it? How?
For example
function gen might output frequency,
1.23hz
2.13hz
1.54hz
3.53hz
1.85hz
1.81hz
and so on so forth..
I need to average it over the previous 5 seconds.