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