HD643303x Hitachi, HD643303x Datasheet - Page 147

no-image

HD643303x

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

Related parts for HD643303x