![](http://datasheet.mmic.net.cn/30000/M30245MC-XXXGP_datasheet_2358670/M30245MC-XXXGP_56.png)
M30245 Group
Interrupts
Rev.2.00
Oct 16, 2006
page 54 of 264
REJ03B0005-0200
Interrupt control
The interrupt request bit is set by hardware to "0" when an interrupt request is received. The interrupt request bit can also
be set by software to "0". (Do not set to "1".)
INT0, INT1, and INT2 are triggered by the edges of external inputs. The edge polarity is selected using the polarity select
bit. (Other interrupts are described elsewhere.)
An interrupt must first be enabled before it can be used to cancel stop mode.
Peripheral I/O interrupts have their own interrupt control registers. Figure 1.31 shows the interrupt control registers.
Table 1.29 shows the addresses of the interrupt control registers.
Figure 1.31. Interrupt control registers control registers
b7
b6
b5
b4
b3
b2
b1
b0
Bit name
Function
Bit symbol
W
R
ILVL0
IR
Interrupt priority level
select bit
Interrupt request bit
0 : Interrupt not requested
1 : Interrupt requested
ILVL1
ILVL2
Nothing is assigned.
These bits can neither be set nor reset. When read, their contents are
indeterminate.
(Note)
Note: This bit can only be reset (= 0), but cannot be set ( = 1).
0 0 0 : Level 0 (interrupt disabled)
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
b2 b1 b0
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3
b2
b1
b0
ILVL0
IR
POL
Nothing is assigned.
These bits can neither be set nor reset. When read, their contents are
indeterminate.
Interrupt priority level
select bit
Interrupt request bit
Polarity select bit (Note 2)
Reserved bit
0: Interrupt not requested
1: Interrupt requested
0 : Selects falling edge
1 : Selects rising edge
Always set to "0"
ILVL1
ILVL2
(Note 1)
0 0 0 : Level 0 (interrupt disabled)
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
b2 b1 b0
0
Note 1: This bit can only be reset (=0), but cannot be set (=1).
Note 2: For S1RIC( 004816) and S02BCNIC ( 004916), "0" should always be written.
Symbol
KUPIC
S2RIC
S13BCNIC
TA1IC
EP0IC
TA2IC
S0RIC
ADIC
DMOIC
S3TIC
DM1IC
S2TIC
DM2IC
Address
004116
004216
004316
004516
004616
004716
004A16
004B16
004C16
004D16
004E16
004F16
005016
When reset
XXXXX0002
Symbol
S1TIC
DM3IC
S0TIC
TA0IC
S3RIC
SUSPIC
TA3IC
RSMIC
TA4IC
RSTIC
SOFIC
VBDIC
USBFIC
Address
005116
005216
005316
005416
005516
005616
005716
005816
005916
005A16
005B16
005C16
005D16
When reset
XXXXX0002
Interrupt control register
Symbol
INT1IC
S1RIC
S02BCNIC
INT2IC
INT0IC
Address
004416
004816
004916
005E16
005F16
When reset
XX00X0002