English
Language : 

M16C6K7 Datasheet, PDF (56/285 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Rev.1.0
______
INntTerIrnutpetrrupt
Mitsubishi microcomputers
M16C / 6K7 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
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
IFSR00
IFSR01
IFSR02
IFSR03
IFSR04
IFSR05
IFSR06
IFSR07
Bit name
INT0 interrupt polarity
switching bit
Function
0 : One edge
1 : Two edges
INT1 interrupt polarity
switching bit
0 : One edge
1 : Two edges
INT2 interrupt polarity
switching bit
0 : One edge
1 : Two edges
INT3 interrupt polarity
switching bit
0 : One edge
1 : Two edges
INT4 interrupt polarity
switching bit
0 : One edge
1 : Two edges
INT5 interrupt polarity
switching bit
Interrupt factor selection bit
(Selecting interrupt factor in the
address of 004916)
Interrupt factor selection bit
(Selecting interrupt factor in
the address of 004816)
0 : One edge
1 : Two edges
0 : SIO3
1 : INT5
0 : SIO4
1 : INT6
Fig.DD-11 Interrupt factor selection register(1)
RW
55