English
Language : 

PIC18F2331 Datasheet, PDF (125/396 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
RC1/T1OSI/CCP2/
FLTA
bit 1 ST/CMOS
RC2/CCP1/FLTB
bit 2
ST
RC3/T0CKI/T5CKI/ bit 3
ST
INT0
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 or Timer1 oscillator output/Timer1 clock input.
Input/output port pin, Timer1 oscillator input, or Capture2 input/
Compare2 output/PWM output when CCP2MX configuration bit is
disabled, or FLTA 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 or 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
INTCON2 RBPU INTEDG0 INTEDG1 INTEDG2
RBIE
—
TMR0IF
TMR0IP
INTCON3 INT2IP INT1IP
—
Legend: x = unknown, u = unchanged
INT2IE INT1IE
—
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
 2003 Microchip Technology Inc.
Preliminary
DS39616B-page 123