Pin Allocation Tables

Table 1. 64-Pin Allocation Table
I/O(2) 64-Pin TQFP, QFN A/D DAC Comparator Timers CCP and PWM CWG ZCD SMT Clock Reference
(CLKR) Interrupt EUSART DSM MSSP Basic

RA0

24

ANA0

C1IN4-

C2IN4-

C3IN4-

T8IN(1)

 

RA1

23

ANA1

T2IN(1)

RA2

22

ANA2

Vref-

Vref-

C1IN1+

C2IN1+

C3IN1+

RA3

21

ANA3

Vref+

Vref+

RA4

28

ANA4

T0CKI(1)

RA5

27

ANA5

T3G(1)

RA6

40

ANA6

CLKOUT

OSC2

RA7

39

ANA7

 

OSC1

CLKIN

RB0

48

ANB0

ZCDIN

IOCB0

INT0(1)

 

RB1

47

ANB1

IOCB1

INT1(1)

(4)

RB2

46

ANB2

IOCB2

INT2(1)

(4)

RB3

45

ANB3

IOCB3

INT3(1)

RB4

44

ANB4

IOCB4

RB5

43

ANB5

T1G(1)

T3CKI(1)

IOCB5

RB6

42

ANB6

IOCB6

ICSPCLK

RB7

37

ANB7

DAC1OUT2

IOCB7

ICSPDAT

RC0

30

T1CKI(1)

IOCC0

CK4(1,3)

SOSCO

RC1

29

T6IN(1)

   

IOCC1

RX4(1,3)
DT4(1,3)

SOSCI

RC2

33

CWG1IN(1)

IOCC2

RC3

34

IOCC3

SCL1(3,4)
SCK1(1)

RC4

35

IOCC4

SDA1(3,4)
SDI1(1)

RC5

36

IOCC5

RC6

31

IOCC6

CK1(1,3)

RC7

32

IOCC7

RX1(1,3)
DT1(1,3)

RD0

58

AND0

RD1

55

AND1

T5CKI(1)
T7G(1)

RD2

54

AND2

RD3

53

AND3

MDCARL(1)

RD4

52

AND4

MDCARH(1)

 

RD5

51

AND5

MDSRC(1)

SDA2(3,4)
SDI2(1)

RD6

50

AND6

SCL2(3,4)
SCK2(1)

 

RD7

49

AND7

SS2(1)

RE0

2

ANE0

IOCE0

CK3(1,3)

RE1

1

ANE1

IOCE1

RX3(1,3)
DT3(1,3)

RE2

64

ANE2

IOCE2

CK5(1,3)

RE3

63

ANE3

IOCE3

RX5(1,3)
DT5(1,3)

RE4

62

ANE4

T4IN(1)

CCP2(1)

IOCE4

RE5

61

ANE5

CCP1(1)

IOCE5

RE6

60

ANE6

CCP3(1)

SMT1WIN1(1)

IOCE6

RE7

59

ANE7

SMT1SIG1(1)

IOCE7

RF0

18

ANF0 C1IN0-C2IN0-
RF1 17 ANF1
RF2 16 ANF2
RF3 15 ANF3 C1IN2-
C2IN2-
C3IN2-
RF4 14 ANF4 C2IN0+
RF5 13 ANF5 DAC1OUT1 C1IN1-
C2IN1-
RF6 12 ANF6 C1IN0+
RF7 11 ANF7 C2IN3-C1IN3-C3IN3- SS1(1)
RG0 3 ANG0
RG1 4 ANG1 CK2(1,3)
RG2 5 ANG2 C3IN0+ RX2(1,3)
DT2(1,3)
RG3 6 ANG3 C3IN0- CCP4(1)
RG4 8 ANG4 C3IN1- T5G(1)
T7CKI(1) CCP5(1)
RG5 7 IOCG5 Vpp/MCLR
RG6 20 ANG6 SMT2WIN1(1)
RG7 19 ANG7 SMT2SIG1(1)
RH0 26
RH1 25 ADCACT(1)
RH2 57
RH3 56
VDD 10, 38 VDD
VSS 9, 41 VSS
OUT(2) ADGRDA

ADGRDB

C1OUT C2OUT C3OUT TMR0 CCP1

CCP2

CCP3

CCP4

CCP5

PWM6OUT

PWM7OUT

CWG1A

CWG1B

CWG1C

CWG1D

CLKR TX1/CK1(3) 
DT1(3)
TX2/CK2(3)
DT2(3)
 TX3/CK3(3) 
DT3(3)
TX4/CK4(3)
DT4(3) TX5/CK5(3) 
DT5(3) DSM SDO1

SCK1

SDO2

SCK2

Note:
  1. 1.This is a PPS remappable input signal. The input function may be moved from the default location shown to one of several other PORTx pins. Refer to the peripheral input selection table for details on which PORT pins may be used for this signal.
  2. 2.All output signals shown in this row are PPS remappable. These signals may be mapped to output onto one of several PORTx pin options as described in the peripheral output selection table.
  3. 3.This is a bidirectional signal. For normal module operation, the firmware should map this signal to the same pin in both the PPS input and PPS output registers.
  4. 4.These pins are configured for I2C logic levels; The SCLx/SDAx signals may be assigned to any of these pins. PPS assignments to the other pins (e.g., RB1) will operate, but input logic levels will be standard TTL/ST as selected by the INLVL register, instead of the I2C specific or SMBus input buffer thresholds.