English
Language : 

PIC18F2525_08 Datasheet, PDF (100/412 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2525/2620/4525/4620
TABLE 9-5: PORTC I/O SUMMARY
Pin
Function
TRIS
Setting
I/O
I/O
Type
Description
RC0/T1OSO/
T13CKI
RC0
0
O
DIG LATC<0> data output.
1
I
ST PORTC<0> data input.
T1OSO
x
O
ANA Timer1 oscillator output; enabled when Timer1 oscillator enabled.
Disables digital I/O.
T13CKI
1
I
ST Timer1/Timer3 counter input.
RC1/T1OSI/CCP2 RC1
0
O
DIG LATC<1> data output.
1
I
ST PORTC<1> data input.
T1OSI
x
CCP2(1)
0
I
ANA Timer1 oscillator input; enabled when Timer1 oscillator enabled.
Disables digital I/O.
O
DIG CCP2 compare and PWM output; takes priority over port data.
1
I
ST CCP2 capture input.
RC2/CCP1/P1A
RC2
0
O
DIG LATC<2> data output.
1
I
ST PORTC<2> data input.
CCP1
0
O
DIG ECCP1 compare or PWM output; takes priority over port data.
1
P1A(2)
0
I
ST ECCP1 capture input.
O
DIG ECCP1 Enhanced PWM output, channel A. May be configured for
tri-state during Enhanced PWM shutdown events. Takes priority over
port data.
RC3/SCK/SCL
RC3
0
O
DIG LATC<3> data output.
1
I
ST PORTC<3> data input.
SCK
0
O
DIG SPI clock output (MSSP module); takes priority over port data.
1
I
ST SPI clock input (MSSP module).
SCL
0
O
DIG I2C™ clock output (MSSP module); takes priority over port data.
1
I I2C/SMB I2C clock input (MSSP module); input type depends on module setting.
RC4/SDI/SDA
RC4
0
O
DIG LATC<4> data output.
1
I
ST PORTC<4> data input.
SDI
SDA
1
I
ST SPI data input (MSSP module).
0
O
DIG I2C data output (MSSP module); takes priority over port data.
1
I I2C/SMB I2C data input (MSSP module); input type depends on module setting.
RC5/SDO
RC5
0
O
DIG LATC<5> data output.
1
I
ST PORTC<5> data input.
SDO
0
O
DIG SPI data output (MSSP module); takes priority over port data.
RC6/TX/CK
RC6
0
O
DIG LATC<6> data output.
1
I
ST PORTC<6> data input.
TX
0
O
DIG Asynchronous serial transmit data output (EUSART module);
takes priority over port data. User must configure as output.
CK
0
O
DIG Synchronous serial clock output (EUSART module); takes priority
over port data.
1
I
ST Synchronous serial clock input (EUSART module).
RC7/RX/DT
RC7
0
O
DIG LATC<7> data output.
1
I
ST PORTC<7> data input.
RX
1
I
ST Asynchronous serial receive data input (EUSART module).
DT
0
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.
Legend:
Note 1:
2:
DIG = Digital level output; TTL = TTL input buffer; ST = Schmitt Trigger input buffer; ANA = Analog level input/output;
I2C/SMB = I2C/SMBus input buffer; x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
Default assignment for CCP2 when the CCP2MX Configuration bit is set. Alternate assignment is RB3.
Enhanced PWM output is available only on PIC18F4525/4620 devices.
DS39626E-page 98
© 2008 Microchip Technology Inc.