XC886/888CLM
Parallel Ports
User’s Manual
6-1
V1.3, 2010-02
Parallel Ports, V 1.0
6
Parallel Ports
The XC886 has 34 port pins organized into five parallel ports, Port 0 (P0) to Port 4 (P4),
while the XC888 has 48 port pins organized into six parallel ports, Port 0 (P0) to Port 5
(P5). Each pin has a pair of internal pull-up and pull-down devices that can be individually
enabled or disabled. Ports P0, P1, P3, P4 and P5 are bidirectional and can be used as
general purpose input/output (GPIO) or to perform alternate input/output functions for the
on-chip peripherals. When configured as an output, the open drain mode can be
selected. Port P2 is an input-only port, providing general purpose input functions,
alternate input functions for the on-chip peripherals, and also analog inputs for the
Analog-to-Digital Converter (ADC).
Bidirectional Port Features:
•
Configurable pin direction
•
Configurable pull-up/pull-down devices
•
Configurable open drain mode
•
Transfer data through digital inputs and outputs (general purpose I/O)
•
Alternate input/output for on-chip peripherals
Input Port Features:
•
Configurable input driver
•
Configurable pull-up/pull-down devices
•
Receive data through digital input (general purpose input)
•
Alternate input for on-chip peripherals
•
Analog input for ADC module
*