Pin Allocation Tables
I/O | 28-pin SPDIP/SOIC/SSOP | 28-pin VQFN | ADC | Reference | Comparator | NCO | DAC | DSM | Timers | CCP | PWM | CWG | MSSP | ZCD | EUSART | CLC | CLKR | Interrupts | Pull-up | Basic |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RA0 | 2 | 27 | ANA0 | — |
C1IN0- C2IN0- |
— | — | — | — | — | — | — | — | — | — | CLCIN0(1) | — | IOCA0 | Y | — |
RA1 | 3 | 28 | ANA1 | — |
C1IN1- C2IN1- |
— | — | — | — | — | — | — | — | — | — | CLCIN1(1) | — | IOCA1 | Y | — |
RA2 | 4 | 1 | ANA2 | ADCVREF- |
C1IN0+ C2IN0+ |
— |
DAC1VREF- |
— | — | — | — | — | — | — | — | — | — | IOCA2 | Y | — |
RA3 | 5 | 2 | ANA3 | ADCVREF+ | C1IN1+ | — | DAC1VREF+ | MDCARL(1) | — | — | — | — | — | — | — | — | — | IOCA3 | Y | — |
RA4 | 6 | 3 | ANA4 | — | — | — | — | MDCARH(1) | T0CKI(1) | CCP5IN(1) | — | — | — | — | — | — | — | IOCA4 | Y | — |
RA5 | 7 | 4 | ANA5 | — | — | — | — | MDSRC(1) | — | — | — | — | SS1(1) | — | — | — | — | IOCA5 | Y | — |
RA6 | 10 | 7 | ANA6 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | IOCA6 | Y |
OSC2 |
RA7 | 9 | 6 | ANA7 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | IOCA7 | Y |
OSC1 |
RB0 | 21 | 18 | ANB0 | — | C2IN1+ | — | — | — | — | CCP4IN(1) | — | CWG1IN(1) | — | ZCD1 | — | — | — | IOCB0 | Y | INT(1) |
RB1 | 22 | 19 | ANB1 | — |
C1IN3- C2IN3- |
— | — | — | — | — | — | CWG2IN(1) |
SCK1(1) |
— | — | — | — | IOCB1 | Y | — |
RB2 | 23 | 20 | ANB2 | — | — | — | — | — | — | — | — | CWG3IN(1) |
SDI1(1) |
— | — | — | — | IOCB2 | Y | — |
RB3 | 24 | 21 | ANB3 | — |
C1IN2- C2IN2- |
— | — | — | — | — | — | — | — | — | — | — | — | IOCB3 | Y | — |
RB4 | 25 | 22 |
ANB4 |
— | — | — | — | — |
T5G(1) |
— | — | — | — | — | — | — | — | IOCB4 | Y | — |
RB5 | 26 | 23 | ANB5 | — | — | — | — | — |
T1G(1) |
CCP3IN(1) | — | — | — | — | — | — | — | IOCB5 | Y | — |
RB6 | 27 | 24 | ANB6 | — | — | — | — | — | — | — | — | — |
SDI2(1) |
— | CK2(1,3) | CLCIN2(1) | — | IOCB6 | Y |
ICSPCLK |
RB7 | 28 | 25 | ANB7 | — | — | — | DAC1OUT2 | — | T6IN(1) | — | — | — |
SCK2(1) |
— |
RX2(1) |
— | — | IOCB7 | Y |
ICSPDAT |
RC0 | 11 | 8 | ANC0 | — | — | — | — | — |
T1CKI(1) T3CKI(1) T3G(1) SMT1WIN(1) |
— | — | — | — | — | — | — | — | IOCC0 | Y | SOSCO |
RC1 | 12 | 9 | ANC1 | — | — | — | — | — | SMT1SIG(1) | CCP2IN(1) | — | — | — | — | — | — | — | IOCC1 | Y | SOSCI |
RC2 | 13 | 10 | ANC2 | — | — | — | — | — | T5CKI(1) | CCP1IN(1) | — | — | — | — | — | — | — | IOCC2 | Y | — |
RC3 | 14 | 11 | ANC3 | — | — | — | — | — | T2IN(1) | — | — | — |
SCK1(1) |
— | — | — | — | IOCC3 | Y | — |
RC4 | 15 | 12 | ANC4 | — | — | — | — | — | — | — | — | — |
SDI1(1) |
— | — | — | — | IOCC4 | Y | — |
RC5 | 16 | 13 | ANC5 | — | — | — | — | — | T4IN(1) | — | — | — | — | — | — | — | — | IOCC5 | Y | — |
RC6 | 17 | 14 | ANC6 | — | — | — | — | — | — | — | — | — | — | — | — | CK1(1,3) | — | IOCC6 | Y | — |
RC7 | 18 | 15 | ANC7 | — | — | — | — | — | — | — | — | — | — | — | — |
RX1(1) |
— | IOCC7 | Y | — |
RE3 | 1 | 26 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | IOCE3 | Y |
MCLR |
VDD | 20 | 17 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | VDD |
VSS | 8 | 5 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | VSS |
VSS | 19 | 16 | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | VSS |
OUT(2) | — | — | ADCGRDA | — | C1OUT | NCO1OUT | — | DSM1OUT | TMR0OUT | CCP1OUT | PWM6OUT |
CWG1A CWG2A CWG3A |
SDO1 SDO2 |
— |
DT1(3) |
CLC1OUT | CLKR | — | — | — |
— | — | ADCGRDB | — | C2OUT | — | — | — | — | CCP2OUT | PWM7OUT |
CWG1B CWG2B CWG3B |
SCK1 SCK2 |
— |
CK1(3) |
CLC2OUT | — | — | — | — | |
— | — | — | — | — | — | — | — | — | CCP3OUT | — |
CWG1C CWG2C CWG3C |
SCL1(3) SCL2(3) |
— |
TX1 |
CLC3OUT | — | — | — | — | |
— | — | — | — | — | — | — | — | — | CCP4OUT | — |
CWG1D CWG2D CWG3D |
SDA1(3) SDA2(3) |
— | — | CLC4OUT | — | — | — | — | |
— | — | — | — | — | — | — | — | — | CCP5OUT | — | — | — | — | — | — | — | — | — |
Note:
- Default peripheral input. Input can be moved to any other pin with the PPS input selections registers.
- All pin outputs default to PORT latch data. Any pin can be selected as a digital peripherals output with the PPS output selection registers.
- These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections.
- 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.