111
CPU System Functions
Chapter 3
Preliminary User’s Manual U17566EE1V2UM00
(4)
EIPSW, FEPSW, DBPSW, CTPSWPSW saving registers
The PSW saving registers save the contents of the program status word for
different occasions, see
Table 3-4
.
When one of the occasions listed in
Table 3-4
occurs, the current value of the
PSW is saved to the saving registers.
All PSW saving registers are built up as the PSW, with the initial value
0000 0xxx
H
(x = undefined).
Note
When multiple interrupt servicing is enabled, the contents of EIPSW or
FEPSW must be saved by program—because only one PSW saving register
for maskable interrupts and non-maskable interrupts is provided, respectively.
Caution
Bits 31 to 26 of EIPC and bits 31 to 12 and 10 to 8 of EIPSW are reserved for
future function expansion (fixed to 0).When setting the value of EIPC, FEPC, or
CTPC, use even values (bit 0 = 0).
If bit 0 is set to 1, the setting of this bit is ignored. This is because bit 0 of the
program counter is fixed to 0.
Table 3-7
PSW saving registers
Register
Shortcut Saves contents of PSW in case of
Status saving register
during interrupt
EIPSW
•
software exception
•
maskable interrupt
Status saving register
during non-maskable
interrupts
FEPSW
•
non-maskable interrupt
Status saving register
during exception/debug
trap
DBPSW
a
a)
Reading from this register is only enabled between a DBTRAP exception (excep-
tion handler address 0000 0060
H
) and the exception handler terminating DBRET
instruction. DBTRAP exceptions are generated upon ILGOP and ROM Correction
detections (refer to
“Interrupt Controller (INTC)“ on page 187
and
“ROM Correction
Function (ROMC)“ on page 331
).
•
exception trap
•
debug trap
•
debug break
•
during a single-step operation
Status saving register
during CALLT execution
CTPSW
•
execution of CALLT instruction
electronic components distributor