Interrupt Handling (ICEPRO Trace)
Interrupts are asynchronus events to the regular program flow. There is no instruction associated with the start of the processor handling an interrupt. However, once the processor has stored the return address to the stack, it will start to execute code from the interrupt vector address. An example is shown below, where an interrupt occurs during the execution of the instruction LDI R16,0x01. When this instruction is completed (1 cycle instruction), it can be observed that the program counter is written to the stack at addresses 0x25F and 0x25E before it starts executing from the interrupt vector (in this case, interrupt vector 0x00007). After the (in this case very simple) interrupt program has completed, execution resumes (in this case from address 0x00012).

See Also