Datasheet

© 2007 Microchip Technology Inc. DS41232D-page 59
PIC12F635/PIC16F636/639
4.3.6 RC4/C2OUT
Figure 4-9 shows the diagram for this pin. The RC4 pin
is configurable to function as one of the following:
a general purpose I/O
a digital output from the comparator
FIGURE 4-9: BLOCK DIAGRAM OF RC4
TABLE 4-2: 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
RD
PORTC
0
1
C2OUT Enable
C2OUT
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
POR, BOR,
WUR
Value on
all other
Resets
PORTC
RC5 RC4 RC3 RC2 RC1 RC0 --xx xx00 --uu uu00
CMCON0
C2OUT C1OUT C2INV C1INV CIS CM2 CM1 CM0 0000 0000 0000 0000
TRISC
TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 --11 1111 --11 1111
Legend: x = unknown, u = unchanged, – = unimplemented locations read as ‘0’. Shaded cells are not used by PORTA.