IMHO, the most accurate solution is to get TIMER overflow interrupt counting the internal clock ticks. adjust the prescaller and pre-load the timer registers TMR1L and TMR1H. once you get interrupt re-load TMR1L, TMR1H.
a other way to do it simple too... can you acces to the ac-line source and divide the frequency by using internal counter to get a accurate 1 second?? I mean counting the ac-line pulses (let's say 60hz) and once you get 60 or a counter overflow interrupt do your stuff.
maybe confusing but that's food for brain cells...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks