Figure 3-4: Nmi Status Saving Registers (Fepc, Fepsw); Figure 3-5: Interrupt Source Register (Ecr) - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

(2)
NMI status saving registers (FEPC, FEPSW)
There are two NMI status saving registers, FEPC and FEPSW.
Upon occurrence of a non-maskable interrupt (NMI), the content of the program counter (PC) is
saved to FEPC and the content of the program status word (PSW) is saved to FEPSW.
The address of the next instruction following the instruction executed when a non-maskable
interrupt occurs is saved to FEPC, except for the DIVH instruction.
Bits 31 to 26 of FEPC and bits 31 to 8 of FEPSW are reserved (fixed to 0) for future function
expansion.

Figure 3-4: NMI Status Saving Registers (FEPC, FEPSW)

31
FEPC
0 0 0 0 0 0
31
FEPSW 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The values of FEPC and FEPSW are restored to PC and PSW during execution of a RETI
instruction.
(3)
Exception cause register (ECR)
Upon occurrence of an interrupt or an exception, the Exception Cause Register (ECR) holds the
source of the interrupt or the exception. The value held by ECR is an exception code, coded for
each interrupt source. This register is a read-only register, and thus data cannot be written to it
using the LDSR instruction.
31
ECR
Bit position
Bit name
31 to 16
FECC
15 to 0
EICC
The list of exception codes is tabulated in Table 7-1, "Interrupt/Exception Source List," on
page 219.
90
Chapter 3 CPU Functions
26 25

Figure 3-5: Interrupt Source Register (ECR)

FECC
Non-maskable interrupt (NMI) exception code
Exception, maskable interrupt exception code
User's Manual U16580EE3V1UD00
(PC contents)
8 7
16 15
EICC
Description
0
After reset
0xxxxxxxH
(x: Undefined)
0
After reset
(PSW contents)
000000xxH
(x: Undefined)
0
After reset
00000000H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents