An interrupt ends when the program executes the RETI (Return from Interrupt) instruction.
When the RETI instruction is executed the following actions are taken by the microcontroller:
• Two bytes are popped off the stack into the Program Counter to restore normal program execution.
• Interrupt status is restored to its pre-interrupt status.
When the RETI instruction is executed the following actions are taken by the microcontroller:
• Two bytes are popped off the stack into the Program Counter to restore normal program execution.
• Interrupt status is restored to its pre-interrupt status.