h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 139

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.4
Interrupts are controlled by the interrupt controller. The sources to start interrupt exception
handling are external interrupt sources (NMI, IRQ7 to IRQ0, KIN15 to KIN0, and WUE7 to
WUE0) and internal interrupt sources from the on-chip peripheral modules. NMI is an interrupt
with the highest priority. For details, refer to section 5, Interrupt Controller.
Interrupt exception handling is conducted as follows:
1. The values in the program counter (PC) and condition code register (CCR) are saved to the
2. A vector address corresponding to the interrupt source is generated, the start address is loaded
4.5
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) and condition code register (CCR) are saved to the
2. 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.3 shows the status of CCR after execution of trap instruction exception handling.
Table 4.3
Legend:
1:
—: Retains value prior to execution
Interrupt Control Mode
0
1
stack.
from the vector table to the PC, and program execution begins from that address.
stack.
from the vector table to the PC, and program execution starts from that address.
Set to 1
Interrupt Exception Handling
Trap Instruction Exception Handling
Status of CCR after Trap Instruction Exception Handling
I
1
1
Rev. 3.00 Mar 21, 2006 page 85 of 788
CCR
Section 4 Exception Handling
UI
1
REJ09B0300-0300

Related parts for h8s-2161b