PIC18F2331/2431/4331/4431
TABLE 1-2:
PIC18F2331/2431 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Number
Pin Buffer
Type Type
Pin Name
Description
SPDIP,
QFN
SOIC
PORTB is a bidirectional I/O port. PORTB can be software
programmed for internal weak pull-ups on all inputs.
RB0/PWM0
RB0
21
22
23
24
25
18
19
20
21
22
I/O
O
TTL
TTL
Digital I/O.
PWM Output 0.
PWM0
RB1/PWM1
RB1
I/O
O
TTL
TTL
Digital I/O.
PWM Output 1.
PWM1
RB2/PWM2
RB2
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
26
23
RB5
I/O
I
O
TTL
TTL
TTL
ST
Digital I/O.
Interrupt-on-change pin.
PWM Output 4.
KBI1
PWM4
PGM
I/O
Single-Supply ICSP™ Programming entry pin.
RB6/KBI2/PGC
RB6
27
28
24
25
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
2010 Microchip Technology Inc.
DS39616D-page 17