Datasheet

Section 3 Exception Handling
Rev. 1.50 Sep. 18, 2007 Page 60 of 584
REJ09B0240-0150
PC and CCR
saved to stack
SP (ER7)
SP – 1
SP – 2
SP – 3
SP – 4
Stack area
SP + 4
SP + 3
SP + 2
SP + 1
SP (ER7)
Even address
Prior to start of interrupt
exception handling
After completion of interrupt
exception handling
[Legend]
PCE:
PCH:
PCL:
CCR:
SP:
Bits 23 to 16 of program counter (PC)
Bits 15 to 8 of program counter (PC)
Bits 7 to 0 of program counter (PC)
Condition code register
Stack pointer
Notes:
CCR
PCE
PCH
PCL
1.
2.
PC shows the address of the first instruction to be executed upon return from the interrupt
handling routine.
Register contents must always be saved and restored by word length, starting from
an even-numbered address.
Figure 3.3 Stack Status after Exception Handling