English
Language : 

M16C30P_07 Datasheet, PDF (82/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
11. Interrupt
11.5 Interrupt Control
The following describes how to enable/disable the maskable interrupts, and how to set the priority in which order
they are accepted. What is explained here does not apply to nonmaskable interrupts.
Use the I flag in the FLG register, IPL, and ILVL2 to ILVL0 bits in the each interrupt control register to enable/
disable the maskable interrupts. Whether an interrupt is requested is indicated by the IR bit in the each interrupt
control register.
Figure 11.3 and 11.4 shows the Interrupt Control Registers.
Interrupt Control Register (2)
Symbol
U1BCNIC(3)
U0BCNIC(3)
BCNIC
DM0IC, DM1IC
KUPIC
ADIC
S0TIC to S2TIC
S0RIC to S2RIC
TA0IC to TA2IC
b7 b6 b5 b4 b3 b2 b1 b0 TB0IC to TB2IC
Address
0046h
0047h
004Ah
004Bh, 004Ch
004Dh
004Eh
0051h, 0053h, 004Fh
0052h, 0054h, 0050h
0055h to 0057h
005Ah to 005Ch
After Reset
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
XXXXX000b
Bit Symbol
Bit Name
Interrupt Priority Level Select Bit
ILVL0
ILVL1
ILVL2
Function
RW
b2 b1 b0
0 0 0 : Level 0 (interrupt disabled)
RW
0 0 1 : Level 1
0 1 0 : Level 2
0 1 1 : Level 3
1 0 0 : Level 4
RW
1 0 1 : Level 5
1 1 0 : Level 6
1 1 1 : Level 7
RW
Interrupt Request Bit
IR
0 : Interrupt not requested
1 : Interrupt requested
—
Nothing is assigned.When w rite, set to “0”.
(b7-b4) When read, their contents are indeterminate.
NOTES :
1. This bit can only be reset by w riting “0” (Do not w rite “1”).
2. To rew rite the interrupt control registers, do so at a point that does not generate the interrupt request for that
register. For details, refer to 21.5 Precautions for Interrupt.
3. Use the IFSR2A register to select.
RW(1)
—
Figure 11.3 Interrupt Control Registers (1)
Rev.1.22 Mar 29, 2007 Page 66 of 291
REJ09B0179-0122