How to break a long pause

sbscott

Senior Member
I have set up a simple time delay using a 08M. I did not catch the comment "don't use long delays". So I am in a simple loop-how can I get out of it since the 08 does not have a reset.

This is the code:

tt:
high 1
w0=w0+1
pause 60000
goto tt:
 

kevrus

New Member
Depends on what you want to break the pause...an external input or just the pause to be in smaller sections such as:

tt:
for w1=0 to 59999
high 1
pause 1
next w1
w0=w0+1
goto tt:

This increments w0 by 1 each time as your original routine but the time delay is split into 60000 x 1mS segments instead of 1x 60000mS segment
 

SilentScreamer

Senior Member
Do you mean the program is running and you cant stop it?

Disconnect the power, start a download using the Programming Editor, then reconnect the power when the box appears on screen. Try it several times if it doesn't work at first (though it should so long as you wait long enough for the box to appear). This is known as a "Hard Reset".
 
Top