Microchip Technology IC MCU 8BIT PIC18F65K22-I/PT TQFP-64 MCP PIC18F65K22-I/PT Data Sheet

Product codes
PIC18F65K22-I/PT
Page of 550
 2009-2011 Microchip Technology Inc.
DS39960D-page 175
PIC18F87K22 FAMILY
TABLE 12-6:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTC    
   
RC3/SCK1/
SCL1
RC3
0
O
DIG
LATC<3> data output.
1
I
ST
PORTC<3> data input.
SCK1
0
O
DIG
SPI clock output (MSSP module); takes priority over port data.
1
I
ST
SPI clock input (MSSP module).
SCL1
0
O
DIG
I
2
C clock output (MSSP module); takes priority over port data.
1
I
I
2
C
I
2
C clock input (MSSP module); input type depends on module setting.
RC4/SDI1/
SDA1
RC4
0
O
DIG
LATC<4> data output.
1
I
ST
PORTC<4> data input.
SDI1
I
ST
SPI data input (MSSP module).
SDA1
1
O
DIG
I
2
C data output (MSSP module); takes priority over port data.
1
I
I
2
C
I
2
C data input (MSSP module); input type depends on module setting.
RC5/SDO1
RC5
0
O
DIG
LATC<5> data output.
1
I
ST
PORTC<5> data input.
SDO1
0
O
DIG
SPI data output (MSSP module).
RC6/TX1/CK1
RC6
0
O
DIG
LATC<6> data output.
1
I
ST
PORTC<6> data input.
TX1
1
O
DIG
Synchronous serial data output (EUSART module); takes priority over port data.
CK1
1
O
DIG
Synchronous serial data input (EUSART module); user must configure as an input.
1
I
ST
Synchronous serial clock input (EUSART module).
RC7/RX1/DT1
RC7
0
O
DIG
LATC<7> data output.
1
I
ST
PORTC<7> data input.
RX1
1
I
ST
Asynchronous serial receive data input (EUSART module).
DT1
1
O
DIG
Synchronous serial data output (EUSART module); takes priority over port data.
1
I
ST
Synchronous serial data input (EUSART module); user must configure as an input.
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PORTC
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
LATC
LATC7
LATBC6
LATC5
LATCB4
LATC3
LATC2
LATC1
LATC0
TRISC
TRISC7
TRISC6
TRISC5
TRISC4
TRISC3
TRISC2
TRISC1
TRISC0
ODCON1
SSP1OD
CCP2OD
CCP1OD
SSP2OD
ODCON3
U2OD
U1OD
CTMUDS
Legend:
Shaded cells are not used by PORTC.
TABLE 12-5:
PORTC FUNCTIONS (CONTINUED)
Pin Name
Function
TRIS 
Setting
I/O
I/O 
Type
Description
Legend:
O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Trigger Buffer Input, TTL = TTL Buffer Input, 
I
2
C = I
2
C™/SMBus Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
Note
1:
Default assignment for ECCP2 when the CCP2MX Configuration bit is set.