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
PORTB is a bidirectional I/O port. PORTB can be software
programmed for internal weak pull-ups on all inputs.
RB0/PWM0
RB0
33
34
35
36
37
8
9
I/O
O
TTL
TTL
Digital I/O.
PWM Output 0.
PWM0
RB1/PWM1
RB1
9
10
11
12
14
I/O
O
TTL
TTL
Digital I/O.
PWM Output 1.
PWM1
RB2/PWM2
RB2
10
11
14
I/O
O
TTL
TTL
Digital I/O.
PWM Output 2.
PWM2
RB3/PWM3
RB3
I/O
O
TTL
TTL
Digital I/O.
PWM Output 3.
PWM3
RB4/KBI0/PWM5
RB4
I/O
I
O
TTL
TTL
TTL
Digital I/O.
Interrupt-on-change pin.
PWM Output 5.
KBI0
PWM5
RB5/KBI1/PWM4/
PGM
38
15
15
RB5
KBI1
PWM4
PGM
I/O
I
O
TTL
TTL
TTL
ST
Digital I/O.
Interrupt-on-change pin.
PWM Output 4.
I/O
Single-Supply ICSP™ Programming entry pin.
RB6/KBI2/PGC
RB6
39
40
16
17
16
17
I/O
I
I/O
TTL
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP programming clock pin.
KBI2
PGC
RB7/KBI3/PGD
RB7
I/O
I
I/O
TTL
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP programming data pin.
KBI3
PGD
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 21