Renesas F-ZTAT H8 Series Hardware Manual page 113

8-bit single-chip microcomputer
Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

SP – 4
SP – 3
SP – 2
SP – 1
SP (R7)
Stack area
Prior to start of interrupt
exception handling
Legend:
PC
:
Upper 8 bits of program counter (PC)
H
PC
:
Lower 8 bits of program counter (PC)
L
CCR:
Condition code register
SP:
Stack pointer
PC shows the address of the first instruction to be executed upon
Notes:
return from the interrupt handling routine.
Register contents must always be saved and restored by word access,
starting from an even-numbered address.
* Ignored on return from interrupt.
Figure 3.4 Stack State after Completion of Interrupt Exception Handling
Figure 3.5 shows a typical interrupt sequence where the program area is in the on-chip ROM and
the stack area is in the on-chip RAM.
SP (R7)
SP + 1
SP + 2
SP + 3
SP + 4
After completion of interrupt
PC and CCR
saved to stack
Rev.3.00 Jul. 19, 2007 page 87 of 532
3. Exception Handling
CCR
CCR*
PC
H
PC
L
exception handling
REJ09B0397-0300
Even address

Advertisement

Table of Contents
loading

Table of Contents