What happens when an interrupt ends?
An interrupt ends when your program executes the RETI (Return from Interrupt) instruction.
When the RETI instruction is executed the following actions are taken by the microcontroller :-
1. Two bytes are popped off the stack into the Program Counter to restore normal program execution.
2. Interrupt status is restored to its pre-interrupt status.
Comments
Post a Comment