Hitachi F-ZTAT H8/3039 Series Hardware Manual page 160

Single-chip microcomputer
Table of Contents

Advertisement

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.
Bit
Initial value
Modes
1 and 3
Read/Write
Initial value
Modes
5 to 7
Read/Write
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
to P5
.
3
0
Bit
Initial value
Read/Write
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.
Bits P5
to P5
are reserved. They cannot be modified and are always read as 1.
7
4
P5DR is initialized to H'F0 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
7
6
1
1
1
1
Reserved bits
7
6
1
1
Reserved bits
5
4
P5 DDR
1
1
1
1
5
4
P5
1
1
R/W
3
2
P5 DDR
P5 DDR
3
2
1
1
0
0
W
W
Port 5 data direction 3 to 0
These bits select input or
output for port 5 pins
3
2
P5
P5
3
2
0
0
R/W
R/W
Port 5 data 3 to 0
These bits store data
for port 5 pins
1
0
P5 DDR
1
0
1
1
0
0
W
W
1
0
P5
1
0
0
0
R/W
149

Advertisement

Table of Contents
loading

This manual is also suitable for:

F-ztat h8/3039F-ztat h8/3038F-ztat h8/3037F-ztat h8/3036

Table of Contents