Mitsubishi microcomputers
M16C / 6N0 / 6N1 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
69
______
INT Interrupt
______
INT Interrupt
________
INT0 to INT5 are triggered by the edges of external inputs. The edge polarity is selected using the polarity
select bit.
________
Of interrupt control registers, address 004816 is used both as CAN1 reception and external interrupt INT5
________
input control register, and 004916 is used as S I/O3, CAN1 transmission and as external interrupt INT4 input
control register. Use the interrupt request cause select bits (bit 0 and 1 at address 01DE16 and bit 6 and 7
at address 01DF16) to specify which interrupt request cause to select. After having set an interrupt request
cause, be sure to clear the corresponding interrupt request bit before enabling an interrupt. (Note)
The interrupt control registers (address 004916 and address 004816) have the polarity-switching bit. Be
sure to set this bit to "0" when selecting the S I/O3, CAN1 reseption or CAN1 transmission as the interrupt
request cause. (Note)
As to 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 request cause select register (address
01DF16). To select both edges, set the polarity switching bit of the correponding interrupt control register to
'falling edge' ("0").
Note: Channel CAN1 is not available for M16C/6N1 group.
Figures 1.11.10 and 1.11.11 show the interrupt request cause select registers 0 and 1.
Figure 1.11.10. Interrupt request cause select register 0
Figure 1.11.11. Interrupt request cause select register 1
Interrupt request cause select register 0
Bit name
Function
Bit symbol
W
R
Symbol
Address
When reset
IFSR0
01DE16
IFSR00
b7
b6
b5
b4
b3
b2
b1
b0
Interrupt request cause
select bit
0 : C1TRMIC (Note)
Note: Channel CAN1 is not available for M16C/6N1 group.
1 : SIO3
XXXXX00016
Nothing is assigned.
These bits can neither be set nor reset. When read, their contents are
indeterminate.
IFSR01
Interrupt request cause
select bit
0 : AD Converter
1 : Key On Wake Up
IFSR02
Reserved bit
Always set to "0"
Interrupt request cause select register 1
Bit name
Fumction
Bit symbol
W
R
Symbol
Address
When reset
IFSR1
01DF16
IFSR10
b7
b6
b5
b4
b3
b2
b1
b0
INT0 interrupt polarity
swiching bit
1 : INT4
0 : SIO3 / C1TRMIC (Note)
1 : INT5
0 : C1RECIC (Note)
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
swiching bit
INT2 interrupt polarity
swiching bit
INT3 interrupt polarity
swiching bit
INT4 interrupt polarity
swiching bit
INT5 interrupt polarity
swiching bit
0 : One edge
1 : Two edges
Interrupt request cause
select bit
Interrupt request cause
select bit
IFSR11
IFSR12
IFSR13
IFSR14
IFSR15
IFSR16
IFSR17
Note: Channel CAN1 is not available for M16C/6N1 group.
0016