Port 5; Port 5 Data Direction Register (P5Ddr); Port 5 Data Register (P5Dr) - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

7.5

Port 5

Port 5 is a 3-bit I/O port. Port 5 pins also function as SCI_1 extended I/O pins, and the IIC_0 I/O
pin. P52 and ExSCK1 are NMOS push-pull outputs, and SCL0 is an NMOS open-drain output.
Port 5 has the following registers.

• Port 5 data direction register (P5DDR)

• Port 5 data register (P5DR)

7.5.1
Port 5 Data Direction Register (P5DDR)
P5DDR specifies input or output for the pins of port 5 on a bit-by-bit basis.
Bit
Bit Name
7 to 3
2
P52DDR
1
P51DDR
0
P50DDR
7.5.2
Port 5 Data Register (P5DR)
P5DR stores output data for port 5 pins.
Bit
Bit Name
7 to 3
2
P52DR
1
P51DR
0
P50DR
Rev. 1.00, 05/04, page 110 of 544
Initial
Value
R/W
All 1
0
W
0
W
0
W
Initial
Value
R/W
All 1
0
R/W
0
R/W
0
R/W
Description
Reserved
The initial value should not be changed.
The corresponding port 5 pins are output ports when
P5DDR bits are set to 1, and input ports when cleared
to 0. As SCI_1 is initialized in software standby mode,
the pin states are determined by the specifications of
ICCR, PGCTL, P5DDR, and P5DR in IIC_0.
Description
Reserved
The initial value should not be changed.
If a port 5 read is performed while P5DDR bits are set
to 1, the P5DR values are read directly, regardless of
the actual pin states. If a port 5 read is performed while
P5DDR bits are cleared to 0, the pin states are read.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents