
PIC18F2585/2680/4585/4680
DS39625C-page 18
Preliminary
2007 Microchip Technology Inc.
PORTB is a bidirectional I/O port. PORTB can be
software programmed for internal weak pull-ups on all
inputs.
RB0/INT0/FLT0/AN10
RB0
INT0
FLT0
AN10
33
9
8
I/O
I
TTL
ST
Analog
Digital I/O.
External interrupt 0.
Enhanced PWM Fault input (ECCP1 module).
Analog input 10.
RB1/INT1/AN8
RB1
INT1
AN8
34
10
9
I/O
I
TTL
ST
Analog
Digital I/O.
External interrupt 1.
Analog input 8.
RB2/INT2/CANTX
RB2
INT2
CANTX
35
11
10
I/O
I
O
TTL
ST
TTL
Digital I/O.
External interrupt 2.
CAN bus TX.
RB3/CANRX
RB3
CANRX
36
12
11
I/O
I
TTL
Digital I/O.
CAN bus RX.
RB4/KBI0/AN9
RB4
KBI0
AN9
37
14
I/O
I
TTL
Analog
Digital I/O.
Interrupt-on-change pin.
Analog input 9.
RB5/KBI1/PGM
RB5
KBI1
PGM
38
15
I/O
I
I/O
TTL
ST
Digital I/O.
Interrupt-on-change pin.
Low-Voltage ICSP Programming enable pin.
RB6/KBI2/PGC
RB6
KBI2
PGC
39
16
I/O
I
I/O
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP programming
clock pin.
RB7/KBI3/PGD
RB7
KBI3
PGD
40
17
I/O
I
I/O
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP programming
data pin.
TABLE 1-3:
PIC18F4585/4680 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Name
Pin Number
Pin
Type
Buffer
Type
Description
PDIP
QFN
TQFP
Legend: TTL = TTL compatible input
CMOS = CMOS compatible input or output
ST
= Schmitt Trigger input with CMOS levels
I
= Input
O
= Output
P
= Power