Hi,
You could try this...
FOR i = 1 to 65000
'Do stuff in loop
PAUSE 1 'ms
NEXT i
Also, you could time exactly how long it takes to do the task in your loop, subtract that from 1000us and then use PAUSEUS.
For instance, if it takes 100us to perform the code in the loop, simply use "PAUSEUS 900" for your delay.
To time the loop code, write a quick program that simply performs the loop code endlessly and toggle a pin each time through the loop. You should be able to check it out on the scope and get a rough idea of how many microseconds it takes.
Cheers.
Bookmarks