58
Chapter 3
CPU Function
Preliminary User’s Manual U15839EE1V0UM00
3.2.2 System register set
System registers control the status of the CPU and hold interrupt information.
To read/write these system registers, use the system register load/store instruction (LDSR or STSR
instruction) with a specific system register number indicated below.
Notes: 1. Because this register has only one set, to approve multiple interrupts, it is necessary to save
this register by program.
2. Access is only possible while the DBTRAP instruction is executed.
Caution:
Even if bit 0 of EIPC, FEPC, or CTPC is set to 1 with the LDSR instruction, bit 0 will be
ignored when the program returned by RETI instruction after interrupt servicing
(because bit 0 of the PC is fixed to 0). When setting the value of EIPC, FEPC, or CTPC,
use the even value (bit 0 = 0).
Remark:
O:
Access allowed
×:
Access prohibited
Table 3-2:
System Register Numbers
No.
System Register Name
Operand Specification
LDSR Instruction
STSR Instruction
0
Status saving register during interrupt (EIPC)
Note 1
O
O
1
Status saving register during interrupt (EIPSW)
O
O
2
Status saving register during NMI (FEPC)
O
O
3
Status saving register during NMI (FEPSW)
O
O
4
Interrupt source register (ECR)
×
O
5
Program status word (PSW)
O
O
6 to 15
Reserved number for future function expansion (operations that
access these register numbers cannot be guaranteed).
×
×
16
Status saving register during CALLT execution (CTPC)
O
O
17
Status saving register during CALLT execution (CTPSW)
O
O
18
Status saving register during exception/debug trap (DBPC)
O
Note 2
O
19
Status saving register during exception/debug trap (DBPSW)
O
Note 2
O
20
CALLT base pointer (CTBP)
O
O
21 to 31
Reserved number for future function expansion (operations that
access these register numbers cannot be guaranteed).
×
×
Содержание mPD703128
Страница 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 612: ......