h8s-2628 Renesas Electronics Corporation., h8s-2628 Datasheet - Page 102

no-image

h8s-2628

Manufacturer Part Number
h8s-2628
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 4 Exception Handling
4.6
Trap instruction exception handling starts when a TRAPA instruction is executed. Trap instruction
exception handling can be executed at all times in the program execution state.
Trap instruction exception handling is conducted as follows:
1. The values in the program counter (PC), condition code register (CCR), and extended control
2. The interrupt mask bit is updated and the T bit is cleared to 0.
3. A vector address corresponding to the interrupt source is generated, the start address is loaded
The TRAPA instruction fetches a start address from a vector table entry corresponding to a vector
number from 0 to 3, as specified in the instruction code.
Table 4.4 shows the statuses of CCR and EXR after execution of trap instruction exception
handling.
Table 4.4
Legend:
1:
0:
—: Retains value prior to execution
Rev. 3.00 Oct 04, 2005 page 62 of 598
REJ09B0155-0300
register (EXR) are saved to the stack.
from the vector table to the PC, and program execution starts from that address.
Interrupt Control Mode
Set to 1
Cleared to 0
Trap Instruction
Statuses of CCR and EXR after Trap Instruction Exception Handling
0
2
1
1
I
CCR
UI
I2 to I0
EXR
T
0

Related parts for h8s-2628