Tissy,
How about a button just for abort purposes? Say PORTC.1
Or maybe a 3 second pause after seeing PORTC.0 high during abort, allowing 3 seconds to get off the button, i.e.
If PORTC.0 = 1 then
pause(3000)
goto main code
end if
I am curious to see other solutions also!!!
William
Also after reading more of your orginal post and seeing that you need to time by seconds, would this be more of what you needed:
Low PortB.1
Red VAR PORTB.1
MinuteDelay VAR BYTE
SecondDelay VAR BYTE
Main Code:
MinuteDelay = 2 '1 To 60
SecondDelay = 0 '1 To 60
If PORTC.0 = 1 Then Goto Timer
Goto Main Code
Timer:
If MinuteDelay > 0 then
For Minutes = 1 to MinuteDelay
For Seconds = 1 to 60
if PORTC.0 = 1 Then goto main code
Pause(1000)
Next Seconds
Next Minutes
EndIF
If SecondDelay > 0 then
For Seconds = 1 to SecondsDelay
if PORTC.0 = 1 Then goto main code
pause(1000)
Next Seconds
EndIF
For loop = 1 to 10
if PORTC.0 = 1 Then goto main code
HIGH red
pause(125)
LOW Red
pause(250)
Next loop
Goto Main Code
Bookmarks