upd78f0148m1gka1-9eu Renesas Electronics Corporation., upd78f0148m1gka1-9eu Datasheet - Page 426

no-image

upd78f0148m1gka1-9eu

Manufacturer Part Number
upd78f0148m1gka1-9eu
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(2) Interrupt mask flag registers (MK0L, MK0H, MK1L, MK1H)
426
Caution
Note
Caution Be sure to set bits 6 and 7 of MK1H to 1 and clear bit 5 to 0.
The interrupt mask flags are used to enable/disable the corresponding maskable interrupt servicing.
MK0L, MK0H, MK1L, and MK1H are set by a 1-bit or 8-bit memory manipulation instruction. When MK0L and
MK0H, and MK1L and MK1H are combined to form 16-bit registers MK0 and MK1, they are set by a 16-bit
memory manipulation instruction.
RESET input sets MK0L, MK0H, and MK1L to FFH and MK1H to DFH.
Address: FFE4H
Symbol
MK0L
Address: FFE5H
Symbol
MK0H
Address: FFE6H
Symbol
MK1L
Address: FFE7H
Symbol
MK1H
µ
PD780146, 780148, and 78F0148 only. Be sure to set these bits to 1 in the
3. Use the 1-bit memory manipulation instruction (CLR1) for manipulating the flag of the
Figure 19-3. Format of Interrupt Mask Flag Registers (MK0L, MK0H, MK1L, MK1H)
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”. Therefore, care must be exercised when using an 8-bit memory manipulation
instruction in C language.
TMMK010
SREMK6
XXMKX
PMK7
mov a, IF0L
and a, #0FEH
mov IF0L, a
<7>
<7>
<7>
7
1
0
1
After reset: FFH
After reset: FFH
After reset: FFH
After reset: DFH
Interrupt servicing enabled
Interrupt servicing disabled
TMMK000
PMK6
PMK5
<6>
<6>
<6>
6
1
CHAPTER 19 INTERRUPT FUNCTIONS
R/W
R/W
R/W
R/W
TMMK50
WTMK
PMK4
<5>
<5>
<5>
User’s Manual U15947EJ3V1UD
5
0
TMMKH0
ACSIMK
KRMK
PMK3
<4>
<4>
<4>
<4>
Interrupt servicing control
TMMK011
TMMKH1
TMMK51
PMK2
<3>
<3>
<3>
<3>
Note
TMMK001
DUALMK0
WTIMK
PMK1
<2>
<2>
<2>
<2>
Note
µ
PD780143 and 780144.
CSIMK11
STMK6
SRMK0
PMK0
<1>
<1>
<1>
<1>
Note
DMUMK
SRMK6
LVIMK
ADMK
<0>
<0>
<0>
<0>

Related parts for upd78f0148m1gka1-9eu