Thanks for the comment, it should assist others in learning how to implement an ISR in Assembly. Consistent with that objective, I was able to find a Microchip reference (Section 8.1 of Microchip's PICmicro MID-RANGE MCU FAMILY) that states that the “return from interrupt” instruction, RETFIE, exits the interrupt routine as well as sets the GIEbit, which allows any pending interrupt to execute. The same document goes on to state, "When an interrupt is responded to, the GIE bit is cleared to disable any further interrupt, the return address is pushed into the stack and the PC is loaded with 0004h." While it is not explicitly stated, it seems reasonable to assume that this is being done in hardware. The demo code was edited as suggested.




Bookmarks