Here's another reason ...,
You can't turn GIE off. If you do, it jumps to the handler then turns GIE back on.
That will flash the LED via the Interrupt handler, even though no interrupts have occured.Code:LED1 VAR PORTB.0 ON INTERRUPT GOTO MyINT Main: PAUSE 500 INTCON.7 = 0 GOTO Main DISABLE MyINT: TOGGLE LED1 RESUME
<br>
Bookmarks