dear all,
I have some problem regarding using an interrupt. When an external interrupt occurs, I want the program counter to jump to the specific label instead of continue from the code that interrupt occured. Any suggestion?
I wrote this in pic basic but it does not seem to be correct:
disable
isr:
if (mode<=maxmode) then
mode=mode+1
intcon.1=0
pause 50
goto main
endif
enable
the code shows that whenever interrupt occur, after operation the program should jump to main instead of continue the code.
thanks in advance :>
Bookmarks