English
Language : 

M16C Datasheet, PDF (67/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV.B
Mitsubishi microcomputers
Specifications in this manual are tentative and subject to change.
M16C / 6N Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
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, 004816 is used both as CAN1 receive and external interrupt INT5 input control
register, and 0049 is used as serial I/O3, CAN1 transmit and as external interrupt INT4 input control register.
16
Use the interrupt request cause select bits - bits 6 and 7 of the interrupt request cause select register (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.
The interrupt control register 004916 has the polarity-switching bit. Be sure to set this bit to "0" when selecting the
serial I/O as the interrupt request cause.
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 (01DF16). To
select both edges, set the polarity switching bit of the correponding interrupt control register to 'falling edge' ("0").
Figures 6-10 and 6-11 show the interrupt request cause select registers 0 and 1.
Interrupt request cause select register 0
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
IFSR0
Address
01DE16
When reset
XXXXXX0016
Bit symbol
IFSR00
Bit name
Interrupt request cause
select bit
Function
0 : C1TRMIC
1 : SIO3
IFSR01
Interrupt request cause
select bit
0 : AD Converter
1 : Key On Wake Up
Nothing is assigned.
These bits can neither be set nor reset. When read, their contents are
indeterminate.
Figure 6-10. Interrupt request cause select register 0
RW
Interrupt request cause select register 1
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
IFSR1
Address
01DF16
Bit symbol
IFSR10
IFSR11
IFSR12
IFSR13
IFSR14
IFSR15
IFSR16
IFSR17
Bit name
INT0 interrupt polarity
swiching bit
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
Interrupt request cause
select bit
Interrupt request cause
select bit
Figure 6-11. Interrupt request cause select register 1
67
When reset
0016
Fumction
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
0 : One edge
1 : Two edges
0 : SIO3 / C1TRMIC
1 : INT4
0 : C1RECIC
1 : INT5
RW