English
Language : 

M16C6K9 Datasheet, PDF (56/292 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C/6K9 Group
Interrupt
______
INT Interrupt
Factor selection
Numbers of interrupt factors share the same interrupt registers in the addresses of 004516, 004816 - 004C16,
004F16 - 005616, 005816 -005F16. The setting of interrupt factor selection bits of interrupt factor selection
registers 0 - 3 (addresses of 035F16, 035616 - 035816) select the interrupt factor. After the selection of
interrupt factor, the corresponding interrupt request bit must be "0" before enabling the interrupt.
Fig.DD-11 - Fig.DD-13 show the structure of interrupt factor selection register 0 - 3.
______
INT Interrupt
________
________
INT0 to INT11 are triggered by the edges of external inputs. The edge polarity can be selected using the
polarity select bit.
_______
_______
_______
________
INT0 to INT2 and INT4 to INT11 have polarity switching bit in the interrupt event select register. The polarity
______
switching bit has to set to "0" when INT interrupt event is not selected.
As for external interrupt input, an interrupt can be generated both at the rising edge and at the falling edge by
________
setting “1” in the INTi interrupt polarity switching bit of the interrupt factor selection register0,4
(035F16,035916). To select both edges, set the polarity switching bit of the corresponding interrupt control
register to ‘falling edge’ (“0”).
Fig.DD-11, Fig.DD-13 show the Interrupt factor selection register 0, 4.
Interrupt factor selection register 0
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
IFSR0
Address
035F16
When reset
0016
Bit symbol
Bit name
Function
RW
IFSR00
INT0 interrupt polarity
switching bit
0 : One edge
1 : Two edges
IFSR01
INT1 interrupt polarity
switching bit
0 : One edge
1 : Two edges
IFSR02
INT2 interrupt polarity
switching bit
0 : One edge
1 : Two edges
IFSR03
INT3 interrupt polarity
switching bit
0 : One edge
1 : Two edges
IFSR04
INT4 interrupt polarity
switching bit
0 : One edge
1 : Two edges
IFSR05
INT5 interrupt polarity
switching bit
0 : One edge
1 : Two edges
IFSR06
Interrupt factor selection bit
(Selecting interrupt factor in the
address of 004916)
0 : SIO3 (Note 1)
1 : INT5
IFSR07
Interrupt factor selection bit
(Selecting interrupt factor in
the address of 004816)
0 : SIO4 (Note 2)
1 : INT6
Note 1: Do not select the bit if SIO3 is selected by interrupt factor selection register 3.
Note 2: Do not select the bit if SIO4 is selected by interrupt factor selection register 5.
Fig.DD-11 Interrupt factor selection register(1)
Rev.1.00 Jun 06, 2003 page 56 of 290