Hi, I'm trying to have more than one interrupt in my code, I have written what I thought to be the correct code, but only the first interrupt works (led1). Here is the code....
setint %00000100,%00001100
setint %00001000,%00001100
main:
high 6
high 7
pause 60000
goto main
interrupt:
led1:
low 6
pause 1000
if pin3 = 1 then goto led1
setint %00001000,%00001100
return
interrupt2:
led2:
low 7
pause 1000
if pin2 = 1 then goto led2
setint %00000100,%00001100
return
Has anyone managed this before?
heers,
Mike
setint %00000100,%00001100
setint %00001000,%00001100
main:
high 6
high 7
pause 60000
goto main
interrupt:
led1:
low 6
pause 1000
if pin3 = 1 then goto led1
setint %00001000,%00001100
return
interrupt2:
led2:
low 7
pause 1000
if pin2 = 1 then goto led2
setint %00000100,%00001100
return
Has anyone managed this before?
heers,
Mike