
Interrupt
Rev.1.00
Jun 06, 2003
page 56 of 290
M16C/6K9 Group
______
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.
Fig.DD-11 Interrupt factor selection register(1)
______
INT Interrupt
Interrupt factor selection register 0
Bit name
Function
Bit symbol
W
R
Symbol
Address
When reset
IFSR0
035F16
0016
IFSR00
b7
b6
b5
b4
b3
b2
b1
b0
INT0 interrupt polarity
switching bit
0 : SIO3
(Note 1)
1 : INT5
0 : SIO4
(Note 2)
1 : INT6
0 : One edge
1 : Two edges
0 : One edge
1 : Two edges
0 : One edge
1 : Two edges
0 : One edge
1 : Two edges
0 : One edge
1 : Two edges
INT1 interrupt polarity
switching bit
INT2 interrupt polarity
switching bit
INT3 interrupt polarity
switching bit
INT4 interrupt polarity
switching bit
INT5 interrupt polarity
switching bit
0 : One edge
1 : Two edges
Interrupt factor selection bit
(Selecting interrupt factor in the
address of 004916)
Interrupt factor selection bit
(Selecting interrupt factor in
the address of 004816)
IFSR01
IFSR02
IFSR03
IFSR04
IFSR05
IFSR06
IFSR07
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.
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.