Thanks for the help
It seems I’m barking up the wrong tree then as I don't want to use an external clock source, and i can’t interrupt the program or pause it.
Is it possible simply to increment a variable every execution cycle?
i.e.
tick var byte
tick_flag var byte
start:
If tick > 99 then
Tick = 0
tick_flag = 1
Else
tick = tick + 1
End if
Goto start ‘ loop
But how can I approximate this to a time scale I can use. The datasheet state the execution cycle time as 1uS , forgive my ignorance but does that mean the above code will increment every 1uS ?
Bookmarks