Datasheet

PIC16F882/883/884/886/887
DS41291G-page 44 2006-2012 Microchip Technology Inc.
3.2.3 PIN DESCRIPTIONS AND
DIAGRAMS
Each PORTA pin is multiplexed with other functions. The
pins and their combined functions are briefly described
here. For specific information about individual functions
such as the comparator or the A/D Converter (ADC),
refer to the appropriate section in this data sheet.
3.2.3.1 RA0/AN0/ULPWU/C12IN0-
Figure 3-1 shows the diagram for this pin. This pin is
configurable to function as one of the following:
a general purpose I/O
an analog input for the ADC
a negative analog input to Comparator C1 or C2
an analog input for the Ultra Low-Power Wake-up
FIGURE 3-1: BLOCK DIAGRAM OF RA0
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
RD
WR
WR
RD
To Comparator
Analog
(1)
Input Mode
01
IULP
Data Bus
PORTA
TRISA
TRISA
PORTA
Note 1: ANSEL determines Analog Input mode.
-
+V
TRG
ULPWUE
To A/D Converter
VSS