PDA

View Full Version : Question about Melanie's Olympic Timer



lerameur
- 16th November 2010, 17:17
Hello,

I want to use Melanie's Olympic Timer, to add to my project. I am not familiar with interrupt, so my question is: Would my 1000 line code have an impact with the timer of her clock. Would it be easier to take a timer chip like the DS1307 to count externally? I just need to user a timer as a stopwatch.
thanks
K

Darrel Taylor
- 16th November 2010, 18:30
The Olympic Timer uses ON INTERRUPT. So it's very likely your program will interfere with the timing.

The Elapsed Timer Demo (http://www.picbasic.co.uk/forum/showthread.php?t=190) uses ASM interrupts and may keep better time.
But it may also affect time dependant statements like SEROUT and PAUSE.

A DS1307 will have neither of those problems.