If you want the lower priority to be ignored if it occurred whilst the high priority ISR is executing, clear the interrupt flag for that peripheral at the end of the high ISR.
On the 16 series, GIE is automatically cleared and restored during an interrupt so there is no need to touch it.
Hi, i managed to do a low priority interrupt. Now i have one problem which is; can i use goto (or similar instruction set) instead of RETFIE ?? I want to use goto instruction because i want the program to go to the MAIN label and not return to where it was after the ISR is ready.
Thanks.
EDIT: I already tried using the GOTO instruction, but its not working.
So basically the program is in an interrupt routine, when finished it will always return to where it was? there is not way to return to the MAIN label instead?
So basically the program is in an interrupt routine, when finished it will always return to where it was? there is not way to return to the MAIN label instead?