upd78f0103hmca1-5a4-a Renesas Electronics Corporation., upd78f0103hmca1-5a4-a Datasheet - Page 279

no-image

upd78f0103hmca1-5a4-a

Manufacturer Part Number
upd78f0103hmca1-5a4-a
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 application of 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 read with a 16-bit memory manipulation instruction.
RESET input sets these registers to 00H.
Notes 1.
Cautions 1. Be sure to set bits 2 to 7 of IF1L to 0.
Address: FFE0H After reset: 00H R/W
Symbol
IF0L
Address: FFE1H
Symbol
IF0H
Address: FFE2H
Symbol
IF1L
2.
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
This is CSIIF10 in the
µ
PD78F0102H and 78F0103H only.
TMIF010
once after clearing the interrupt request flag. An interrupt request flag may be set by noise.
interrupt request flag register. A 1-bit manipulation instruction such as “IF0L.0 = 0;” and
“_asm(“clr1 IF0L, 0”);” should be used when describing in C language, because assembly
instructions after compilation must be 1-bit memory manipulation instructions (CLR1).
If an 8-bit memory manipulation instruction “IF0L & = 0xfe;” is described in C language, for
example, it is converted to the following three assembly instructions after compilation:
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 (IF0L) is set to 1, it is cleared to 0
by “mov IF0L, a”.
manipulation instruction in C language.
SREIF6
XXIFX
Figure 14-2. Format of Interrupt Request Flag Register (IF0L, IF0H, IF1L)
<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 14 INTERRUPT FUNCTIONS
PD78F0101H.
R/W
R/W
Therefore, care must be exercised when using an 8-bit memory
TMIF50
PIF4
<5>
<5>
User’s Manual U16846EJ3V0UD
5
0
TMIFH0
PIF3
<4>
<4>
4
0
Interrupt request flag
TMIFH1
PIF2
<3>
<3>
3
0
DUALIF0
PIF1
<2>
<2>
2
0
Note 1
SRIF0
STIF6
PIF0
<1>
<1>
<1>
Note 2
SRIF6
LVIIF
ADIF
<0>
<0>
<0>
279

Related parts for upd78f0103hmca1-5a4-a