Timers are often too valuable to use just to blink a LED and adding a PAUSE statement can stuff up other parts of the code. What I do for such time insensitive issues is use a loop counter and the TOGGLE command.
Activity VAR portb.0 ' activity LED
LoopCntr VAR word
MAIN:
LoopCntr = Loopcntr + 1
IF loopcntr//1000 = 0 THEN TOGGLE Activity
your code goes here
goto MAIN
Depending on your system cycle times, you can adjust the divisor to get an appropriate flash rate.
Cheers
Brian
Bookmarks