TIMER B
8.2 Block description
8.2.5 Port P2 direction register, Port P5 direction register
The input pins of timer Bi are multiplexed with port P5 pins. By using the TB0IN/TB1IN/TB2IN pin select bit
(see Figure 8.2.5.), pin TB0IN/TB1IN/TB2IN can be allocated to the corresponding port P2 pin.
When using pins P5
5
(P2
4
)/TB0IN, P5
6
(P2
5
)/TB1IN, P5
7
(P2 )/TB2IN as timer Bi’s input pins, be sure to clear
6
the corresponding bits of the port direction register, which is multiplexed, to “0” in order to set these pins
to the input mode. (See Figure 8.2.6.)
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
5
.
.
1 : Allocate pin TB0IN to P2
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. 8.2.5 Structure of port P2 pin function control register
7906 Group User’s Manual Rev.2.0
8-6