main
Download ZIP Propose a change
Generated by kicad-footprint-generator · KiCad file format 20260206
Name Last commit message Last updated
docs Publish 0.1.0 · Ray
viewers pic18f87k22-i: symbol viewer · Ray
package.json Publish 0.1.1 · Ray
page.json Publish 0.1.1 · Ray
pic18f87k22-i-etched.glb Publish 0.1.0 · Ray
pic18f87k22-i-etched.step pic18f87k22-i: factory component page (tier=lcsc) · Ray
pic18f87k22-i-hero.glb pic18f87k22-i: hero GLB from the etched model (keeps the MPN mark) · Ray
pic18f87k22-i-hero.overlay.json Publish 0.1.0 · Ray
pic18f87k22-i.glb Publish 0.1.0 · Ray
pic18f87k22-i.kicad_mod Publish 0.1.0 · Ray
pic18f87k22-i.kicad_sym pic18f87k22-i: symbol repaired (body fitted to the names) · Ray
pic18f87k22-i.lbr pic18f87k22-i: symbol repaired (body fitted to the names) · Ray
pic18f87k22-i.step Publish 0.1.0 · Ray
README.md Publish 0.1.0 · Ray

PIC18F87K22-I

Microchip Tech · MICROCHIP · TQFP-80(12x12)

