fastgrandad
New Member
I am using a count gosub routine with a 124mS period in a do - loop program with a number of other sequential gosubs within the loop. This all works fine until I add an elapsed time gosub routine to the loop that uses 'time' to count the number of minutes that the program has been running. A word variable is incremented when time >59 to count seconds, followed by time=0 to start again. 'Time' appears to be running about 18s per minute slow unless I disable the 'count' gosub routine, in which case time is then correct. I assume that 'time' is being reset or delayed by the 'count' function in some way and hope someone can throw some light on the problem. If I set the count period to 1ms, time is correct, or at least very close to it.
Chip is a 14M2 running at 4MHz.
Paul
Chip is a 14M2 running at 4MHz.
Paul