As a newbie to PICAXE I am trying to come to terms with the SETINT command before I use it in a project.
On page 182 of the PICAXE manual an example is given:
main:
low 1
Pause 2000
goto main
interrupt:
high 1
if pin 7 = 1 then interupt
pause 2000
setint %10000000, %10000000
return
I cannot see how it ever exits from the first two lines of the interrupt routine. Seems to me to be in a continuous loop.
Shouldn't there be a SETINT OFF command in there before it continues on to the pause 2000 and subsequent lines?
I am sure there is an easy explanation to this but I cannot see it.
On page 182 of the PICAXE manual an example is given:
main:
low 1
Pause 2000
goto main
interrupt:
high 1
if pin 7 = 1 then interupt
pause 2000
setint %10000000, %10000000
return
I cannot see how it ever exits from the first two lines of the interrupt routine. Seems to me to be in a continuous loop.
Shouldn't there be a SETINT OFF command in there before it continues on to the pause 2000 and subsequent lines?
I am sure there is an easy explanation to this but I cannot see it.