Datasheet
Section 10 I/O Ports
Rev. 6.00 Mar. 18, 2010 Page 311 of 982
REJ09B0054-0600
10.1.4 Pin Functions
Port 1 pins also function as TPU I/O pins (TPU_0, TPU_1, and TPU_2), DMAC* output pins,
interrupt input pins and address output pins. Values of the register and pin functions are shown
below.
Note: * Supported only by the H8S/2239 Group.
• P17/TIOCB2/TCLKD
The pin functions are switched as shown below according to the combination of the TPU
channel 2 setting, TPSC2 to TPS0 bits in TCR_0 and TCR_5, and the P17DDR bit.
TPU Channel 2 Setting
*
1
Output Input or Initial Value
P17DDR ⎯ 0 1
P17 input pin P17 output pin Pin functions TIOCB2 output pin
TIOCB2 input pin
*
2
TCLKD input pin
*
3
Notes: 1. For the setting of the TPU channel, see section 11, 16-Bit Timer Pulse Unit (TPU).
2. This pin functions as TIOCB2 input when TPU channel 2 timer operating mode is set to
normal operating or phase counting mode and IOB3 in TIOR_2 is set to 1.
3. This pin functions as TCLKD input when TPSC2 to TPSC0 in TCR_0 or TCR_5 are set
to 111 or when channels 2 and 4 are set to phase counting mode.
• P16/TIOCA2/IRQ1
The pin functions are switched as shown below according to the combination of the TPU
channel 2 setting and the P16DDR bit.
TPU Channel 2 Setting
*
1
Output Input or Initial Value
P16DDR ⎯ 0 1
P16 input pin P16 output pin Pin functions TIOCA2 output pin
TIOCA2 input pin
*
2
IRQ1 input pin
*
3
Notes: 1. For the setting of the TPU channel, see section 11, 16-Bit Timer Pulse Unit (TPU).
2. This pin functions as TIOCA2 input when TPU channel 2 timer operating mode is set to
normal operating or phase counting mode and IOA3 in TIOR_2 is 1.
3. When this pin is used as an external interrupt pin, do not specify other functions.