Datasheet

2009-2011 Microchip Technology Inc. DS39960D-page 17
PIC18F87K22 FAMILY
PORTB is a bidirectional I/O port. PORTB can be software
programmed for internal weak pull-ups on all inputs.
RB0/INT0/FLTO
RB0
INT0
FLT0
48
I/O
I
I
TTL
ST
ST
Digital I/O.
External Interrupt 0.
Enhanced PWM Fault input for ECCP1/2/3.
RB1/INT1
RB1
INT1
47
I/O
I
TTL
ST
Digital I/O.
External Interrupt 1.
RB2/INT2/CTED1
RB2
INT2
CTED1
46
I/O
I
I
TTL
ST
ST
Digital I/O.
External Interrupt 2.
CTMU Edge 1 input.
RB3/INT3/CTED2/
ECCP2/P2A
RB3
INT3
CTED2
ECCP2
P2A
45
I/O
I
I
I/O
O
TTL
ST
ST
ST
Digital I/O.
External Interrupt 3.
CTMU Edge 2 input.
Capture 2 input/Compare 2 output/PWM2.
Enhanced PWM2 Output A.
RB4/KBI0
RB4
KBI0
44
I/O
I
TTL
TTL
Digital I/O.
Interrupt-on-change pin.
RB5/KBI1/T3CKI/T1G
RB5
KBI1
T3CKI
T1G
43
I/O
I
I
I
TTL
TTL
ST
ST
Digital I/O.
Interrupt-on-change pin.
Timer3 clock input.
Timer1 external clock gate input.
RB6/KBI2/PGC
RB6
KBI2
PGC
42
I/O
I
I/O
TTL
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP™ programming clock pin.
RB7/KBI3/PGD
RB7
KBI3
PGD
37
I/O
I
I/O
TTL
TTL
ST
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP programming data pin.
TABLE 1-3: PIC18F6XK22 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Name
Pin Number
Pin
Type
Buffer
Type
Description
QFN/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)
I
2
C= I
2
C™/SMBus
Note 1: Default assignment for ECCP2 when the CCP2MX Configuration bit is set.
2: Alternate assignment for ECCP2 when the CCP2MX Configuration bit is cleared.
3: Not available on PIC18F65K22 and PIC18F85K22 devices.
4: The CC6, CCP7, CCP8 and CCP9 pin placement depends on the setting of the ECCPMX Configuration bit
(CONFIG3H<1>).