Format Of Interrupt Request Flag Register - NEC switch User Manual

Nec user's manua switch
Table of Contents

Advertisement

(1) Interrupt request flag registers (IF0 and IF1)
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 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>
Symbol
IF0
TMIF01 TMIF00 CSIIF10 KRIF00
7
<6>
IF1
0
USBTMIF USBRTIF USBRDIFUSBSTIF USBREIF
XXIFX
0
No interrupt request signal is generated
Interrupt request signal is generated; interrupt request state
1
Cautions
1. The TMIF4 flag is R/W enabled only when the watchdog timer is used as an interval
timer. If watchdog timer mode 1 or 2 is used, set the TMIF4 flag to 0.
2. Because port 2 has an alternate function as an 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.
3. If an interrupt is acknowledged, an interrupt request flag is automatically cleared and
then the interrupt routine is entered.
CHAPTER 11
INTERRUPT FUNCTIONS
Figure 11-2. Format of Interrupt Request Flag Register
<5>
<4>
3
0
<5>
<4>
<3>
<2>
Interrupt request flag
User's Manual U12978EJ3V0UD
2
<1>
<0>
Address
0
PIF0
TMIF4
FFE0H
1
0
0
0
FFE1H
After reset
R/W
00H
R/W
00H
R/W
167

Advertisement

Table of Contents
loading

Table of Contents