Professional Documents
Culture Documents
INTERRUPTS
INTERRUPTS
• After handling the interrupt by the interrupt routine, the interrupted program
will resume the operation at the instruction where the interrupt took place.
• For this, the interrupted PC address is stored in the stack (in RAM) before going
to the interrupt address, (in ROM) and which will be restored from stack after
the RETI (Return from Interrupt) instruction is executed at the end of the
interrupt subroutine.
THE INTERRUPT ENABLE (IE) SFR
INTERRUPT ENABLE/DISABLE
• A RETI Instruction restores the PC in its place and resets the interrupt logic.
• Any ignored interrupt must persist until they are serviced; else lost.
SOFTWARE GENERATED INTERRUPTS