Pin Allocation Tables

Table . 14/16-Pin Allocation Table
I/O 14-pin PDIP/SOIC/TSSOP 16-pin UQFN ADC Reference Comparator NCO DAC DSM Timers CCP PWM CWG MSSP ZCD EUSART CLC CLKR Interrupts Pull-up Basic
RA0 13 12 ANA0 C1IN0+ DAC1OUT1 MDSRC(1) SS2(1) IOCA0 Y

ICDDAT
ICSPDAT

RA1 12 11 ANA1 ADCVREF+

C1IN0
C2IN0-

DAC1VREF+ IOCA1 Y

ICDCLK
ICSPCLK

RA2 11 10 ANA2 ADCVREF- DAC1VREF- T0CKI(1) CCP3IN(1)

CWG1IN(1)
CWG2IN(1)

ZCD1 IOCA2 Y INT(1)
RA3 4 3 T6IN(1) IOCA3 Y

MCLR
VPP

RA4 3 2 ANA4

T1G(1)
SMT1WIN(1)

IOCA4 Y

CLKOUT
SOSCO
OSC2

RA5 2 1 ANA5

T1CKI(1)

T2IN(1)

SMT1SIG(1)

CLCIN3(1) IOCA5 Y

CLKIN

SOSCI

OSC1

RC0 10 9 ANC0 C2IN0+ T5CKI(1)

SCK1(1)

SCL1(1,3,4)

IOCC0 Y
RC1 9 8 ANC1

C1IN1-

C2IN1-

T4IN(1) CCP4IN(1)

SDI1(1)

SDA1(1,3,4)

CLCIN2(1) IOCC1 Y
RC2 8 7

ANC2

ADACT(1)

C1IN2-

C2IN2-

MDCARL(1) IOCC2 Y
RC3 7 6 ANC3

C1IN3-

C2IN3-

T5G(1) CCP2IN(1) SS1(1) CLCIN0(1) IOCC3 Y
RC4 6 5 ANC4 T3G(1)

SCK2(1,5)

SCL2(1,3,4,5)

CK1(1,3) CLCIN1(1) IOCC4 Y
RC5 5 4 ANC5 MDCARH(1) T3CKI(1) CCP1IN(1)

SDI2(1,5)

SDA2(1,3,4,5)

RX1(1)

DT1(1,3)

IOCC5 Y
VDD 1 16 VDD
VSS 14 13 VSS
OUT(2) ADCGRDA C1OUT NCO1OUT DSM1OUT TMR0OUT CCP1OUT PWM6OUT

CWG1A

CWG2A

SDO1

SDO2

DT1(3) CLC1OUT CLKR
ADCGRDB C2OUT CCP2OUT PWM7OUT

CWG1B

CWG2B

SCK1

SCK2

CK1(3) CLC2OUT
CCP3OUT

CWG1C

CWG2C

SCL1(3)

SCL2(3)

TX1 CLC3OUT
CCP4OUT

CWG1D

CWG2D

SDA1(3)

SDA2(3)

CLC4OUT
Table . 20-Pin Allocation Table
I/O 20-pin PDIP/SOIC/SSOP 20-pin UQFN ADC Reference Comparator NCO DAC DSM Timers CCP PWM CWG MSSP ZCD EUSART CLC CLKR Interrupts Pull-up Basic
RA0 19 16 ANA0 C1IN0+ DAC1OUT1 IOCA0 Y

ICDDAT/

ICSPDAT

RA1 18 15 ANA1 ADCVREF+

C1IN0-

C2IN0-

DAC1VREF+ MDSRC(1) SS2(1) IOCA1 Y

ICDCLK/

ICSPCLK

RA2 17 14 ANA2 ADCVREF- DAC1VREF- T0CKI(1)

CWG1IN(1)

CWG2IN(1)

ZCD1 CLCIN0(1) IOCA2 Y INT(1)
RA3 4 1 IOCA3 Y

MCLR

VPP

RA4 3 20 ANA4

T1G(1)

SMT1WIN(1)

CCP4IN(1) IOCA4 Y

CLKOUT

SOSCO

OSC2

RA5 2 19 ANA5

T1CKI(1)

T2IN(1)

SMT1SIG(1)

IOCA5 Y

CLKIN

SOSCI

OSC1

RB4 13 10 ANB4 T5G(1)

SDI1(1)

SDA1(1,3,4)

CLCIN2(1) IOCB4 Y
RB5 12 9 ANB5 CCP3IN(1)

SDI2(1,5)

SDA2(1,3,4,5)

RX1(1)

DT1(1,3)

CLCIN3(1) IOCB5 Y
RB6 11 8 ANB6

SCK1(1)

SCL1(1,3,4)

IOCB6 Y
RB7 10 7 ANB7 T6IN(1)

SCK2(1,5)

SCL2(1,3,4,5)

CK1(1,3) IOCB7 Y
RC0 16 13 ANC0 C2IN0+

T3CKI(1)

T3G(1)

IOCC0 Y
RC1 15 12 ANC1

C1IN1-

C2IN1-

IOCC1 Y
RC2 14 11

ANC2

ADACT(1)

C1IN2-

C2IN2-

MDCARL(1) T5CKI(1) IOCC2 Y
RC3 7 4 ANC3

C1IN3-

C2IN3-

CCP2IN(1) CLCIN1(1) IOCC3 Y
RC4 6 3 ANC4 IOCC4 Y
RC5 5 2 ANC5 MDCARH(1) T4IN(1) CCP1IN(1) IOCC5 Y
RC6 8 5 ANC6 SS1(1) IOCC6 Y
RC7 9 6 ANC7 IOCC7 Y
VDD 1 18 VDD
VSS 20 17 VSS
OUT(2) ADCGRDA C1OUT NCO1OUT DSM1OUT TMR0OUT CCP1OUT PWM6OUT

CWG1A

CWG2A

SDO1

SDO2

DT1(3) CLC1OUT CLKR
ADCGRDB C2OUT CCP2OUT PWM7OUT

CWG1B

CWG2B

SCK1

SCK2

CK1(3) CLC2OUT
CCP3OUT

CWG1C

CWG2C

SCL1(3)

SCL2(3)

TX1 CLC3OUT
CCP4OUT

CWG1D

CWG2D

SDA1(3)

SDA2(3)

CLC4OUT
Note:
  1. Default peripheral input. Input can be moved to any other pin with the PPS input selections registers.
  2. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripherals output with the PPS output selection registers.
  3. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections.
  4. These pins are configured for I2C logic levels; clock and data signals may be assigned to any of these pins. Assignments to the other pins (e.g., RA5) will operate, but logic levels will be standard TTL/ST as selected y the INLVL register.