Datasheet
PIC16F785/HV785
DS41249E-page 48 © 2008 Microchip Technology Inc.
4.4.1.8 RC5/CCP1
The RC5 is configurable to function as one of the
following:
• General purpose I/O
• Digital input for the capture/compare
• Digital output for the CCP
FIGURE 4-14: BLOCK DIAGRAM OF RC5
TABLE 4-3: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
0
1
CCP out
CCP1CON<3>
CCP1CON<1>
to CCP Capture Input
RD
PORTC
D
EN
Q
CCP1CON<2>
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
POR, BOR
Value on all
other Resets
ANSEL1 — — — — ANS11 ANS10 ANS9 ANS8 ---- 1111 ---- 1111
CCP1CON
— — DC1B1 DC1B0 CCP1M3 CCP1M2 CCP1M1 CCP1M0 0000 0000 0000 0000
OPA1CON OPAON
— — — — — — — 0--- ---- 0--- ----
OPA2CON OPAON
— — — — — — — 0--- ---- 0--- ----
PORTC RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 xxxx xxxx uuuu uuuu
PWMCON0
PRSEN PASEN BLANK2 BLANK1 SYNC1 SYNC0 PH2EN PH1EN 0000 0000 0000 0000
TRISC TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 1111 1111 1111 1111
Legend: x = unknown, u = unchanged, – = unimplemented locations read as ‘0’. Shaded cells are not used by PORTC.