PIC18F2331/2431/4331/4431
TABLE 1-3:
Pin Name
PIC18F4331/4431 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Number
Pin Buffer
Type Type
Description
PDIP TQFP QFN
PORTA is a bidirectional I/O port.
RA0/AN0
RA0
2
3
4
19
20
21
19
20
21
I/O
I
TTL
Analog
Digital I/O.
Analog Input 0.
AN0
RA1/AN1
RA1
I/O
I
TTL
Analog
Digital I/O.
Analog Input 1.
AN1
RA2/AN2/VREF-/CAP1/
INDX
RA2
I/O
TTL
Analog
Analog
ST
Digital I/O.
Analog Input 2.
A/D reference voltage (low) input.
Input Capture Pin 1.
Quadrature Encoder Interface index input pin.
AN2
I
I
I
I
VREF-
CAP1
INDX
ST
RA3/AN3/VREF+/
CAP2/QEA
RA3
5
22
22
I/O
TTL
Analog
Analog
ST
Digital I/O.
Analog Input 3.
A/D reference voltage (high) input.
Input Capture Pin 2.
Quadrature Encoder Interface Channel A input pin.
AN3
VREF+
CAP2
QEA
I
I
I
I
ST
RA4/AN4/CAP3/QEB
6
7
23
24
23
24
RA4
AN4
CAP3
QEB
I/O
TTL
Analog
ST
Digital I/O.
Analog Input 4.
Input Capture Pin 3.
Quadrature Encoder Interface Channel B input pin.
I
I
I
ST
RA5/AN5/LVDIN
RA5
I/O
TTL
Digital I/O.
AN5
LVDIN
I
I
Analog
Analog
Analog Input 5.
Low-Voltage Detect input.
Legend: TTL = TTL compatible input
ST = Schmitt Trigger input with CMOS levels
= Output
CMOS = CMOS compatible input or output
I
= Input
O
P
= Power
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; RC7 is the alternate pin for SDO.
2: RD4 is the alternate pin for FLTA.
3: RD5 is the alternate pin for PWM4.
DS39616D-page 20
2010 Microchip Technology Inc.