Datasheet
PIC16F882/883/884/886/887
DS41291G-page 46 2006-2012 Microchip Technology Inc.
3.2.3.4 RA3/AN3/VREF+/C1IN+
Figure 3-4 shows the diagram for this pin. This pin is
configurable to function as one of the following:
• a general purpose input
• an analog input for the ADC
• a positive voltage reference input for the ADC and
CVREF
• a positive analog input to Comparator C1
FIGURE 3-4: BLOCK DIAGRAM OF RA3
3.2.3.5 RA4/T0CKI/C1OUT
Figure 3-5 shows the diagram for this pin. This pin is
configurable to function as one of the following:
• a general purpose I/O
• a clock input for Timer0
• a digital output from Comparator C1
FIGURE 3-5: BLOCK DIAGRAM OF RA4
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Analog
(1)
Input Mode
Data Bus
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
Note 1: ANSEL determines Analog Input mode.
To Comparator (VREF+)
To Comparator (positive input)
To A/D Converter (VREF+)
To A/D Converter (analog channel)
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
0
1
C1OUT
C1OUT
Enable
To Tim e r 0