HD643303x Hitachi, HD643303x Datasheet - Page 150

no-image

HD643303x

Manufacturer Part Number
HD643303x
Description
Hitachi Microcomputer
Manufacturer
Hitachi
Datasheet
Port 5 Data Direction Register (P5DDR): P5DDR is an 8-bit write-only register that can select
input or output for each pin in port 5.
Mode 1: A pin in port 5 becomes an address output pin if the corresponding P5DDR bit is set to 1,
and a generic input pin if this bit is cleared to 0.
Modes 2 and 3: Port 5 functions as an input/output port. A pin in port 5 becomes an output pin if
the corresponding P5DDR bit is set to 1, and an input pin if this bit is cleared to 0.
P5DDR is a write-only register. Its value cannot be read. All bits return 1 when read.
P5DDR is initialized to H'F0 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting. If a P5DDR bit is set to 1, the corresponding pin maintains its output
state in software standby mode.
Port 5 Data Register (P5DR): P5DR is an 8-bit readable/writable register that stores data for pins
P5
When a bit in P5DDR is set to 1, if port 5 is read the value of the corresponding P5DR bit is
returned directly, regardless of the actual state of the pin. When a bit in P5DDR is cleared to 0, if
port 5 is read the corresponding pin level is read.
Bit
Initial value
Read/Write
3
Bit
Initial value
Read/Write
to P5
0
.
7
1
7
1
Reserved bits
Reserved bits
6
1
6
1
5
1
5
1
135
4
1
4
1
P5 DDR
R/W
3
P5
W
3
0
3
0
3
Port 5 data direction 3 to 0
These bits select input or
output for port 5 pins
P5 DDR
Port 5 data 3 to 0
These bits store data
for port 5 pins
2
R/W
P5
W
2
0
2
0
2
P5 DDR
R/W
1
P5
W
1
0
1
0
1
P5 DDR
R/W
0
P5
W
0
0
0
0
0

Related parts for HD643303x