Ok gave it a try using the do: until loop and the program is working when I press the start switch the led comes on pauses and then shuts off. My other test did not work once I press the switch and the program started I waited a very short time and held the start switch down to simulate a patient holding down the start switch and the results were that the led stayed on. I have attached my code for your viewing and suggestions.
; Input 3 = Start switch
;Output 2 = LED
;What should happen is when input 3 switch is pressed program should goto flash and run the program
; what should happen while the program is running input 3 should be ingnored
;
Main:
If pin3=1 then flash
goto main
Do
flash:
High 2
pause 5000
low 2
loop until pin3=0
goto main
; Input 3 = Start switch
;Output 2 = LED
;What should happen is when input 3 switch is pressed program should goto flash and run the program
; what should happen while the program is running input 3 should be ingnored
;
Main:
If pin3=1 then flash
goto main
Do
flash:
High 2
pause 5000
low 2
loop until pin3=0
goto main