System Register Set - NEC V850/SA1 mPD703015 Preliminary User's Manual

32-/16-bit single-chip microcontrollers
Table of Contents

Advertisement

3.2.2 System register set

System registers control the status of the CPU and hold interrupt information.
No.
System Register Name
0
EIPC
1
EIPSW
2
FEPC
3
FEPSW
4
ECR
5
PSW
6 to 31
Reserved
To read/write these system registers, specify a system register number indicated by the system register load/store
instruction (LDSR or STSR instruction).
(1) Interrupt Source Register (ECR)
After reset: 00000000H
Symbol
31
ECR
Exception code of NMI. (For exception code, refer to Table 5-1.)
FECC
EICC
Exception code of exception/interrupt.
56
CHAPTER 3
Table 3-2. System Register Numbers
Usage
Status saving registers during
interrupt
Status saving registers for NMI
Interrupt source register
Program status word
16
FECC
CPU FUNCTIONS
These registers save the PC and PSW when an
exception or interrupt occurs. Because only one set of
these registers is available, their contents must be
saved when multiple interrupts are enabled.
These registers save PC and PSW when NMI occurs.
If exception, maskable interrupt, or NMI occurs, this
register will contain information referencing the
interrupt source. The high-order 16 bits of this register
are called FECC, to which exception code of NMI is
set. The low-order 16 bits are called EICC, to which
exception code of exception/interrupt is set.
Program status word is collection flags that indicate
program status (instruction execution result) and CPU
status.
15
EICC
Operation
0

Advertisement

Table of Contents
loading

Table of Contents