My application requires that I keep track of time between events. I detect the events from reading an external signal with the ADC10 and an algorithm.
I'd like to keep track of time accurate up to 10ths of a second, possible 100ths if needed.
Right now I've got timer A interrupting roughly 10 times a second. I increment a variable each time this occurs and reset it when I detect an event has occurred. While I feel this does an OK job, I feel I should make it more accurate due to drift in the timer interrupt with temperature change, etc.
Is there a way I can do this with software? It is my understanding that many people will solder on an external watch crystal, but I'm wondering if there are other things I could explore.
Thanks!