9.9.2 Register Descriptions
Table 9-13 summarizes the registers of port 8.
Table 9-13 Port 8 Registers
Initial Value
Address
*
Name
Abbreviation
R/W
Mode 1 to 4
Mode 5 to 7
H'FFCD
Port 8 data direction
P8DDR
W
H'F0
H'E0
register
H'FFCF
Port 8 data register
P8DR
R/W
H'E0
H'E0
Note:
*
Lower 16 bits of the address.
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.
Modes 1 to 6 (Expanded Modes): 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 modes 1 to 4 (expanded modes with on-chip ROM disabled), following a reset only CS
0
is output. The other three pins are input ports. In modes 5 and 6 (expanded modes with on-chip
ROM enabled), following a reset all four pins are input ports.
When the refresh controller is enabled, P8
0
is used unconditionally for RFSH output. When the
refresh controller is disabled, P8
0
becomes a generic input/output port according to the P8DDR
setting. For details see table 9-15.
Mode 7 (Single-Chip Mode): Port 8 is a generic input/output port. A pin in port 8 becomes an
output port if the corresponding P8DDR bit is set to 1, and an input port if this bit is cleared to 0.
P8DDR is a write-only register. Its value cannot be read. All bits return 1 when read.
7
—
1
—
1
—
6
—
1
—
1
—
5
—
1
—
1
—
4
P8 DDR
1
W
0
W
4
3
P8 DDR
0
W
0
W
3
2
P8 DDR
0
W
0
W
2
1
P8 DDR
0
W
0
W
1
0
P8 DDR
0
W
0
W
0
Reserved bits
Port 8 data direction 4 to 0
These bits select input or
output for port 8 pins
Bit
Modes
1 to 4
Initial value
Read/Write
Initial value
Read/Write
Modes
5 to 7
268
www.DataSheet4U.com