9.1.4
Pin Functions
Port 1 pins also function as the pins for PPG outputs, TPU I/Os*, and DMAC outputs*. The
correspondence between the register specification and the pin functions is shown below.
Note: * Not supported by the H8S/2366.
• P17/PO15*
1
/TIOCB2/TCLKD
The pin function is switched as shown below according to the combination of the TPU channel
2 settings (by bits MD3 to MD0 in TMDR_2, bits IOB3 to IOB0 in TIOR_2, and bits CCLR1
and CCLR0 in TCR_2), bits TPSC2 to TPSC0 in TCR_0 and TCR_5, bit NDER15*
NDERH, and bit P17DDR.
TPU channel 2
settings
P17DDR
1
NDER15*
Pin function
Notes: *1 Not supported by the H8S/2366.
*2 TIOCB2 input when MD3 to MD0 = B'0000 or B'01xx and IOB3 = 1.
*3 TCLKD input when the setting for either TCR_0 or TCR_5 is TPSC2 to TPSC0 = B'111.
TCLKD input when channels 2 and 4 are set to phase counting mode.
TPU channel 2
settings
MD3 to MD0
IOB3 to IOB0
B'0000
B'0100
B'1xxx
CCLR1, CCLR0
Output function
x: Don't care
(1) in table below
—
—
TIOCB2 output
(2)
(1)
B'0000, B'01xx
B'0001 to
B'0011
B'0101 to
B'0111
—
—
—
Output
compare
output
(2) in table below
0
1
—
0
P17 input
P17 output
TIOCB2 input*
3
TCLKD input*
(2)
(2)
B'0010
—
B'xx00
—
—
—
—
Rev. 2.00, 05/03, page 305 of 820
1
in
1
1
PO15 output*
2
(1)
(2)
B'0011
Other than B'xx00
Other than
B'10
B'10
PWM mode
—
2 output
1