3 Pin Allocation Tables
I/O(2) | 28- Pin SPDIP,SOIC, SSOP |
28- Pin VQFN |
A/D | Reference | Comparator | ZCD | Timers | 16-Bit PWM/ CCP |
CWG | CLC | SPI | I2C | UART | IOC | Interrupt | Basic |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RA0 |
2 |
27 |
ANA0 |
— |
C1IN0- C2IN0- |
— | — | — | — |
CLCIN0(1) CLCIN4(1) |
— | — | — |
IOCA0 |
— | — |
RA1 |
3 |
28 |
ANA1 |
— |
C1IN1- C2IN1- |
— | — | — | — |
CLCIN1(1) CLCIN5(1) |
— | — | — |
IOCA1 |
— | — |
RA2 |
4 |
1 |
ANA2 |
DAC1OUT1 VREF- (DAC1) VREF- (ADC) |
C1IN0+ C2IN0+ |
— | — | — | — | — | — | — | — |
IOCA2 |
— | — |
RA3 |
5 |
2 |
ANA3 |
VREF+ (DAC1) VREF+ (ADC) |
C1IN1+ |
— | — | — | — | — | — | — | — |
IOCA3 |
— | — |
RA4 |
6 |
3 |
ANA4 | — | — | — | T0CKI(1) | — | — | — | — | — | — |
IOCA4 |
— | — |
RA5 |
7 |
4 |
ANA5 |
— | — | — | — | — | — | — | SS1(1) | — | — |
IOCA5 |
— | — |
RA6 |
10 |
7 |
ANA6 |
— | — | — | — | — | — | — | — | — | — |
IOCA6 |
— |
CLKOUT OSC2 |
RA7 |
9 |
6 |
ANA7 |
— | — | — | — | — | — | — | — | — | — |
IOCA7 |
— |
OSC1 CLKIN |
RB0 |
21 |
18 |
ANB0 |
— |
C2IN1+ |
ZCDIN |
— | — |
CWG1(1) |
— | SS2(1) | — | — |
IOCB0 |
INT0(1) |
— |
RB1 | 22 | 19 | ANB1 | — |
C1IN3- C2IN3- |
— | — | — | — | — | SCK2(1) | SCL2(3,4) | — | IOCB1 |
INT1(1) |
— |
RB2 | 23 | 20 | ANB2 | — | — | — | — | — | — | — | SDI1(1) | SDA2(3,4) | — | IOCB2 |
INT2(1) |
— |
RB3 | 24 | 21 | ANB3 | — |
C1IN2- C2IN2- |
— | — | — | — | — | — | — | — | IOCB3 | — | — |
RB4 | 25 | 22 |
ANB4 ADACT(1) |
— | — | — | — | — | — | — | — | — | — | IOCB4 | — | — |
RB5 | 26 | 23 | ANB5 |
— |
— | — |
T1G(1) TUIN1(1) |
— | — | — | — | — | — | IOCB5 | — | — |
RB6 | 27 | 24 | ANB6 | — | — | — | — | — | — |
CLCIN2(1) CLCIN6(1) |
— |
— |
CTS2(1) | IOCB6 | — | ICSPCLK |
RB7 | 28 | 25 | ANB7 | DAC1OUT2 | — | — | T6IN(1) | PWM3ERS(1) | — |
CLCIN3(1) CLCIN7(1) |
— |
— |
RX2(1) | IOCB7 | — | ICSPDAT |
RC0 | 11 | 8 | ANC0 | — | — | — |
T1CKI(1) T3CKI(1) T3G(1) TUIN0(1) |
— | — | — | — | — | — | IOCC0 | — | SOSCO |
RC1 | 12 | 9 | ANC1 | — | — | — | — | CCP2(1) | — | — | — | — | — | IOCC1 | — | SOSCI |
RC2 | 13 | 10 | ANC2 | — | — | ZCD2IN | — |
PWMIN0(1) CCP1(1) |
— | — | — | — | — | IOCC2 | — | — |
RC3(6) | 14 | 11 | — | — | — | — | T2IN(1) | PWM1ERS(1) | — | — | SCK1(1) | SCL1(3,4) | — | IOCC3 | — | — |
RC4(6) | 15 | 12 | — | — | — | — | — | — | — | — | SDI1(1) | SDA1(3,4) | — | IOCC4 | — | — |
RC5(6) | 16 | 13 | — |
— |
— | — | T4IN(1) | PWM2ERS(1) | — | — | — | — | RX1(1) | IOCC5 | — | — |
RC6(6) | 17 | 14 | — | — | — | — | — | PWMIN1(1) | — | — | — | — | CTS1(1) | IOCC6 | — | — |
RE3 | 1 | 26 | — | — | — | — | — | — | — | — | — | — | — | IOCE3 | — | VPP/MCLR |
VDD(5) | 20 | 17 | — | — | — | — | — | — | — | — | — | — | — | — | — | VDD(5) |
VDDIO2(5) | 18 | 15 | — | — | — | — | — | — | — | — | — | — | — | — | — | VDDIO2 |
VSS | 8, 19 | 5, 16 | — | — | — | — | — | — | — | — | — | — | — | — | — | VSS |
OUT(2) | — | — |
ADGRDA ADGRDB |
— |
C1OUT C2OUT |
— | TMR0 |
PWM11 PWM12 PWM21 PWM22 PWM31 PWM32 CCP1 CCP2 |
CWG1A CWG1B CWG1C CWG1D |
CLC1OUT CLC2OUT CLC3OUT CLC4OUT CLC5OUT CLC6OUT CLC7OUT CLC8OUT |
SS1 SCK1 SDO1 |
SDA1 SCL1 SDA2 SCL2 |
DTR1 RTS1 TX1 DTR2 RTS2 TX2 |
— | — | — |
Note:
|
I/O(2) | 40- Pin PDIP |
40- Pin QFN |
44- Pin TQFP |
48- Pin TQFP/ VQFN |
A/D | Reference | Comparator | ZCD | Timers | 16-Bit PWM/ CCP |
CWG | CLC | SPI | I2C | UART | IOC | Interrupt | Basic |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RA0 |
2 | 17 | 19 | 21 |
ANA0 |
— |
C1IN0- C2IN0- |
— | — | — | — |
CLCIN0(1) CLCIN4(1) |
— | — | — |
IOCA0 |
— | — |
RA1 |
3 | 18 | 20 | 22 |
ANA1 |
— |
C1IN1- C2IN1- |
— | — | — | — |
CLCIN1(1) CLCIN5(1) |
— | — | — |
IOCA1 |
— | — |
RA2 |
4 | 19 | 21 | 23 |
ANA2 |
DAC1OUT1 VREF- (DAC1) VREF- (ADC) |
C1IN0+ C2IN0+ |
— | — | — | — | — | — | — | — |
IOCA2 |
— | — |
RA3 |
5 | 20 | 22 | 24 |
ANA3 |
VREF+ (DAC1) VREF+ (ADC) |
C1IN1+ |
— | — | — | — | — | — | — | — |
IOCA3 |
— | — |
RA4 |
6 | 21 | 23 | 25 | ANA4 | — | — | — | T0CKI(1) | — | — | — | — | — | — |
IOCA4 |
— | — |
RA5 |
7 | 22 | 24 | 26 |
ANA5 |
— | — | — | — | — | — | — | SS1(1) | — | — |
IOCA5 |
— | — |
RA6 |
14 | 29 | 31 | 33 |
ANA6 |
— | — | — | — | — | — | — | — | — | — |
IOCA6 |
— |
CLKOUT OSC2 |
RA7 |
13 | 28 | 30 | 32 |
ANA7 |
— | — | — | — | — | — | — | — | — | — |
IOCA7 |
— |
OSC1 CLKIN |
RB0 |
33 | 8 | 8 | 8 |
ANB0 |
— |
C2IN1+ |
ZCD1IN |
— | — |
CWG1(1) |
— | SS2(1) | — | — |
IOCB0 |
INT0(1) |
— |
RB1 | 34 | 9 | 9 | 9 | ANB1 | — |
C2IN3- C1IN3- |
— | — | — | — | — | SCK2(1) | SCL2(3,4) | — | IOCB1 |
INT1(1) |
— |
RB2 | 35 | 10 | 10 | 10 | ANB2 | — | — | — | — | — | — | — | SDI2(1) | SDA2(3,4) | — | IOCB2 |
INT2(1) |
— |
RB3 | 36 | 11 | 11 | 11 | ANB3 | — |
C1IN2- C2IN2- |
— | — | — | — | — | — | — | — | IOCB3 | — | — |
RB4 | 37 | 12 | 14 | 16 |
ANB4 ADACT(1) |
— | — | — | — | — | — | — | — | — | — | IOCB4 | — | — |
RB5 | 38 | 13 | 15 | 17 | ANB5 |
— |
— | — |
T1G(1) TUIN1(1) |
— | — | — | — | — | — | IOCB5 | — | — |
RB6 | 39 | 14 | 16 | 18 | ANB6 | — | — | — | — | — | — |
CLCIN2(1) CLCIN6(1) |
— |
CTS2(1) | IOCB6 | — | ICSPCLK | |
RB7 | 40 | 15 | 17 | 19 | ANB7 | DAC1OUT2 | — | — | T6IN(1) | PWM3ERS(1) | — |
CLCIN3(1) CLCIN7(1) |
— |
— |
RX2(1) | IOCB7 | — | ICSPDAT |
RC0 | 15 | 30 | 32 | 34 | ANC0 | — | — | — |
T1CKI(1) T3CKI(1) T3G(1) TUIN0(1) |
— | — | — | — | — | — | IOCC0 | — | SOSCO |
RC1 | 16 | 31 | 35 | 35 | ANC1 | — | — | — | — | CCP2(1) | — | — | — | — | — | IOCC1 | — | SOSCI |
RC2 | 17 | 32 | 36 | 40 | ANC2 | — | — | ZCD2IN | — |
PWMIN0(1) CCP1(1) |
— | — | — | — | — | IOCC2 | — | — |
RC3(6) | 18 | 33 | 37 | 41 | — | — | — | — | T2IN(1) | PWM1ERS(1) | — | — | SCK1(1) | SCL1(3,4) | — | IOCC3 | — | — |
RC4(6) | 23 | 38 | 42 | 46 | — | — | — | — | — | — | — | — | SDI1(1) | SDA1(3,4) | — | IOCC4 | — | — |
RC5(6) | 24 | 39 | 43 | 47 | — |
— |
— | — | T4IN(1) | PWM2ERS(1) | — | — | — | — | RX1(1) | IOCC5 | — | — |
RC6(6) | 25 | 40 | 44 | 48 | — | — | — | — | — | PWMIN1(1) | — | — | — | — | CTS1(1) | IOCC6 | — | — |
RD0(6) | 19 | 34 | 38 | 42 | — | — | — | — | — | — | — | — | — | —(3,4) | — | — | — | — |
RD1(6) | 20 | 35 | 39 | 43 | — | — | — | — | — | — | — | — | — | —(3,4) | — | — | — | — |
RD2(6) | 21 | 36 | 40 | 44 | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
RD3(6) | 22 | 37 | 41 | 45 | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
RD4(6) | 27 | 2 | 2 | 2 | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
RD5(6) | 28 | 3 | 3 | 3 | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
RD6(6) | 29 | 4 | 4 | 4 | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
RD7(6) | 30 | 5 | 5 | 5 | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
RE0 | 8 | 23 | 25 | 27 | ANE0 | — | — | — | — | — | — | — | — | — | — | — | — | — |
RE1 | 9 | 24 | 26 | 28 | ANE1 | — | — | — | — | — | — | — | — | — | — | — | — | — |
RE2 | 10 | 25 | 27 | 29 | ANE2 | — | — | — | — | — | — | — | — | — | — | — | — | — |
RE3 | 1 | 16 | 18 | 20 | — | — | — | — | — | — | — | — | — | — | — | IOCE3 | — | VPP/MCLR |
RF0 | — | — | — | 36 | ANF0 | — | — | — | — | — | — | — | — | — | — | — | — | — |
RF1 | — | — | — | 37 | ANF1 | — | — | — | — | — | — | — | — | — | — | — | — | — |
RF2 | — | — | — | 38 | ANF2 | — | — | — | — | — | — | — | — | — | — | — | — | |
RF3 | — | — | — | 39 | ANF3 | — | — | — | — | — | — | — | — | — | — | — | — | |
RF4 | — | — | — | 12 | ANF4 | — | — | — | — | — | — | — | — | — | — | — | — | |
RF5 | — | — | — | 13 | ANF5 | — | — | — | — | — | — | — | — | — | — | — | — | |
RF6 | — | — | — | 14 | ANF6 | — | — | — | — | — | — | — | — | — | — | — | — | |
RF7 | — | — | — | 15 | ANF7 | — | — | — | — | — | — | — | — | — | — | — | — | |
VDD(5) | 11, 32 | 7, 26 | 7, 28 | 7, 30 | — | — | — | — | — | — | — | — | — | — | — | — | — | VDD(5) |
VDDIO2(5) | 26 | 1 | 1 | 1 | — | — | — | — | — | — | — | — | — | — | — | — | — | VDDIO2 |
VSS | 12, 31 | 6, 27 | 6, 29 | 6,31 | — | — | — | — | — | — | — | — | — | — | — | — | — | VSS |
OUT(2) |
ADGRDA ADGRDB |
— |
C1OUT C2OUT |
— | TMR0 |
PWM11 PWM12 PWM21 PWM22 PWM31 PWM32 CCP1 CCP2 |
CWG1A CWG1B CWG1C CWG1D |
CLC1OUT CLC2OUT CLC3OUT CLC4OUT CLC5OUT CLC6OUT CLC7OUT CLC8OUT |
SS1 SCK1 SDO1 |
SDA1 SCL1 SDA2 SCL2 |
DTR1 RTS1 TX1 DTR2 RTS2 TX2 |
— | — | — | ||||
Note:
|