CHAPTER 5 INTERRUPT/EXCEPTION PROCESSING FUNCTION
User’s Manual U13850EJ6V0UD
165
5.3.5 In-service priority register (ISPR)
This register holds the priority level of the maskable interrupt currently acknowledged. When an interrupt request
is acknowledged, the bit of this register corresponding to the priority level of that interrupt is set to 1 and remains set
while the interrupt is serviced.
When the RETI instruction is executed, the bit corresponding to the interrupt request having the highest priority is
automatically reset to 0 by hardware. However, it is not reset when execution is returned from non-maskable
processing or exception processing.
This register is read-only in 8-bit or 1-bit units.
Caution
Read the ISPR register with interrupts disabled. When the ISPR register is read with interrupts
enabled, a normal value may not be read if the interrupt acknowledgment timing and the bit read
timing conflict.
After reset: 00H
R
Address: FFFFF166H
Symbol
<7>
<6>
<5>
<4>
<3>
<2>
<1>
<0>
ISPR
ISPR7
ISPR6
ISPR5
ISPR4
ISPR3
ISPR2
ISPR1
ISPR0
ISPRn
Indicates priority of interrupt currently acknowledged
0
Interrupt request with priority n not acknowledged
1
Interrupt request with priority n acknowledged
Remark
n: 0 to 7 (priority level)
5.3.6 ID flag
The interrupt disable status flag (ID) of the PSW controls the enabling and disabling of maskable interrupt
requests. As a status flag, it also displays the current maskable interrupt acknowledgment status.
After reset: 00000020H
Symbol
31
8
7
6
5
4
3
2
1
0
PSW
0
NP EP
ID
SAT CY OV
S
Z
ID
Specifies maskable interrupt servicing
Note
0
Maskable interrupt acknowledgment enabled
1
Maskable interrupt acknowledgment disabled (pending)
Note
Interrupt disable flag (ID) function
It is set to 1 by the DI instruction and reset to 0 by the EI instruction. Its value is also modified by the RETI
instruction or LDSR instruction when referencing the PSW.
Non-maskable interrupt requests and exceptions are acknowledged regardless of this flag. When a
maskable interrupt is acknowledged, the ID flag is automatically set to 1 by hardware.
The interrupt request generated during the acknowledgment disabled period (ID = 1) can be acknowledged
when the xxIFn bit of xxICn is set to 1, and the ID flag is reset to 0.
Remark
xx: Identification name of each peripheral unit (refer to
Table 5-2
)
n: Number of each peripheral unit (refer to
Table 5-2
)
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...