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
PORTD is a bidirectional I/O port.
RD0/T0CKI/T5CKI
RD0
19
38
38
I/O
I
I
ST
ST
ST
Digital I/O.
Timer0 external clock input.
Timer5 input clock.
T0CKI
T5CKI
RD1/SDO
RD1
20
21
39
40
39
40
I/O
O
ST
—
Digital I/O.
SPI data out.
SDO(1)
RD2/SDI/SDA
RD2
I/O
I
I/O
ST
ST
ST
Digital I/O.
SDI(1)
SPI data in.
SDA(1)
I2C™ data I/O.
RD3/SCK/SCL
RD3
22
41
41
I/O
I/O
I/O
ST
ST
ST
Digital I/O.
SCK(1)
Synchronous serial clock input/output for SPI mode.
SCL(1)
Synchronous serial clock input/output for I2C mode.
RD4/FLTA
RD4
27
28
29
30
2
3
4
5
2
3
4
5
I/O
I
ST
ST
Digital I/O.
Fault interrupt input pin.
FLTA(2)
RD5/PWM4
RD5
I/O
O
ST
TTL
Digital I/O.
PWM Output 4.
PWM4(3)
RD6/PWM6
RD6
I/O
O
ST
TTL
Digital I/O.
PWM Output 6.
PWM6
RD7/PWM7
RD7
I/O
O
ST
TTL
Digital I/O.
PWM Output 7.
PWM7
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.
2010 Microchip Technology Inc.
DS39616D-page 23