Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 338
PIC16F882/883/884/886/887
DS41291G-page 46
 2006-2012 Microchip Technology Inc.
3.2.3.4
RA3/AN3/V
REF
+/C1IN+
 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 
CV
REF
• a positive analog input to Comparator C1
FIGURE 3-4:
BLOCK DIAGRAM OF RA3
3.2.3.5
RA4/T0CKI/C1OUT
 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
V
DD
V
SS
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 (V
REF
+)
To Comparator (positive input)
To A/D Converter (V
REF
+)
To A/D Converter (analog channel)
I/O Pin
V
DD
V
SS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
RD
PORTA
WR
PORTA
WR
TRISA
RD
TRISA
0
1
C1OUT
C1OUT
Enable
To Timer0