Datasheet
PIC18F6585/8585/6680/8680
DS30491D-page 14 2003-2013 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
RB0
INT0
48 60 58
I/O
I
TTL
ST
Digital I/O.
External interrupt 0.
RB1/INT1
RB1
INT1
47 59 57
I/O
I
TTL
ST
Digital I/O.
External interrupt 1.
RB2/INT2
RB2
INT2
46 58 56
I/O
I
TTL
ST
Digital I/O.
External interrupt 2.
RB3/INT3/CCP2
RB3
INT3
CCP2
(1)
45 57 55
I/O
I/O
I/O
TTL
ST
ST
Digital I/O.
External interrupt 3.
Capture 2 input/Compare 2 output/
PWM 2 output.
RB4/KBI0
RB4
KBI0
44 56 54
I/O
I
TTL
ST
Digital I/O.
Interrupt-on-change pin.
RB5/KBI1/PGM
RB5
KBI1
PGM
43 55 53
I/O
I
I/O
TTL
ST
ST
Digital I/O.
Interrupt-on-change pin.
Low-Voltage ICSP Programming
enable pin.
RB6/KBI2/PGC
RB6
KBI2
PGC
42 54 52
I/O
I
I/O
TTL
ST
ST
Digital I/O.
Interrupt-on-change pin.
In-circuit debugger and ICSP
programming clock.
RB7/KBI3/PGD
RB7
KBI3
PGD
37 48 47
I/O
I/O
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-circuit debugger and ICSP
programming data.
TABLE 1-2: PIC18F6585/8585/6680/8680 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Name
Pin Number
Pin
Type
Buffer
Type
DescriptionPIC18F6X8X PIC18F8X8X
TQFP PLCC TQFP
Legend: TTL = TTL compatible input CMOS = CMOS compatible input or output
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I = Input O = Output
P = Power OD = Open-Drain (no P diode to V
DD)
Note 1: Alternate assignment for CCP2 in all operating modes except Microcontroller – applies to PIC18F8X8X only.
2: Default assignment when CCP2MX is set.
3: External memory interface functions are only available on PIC18F8X8X devices.
4: CCP2 is multiplexed with this pin by default when configured in Microcontroller mode; otherwise, it is
multiplexed with either RB3 or RC1.
5: PORTH and PORTJ are only available on PIC18F8X8X (80-pin) devices.
6: PSP is available in Microcontroller mode only.
7: On PIC18F8X8X devices, these pins can be multiplexed with RH7/RH6 by changing the ECCPMX
configuration bit.
18F8680.book Page 14 Tuesday, January 29, 2013 1:32 PM