upd78f0114m6gb-8es Renesas Electronics Corporation., upd78f0114m6gb-8es Datasheet - Page 323

no-image

upd78f0114m6gb-8es

Manufacturer Part Number
upd78f0114m6gb-8es
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(1) Interrupt request flag registers (IF0L, IF0H, IF1L)
The interrupt request flags are set to 1 when the corresponding interrupt request is generated or an instruction is
executed. They are cleared to 0 when an instruction is executed upon acknowledgment of an interrupt request or
upon RESET input.
When an interrupt is acknowledged, the interrupt request flag is automatically cleared and then the interrupt
routine is entered.
IF0L, IF0H, and IF1L are set by a 1-bit or 8-bit memory manipulation instruction. When IF0L and IF0H are
combined to form 16-bit register IF0, they are set by a 16-bit memory manipulation instruction.
RESET input clears these registers to 00H.
Cautions 1. Be sure to clear bits 6 and 7 of IF1L to 0.
Address: FFE0H After reset: 00H R/W
Symbol
IF0L
Address: FFE1H
Symbol
IF0H
Address: FFE2H
Symbol
IF1L
2. When operating a timer, serial interface, or A/D converter after standby release, operate it
3. Use the 1-bit memory manipulation instruction (CLR1) for manipulating the flag of the
TMIF010
once after clearing the interrupt request flag. An interrupt request flag may be set by noise.
interrupt request flag register. Use the bit manipulation instruction such as “IF0L.0 = 0;” or
“_asm(“clr1 IF0L, 0”);” for describing in C language because the compiled assembler needs
to be the 1-bit memory manipulation instruction (CLR1).
If a program is described in C language using an 8-bit memory manipulation instruction
such as “IF0L & = 0xfe;” and compiled, the assembler of the following three instructions is
described.
In this case, at the timing between “mov a, IF0L” and “mov IF0L, a”, if the request flag of
another bit of the identical interrupt request flag register is set to 1, it is cleared to 0 by
“mov IF0L, a”. Therefore, care must be exercised when using an 8-bit memory manipulation
instruction in C language.
SREIF6
Figure 15-2. Format of Interrupt Request Flag Registers (IF0L, IF0H, IF1L)
XXIFX
<7>
<7>
7
0
0
1
After reset: 00H
After reset: 00H
mov
and
mov
No interrupt request signal is generated
Interrupt request is generated, interrupt request status
TMIF000
PIF5
<6>
<6>
a, IF0L
a, #0FEH
IF0L, a
6
0
CHAPTER 15 INTERRUPT FUNCTIONS
R/W
R/W
TMIF50
WTIF
PIF4
<5>
<5>
<5>
User’s Manual U16227EJ3V0UD
TMIFH0
KRIF
PIF3
<4>
<4>
<4>
Interrupt request flag
TMIFH1
TMIF51
PIF2
<3>
<3>
<3>
DUALIF0
WTIIF
PIF1
<2>
<2>
<2>
STIF6
SRIF0
PIF0
<1>
<1>
<1>
SRIF6
LVIIF
ADIF
<0>
<0>
<0>
323

Related parts for upd78f0114m6gb-8es