English
Language : 

PIC18F87K22 Datasheet, PDF (26/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
TABLE 1-4: PIC18F8XK22 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Name
Pin Number Pin Buffer
TQFP Type Type
Description
PORTB is a bidirectional I/O port. PORTB can be software
programmed for internal weak pull-ups on all inputs.
RB0/INT0/FLT0
RB0
INT0
FLT0
58
I/O TTL
Digital I/O.
I
ST
External Interrupt 0.
I
ST
Enhanced PWM Fault input for ECCP1/2/3.
RB1/INT1
RB1
INT1
57
I/O TTL
Digital I/O.
I
ST
External Interrupt 1.
RB2/INT2/CTED1
RB2
INT2
CTED1
56
I/O TTL
Digital I/O.
I
ST
External Interrupt 2.
I
ST
CTMU Edge 1 input.
RB3/INT3/CTED2/
ECCP2/P2A
RB3
INT3
CTED2
ECCP2
P2A
55
I/O TTL
I
ST
I
ST
I/O ST
O ST
Digital I/O.
External Interrupt 3.
CTMU Edge 2 input.
Capture 2 input/Compare 2 output/PWM2 output.
Enhanced PWM 2 Output A.
RB4/KBI0
RB4
KBI0
54
I/O TTL
Digital I/O.
I TTL
Interrupt-on-change pin.
RB5/KBI1/T3CKI/T1G
RB5
KBI1
T3CKI
T1G
53
I/O TTL
Digital I/O.
I TTL
Interrupt-on-change pin.
I
ST
Timer3 clock input.
I
ST
Timer1 external clock gate input.
RB6/KBI2/PGC
RB6
KBI2
PGC
52
I/O TTL
Digital I/O.
I TTL
Interrupt-on-change pin.
I/O ST
In-Circuit Debugger and ICSP™ programming clock pin.
RB7/KBI3/PGD
RB7
KBI3
PGD
47
I/O TTL
Digital I/O.
I TTL
Interrupt-on-change pin.
I/O ST
In-Circuit Debugger and ICSP programming data pin.
Legend:
TTL = TTL compatible input
ST = Schmitt Trigger input with CMOS levels
I = Input
P = Power
I2C = I2C™/SMBus
CMOS
Analog
O
OD
= CMOS compatible input or output
= Analog input
= Output
= Open-Drain (no P diode to VDD)
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: PSP is available only in Microcontroller mode.
5: The CC6, CCP7, CCP8 and CCP9 pin placement depends on the setting of the ECCPMX Configuration bit
(CONFIG3H<1>).
DS39960B-page 26
Preliminary
 2010 Microchip Technology Inc.