(RTR1:0 = 10)
PACTL = (PACTL | 0x02) & ~0x01;
RTI_JMP = JMP_OP_CODE;
RTI_VEC = rti_isr;
TFLG2 = 0x40;
TMSK2 = TMSK2 | 0x40;
enable();
PORTB = PORTB + 1;
TFLG2 = 0x40;
rti
rather than rts
.
#pragma interrupt_handler rti_isr