PIC16F688
4.3.5
RC4/C2OUT/TX/CK
4.3.6
RC5/RX/DT
Figure 4-9 shows the diagram for this pin. The RC4 is
configurable to function as one of the following:
The RC5 is configurable to function as one of the
following:
• a general purpose I/O
• a general purpose I/O
• a digital output from the comparator
• a digital I/O for the EUSART
• a digital I/O for the EUSART
FIGURE 4-10:
BLOCK DIAGRAM OF RC5
PIN
FIGURE 4-9:
BLOCK DIAGRAM OF RC4
Data Bus
USART Select(1)
EUSART Out
Enable
C2OUT EN
VDD
D
Q
WR
PORTC
CK
Q
VDD
EUSART
DT Out
1
0
EUSART
TX/CLKOUT
0
1
I/O Pin
Data Bus
0
D
Q
Q
C2OUT
Q
1
WR
TRISC
CK
D
VSS
I/O Pin
WR
PORTC
CK
Q
RD
VSS
TRISC
D
Q
Q
RD
PORTC
WR
CK
TRISC
To EUSART RX/DT In
RD
TRISC
RD
PORTC
To EUSART CLK Input
Note 1: USART Select signals selects between port
data and peripheral output.
TABLE 4-2:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Value on
all other
Resets
Value on
POR, BOR
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ANSEL
ANS7
ANS6
C1OUT
—
ANS5
C2INV
RC5
ANS4
C1INV
RC4
ANS3
CIS
ANS2
CM2
RC2
ANS1
CM1
ANS0
CM0
RC0
1111 1111 1111 1111
0000 0000 0000 0000
--xx 0000 --xx 0000
CMCON0 C2OUT
PORTC
TRISC
—
—
RC3
RC1
—
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 PORTC.
DS41203C-page 44
© 2007 Microchip Technology Inc.