PIC18F2331/2431/4331/4431
TABLE 11-5: PORTC I/O SUMMARY (CONTINUED)
TRIS
Setting
I/O
Type
Pin
Function
I/O
Description
RC7/RX/DT/SDO
RC7
0
1
1
0
O
I
DIG
ST
LATC<7> data output.
PORTC<7> data input.
RX
DT
I
ST
Asynchronous serial receive data input (EUSART module).
O
DIG
Synchronous serial data output (EUSART module); takes priority over
port data.
1
0
I
ST
Synchronous serial data input (EUSART module). User must
configure as an input.
(1)
SDO
O
DIG
SPI data out; takes priority over port data.
Legend:
DIG = Digital level output; TTL = TTL input buffer; ST = Schmitt Trigger input buffer; ANA = Analog level input/output;
x= Don’t care (TRIS bit does not affect port direction or is overridden for this option).
Note 1: RD0 is the alternate pin for T0CKI/T5CKI; RD2 is the alternate pin for SDI/SDA; RD3 is the alternate pin for SCK/SCL;
RD1 is the alternate pin for SDO.
TABLE 11-6: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Reset Values
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
on Page:
PORTC
LATC
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
57
57
57
54
54
54
LATC Data Output Register
PORTC Data Direction Register
TRISC
INTCON GIE/GIEH PEIE/GIEL TMR0IE
INT0IE
RBIE
—
TMR0IF INT0IF
RBIF
RBIP
INTCON2
INTCON3
RBPU
INTEDG0 INTEDG1 INTEDG2
INT1IP INT2IE
TMR0IP
—
—
INT2IP
—
INT1IE
INT2IF
INT1IF
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by PORTC.
2010 Microchip Technology Inc.
DS39616D-page 121