English
Language : 

PIC18F2331_07 Datasheet, PDF (127/400 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
TABLE 10-5: PORTC FUNCTIONS
Name
Bit #
Buffer
Type
Function
RC0/T1OSO/T1CKI
bit 0
ST Input/output port pin or Timer1 oscillator output/Timer1 clock input.
RC1/T1OSI/CCP2/FLTA bit 1 ST/CMOS Input/output port pin, Timer1 oscillator input, Capture2 input/
Compare2 output/PWM output when CCP2Mx bit is disabled or FLTA
input.
RC2/CCP1/FLTB
bit 2
ST
RC3/T0CKI/T5CKI/INT0 bit 3
ST
RC4/INT1/SDI/SDA
bit 4
ST
RC5/INT2/SCK/SCL
bit 5
ST
RC6/TX/CK/SS
bit 6
ST
RC7/RX/DT/SDO
bit 7
ST
Legend: ST = Schmitt Trigger input
Input/output port pin, Capture1 input/Compare1 output/PWM1 output
or FLTB input.
Input/output port pin, Timer0 and Timer5 alternate clock input or
external interrupt 0.
Input/output port pin, SPI data in, I2C™ data I/O or external
interrupt 1.
Input/output port pin, Synchronous Serial Port clock I/O or external
interrupt 2.
Input/output port pin, EUSART asynchronous transmit,
EUSART synchronous clock or SPI slave select input.
Input/output port pin, EUSART asynchronous receive, EUSART
synchronous data or SPI data out.
TABLE 10-6: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3 Bit 2
Bit 1
Bit 0
PORTC
RC7
RC6
RC5
RC4
RC3
RC2
LATC
LATC Data Output Register
TRISC PORTC Data Direction Register
INTCON GIE/GIEH PEIE/GIEL TMR0IE INT0IE RBIE TMR0IF
INTCON2 RBPU INTEDG0 INTEDG1 INTEDG2 — TMR0IP
INTCON3 INT2IP INT1IP
—
INT2IE INT1IE
—
Legend: x = unknown, u = unchanged, - = unimplemented, read as ‘0’.
RC1
INT0IF
—
INT2IF
RC0
RBIF
RBIP
INT1IF
Value on
POR, BOR
xxxx xxxx
xxxx xxxx
1111 1111
0000 000x
1111 -1-1
11-0 0-00
Value on
all other
Resets
uuuu uuuu
uuuu uuuu
1111 1111
0000 000u
1111 -1-1
11-0 0-00
© 2007 Microchip Technology Inc.
Preliminary
DS39616C-page 125