R01UH0092EJ0110 Rev.1.10
Page 196 of 807
Jul 31, 2012
M16C/64C Group
14. Interrupts
14.2.3
Interrupt Control Register 2
(INT7IC, INT6IC, INT3IC, S4IC/INT5IC, S3IC/INT4IC, INT0IC to INT2IC)
Rewrite these registers at a point where an interrupt request for the corresponding register is not
generated.
When multiple interrupt sources share the register, select an interrupt source in the IFSR register.
ILVL2-ILVL0 (Interrupt priority level select bit) (b2-b0)
In memory expansion or microprocessor mode, set bits ILVL2 to ILVL0 in registers INT6IC and INT7IC
to 000b (interrupts disabled).
When the BYTE pin is low in memory expansion or microprocessor mode, set bits ILVL2 to ILVL0 in
registers INT3IC, INT4IC, and INT5IC to 000b (interrupts disabled).
IR (Interrupt request bit) (b3)
Do not set the IR bit to 1 when it is 0.
POL (Polarity select bit) (b4)
When the IFSRi bit in the IFSR register is 1 (both edges), set the POL bit in the INTiIC register to 0
(falling edge) (i = 0 to 5). When bits IFSR30 and IFSR31 in the IFSR3A register are 1 (both edges), set
the POL bit in registers INT6IC and INT7IC to 0 (falling edge).
Set the POL bit in the S3IC or S4IC register to 0 (falling edge) when the IFSR6 bit in the IFSR register
is 0 (SI/O3 selected) or IFSR7 bit is 0 (SI/O4 selected), respectively.
Interrupt Control Register 2
Symbol
Address
Bit Symbol
Bit Name
RW
Reset Value
XX00 X000b
Function
IR
Interrupt request bit
0: Interrupt not requested
1: Interrupt requested
POL
Polarity select bit
0 : Select falling edge
1 : Select rising edge
RW
RW
—
(b5)
Reserved bit
Set to 0
RW
—
(b7-b6)
No register bits. If necessary, set to 0. The read value is undefined.
—
b2 b1 b0
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
Interrupt priority level select
bit
ILVL0
RW
ILVL1
ILVL2
RW
RW
b7 b6 b5 b4
b1
b2
b3
b0
0
Refer to the table below for symbols and addresses.
Symbol
Address
Symbol
Address
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...