Hi, I'm making an ampere-hour meter to monitor battery consumption on an electric boat motor. I have the shuntderived mV measurement and A/D part sorted, now I just need to integrate amps with time. I have it working in a simple loop with a constant using 'pause' set to about 490mS, and it ticks over roughly every second and takes a reading. Is there a better way using a built in timer or perhaps an external 1 sec tick derived from a 32.768 xtal driving an interrupt, if you could point me to an example perhaps?