Datasheet
Section 8 I/O Ports
Rev.7.00 Dec. 24, 2008 Page 218 of 698
REJ09B0074-0700
8.1.4 Pin Functions
Pin Functions of H8S/2218 Group
Port 1 pins also function as address bus (A23 to A20) output pins, TPU I/O pins, and external
interrupt input (IRQ0 and IRQ1) pins. The correspondence between the register specification and
the pin functions is shown below.
Table 8.3 P17 Pin Function
TPU Channel 2 Setting* Output Setting Input Setting or Initial Value
P17DDR ⎯ 0 1
P17 input pin P17 output pin TIOCB2 output pin
TIOCB2 input pin
Pin Function
TCLKD input pin
Note: * For details on the TPU channel setting, refer to section 9, 16-Bit Timer Pulse Unit (TPU).
Table 8.4 P16 Pin Function
TPU Channel 2 Setting*
1
Output Setting Input Setting or Initial Value
P16DDR ⎯ 0 1
P16 input pin P16 output pin TIOCA2 output pin
TIOCA2 input pin
Pin Function
IRQ1 input pin*
2
Notes: 1. For details on the TPU channel setting, refer to section 9, 16-Bit Timer Pulse Unit
(TPU).
2. When this pin is used as an external interrupt pin, this pin must not be used for another
function.
Table 8.5 P15 Pin Function
TPU Channel 1 Setting* Output Setting Input Setting or Initial Value
P15DDR ⎯ 0 1
P15 input pin P15 output pin TIOCB1 output pin
TIOCB1 input pin
Pin Function
TCLKC input pin
Note: * For details on the TPU channel setting, refer to section 9, 16-Bit Timer Pulse Unit (TPU).