Datasheet

PIC16F785/HV785
DS41249E-page 46 © 2008 Microchip Technology Inc.
4.4.1 PORTC PIN DESCRIPTIONS AND
DIAGRAMS
Each PORTC pin is multiplexed with other functions.
The pins and their combined functions are briefly
described here. For specific information about individ-
ual functions such as the comparator or the A/D, refer
to the appropriate section in this Data Sheet.
4.4.1.1 RC0/AN4/C2IN+
The RC0 is configurable to function as one of the
following:
General purpose I/O
Analog input for the A/D Converter
Non-inverting input to Comparator 2
4.4.1.2 RC6/AN8/OP1-
The RC6/AN8/OP1- pin is configurable to function as
one of the following:
General purpose I/O
Analog input for the A/D
Inverting input for Op Amp 1
4.4.1.3 RC7/AN9/OP1+
The RC7/AN9/OP1+ pin is configurable to function as
one of the following:
General purpose I/O
Analog input for the A/D
Non-inverting input for Op Amp 1
FIGURE 4-10: BLOCK DIAGRAM OF
RC0, RC6 AND RC7
4.4.1.4 RC1/AN5/C12IN1-/PH1
The RC1 is configurable to function as one of the
following:
General purpose I/O
Analog input for the A/D Converter
Analog input to Comparators 1 and 2
Digital output from the Two-Phase PWM
FIGURE 4-11: BLOCK DIAGRAM OF RC1
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
To A/D Converter
ANS4 (RC0)
ANS8 (RC6)
To Comparators (RC0)
To Op Amp1 (RC6, RC7)
RD
PORTC
D
EN
Q
ANS9 (RC7)
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
To A/D Con verter
ANS5
To Comparators
0
1
PH1
PH1EN
RD
PORTC
D
EN
Q