NEC UPD789426 Series User Manual page 270

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(1)
Interrupt request flag registers 0, 1 (IF0 and IF1)
The interrupt request flag is set (1) when the corresponding interrupt request is generated or an instruction is
executed. It is cleared (0) when an instruction is executed upon acknowledgement of an interrupt request or
upon RESET input.
IF0 and IF1 are set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets IF0 and IF1 to 00H.
<7>
6
<5>
Symbol
IF0
STIF20
0
SRIF20 PIF3
7
<6>
<5>
IF1
0
KRIF00 WTIF ADIF0 TMIF60 TMIF50 TMIF90 WTIIF
XXIFX
0
No interrupt request signal is generated
Interrupt request signal is generated; Interrupt request state
1
Cautions 1. Bit 7 of IF1 and bit 6 of IF0 must be set to 0.
2. The WDTIF flag is R/W enabled only when a watchdog timer is used as an interval timer. If
the watchdog timer mode 1 or 2 is used, set the WDTIF flag to 0.
3. Because port 3 has an alternate function as the external interrupt input, when the output
level is changed by specifying the output mode of the port function, an interrupt request flag
is set. Therefore, the interrupt mask flag should be set to 1 before using the output mode.
CHAPTER 14 INTERRUPT FUNCTIONS
Figure 14-2. Format of Interrupt Request Flag Registers
<4>
<3>
<2>
<1>
<0>
PIF2
PIF1
PIF0 WDTIF
<4>
<3>
<2>
<1>
<0>
Interrupt request flag
User's Manual U15075EJ2V1UD
Address
After reset
R/W
FFE0H
00H
R/W
FFE1H
00H
R/W
271

Advertisement

Table of Contents
loading

Table of Contents