main
Ray
Publish 0.1.1
10429f9
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
{
"schema_version": 1,
"type": "component",
"slug": "pic18f87k22-i",
"title": "PIC18F87K22-I",
"brief": "Microchip Tech MICROCHIP, TQFP-80(12x12). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"version": "0.1.1",
"license": "CC-BY-SA-4.0",
"tags": [
"component",
"embedded processors & controllers",
"pic18f87k22-i",
"factory-2.0.0",
"extractor-text"
],
"component": {
"mpn": "PIC18F87K22-I",
"manufacturer": "Microchip Tech",
"package": "TQFP-80(12x12)",
"pin_count": 80,
"category": "Embedded Processors & Controllers",
"subcategory": "MICROCHIP",
"datasheet": "https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F87K22-Family-Data-Sheet-DS30009960.pdf",
"parts": {
"symbol": "pic18f87k22-i.kicad_sym",
"footprint": "pic18f87k22-i.kicad_mod",
"model_3d": "pic18f87k22-i-hero.glb",
"model_3d_plain": "pic18f87k22-i.glb",
"model_3d_step": "pic18f87k22-i-etched.step",
"model_3d_step_plain": "pic18f87k22-i.step",
"lbr": "pic18f87k22-i.lbr"
},
"distributor_links": {
"lcsc": "C36293"
},
"distributor_check": {
"checked_at": "2026-10-27T01:55:40Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "RH2/AN21/A18",
"type": "bidirectional",
"description": "Digital I/O with analog input AN21 and external address/data line A18 on the 80-pin device."
},
{
"number": "2",
"name": "RH3/AN20/A19",
"type": "bidirectional",
"description": "Digital I/O with analog input AN20 and external address/data line A19 on the 80-pin device."
},
{
"number": "3",
"name": "RE1/P2C/WR/AD9",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP2 PWM output C, the Parallel Slave Port write strobe and external address/data bit 9."
},
{
"number": "4",
"name": "RE0/P2D/RD/AD8",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP2 PWM output D, the Parallel Slave Port read strobe and external address/data bit 8."
},
{
"number": "5",
"name": "RG0/ECCP3/P3A",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input that also carries ECCP3 capture/compare and PWM output A."
},
{
"number": "6",
"name": "RG1/TX2/CK2/AN19/C3OUT",
"type": "bidirectional",
"description": "Digital I/O that also carries EUSART2 asynchronous transmit or synchronous clock, analog input AN19 and comparator 3 output."
},
{
"number": "7",
"name": "RG2/RX2/DT2/AN18/C3INA",
"type": "bidirectional",
"description": "Digital I/O that also carries EUSART2 receive or synchronous data, analog input AN18 and comparator 3 input A."
},
{
"number": "8",
"name": "RG3/CCP4/AN17/P3D/C3INB",
"type": "bidirectional",
"description": "Digital I/O that also carries CCP4 capture/compare/PWM, analog input AN17, ECCP3 PWM output D and comparator 3 input B."
},
{
"number": "9",
"name": "MCLR/RG5",
"type": "input",
"description": "Active-low Master Clear Reset input or programming voltage input; when MCLR is disabled this pin is a general purpose input-only pin RG5."
},
{
"number": "10",
"name": "RG4/RTCC/T7CKI/T5G/CCP5/AN16/P1D/C3INC",
"type": "bidirectional",
"description": "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."
},
{
"number": "11",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "12",
"name": "VDDCORE/VCAP",
"type": "power_in",
"description": "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."
},
{
"number": "13",
"name": "RF7/AN5/SS1",
"type": "bidirectional",
"description": "Digital I/O with analog input AN5 and SPI1 slave select input."
},
{
"number": "14",
"name": "RF6/AN11/C1INA",
"type": "bidirectional",
"description": "Digital I/O with analog input AN11 and comparator 1 input A."
},
{
"number": "15",
"name": "RF5/AN10/C1INB",
"type": "bidirectional",
"description": "Digital I/O with analog input AN10 and comparator 1 input B."
},
{
"number": "16",
"name": "RF4/AN9/C2INA",
"type": "bidirectional",
"description": "Digital I/O with analog input AN9 and comparator 2 input A."
},
{
"number": "17",
"name": "RF3/AN8/C2INB/CTMUI",
"type": "bidirectional",
"description": "Digital I/O with analog input AN8, comparator 2 input B and CTMU pulse generator charger output for C2INB."
},
{
"number": "18",
"name": "RF2/AN7/C1OUT",
"type": "bidirectional",
"description": "Digital I/O with analog input AN7 and comparator 1 output."
},
{
"number": "19",
"name": "RH7/CCP6/P1B/AN15",
"type": "bidirectional",
"description": "Digital I/O that also carries CCP6 capture/compare/PWM, ECCP1 PWM output B and analog input AN15."
},
{
"number": "20",
"name": "RH6/CCP7/P1C/AN14/C1INC",
"type": "bidirectional",
"description": "Digital I/O that also carries CCP7 capture/compare/PWM, ECCP1 PWM output C, analog input AN14 and comparator 1 input C."
},
{
"number": "21",
"name": "RH5/CCP8/P3B/AN13/C2IND",
"type": "bidirectional",
"description": "Digital I/O that also carries CCP8 capture/compare/PWM, ECCP3 PWM output B, analog input AN13 and comparator 2 input D."
},
{
"number": "22",
"name": "RH4/CCP9/P3C/AN12/C2INC",
"type": "bidirectional",
"description": "Digital I/O that also carries CCP9 capture/compare/PWM, ECCP3 PWM output C, analog input AN12 and comparator 2 input C."
},
{
"number": "23",
"name": "RF1/AN6/C2OUT/CTDIN",
"type": "bidirectional",
"description": "Digital I/O with analog input AN6, comparator 2 output and CTMU pulse delay input."
},
{
"number": "24",
"name": "ENVREG",
"type": "input",
"description": "Enable pin for the on-chip voltage regulator; tying it to VDD enables the regulator and tying it to ground disables it."
},
{
"number": "25",
"name": "AVDD",
"type": "power_in",
"description": "Positive supply for analog modules."
},
{
"number": "26",
"name": "AVSS",
"type": "power_in",
"description": "Ground reference for analog modules."
},
{
"number": "27",
"name": "RA3/AN3/VREF+",
"type": "bidirectional",
"description": "Digital I/O with analog input AN3 and A/D high reference voltage input VREF+."
},
{
"number": "28",
"name": "RA2/AN2/VREF-",
"type": "bidirectional",
"description": "Digital I/O with analog input AN2 and A/D low reference voltage input VREF-."
},
{
"number": "29",
"name": "RA1/AN1",
"type": "bidirectional",
"description": "Digital I/O with analog input AN1."
},
{
"number": "30",
"name": "RA0/AN0/ULPWU",
"type": "bidirectional",
"description": "Digital I/O with analog input AN0 and Ultra Low-Power Wake-up input."
},
{
"number": "31",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "32",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "33",
"name": "RA5/AN4/T1CKI/T3G/HLVDIN",
"type": "bidirectional",
"description": "Digital I/O with analog input AN4, Timer1 clock input, Timer3 gate input and high/low-voltage detect input HLVDIN."
},
{
"number": "34",
"name": "RA4/T0CKI",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input that also serves as Timer0 external clock input."
},
{
"number": "35",
"name": "RC1/SOSCI/ECCP2/P2A",
"type": "bidirectional",
"description": "Digital I/O that also serves as SOSC oscillator input, ECCP2 capture/compare/PWM (default assignment) and ECCP2 PWM output A."
},
{
"number": "36",
"name": "RC0/SOSCO/SCLKI",
"type": "bidirectional",
"description": "Digital I/O that also serves as SOSC oscillator output and digital SOSC clock input."
},
{
"number": "37",
"name": "RC6/TX1/CK1",
"type": "bidirectional",
"description": "Digital I/O that also carries EUSART1 asynchronous transmit or synchronous clock."
},
{
"number": "38",
"name": "RC7/RX1/DT1",
"type": "bidirectional",
"description": "Digital I/O that also carries EUSART1 asynchronous receive or synchronous data."
},
{
"number": "39",
"name": "RJ4/BA0",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory byte address 0 control output when the external memory bus is enabled."
},
{
"number": "40",
"name": "RJ5/CE",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory chip enable control output when the external memory bus is enabled."
},
{
"number": "41",
"name": "RJ6/LB",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory lower byte enable control output when the external memory bus is enabled."
},
{
"number": "42",
"name": "RJ7/UB",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory upper byte enable control output when the external memory bus is enabled."
},
{
"number": "43",
"name": "RC2/ECCP1/P1A",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP1 capture/compare/PWM and ECCP1 Enhanced PWM output A."
},
{
"number": "44",
"name": "RC3/SCK1/SCL1",
"type": "bidirectional",
"description": "Digital I/O that also carries MSSP1 SPI clock or I2C clock."
},
{
"number": "45",
"name": "RC4/SDI1/SDA1",
"type": "bidirectional",
"description": "Digital I/O that also carries MSSP1 SPI data input or I2C data."
},
{
"number": "46",
"name": "RC5/SDO1",
"type": "bidirectional",
"description": "Digital I/O that also carries MSSP1 SPI data output."
},
{
"number": "47",
"name": "RB7/KBI3/PGD",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up and interrupt-on-change that also serves as the ICSP and ICD data pin."
},
{
"number": "48",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "49",
"name": "OSC1/CLKI/RA7",
"type": "input",
"description": "Oscillator crystal or external clock input; in internal oscillator modes this pin becomes general purpose I/O RA7."
},
{
"number": "50",
"name": "OSC2/CLKO/RA6",
"type": "output",
"description": "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."
},
{
"number": "51",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "52",
"name": "RB6/KBI2/PGC",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up and interrupt-on-change that also serves as the ICSP and ICD clock pin."
},
{
"number": "53",
"name": "RB5/KBI1/T3CKI/T1G",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up and interrupt-on-change that also serves as Timer3 clock input and Timer1 gate input."
},
{
"number": "54",
"name": "RB4/KBI0",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up and interrupt-on-change."
},
{
"number": "55",
"name": "RB3/INT3/CTED2/ECCP2/P2A",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up that also serves as external interrupt 3, CTMU edge 2 input, ECCP2 and ECCP2 PWM output A."
},
{
"number": "56",
"name": "RB2/INT2/CTED1",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up that also serves as external interrupt 2 and CTMU edge 1 input."
},
{
"number": "57",
"name": "RB1/INT1",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up that also serves as external interrupt 1."
},
{
"number": "58",
"name": "RB0/INT0/FLT0",
"type": "bidirectional",
"description": "Digital I/O with weak pull-up that also serves as external interrupt 0 and enhanced PWM fault input for ECCP1/2/3."
},
{
"number": "59",
"name": "RJ3/WRH",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory high-byte write control when the external memory bus is enabled."
},
{
"number": "60",
"name": "RJ2/WRL",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory low-byte write control when the external memory bus is enabled."
},
{
"number": "61",
"name": "RJ1/OE",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory output enable control when the external memory bus is enabled."
},
{
"number": "62",
"name": "RJ0/ALE",
"type": "bidirectional",
"description": "Digital I/O that becomes external memory address latch enable control when the external memory bus is enabled."
},
{
"number": "63",
"name": "RD7/SS2/PSP7/AD7",
"type": "bidirectional",
"description": "Digital I/O that also carries Parallel Slave Port data bit 7, SPI2 slave select input and external address/data bit 7."
},
{
"number": "64",
"name": "RD6/SCK2/SCL2/PSP6/AD6",
"type": "bidirectional",
"description": "Digital I/O that also carries MSSP2 SPI clock or I2C clock, Parallel Slave Port data bit 6 and external address/data bit 6."
},
{
"number": "65",
"name": "RD5/SDI2/SDA2/PSP5/AD5",
"type": "bidirectional",
"description": "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."
},
{
"number": "66",
"name": "RD4/SDO2/PSP4/AD4",
"type": "bidirectional",
"description": "Digital I/O that also carries MSSP2 SPI data output, Parallel Slave Port data bit 4 and external address/data bit 4."
},
{
"number": "67",
"name": "RD3/PSP3/AD3",
"type": "bidirectional",
"description": "Digital I/O that also carries Parallel Slave Port data bit 3 and external address/data bit 3."
},
{
"number": "68",
"name": "RD2/PSP2/AD2",
"type": "bidirectional",
"description": "Digital I/O that also carries Parallel Slave Port data bit 2 and external address/data bit 2."
},
{
"number": "69",
"name": "RD1/T5CKI/T7G/PSP1/AD1",
"type": "bidirectional",
"description": "Digital I/O that also carries Timer5 clock input, Timer7 gate input, Parallel Slave Port data bit 1 and external address/data bit 1."
},
{
"number": "70",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "71",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "72",
"name": "RD0/PSP0/CTPLS/AD0",
"type": "bidirectional",
"description": "Digital I/O that also carries Parallel Slave Port data bit 0, CTMU pulse generator output and external address/data bit 0."
},
{
"number": "73",
"name": "RE7/ECCP2/P2A/AD15",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP2 capture/compare/PWM (alternate assignment), ECCP2 PWM output A and external address/data bit 15."
},
{
"number": "74",
"name": "RE6/P1B/CCP6/AD14",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP1 PWM output B, CCP6 capture/compare/PWM and external address/data bit 14."
},
{
"number": "75",
"name": "RE5/P1C/CCP7/AD13",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP1 PWM output C, CCP7 capture/compare/PWM and external address/data bit 13."
},
{
"number": "76",
"name": "RE4/P3B/CCP8/AD12",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP3 PWM output B, CCP8 capture/compare/PWM and external address/data bit 12."
},
{
"number": "77",
"name": "RE3/P3C/CCP9/REFO/AD11",
"type": "bidirectional",
"description": "Digital I/O that also carries ECCP3 PWM output C, CCP9 capture/compare/PWM, reference clock output REFO and external address/data bit 11."
},
{
"number": "78",
"name": "RE2/P2B/CCP10/CS/AD10",
"type": "bidirectional",
"description": "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."
},
{
"number": "79",
"name": "RH0/AN23/A16",
"type": "bidirectional",
"description": "Digital I/O with analog input AN23 and external address line A16."
},
{
"number": "80",
"name": "RH1/AN22/A17",
"type": "bidirectional",
"description": "Digital I/O with analog input AN22 and external address line A17."
}
],
"provenance": {
"extractor": "extract_pins 0.3",
"factory_chain": {
"factory": "2.0.0",
"extractor": "extract_pins 0.3",
"primary_model": "claude-haiku-5-5",
"primary_mode": "text",
"consensus_model": "claude-sonnet-5-5",
"consensus": "agreed",
"guards": "pin_guards 0.1: passed",
"guard_notes": [
"extractor flagged: Pin 12 is printed as VDDCORE/VCAP with type P only; the datasheet does not say whether it is a suppl"
],
"pages_sent": 83,
"cost_usd": 0.1395,
"at": "2026-10-27T01:55:13"
},
"datasheet": {
"url": "https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F87K22-Family-Data-Sheet-DS30009960.pdf",
"pages": 526,
"sha256": "861566b69a31c816",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 80,
"described": 80,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "pic18f87k22-i.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
14,
14,
1.1
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "77f4de0ca0c787b8b4416c735fddfcecf5cf4cea0ca3550f96f5c47c8664594c",
"checked": "2026-10-27",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "pic18f87k22-i-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
14,
14,
1.1
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "64dd0a68bcb3ecd4d018f2e4b8a82f4df559c05fd812a1920754212d8b675c52",
"checked": "2026-10-27",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Manufacturer": "Microchip Tech",
"Package": "TQFP-80(12x12)",
"Category": "Embedded Processors & Controllers",
"Pins": "80"
},
"characteristics": {
"version": 1,
"source": "datasheet",
"datasheet_sha256": "861566b69a31c816ab1a99ca3845aa242acfece5125f5a08211b3b754b7ecdf2",
"rows": [
{
"name": "Operating Voltage Range",
"symbol": "",
"kind": "recommended_operating",
"unit": "V",
"min": 1.8,
"typ": null,
"max": 5.5,
"conditions": "",
"source_page": 1,
"source": "datasheet"
},
{
"name": "Operating Speed",
"symbol": "",
"kind": "recommended_operating",
"unit": "MHz",
"min": null,
"typ": null,
"max": 64,
"conditions": "",
"source_page": 1,
"source": "datasheet"
},
{
"name": "Flash Program Memory Erase/Write Cycles",
"symbol": "",
"kind": "electrical",
"unit": "cycles",
"min": 10000,
"typ": null,
"max": null,
"conditions": "",
"source_page": 1,
"source": "datasheet"
},
{
"name": "Flash Retention",
"symbol": "",
"kind": "electrical",
"unit": "years",
"min": 40,
"typ": null,
"max": null,
"conditions": "",
"source_page": 1,
"source": "datasheet"
},
{
"name": "VCAP/VDDCORE Capacitor ESR",
"symbol": "",
"kind": "recommended_operating",
"unit": "Ω",
"min": null,
"typ": null,
"max": 5,
"conditions": "Voltage regulator enabled",
"source_page": 37,
"source": "datasheet"
}
]
}
},
"variants": [],
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"pic18f87k22-i"
],
"discovery_pitch": "PIC18F87K22-I (Microchip Tech) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
"author": {
"name": "Ray"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"pic18f87k22-i.kicad_sym",
"pic18f87k22-i.kicad_mod",
"pic18f87k22-i.glb",
"pic18f87k22-i.step",
"pic18f87k22-i.lbr",
"docs/hero.png",
"docs/pic18f87k22-i-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"pic18f87k22-i-hero.glb",
"pic18f87k22-i-hero.overlay.json",
"pic18f87k22-i-etched.glb",
"pic18f87k22-i-etched.step"
],
"visibility": "public",
"description": "Microchip Tech MICROCHIP, TQFP-80(12x12). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"org": "adom"
}