CHAPTER 3 CPU FUNCTIONS
56
3.2.2 System register set
System registers control the status of the CPU and hold interrupt information.
Table 3-2. System Register Numbers
No.
System Register Name
Usage
Operation
0
EIPC
1
EIPSW
Status saving registers during
interrupt
These registers save the PC and PSW when an
exception or interrupt occurs. Because only one set of
these registers is available, their contents must be
saved when multiple interrupts are enabled.
2
FEPC
3
FEPSW
Status saving registers for NMI
These registers save PC and PSW when NMI occurs.
4
ECR
Interrupt source register
If exception, maskable interrupt, or NMI occurs, this
register will contain information referencing the
interrupt source. The high-order 16 bits of this register
are called FECC, to which exception code of NMI is
set. The low-order 16 bits are called EICC, to which
exception code of exception/interrupt is set.
5
PSW
Program status word
Program status word is collection flags that indicate
program status (instruction execution result) and CPU
status.
6 to 31
Reserved
To read/write these system registers, specify a system register number indicated by the system register load/store
instruction (LDSR or STSR instruction).
(1) Interrupt Source Register (ECR)
After reset: 00000000H
Symbol
31
16
15
0
ECR
FECC
EICC
FECC
Exception code of NMI. (For exception code, refer to Table 5-1.)
EICC
Exception code of exception/interrupt.
Содержание V850/SA1 mPD703015
Страница 2: ...2 MEMO ...
Страница 100: ...100 MEMO ...
Страница 144: ...144 MEMO ...
Страница 200: ...200 MEMO ...
Страница 328: ...328 MEMO ...
Страница 356: ...356 MEMO ...
Страница 358: ...358 MEMO ...
Страница 368: ...368 MEMO ...
Страница 374: ...374 MEMO ...
Страница 382: ...382 MEMO ...