Download User`s Manual

Transcript
C167CS
Derivatives
Parallel Ports
7.11
Port 7
If this 8-bit port is used for general purpose IO, the direction of each line can be
configured via the corresponding direction register DP7. Each port line can be switched
into push/pull or open drain mode via the open drain control register ODP7.
P7
Port 7 Data Register
15
14
13
12
SFR (FFD0H/E8H)
11
10
9
8
7
6
Reset Value: - - 00H
5
4
3
2
1
0
P7.7 P7.6 P7.5 P7.4 P7.3 P7.2 P7.1 P7.0
-
-
-
-
-
-
-
-
rw
Bit
Function
P7.y
Port data register P7 bit y
DP7
P7 Direction Ctrl. Register
15
14
13
12
11
rw
rw
rw
SFR (FFD2H/E9H)
10
9
8
7
6
rw
rw
rw
rw
Reset Value: - - 00H
5
4
3
2
1
0
DP7 DP7 DP7 DP7 DP7 DP7 DP7 DP7
.7
.6
.5
.4
.3
.2
.1
.0
-
-
-
-
-
-
-
-
rw
rw
rw
rw
rw
Bit
Function
DP7.y
Port direction register DP7 bit y
DP7.y = 0: Port line P7.y is an input (high-impedance)
DP7.y = 1: Port line P7.y is an output
User’s Manual
7-48
rw
rw
rw
V2.0, 2000-07