XC886/888CLM
Parallel Ports
User’s Manual
6-7
V1.3, 2010-02
Parallel Ports, V 1.0
6.1.1.2
Direction Register
The direction of bidirectional port pins is controlled by the respective direction register
Px_DIR. For input-only port pins, register Px_DIR is used to enable or disable the input
drivers.
Px_DIR
Port x Direction Register
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
Bidirectional: Port x Pin n Direction Control
0
Direction is set to input
1
Direction is set to output
or
Input-only: Port x Pin n Driver Control
0
Input driver is enabled
1
Input driver is disabled
*