CHAPTER 3 CPU FUNCTION
Preliminary User’s Manual U15905EJ1V0UD
63
3.2.2
System register set
The system registers control the status of the CPU and hold interrupt information.
These registers can be read or written by using system register load/store instructions (LDSR and STSR), using
the system register numbers listed below.
Table 3-2. System Register Numbers
Operand Specification
Register
Number
System Register Name
LDSR instruction STSR instruction
0
Interrupt status saving register (EIPC)
Note 1
√
√
1
Interrupt status saving register (EIPSW)
√
√
2
NMI status saving register (FEPC)
√
√
3
NMI status saving register (FEPSW)
√
√
4
Interrupt source register (ECR)
×
√
5
Program status word (PSW)
√
√
6 to 15
Reserved for future function expansion (operation is not guaranteed if these
registers are accessed)
×
×
16
CALLT execution status saving register (CTPC)
√
√
17
CALLT execution status saving register (CTPSW)
√
√
18
Exception/debug trap status saving register (DBPC)
√
Note 2
√
19
Exception/debug trap status saving register (DBPSW)
√
Note 2
√
20
CALLT base pointer (CTBP)
√
√
21 to 31
Reserved for future function expansion (operation is not guaranteed if these
registers are accessed)
×
×
Notes 1.
Because only one set of this register is available, the contents of this register must be saved by program
if multiple interrupts are enabled.
2.
These registers can be accessed only when the DBTRAP instruction is executed.
Caution
Even if EIPC or FEPC, or bit 0 of CTPC is set to 1 by the LDSR instruction, bit 0 is ignored when
execution is returned to the main routine by the RETI instruction after interrupt servicing (this is
because bit 0 of the PC is fixed to 0). Set an even value to EIPC, FEPC, and CTPC (bit 0 = 0).
Remark
√
: Can be accessed
×
: Access prohibited
Содержание V850ES/SA2 UPD703201
Страница 2: ...Preliminary User s Manual U15905EJ1V0UD 2 MEMO ...
Страница 284: ... 4 6 7 6 7 8 9 9 6 Note 1 Note 2 0 0 9 9 6 1 1 0 1 9 0 0 0 6 7 0 0 0 0 0 0 0 1 1 1 0 0 0 0 3 1 6 7 6 7 ...
Страница 285: ... 6 7 ...
Страница 516: ...Preliminary User s Manual U15905EJ1V0UD 516 MEMO ...