PIC18F87K22-I from Microchip Tech, in a TQFP-80(12x12). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 RH2/AN21/A18 bidirectional Digital I/O with analog input AN21 and external address/data line A18 on the 80-pin device.
2 RH3/AN20/A19 bidirectional Digital I/O with analog input AN20 and external address/data line A19 on the 80-pin device.
3 RE1/P2C/WR/AD9 bidirectional Digital I/O that also carries ECCP2 PWM output C, the Parallel Slave Port write strobe and external address/data bit 9.
4 RE0/P2D/RD/AD8 bidirectional Digital I/O that also carries ECCP2 PWM output D, the Parallel Slave Port read strobe and external address/data bit 8.
5 RG0/ECCP3/P3A bidirectional Digital I/O with Schmitt Trigger input that also carries ECCP3 capture/compare and PWM output A.
6 RG1/TX2/CK2/AN19/C3OUT bidirectional Digital I/O that also carries EUSART2 asynchronous transmit or synchronous clock, analog input AN19 and comparator 3 output.
7 RG2/RX2/DT2/AN18/C3INA bidirectional Digital I/O that also carries EUSART2 receive or synchronous data, analog input AN18 and comparator 3 input A.
8 RG3/CCP4/AN17/P3D/C3INB bidirectional Digital I/O that also carries CCP4 capture/compare/PWM, analog input AN17, ECCP3 PWM output D and comparator 3 input B.
9 MCLR/RG5 input Active-low Master Clear Reset input or programming voltage input; when MCLR is disabled this pin is a general purpose input-only pin RG5.
10 RG4/RTCC/T7CKI/T5G/CCP5/AN16/P1D/C3INC bidirectional Digital I/O that also carries RTCC output, Timer7 clock input, Timer5 gate input, CCP5, analog input AN16, ECCP1 PWM output D and comparator 3 input C.
11 VSS power_in Ground reference for logic and I/O pins.
12 VDDCORE/VCAP power_in Core logic power supply or external filter capacitor connection for the on-chip regulator; the datasheet specifies a 10 µF capacitor when the regulator is enabled.
13 RF7/AN5/SS1 bidirectional Digital I/O with analog input AN5 and SPI1 slave select input.
14 RF6/AN11/C1INA bidirectional Digital I/O with analog input AN11 and comparator 1 input A.
15 RF5/AN10/C1INB bidirectional Digital I/O with analog input AN10 and comparator 1 input B.
16 RF4/AN9/C2INA bidirectional Digital I/O with analog input AN9 and comparator 2 input A.
17 RF3/AN8/C2INB/CTMUI bidirectional Digital I/O with analog input AN8, comparator 2 input B and CTMU pulse generator charger output for C2INB.
18 RF2/AN7/C1OUT bidirectional Digital I/O with analog input AN7 and comparator 1 output.
19 RH7/CCP6/P1B/AN15 bidirectional Digital I/O that also carries CCP6 capture/compare/PWM, ECCP1 PWM output B and analog input AN15.
20 RH6/CCP7/P1C/AN14/C1INC bidirectional Digital I/O that also carries CCP7 capture/compare/PWM, ECCP1 PWM output C, analog input AN14 and comparator 1 input C.
21 RH5/CCP8/P3B/AN13/C2IND bidirectional Digital I/O that also carries CCP8 capture/compare/PWM, ECCP3 PWM output B, analog input AN13 and comparator 2 input D.
22 RH4/CCP9/P3C/AN12/C2INC bidirectional Digital I/O that also carries CCP9 capture/compare/PWM, ECCP3 PWM output C, analog input AN12 and comparator 2 input C.
23 RF1/AN6/C2OUT/CTDIN bidirectional Digital I/O with analog input AN6, comparator 2 output and CTMU pulse delay input.
24 ENVREG input Enable pin for the on-chip voltage regulator; tying it to VDD enables the regulator and tying it to ground disables it.
25 AVDD power_in Positive supply for analog modules.
26 AVSS power_in Ground reference for analog modules.
27 RA3/AN3/VREF+ bidirectional Digital I/O with analog input AN3 and A/D high reference voltage input VREF+.
28 RA2/AN2/VREF- bidirectional Digital I/O with analog input AN2 and A/D low reference voltage input VREF-.
29 RA1/AN1 bidirectional Digital I/O with analog input AN1.
30 RA0/AN0/ULPWU bidirectional Digital I/O with analog input AN0 and Ultra Low-Power Wake-up input.
31 VSS power_in Ground reference for logic and I/O pins.
32 VDD power_in Positive supply for logic and I/O pins.
33 RA5/AN4/T1CKI/T3G/HLVDIN bidirectional Digital I/O with analog input AN4, Timer1 clock input, Timer3 gate input and high/low-voltage detect input HLVDIN.
34 RA4/T0CKI bidirectional Digital I/O with Schmitt Trigger input that also serves as Timer0 external clock input.
35 RC1/SOSCI/ECCP2/P2A bidirectional Digital I/O that also serves as SOSC oscillator input, ECCP2 capture/compare/PWM (default assignment) and ECCP2 PWM output A.
36 RC0/SOSCO/SCLKI bidirectional Digital I/O that also serves as SOSC oscillator output and digital SOSC clock input.
37 RC6/TX1/CK1 bidirectional Digital I/O that also carries EUSART1 asynchronous transmit or synchronous clock.
38 RC7/RX1/DT1 bidirectional Digital I/O that also carries EUSART1 asynchronous receive or synchronous data.
39 RJ4/BA0 bidirectional Digital I/O that becomes external memory byte address 0 control output when the external memory bus is enabled.
40 RJ5/CE bidirectional Digital I/O that becomes external memory chip enable control output when the external memory bus is enabled.
41 RJ6/LB bidirectional Digital I/O that becomes external memory lower byte enable control output when the external memory bus is enabled.
42 RJ7/UB bidirectional Digital I/O that becomes external memory upper byte enable control output when the external memory bus is enabled.
43 RC2/ECCP1/P1A bidirectional Digital I/O that also carries ECCP1 capture/compare/PWM and ECCP1 Enhanced PWM output A.
44 RC3/SCK1/SCL1 bidirectional Digital I/O that also carries MSSP1 SPI clock or I2C clock.
45 RC4/SDI1/SDA1 bidirectional Digital I/O that also carries MSSP1 SPI data input or I2C data.
46 RC5/SDO1 bidirectional Digital I/O that also carries MSSP1 SPI data output.
47 RB7/KBI3/PGD bidirectional Digital I/O with weak pull-up and interrupt-on-change that also serves as the ICSP and ICD data pin.
48 VDD power_in Positive supply for logic and I/O pins.
49 OSC1/CLKI/RA7 input Oscillator crystal or external clock input; in internal oscillator modes this pin becomes general purpose I/O RA7.
50 OSC2/CLKO/RA6 output Oscillator crystal or clock output; in certain oscillator modes it outputs CLKO at 1/4 the OSC1 frequency, otherwise it is general purpose I/O RA6.
51 VSS power_in Ground reference for logic and I/O pins.
52 RB6/KBI2/PGC bidirectional Digital I/O with weak pull-up and interrupt-on-change that also serves as the ICSP and ICD clock pin.
53 RB5/KBI1/T3CKI/T1G bidirectional Digital I/O with weak pull-up and interrupt-on-change that also serves as Timer3 clock input and Timer1 gate input.
54 RB4/KBI0 bidirectional Digital I/O with weak pull-up and interrupt-on-change.
55 RB3/INT3/CTED2/ECCP2/P2A bidirectional Digital I/O with weak pull-up that also serves as external interrupt 3, CTMU edge 2 input, ECCP2 and ECCP2 PWM output A.
56 RB2/INT2/CTED1 bidirectional Digital I/O with weak pull-up that also serves as external interrupt 2 and CTMU edge 1 input.
57 RB1/INT1 bidirectional Digital I/O with weak pull-up that also serves as external interrupt 1.
58 RB0/INT0/FLT0 bidirectional Digital I/O with weak pull-up that also serves as external interrupt 0 and enhanced PWM fault input for ECCP1/2/3.
59 RJ3/WRH bidirectional Digital I/O that becomes external memory high-byte write control when the external memory bus is enabled.
60 RJ2/WRL bidirectional Digital I/O that becomes external memory low-byte write control when the external memory bus is enabled.
61 RJ1/OE bidirectional Digital I/O that becomes external memory output enable control when the external memory bus is enabled.
62 RJ0/ALE bidirectional Digital I/O that becomes external memory address latch enable control when the external memory bus is enabled.
63 RD7/SS2/PSP7/AD7 bidirectional Digital I/O that also carries Parallel Slave Port data bit 7, SPI2 slave select input and external address/data bit 7.
64 RD6/SCK2/SCL2/PSP6/AD6 bidirectional Digital I/O that also carries MSSP2 SPI clock or I2C clock, Parallel Slave Port data bit 6 and external address/data bit 6.
65 RD5/SDI2/SDA2/PSP5/AD5 bidirectional Digital I/O that also carries MSSP2 SPI data input or I2C data, Parallel Slave Port data bit 5 and external address/data bit 5.
66 RD4/SDO2/PSP4/AD4 bidirectional Digital I/O that also carries MSSP2 SPI data output, Parallel Slave Port data bit 4 and external address/data bit 4.
67 RD3/PSP3/AD3 bidirectional Digital I/O that also carries Parallel Slave Port data bit 3 and external address/data bit 3.
68 RD2/PSP2/AD2 bidirectional Digital I/O that also carries Parallel Slave Port data bit 2 and external address/data bit 2.
69 RD1/T5CKI/T7G/PSP1/AD1 bidirectional Digital I/O that also carries Timer5 clock input, Timer7 gate input, Parallel Slave Port data bit 1 and external address/data bit 1.
70 VSS power_in Ground reference for logic and I/O pins.
71 VDD power_in Positive supply for logic and I/O pins.
72 RD0/PSP0/CTPLS/AD0 bidirectional Digital I/O that also carries Parallel Slave Port data bit 0, CTMU pulse generator output and external address/data bit 0.
73 RE7/ECCP2/P2A/AD15 bidirectional Digital I/O that also carries ECCP2 capture/compare/PWM (alternate assignment), ECCP2 PWM output A and external address/data bit 15.
74 RE6/P1B/CCP6/AD14 bidirectional Digital I/O that also carries ECCP1 PWM output B, CCP6 capture/compare/PWM and external address/data bit 14.
75 RE5/P1C/CCP7/AD13 bidirectional Digital I/O that also carries ECCP1 PWM output C, CCP7 capture/compare/PWM and external address/data bit 13.
76 RE4/P3B/CCP8/AD12 bidirectional Digital I/O that also carries ECCP3 PWM output B, CCP8 capture/compare/PWM and external address/data bit 12.
77 RE3/P3C/CCP9/REFO/AD11 bidirectional Digital I/O that also carries ECCP3 PWM output C, CCP9 capture/compare/PWM, reference clock output REFO and external address/data bit 11.
78 RE2/P2B/CCP10/CS/AD10 bidirectional Digital I/O that also carries ECCP2 PWM output B, CCP10 capture/compare/PWM, Parallel Slave Port chip select and external address/data bit 10.
79 RH0/AN23/A16 bidirectional Digital I/O with analog input AN23 and external address line A16.
80 RH1/AN22/A17 bidirectional Digital I/O with analog input AN22 and external address line A17.

Key specifications

Parameter Value
Manufacturer Microchip Tech
Package TQFP-80(12x12)
Category Embedded Processors & Controllers
Pins 80

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
Operating Voltage Range 1.8 5.5 V 1
Operating Speed 64 MHz 1
Flash Program Memory Erase/Write Cycles 10000 cycles 1
Flash Retention 40 years 1
VCAP/VDDCORE Capacitor ESR 5 Ω Voltage regulator enabled 37

CAD (KiCad official)

  • Symbol: PIC18F87K22-I
  • Footprint: Package_QFP:TQFP-80_12x12mm_P0.5mm
  • 3D model: TQFP-80(12x12) (KiCad packages3D, STEP)
  • 3D model files: pic18f87k22-i-etched.step / pic18f87k22-i-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); pic18f87k22-i.step / pic18f87k22-i.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: Microchip Tech datasheet (526 pp, sha256 861566b69a31c816, retrieved 2026-10-27, tier: lcsc)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-haiku-5-5 (text), consensus claude-sonnet-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF