Eit Priority Levels - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

4
(4) Branching to the EIT vector entry
The CPU branches to the addresses H'0000 0040–H'0000 007C in the user space. This is the last operation
performed in hardware preprocessing.
(5) Jumping from the EIT vector entry to the user-created handler
The CPU executes the BRA instruction written by the user at the addresses H'0000 0040–H'0000 007C of
the EIT vector entry to jump to the start address of the user-created handler. At the beginning of the user-
created EIT handler, first save the BPC and PSW registers and the necessary general-purpose registers to
the stack.
(6) Returning from the EIT handler
At the end of the EIT handler, restore the general-purpose registers and the BPC and PSW registers from
the stack and execute the RTE instruction. When the RTE instruction is executed, hardware postprocessing
is automatically performed. At this time, the CPU restarts from the next word-boundary instruction including
the instruction that generates a trap (see Figure 4.10.1).

4.11 EIT Priority Levels

The table below lists the priority levels of EIT events. When two or more EITs occur simultaneously, the event with
the highest priority is accepted first.
Table 4.11.1 Priority of EIT Events and How Returned from EIT
Priority
EIT Event
1 (Highest) Reset Interrupt (RI)
2
Address Exception (AE)
Reserved Instruction
Exception (RIE)
Floating-Point Exception
(FPE)
Trap (TRAP)
3
System Break Interrupt
(SBI)
4
External Interrupt (EI)
Note that for External Interrupt (EI), the priority levels of interrupt requests from each peripheral I/O are set by the
microcomputer's internal interrupt controller. For details, see Chapter 5, "Interrupt Controller."
Type of Processing
Instruction processing-aborted type
Instruction processing-canceled type
Instruction processing-canceled type
Instruction processing-completed type
Instruction processing-completed type
Instruction processing-completed type
Instruction processing-completed type
4-19
4.10 Trap Processing
Values Set in BPC Register
Undefined
PC of the instruction that
generated AE
PC of the instruction that
generated AE
PC of the instruction that
generated FPE + 4
TRAP instruction + 4
PC of the next instruction
PC of the next instruction
32180 Group User's Manual (Rev.1.0)
EIT

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents