INTERRUPTS
6.10 External interrupts
b7 b6 b5 b4 b3 b2 b1 b0
Port P2 pin function control register (Address AE16
)
0
Function
Bit
0
Bit name
At reset R/W
0
RW
Pin TB0IN select bit
0 : Allocate pin TB0IN to P5
1 : Allocate pin TB0IN to P2
5
.
.
4
Pin TB1IN select bit
Pin TB2IN select bit
0 : Allocate pin TB1IN to P5
1 : Allocate pin TB1IN to P2
6
.
.
1
2
3
0
0
0
RW
RW
RW
5
0 : Allocate pin TB2IN to P5
1 : Allocate pin TB2IN to P2
7
.
.
6
Pin INT3/RTPTRG0 select bit
0: Allocate pin INT
1: Allocate pin INT
3
/RTPTRG0 to P7
/RTPTRG0 to P2
4
.
.
(Note)
3
7
6 to 4
7
Nothing is assigned.
Undefined
—
0
RW
Fix this bit to “0.”
Note: When allocating pin INT
3
/RTPTRG0 to P7
4
, be sure the D-A output enable bit (bit 1 at address 9616) = “0” (output disabled).
1
Fig. 6.10.1 Structure of port P2 pin function control register
b7 b6 b5 b4 b3 b2 b1 b0
External interrupt input read register (Address 9516
)
Function
Bit
Bit name
At reset R/W
Undefined RO
2 to 0 The value is undefined at reading.
3
4
5
6
7
INT3 read out bit
INT4 read out bit
INT5 read out bit
INT6 read out bit
INT7 read out bit
Undefined RO
Undefined RO
Undefined RO
Undefined RO
Undefined RO
The input level at the corresponding pin is read out.
0 : “L” level
1 : “H” level
Fig. 6.10.2 Structure of external interrupt input read register
7906 Group User’s Manual Rev.2.0
6-19