TIMER B
8.2 Block description
b7 b6 b5 b4 b3 b2 b1 b0
Port P5 direction register (Address D16)
Bit
Corresponding pin
Functions
At reset R/W
Undefined
4 to 0 Nothing is assigned.
–
0 : Input mode
0
0
0
5
6
7
Pin TB0IN (Pin INT5/IDW)
Pin TB1IN (Pin INT6/IDV)
Pin TB2IN (Pin INT7/IDU)
(Note 1)
(Note 2)
(Note 3)
RW
RW
RW
1 : Output mode
When using this pin as timer Bi’s input pin,
be sure to clear the corresponding bit to “0.”
Notes 1: This applies when the TB0IN pin select bit (bit 0 at address AE16) = 0.
2: This applies when the TB1IN pin select bit (bit 1 at address AE16) = 0.
3: This applies when the TB2IN pin select bit (bit 2 at address AE16) = 0.
4: The pins in ( ) are I/O pins of other internal peripheral devices, which are multiplexed with the corresponding port P5 pins.
b7 b6 b5 b4 b3 b2 b1 b0
Port P2 direction register (Address 816
)
Bit
0
Corresponding pin
Functions
At reset R/W
0
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
Pin TA4OUT
0 : Input mode
1
1 : Output mode
Pin TA4IN
Pin TA9OUT
Pin TA9IN
Pin TB0IN
Pin TB1IN
Pin TB2IN
2
When using this pin as timer Bi’s input pin, be sure
to clear the corresponding bit to “0.”
3
4
(Note 1)
(Note 2)
(Note 3)
5
6
7
Pin INT3/RTPTRG0 (Note 4)
Notes 1: This applies when the TB0IN pin select bit (bit 0 at address AE16) = 1.
2: This applies when the TB1IN pin select bit (bit 1 at address AE16) = 1.
3: This applies when the TB2IN pin select bit (bit 2 at address AE16) = 1.
4: This applies when the INT3/RTPTRG0 pin select bit (bit 3 at address AE16)= 1.
Fig. 8.2.6 Relationship between port P5 direction register, port P2 direction register, and timer Bi’s
input pins
8.2.6 Count source (in timer mode and pulse period/pulse width measurement mode)
In the timer mode and pulse period/pulse width measurement mode, the count source select bits (bits 6
and 7 at addresses 5B16 to 5D16) are used to select the count source (f
and 8.5.1.)
2
, f16, f64, or f512). (See Figures 8.3.1
7906 Group User’s Manual Rev.2.0
8-7