upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 64

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
3.2.2 System register set
System registers control the status of the CPU and hold interrupt information.
Read from and write to system registers are performed by setting the system register numbers shown
below with the system register load/store instructions (LDSR, STSR instructions).
Notes: 1. Since only one set of these registers is available, the program must save the contents of
Caution:
Remark:
64
Register
21 to 31
Number
6 to 15
16
17
18
19
20
0
1
2
3
4
5
2. Since only one set of these registers is available, the program must save the contents of
3. These registers can be accessed only when the DBTRAP instruction is executed.
these registers when multiple interrupt servicing is permitted.
these registers when CALLT instructions nesting are used.
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).
√: Can be accessed
×: Access prohibited
Interrupt status saving register (EIPC)
Interrupt status saving register (EIPSW)
NMI status saving register (FEPC)
NMI status saving register (FEPSW)
Interrupt source register (ECR)
Program status word (PSW)
Reserved for future function expansion (operation is not guaranteed if
these registers are accessed)
CALLT execution status saving register (CTPC)
CALLT execution status saving register (CTPSW)
Exception/debug trap status saving register (DBPC)
Exception/debug trap status saving register (DBPSW)
CALLT base pointer (CTBP)
Reserved for future function expansion (operation is not guaranteed if
these registers are accessed)
Table 3-2: System Register Numbers
System Register Name
User’s Manual U16702EE3V2UD00
Chapter 3 CPU Function
Instruction
Operand Specification
LDSR
Note 1
Note 1
Note 2
Note 2
Note 3
Note 3
×
×
×
Instruction
STSR
×
×

Related parts for upd70f3402