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

16-bit single-chip microcomputer
Table of Contents

Advertisement

9.5

Port 5

Port 5 is a 4-bit I/O port. The port 5 has the following registers.

• Port 5 data direction register (P5DDR)

• Port 5 data register (P5DR)

• Port 5 register (PORT5)
9.5.1
Port 5 Data Direction Register (P5DDR)
The individual bits of P5DDR specify input or output for the pins of port 5.
P5DDR cannot be read; if it is, an undefined value will be read.
Bit
Bit Name
Initial Value
7
0
to
4
3
P53DDR
0
2
P52DDR
0
1
P51DDR
0
0
P50DDR
0
9.5.2
Port 5 Data Register (P5DR)
P5DR stores output data for the port 5 pins.
Bit
Bit Name
Initial Value
7
0
to
4
3
P53DR
0
2
P52DR
0
1
P51DR
0
0
P50DR
0
R/W
Description
Reserved
These bits are always read as 0 and cannot be
modified.
W
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port
W
1 pin an output pin, while clearing this bit to 0 makes
W
the pin an input pin.
W
R/W
Description
Reserved
These bits are always read as 0 and cannot be
modified.
R/W
Output data for a pin is stored when the pin function
is specified to a general purpose I/O.
R/W
R/W
R/W
Rev. 2.00, 05/03, page 333 of 820

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s seriesH8s/2300 series

Table of Contents