340
CHAPTER 16 INTERRUPT AND TEST FUNCTIONS
User’s Manual U11302EJ4V0UM
(1) Interrupt request flag registers (IF0L, IF0H)
The interrupt request flag is set to 1 when the corresponding interrupt request is generated or an instruction
is executed. It is cleared to 0 when an instruction is executed upon acknowledgment of an interrupt request
or upon application of RESET.
IF0L and IF0H are set with a 1-bit or 8-bit memory manipulation instruction. If IF0L and IF0H are used as
a 16-bit register IF0, use a 16-bit memory manipulation instruction for setting.
RESET input clears these registers to 00H.
Figure 16-2. Format of Interrupt Request Flag Register
Note
WTIF is the test input flag. A vectored interrupt request is not generated.
Cautions 1. The TMIF4 flag is R/W enabled only when the watchdog timer is used as an interval timer.
If the watchdog timer is used in watchdog timer mode 1, set the TMIF4 flag to 0.
2. Always set bits 6 and 7 of IF0H to 0.
3. When an interrupt is acknowledged, the interrupt request flag is automatically cleared,
and then servicing of the interrupt routine is started.
4. When the interrupt request flag register is manipulated (including by a 1-bit memory
manipulation instruction), if an interrupt request corresponding to another flag in the
same register is generated, the flag corresponding to that interrupt request may not be
set to 1.
TMIF0
IF0H
7
6
<5>
<4>
<3>
<2>
<1>
<0>
xxIF
Interrupt request flag
FFE1H
TMIF1
ADIF
TMIF2
KSIF
WTIF
Note
0
0
00H
R/W
0
No interrupt request signal
1
Interrupt request signal is generated: Interrupt request state
TMIF4
IF0L
<7>
<6>
<5>
<4>
<3>
<2>
Symbol
<1>
<0>
FFE0H
PIF0
PIF2
PIF1
PIF3
CSIIF0
CSIIF1
TMIF3
Address
After reset
R/W
00H
R/W