CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
153
User’s Manual U15195EJ5V0UD
7.3.5 Interrupt mask registers 0 to 3 (IMR0 to IMR3)
These registers set the interrupt mask state for the maskable interrupts.
The xxMKn bit of the IMR0 to IMR3 registers is equivalent to the xxMKn bit of the xxICn register.
IMRm can be read/written in 16-bit units (m = 0 to 3).
When the IMRm register is divided into two registers: higher 8 bits (IMRmH register) and lower 8 bits (IMRmL
register), these registers can be read/written in 8-bit or 1-bit units.
Caution The device file defines the xxMKn bit of the xxICn register as a reserved word. If a bit is
manipulated with the name xxMKn, therefore, the xxICn register, rather than the IMRm register, is
rewritten (as a result, the IMRm register is also rewritten).
<15>
CM10MK0
<7>
DETMK0
IMR0
<14>
CC10MK1
6
1
<13>
CC10MK0
5
1
<12>
CM03MK1
<4>
P0MK4
<11>
TM0MK1
<3>
P0MK3
<10>
CM03MK0
<2>
P0MK2
<9>
TM0MK0
<1>
P0MK1
<8>
DETMK1
<0>
P0MK0
Address
FFFFF100H
After reset
FFFFH
<15>
CC3MK1
<7>
CC2MK0
IMR1
<14>
CC3MK0
<6>
TM2MK1
<13>
TM3MK0
<5>
TM2MK0
<12>
CC2MK5
4
1
<11>
CC2MK4
3
1
<10>
CC2MK3
2
1
<9>
CC2MK2
1
1
<8>
CC2MK1
<0>
CM10MK1
Address
FFFFF102H
After reset
FFFFH
<15>
STMK1
7
1
IMR2
<14>
SRMK1
6
1
<13>
SEMK0
5
1
<12>
STMK0
<4>
DMAMK3
<11>
SRMK0
<3>
DMAMK2
<10>
CSIMK1
<2>
DMAMK1
<9>
CSIMK0
<1>
DMAMK0
8
1
<0>
CM4MK0
Address
FFFFF104H
After reset
FFFFH
15
1
<7>
CM00MK1
IMR3
14
1
6
1
<13>
CM05MK0
5
1
<12>
CM04MK0
4
1
<11>
CM05MK1
<3>
ADMK1
<10>
CM04MK1
<2>
ADMK0
<9>
CM02MK1
1
1
<8>
CM01MK1
0
1
Address
FFFFF106H
After reset
FFFFH
Bit position
Bit name
Function
15 to 7, 4 to 0 (IMR0)
15 to 5, 0 (IMR1)
15 to 9, 4 to 0 (IMR2)
13 to 7, 3, 2 (IMR3)
xxMKn
Interrupt mask flag
0: Interrupt servicing enabled
1: Interrupt servicing disabled (pending)
Remark
xx: Identification name of each peripheral unit (refer to
Table 7-2
).
n: Peripheral unit number (refer
Table 7-2
)