![Hitachi H8/3008 Hardware Manual Download Page 166](http://html.mh-extra.com/html/hitachi/h8-3008/h8-3008_hardware-manual_140473166.webp)
150
7.5.2
Register Descriptions
Table 7.7 summarizes the registers of port 8.
Table 7.7
Port 8 Registers
Address*
Name
Abbreviation
R/W
Initial Value
H'EE007
Port 8 data direction register
P8DDR
W
H'F0
H'FFFD7
Port 8 data register
P8DR
R/W
H'E0
Note: * Lower 20 bits of the address in advanced mode.
Port 8 Data Direction Register (P8DDR): P8DDR is an 8-bit write-only register that can select
input or output for each pin in port 8.
Bits 7 to 5 are reserved. They are fixed at 1, and cannot be modified.
7
—
1
—
6
—
1
—
5
—
1
—
4
P8 DDR
1
W
4
3
P8 DDR
0
W
3
2
P8 DDR
0
W
2
1
P8 DDR
0
W
1
0
P8 DDR
0
W
0
Reserved bits
Port 8 data direction 4 to 0
These bits select input or
output for port 8 pins
Bit
Initial value
Read/Write
When bits in P8DDR bit are set to 1, P8
4
to P8
1
become
CS
0
to
CS
3
output pins. When bits in
P8DDR are cleared to 0, the corresponding pins become input ports.
In the H8/3008, following a reset P8
4
functions as the
CS
0
output, while
CS
1
to
CS
3
are input ports.
P8DDR is a write-only register. Its value cannot be read. All bits return 1 when read.
P8DDR is initialized to H'F0 by a reset and in hardware standby mode. In software standby mode
P8DDR retains its previous setting. Therefore, if a transition is made to software standby mode
while port 8 is functioning as an input/output port and a P8DDR bit is set to 1, the corresponding
pin maintains its output state.
Port 8 Data Register (P8DR): P8DR is an 8-bit readable/writable register that stores output data
for port 8. When port 8 functions as an output port, the value of this register is output. When a bit
in P8DDR is set to 1, if port 8 is read the value of the corresponding P8DR bit is returned. When a
bit in P8DDR is cleared to 0, if port 8 is read the corresponding pin logic level is read.
Summary of Contents for H8/3008
Page 1: ...Hitachi 16 Bit Microcomputer H8 3008 Hardware Manual ADE 602 221 Rev 1 0 9 14 00 Hitachi Ltd ...
Page 4: ......
Page 17: ...xii ...
Page 70: ...54 ...
Page 114: ...98 ...
Page 154: ...138 ...
Page 314: ...298 ...
Page 412: ...396 ...
Page 496: ...480 ...