8.9
Port 8
8.9.1
Overview
Port 8 is an 8-bit I/O port configured as shown in figure 8-8.
P87/SEG32
P86/SEG31
P85/SEG30
P84/SEG29
P83/SEG28
P82/SEG27
P81/SEG26
P80/SEG25
Port 8
Figure 8-8 Port 8 Pin Configuration
Register Configuration and Description
8.9.2
Table 8-23 shows the port 8 register configuration.
Table 8-23 Port 8 Registers
Name
Abbrev.
PDR8
R/W
R/W
W
Initial Value
H'00
Address
H'FFDB
H'FFEB
Port data register 8
Port control register 8
PCR8
H'00
1. Port data register 8 (PDR8)
Bit
7
P87
0
6
P86
0
5
P85
0
4
P84
0
3
P83
0
2
P82
0
1
0
P80
0
P81
0
Initial value
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
PDR8 is an 8-bit register that stores data for port 8 pins P87 to P80. If port 8 is read while PCR8
bits are set to 1, the values stored in PDR8 are read, regardless of the actual pin states. If port 8 is
read while PCR8 bits are cleared to 0, the pin states are read.
Upon reset, PDR8 is initialized to H'00.
165