Re: Toggle program branch ussing interrupot by button?
with PBP "on interrupt" it looks this figure is covered in the manual @ $ 5.66 ( RESUME xxx ) : you can choose the "return" adress xxx as you want ... so LOOP2 always completes.
- also note if you do not clear the interrupt flag ( With a DEFINE ) you automatically re-enter the ISR when completed !
- For DT interrupts ... I didn't check if the resume address can be freely chosen ... 
- last idea is simply to overwrite the interrupt return address on the stack ... ( with asm "push" and "pop" macros see midrange manual, interrupts chapter ), depending on the button state.
Alain
Last edited by Acetronics2; - 24th August 2013 at 09:38.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks