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