Why does my BS2 "lose time" when using big PAUSE values?
ChrisO
Posts: 10
I am trying to make my BS2 pause for 2 mins between carrying out a repeating servo action. I used two PAUSE 60000 lines, and it seemed to work, but when I timed it with a stopwatch I found out each cycle was getting longer by first about 3-5 seconds.
Does anyone know why this is happening?
Thanks!
Does anyone know why this is happening?
Thanks!
Comments
I currently have a project timing 3600 sec. hours and though I haven't put a clock on it doesn't seem to be that bad. I'll take a look at it to make sure.
my Clock looks like this. Maybe the shorter period reduces the accumulation of error? Additionally I know there are temperature stablity issues with the clock/resonator. Hopefully there is a software fix.
main
high 1
pause 500
low 1
pause 500
increment counter
goto main
There is also the possibility of a real time clock. Pocketwatch B, DS1302 etc.
Post Edited (Philip Gamblin) : 7/8/2005 6:18:35 PM GMT
Ryan
2 to 3 seconds for 2 min drift....if the timing is critical you want an external clock source anyway.
Ryan