R8C/18 Group, R8C/19 Group
12. Interrupts
Rev.1.30
Apr 14, 2006
Page 77 of 233
REJ09B0222-0130
12.1.6
Interrupt Control
The following describes enabling and disabling the maskable interrupts and setting the priority for
acknowledgement. The explanation does not apply to nonmaskable interrupts.
Use the I flag in the FLG register, IPL, and bits ILVL2 to ILVL0 in each interrupt control register to
enable or disable maskable interrupts. Whether an interrupt is requested is indicated by the IR bit in
each interrupt control register.
Figure 12.3 shows the Interrupt Control Register and Figure 12.4 shows the INT0IC Register
Figure 12.3
Interrupt Control Register
Interrupt Control Register
(2)
Symbol
Address
After Reset
KUPIC
004Dh
XXXXX000b
ADIC
004Eh
XXXXX000b
CMP1IC
0050h
XXXXX000b
S0TIC, S1TIC
0051h, 0053h
XXXXX000b
S0RIC, S1RIC
0052h, 0054h
XXXXX000b
TXIC
0056h
XXXXX000b
TZIC
0058h
XXXXX000b
INT1IC
0059h
XXXXX000b
INT3IC
005Ah
XXXXX000b
TCIC
005Bh
XXXXX000b
CMP0IC
005Ch
XXXXX000b
Bit Symbol
Function
RW
NOTES:
1.
2.
Bit Name
Interrupt priority level select bits
Interrupt request bit
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined.
Rew rite the interrupt control register w hen the interrupt request w hich is applicable for the register is not generated.
Refer to
12.5.6 Changing Interrupt Control Register Contents.
b7 b6 b5 b4 b3 b2 b1 b0
ILVL0
RW
b2 b1 b0
0 0 0 : Level 0 (interrupt disable)
0 0 1 : Level 1
0 1 0 : Level 2
0 1 1 : Level 3
1 0 0 : Level 4
1 0 1 : Level 5
1 1 0 : Level 6
1 1 1 : Level 7
ILVL1
RW
ILVL2
RW
Only 0 can be w ritten to the IR bit. Do not w rite 1.
IR
0 : Requests no interrupt
1 : Requests interrupt
RW
(1)
—
(b7-b4)
—