Datasheet

Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 243 of 1130
REJ09B0327-0400
8.6 Port 5
8.6.1 Overview
Port 5 is a 3-bit I/O port. Port 5 pins also function as SCI0 I/O pins (TxD0, RxD0, SCK0), and the
IIC0 I/O pin (SCL0) (option in H8S/2148 Group and H8S/2147N only). In the H8S/2148 Group
and H8S/2147N, P52 and SCK0 are NMOS push-pull outputs, and SCL0 is an NMOS open-drain
output. Port 5 pin functions are the same in all operating modes.
Figure 8.13 shows the port 5 pin configuration.
P52 (I/O)/SCK0 (I/O)/SCL0 (I/O)
P51 (I/O)/RxD0 (Input)
P50 (I/O)/TxD0 (Output)
Port 5
Port 5 pins
Figure 8.13 Port 5 Pin Functions
8.6.2 Register Configuration
Table 8.12 shows the port 5 register configuration.
Table 8.12 Port 5 Registers
Name Abbreviation R/W Initial Value Address
*
Port 5 data direction register P5DDR W H'F8 H'FFB8
Port 5 data register P5DR R/W H'F8 H'FFBA
Note: * Lower 16 bits of the address.