XC886/888CLM
Parallel Ports
User’s Manual
6-5
V1.3, 2010-02
Parallel Ports, V 1.0
6.1.1
General Register Description
The individual control and data bits of each parallel port are implemented in a number of
8-bit registers. Bits with the same meaning and function are assembled together in the
same register. The registers configure and use the port as general purpose I/O or
alternate function input/output.
For port P2, not all the registers in
are implemented. The availability and
definition of registers specific to each port is defined in
. This
section provides only an overview of the different port registers.
Table 6-1
Port Registers
Register Short Name
Register Full Name
Description
Px_DATA
Port x Data Register
Px_DIR
Port x Direction Register
Px_OD
Port x Open Drain Control Register
Px_PUDSEL
Port x Pull-Up/Pull-Down Select Register
Px_PUDEN
Port x Pull-Up/Pull-Down Enable Register
Px_ALTSEL0
Port x Alternate Select Register 0
Px_ALTSEL1
Port x Alternate Select Register 1
*