Datasheet

2006-2012 Microchip Technology Inc. DS41291G-page 57
PIC16F882/883/884/886/887
3.5.4 RC3/SCK/SCL
Figure 3-14 shows the diagram for this pin. This pin
is
configurable to function as one of the following:
a general purpose I/O
a SPI clock
•an I
2
C™ clock
FIGURE 3-14: BLOCK DIAGRAM OF RC3
3.5.5 RC4/SDI/SDA
Figure 3-15 shows the diagram for this pin. This pin
is
configurable to function as one of the following:
a general purpose I/O
a SPI data I/O
•an I
2
C data I/O
FIGURE 3-15: BLOCK DIAGRAM OF RC4
3.5.6 RC5/SDO
Figure 3-16 shows the diagram for this pin. This pin is
configurable to function as one of the following:
a general purpose I/O
a serial data output
FIGURE 3-16: BLOCK DIAGRAM OF RC5
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
RD
PORTC
WR
PORTC
WR
TRISC
RD
TRISC
To SSPSR
SSPEN
0
1
1
0
SCK
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
RD
PORTC
WR
PORTC
WR
TRISC
RD
TRISC
To SSPSR
SSPEN
0
1
1
0
SDI/SDA
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
RD
PORTC
WR
PORTC
WR
TRISC
RD
TRISC
Port/SDO
0
1
1
0
SDO
Select