PIC18F2331/2431/4331/4431
Pin Diagrams (Continued)
40-Pin PDIP
MCLR/VPP/RE3
RA0/AN0
1
2
3
4
5
6
7
8
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7/KBI3/PGD
RB6/KBI2/PGC
RB5/KBI1/PWM4/PGM
RB4/KBI0/PWM5
RB3/PWM3
RA1/AN1
RA2/AN2/VREF-/CAP1/INDX
RA3/AN3/VREF+/CAP2/QEA
RA4/AN4/CAP3/QEB
RB2/PWM2
RA5/AN5/LVDIN
RE0/AN6
RB1/PWM1
RB0/PWM0
VDD
RE1/AN7
RE2/AN8
9
10
11
12
13
14
15
16
17
18
19
20
VSS
AVDD
AVSS
RD7/PWM7
RD6/PWM6
(3)
OSC1/CLKI/RA7
OSC2/CLKO/RA6
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2/FLTA
RC2/CCP1/FLTB
RD5/PWM4
(2)
RD4/FLTA
RC7/RX/DT/SDO
RC6/TX/CK/SS
(1)
(1)
RC5/INT2/SCK /SCL
(1)
(1)
(1)
(1)
RC3/T0CKI /T5CKI /INT0
RD0/T0CKI/T5CKI
RD1/SDO
RC4/INT1/SDI /SDA
RD3/SCK/SCL
RD2/SDI/SDA
Note 1: RC3 is the alternate pin for T0CKI/T5CKI; RC4 is the alternate pin for SDI/SDA; RC5 is the alternate pin
for SCK/SCL.
2: RD4 is the alternate pin for FLTA.
3: RD5 is the alternate pin for PWM4.
2010 Microchip Technology Inc.
DS39616D-page 5