INTERRUPTS
6.10 External interrupts
b7 b6 b5 b4 b3 b2 b1 b0
Port P2 direction register (Address 816)
Bit
0
Corresponding pin
Function
At reset R/W
Pin TA4OUT
0 : Input mode
0
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
1 : Output mode
Pin TA4IN
1
Pin TA9OUT
Pin TA9IN
2
When using this pin as an external interrupt’s
input pin, be sure to clear the corresponding
bit to “0.”
3
Pin TB0IN
(Note 1)
(Note 2)
(Note 3)
(Note 4)
4
Pin TB1IN
5
Pin TB2IN
6
Pin INT3 (RTPTRG0)
7
Notes 1: This applies when the pin TB0IN select bit (bit 0 at address AE16) = “1.”
2: This applies when the pin TB1IN select bit (bit 1 at address AE16) = “1.”
3: This applies when the pin TB2IN select bit (bit 2 at address AE16) = “1.”
4: This applies when the pin INT3/RTPTRG0 select bit (bit 3 at address AE16) = “1.”
5: ( ) shows the I/O pins of other internal peripheral device which are multiplexed.
b7 b6 b5 b4 b3 b2 b1 b0
Port P5 direction register (Address D16)
Bit
Corresponding pin
Function
At reset R/W
Undefined
4 to 0 Nothing is assigned.
—
0 : Input mode
1 : Output mode
0
0
0
5
6
7
Pin INT5 (TB0IN/IDW)
Pin INT6 (TB1IN/IDV)
Pin INT7 (TB2IN/IDU)
RW
RW
RW
When using this pin as an external interrupt’s input
pin, be sure to clear the corresponding bit to “0.”
Note: ( ) shows the I/O pins of other internal peripheral devices which are multiplexed.
b7 b6 b5 b4 b3 b2 b1 b0
Port P7 direction register (Address 1116)
Bit
0
Corresponding pin
Function
At reset R/W
Pin AN0
Pin AN1
Pin AN2
0 : Input mode
0
0
0
0
0
RW
RW
RW
RW
RW
1 : Output mode
1
2
When using this pin as an external interrupt’s
input pin, be sure to clear the corresponding
bit to “0.”
3
Pin AN3/DA0
Pin INT3 (AN4/DA1/RTPTRG0)
4
(Note 1)
7 to 5
Undefined
—
Nothing is assigned.
Notes 1: This applies when the pin INT3/RTPTRG0 select bit (bit 3 at address AE16) = “0.”
2: ( ) shows the I/O pins of other internal peripheral devices which are multiplexed.
Fig. 6.10.3 Relationship between port P2/P5/P7 direction register and external interrupt’s input pins
7906 Group User’s Manual Rev.2.0
6-20