English
Language : 

PIC18F2220 Datasheet, PDF (110/388 Pages) Microchip Technology – 28/40/44-Pin High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2220/2320/4220/4320
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 bit 1
RC2/CCP1/P1A(1)
bit 2
RC3/SCK/SCL
bit 3
RC4/SDI/SDA
bit 4
ST
Input/output port pin, Timer1 oscillator input or Capture2 input/
Compare2 output/PWM output when CCP2MX configuration bit is
disabled.
ST
Input/output port pin, Capture1 input/Compare1 output/PWM1 output
or enhanced PWM output A(1).
ST
RC3 can also be the synchronous serial clock for both SPI and I2C
modes.
ST
RC4 can also be the SPI Data In (SPI mode) or Data I/O (I2C mode).
RC5/SDO
bit 5
ST
Input/output port pin or Synchronous Serial Port data output.
RC6/TX/CK
bit 6
ST
Input/output port pin, Addressable USART Asynchronous Transmit or
Addressable USART Synchronous Clock.
RC7/RX/DT
bit 7
ST
Input/output port pin, Addressable USART Asynchronous Receive or
Addressable USART Synchronous Data.
Legend: ST = Schmitt Trigger input
Note 1: Enhanced PWM output is available only on PIC18F4X20 devices.
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
LATC
LATC Data Latch Register
TRISC PORTC Data Direction Register
Legend: x = unknown, u = unchanged
RC3
RC2
RC1
RC0
Value on
POR, BOR
Value on
all other
Resets
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
DS39599C-page 108
 2003 Microchip Technology Inc.