System Register Set - NEC V850ES/F 3-L Series User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

CPU System Functions

3.2.2 System register set

Example
System register
numbers
Table 3-3
regID
System register name
0
Status saving register during interrupt
(stores contents of PC)
1
Status saving register during interrupt
(stores contents of PSW)
2
Status saving register during non-maskable interrupts
(stores contents of PC)
3
Status saving register during non-maskable interrupts
(stores contents of PSW)
4
Interrupt source register
5
Program status word
6 to 15
Reserved (operations that access these register numbers
cannot be guaranteed).
16
Status saving register during CALLT execution
(stores contents of PC)
17
Status saving register during CALLT execution
(stores contents of PSW)
18
Status saving register during exception/debug trap
(stores contents of PC)
19
Status saving register during exception/debug trap
(stores contents of PSW)
20
CALLT base pointer
21 to 31
Reserved (operations that access these register numbers
cannot be guaranteed).
a)
Reading from this register is only enabled between a DBTRAP exception (exception handler address
0000 0060
) and the exception handler terminating DBRET instruction. DBTRAP exceptions are generated
H
upon ILGOP detections (refer to "Interrupt Controller (INTC)" on page 221).
System registers control the status of the CPU and hold interrupt information.
Additionally, the program counter holds the instruction address during program
execution.
To read/write the system registers, use instructions LDSR (load to system
register) or STSR (store contents of system register), respectively, with a
specific system register number (regID) indicated below.
The program counter states an exception. It cannot be accessed via LDSR or
STSR instructions. No regID is allocated to the program counter.
STSR 0, r2
Stores the contents of system register 0 (EIPC) in general purpose register r2.
The table below gives an overview of all system registers and their system
register number (regID). It shows whether a load/store instruction is allowed (
for the register or not (
System register numbers
User's Manual U18743EE1V2UM00
).
Shortcut
EIPC
EIPSW
FEPC
FEPSW
ECR
PSW
CTPC
CTPSW
DBPC
DBPSW
CTBP
Chapter 3
×
Operand specification
LDSR
STSR
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
a
×
×
a
×
×
×
×
139
)

Advertisement

Table of Contents
loading

Table of Contents