XC886/888CLM
Parallel Ports
User’s Manual
6-30
V1.3, 2010-02
Parallel Ports, V 1.0
6.5.2
Register Description
P2_DATA
Port 2 Data Register
Reset Value: 00
H
7
6
5
4
3
2
1
0
P7
P6
P5
P4
P3
P2
P1
P0
r
r
r
r
r
r
r
r
Field
Bits
Type Description
Pn
(n = 0 – 7)
n
r
Port 2 Pin n Data Value
0
Port 2 pin n data value = 0 (default)
1
Port 2 pin n data value = 1
P2_DIR
Port 2 Direction Register
Reset Value: 00
H
7
6
5
4
3
2
1
0
P7
P6
P5
P4
P3
P2
P1
P0
rw
rw
rw
rw
rw
rw
rw
rw
Field
Bits
Type Description
Pn
(n = 0 - 7)
n
rw
Port 2 Pin n Driver Control
0
Input driver is enabled (default)
1
Input driver is disabled
*