Hardware manual

Rev. 3.0, 09/98, page 111 of 361
6.8 Port 7
Port 7 is an 8-bit input port that also provides the analog input pins for the A/D converter module,
and analog output pins for the D/A converter module. The pin functions are the same in both the
expanded and single-chip modes.
Table 6.17 lists the pin functions. Table 6.18 describes the port 7 data register, which simply
consists of connections of the port 7 pins to the internal data bus. Figure 6.7 (a) and 6.7 (b) show
schematic diagrams of port 7.
Table 6.17 Port 7 Pin Functions (Modes 1 to 3)
Usage Pin Functions
I/O port P7
0
P7
1
P7
2
P7
3
P7
4
P7
5
P7
6
P7
7
Analog input AN
0
AN
1
AN
2
AN
3
AN
4
AN
5
AN
6
AN
7
Analog output DA
0
DA
1
Table 6.18 Port 7 Register
Name Abbreviation Read/Write Initial Value Address
Port 7 data register P7DR R Undetermined H'FFBE
Port 7 Data Register (P7DR)H'FFBE
Bit:76543210
P7
7
P7
6
P7
5
P7
4
P7
3
P7
2
P7
1
P7
0
Initial value:
********
Read/Write: R R R R R R R R
Note: Depends on the levels of pins P7
7
to P7
0
.