component
PIC18F66K22-I
Public Made by Adomby adom
Microchip Tech Microcontrollers (MCU/MPU/SOC), TQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
{
"slug": "pic18f66k22-i",
"version": "0.1.0",
"type": "component",
"description": "Microchip Tech Microcontrollers (MCU/MPU/SOC), TQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"embedded processors & controllers",
"pic18f66k22-i",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"pic18f66k22-i.kicad_sym",
"pic18f66k22-i.kicad_mod",
"pic18f66k22-i.glb",
"pic18f66k22-i.step",
"pic18f66k22-i.lbr",
"docs/hero.png",
"docs/pic18f66k22-i-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"pic18f66k22-i-hero.glb",
"pic18f66k22-i-hero.overlay.json",
"pic18f66k22-i-etched.glb"
],
"component": {
"mpn": "PIC18F66K22-I",
"manufacturer": "Microchip Tech",
"package": "TQFP-64(10x10)",
"pin_count": 64,
"category": "Embedded Processors & Controllers",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586181967494983680",
"parts": {
"symbol": "pic18f66k22-i.kicad_sym",
"footprint": "pic18f66k22-i.kicad_mod",
"model_3d": "pic18f66k22-i-hero.glb",
"model_3d_plain": "pic18f66k22-i-etched.glb",
"model_3d_step": "pic18f66k22-i-etched.step",
"model_3d_step_plain": "pic18f66k22-i.step",
"lbr": "pic18f66k22-i.lbr"
},
"distributor_links": {
"lcsc": "C54979"
},
"distributor_check": {
"checked_at": "2026-10-20T18:46:12Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "RE1/WR/P2C",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port write strobe, ECCP2 PWM output C, and external write control in PSP mode."
},
{
"number": "2",
"name": "RE0/RD/P2D",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port read strobe and ECCP2 PWM output D."
},
{
"number": "3",
"name": "RG0/ECCP3/P3A",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Capture 3 input/Compare 3 output/PWM3 output and ECCP3 PWM output A."
},
{
"number": "4",
"name": "RG1/TX2/CK2/AN19/C3OUT",
"type": "bidirectional",
"description": "Digital I/O; also EUSART2 asynchronous transmit or synchronous clock, Analog Input 19, and Comparator 3 output."
},
{
"number": "5",
"name": "RG2/RX2/DT2/AN18/C3INA",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also EUSART2 asynchronous receive or synchronous data, Analog Input 18, and Comparator 3 Input A."
},
{
"number": "6",
"name": "RG3/CCP4/AN17/P3D/C3INB",
"type": "bidirectional",
"description": "Digital I/O; also Capture 4 input/Compare 4 output/PWM4 output, Analog Input 17, ECCP3 PWM output D, and Comparator 3 Input B."
},
{
"number": "7",
"name": "MCLR/RG5",
"type": "input",
"description": "Master Clear input (programming voltage input) that is an active-low Reset to the device; when MCLR is disabled this pin is a general purpose input-only pin (RG5)."
},
{
"number": "8",
"name": "RG4/RTCC/T7CKI/T5G/CCP5/AN16/P1D/C3INC",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also RTCC output, Timer7 clock input, Timer5 external clock gate input, Capture 5/Compare 5/PWM5 output, Analog Input 16, ECCP1 PWM output D, and Comparator 3 Input C."
},
{
"number": "9",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "10",
"name": "VDDCORE/VCAP",
"type": "power_in",
"description": "Core logic power (VDDCORE) when the on-chip regulator is disabled, or external filter capacitor connection (VCAP) when the regulator is enabled."
},
{
"number": "11",
"name": "RF7/AN5/SS1",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 5 and SPI1 slave select input."
},
{
"number": "12",
"name": "RF6/AN11/C1INA",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 11 and Comparator 1 Input A."
},
{
"number": "13",
"name": "RF5/AN10/CVREF/C1INB",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 10, comparator reference voltage output CVREF (enabling it disables digital I/O), and Comparator 1 Input B."
},
{
"number": "14",
"name": "RF4/AN9/C2INA",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 9 and Comparator 2 Input A."
},
{
"number": "15",
"name": "RF3/AN8/C2INB/CTMUI",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 8, Comparator 2 Input B, and CTMU pulse generator charger for the C2INB input."
},
{
"number": "16",
"name": "RF2/AN7/C1OUT",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 7 and Comparator 1 output."
},
{
"number": "17",
"name": "RF1/AN6/C2OUT/CTDIN",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Analog Input 6, Comparator 2 output, and CTMU pulse delay input."
},
{
"number": "18",
"name": "ENVREG",
"type": "input",
"description": "Enable for the on-chip voltage regulator; tie to VDD to enable the regulator or to ground to disable it."
},
{
"number": "19",
"name": "AVDD",
"type": "power_in",
"description": "Positive supply for analog modules."
},
{
"number": "20",
"name": "AVSS",
"type": "power_in",
"description": "Ground reference for analog modules."
},
{
"number": "21",
"name": "RA3/AN3/VREF+",
"type": "bidirectional",
"description": "Digital I/O with TTL input; also Analog Input 3 and A/D reference voltage (high) input."
},
{
"number": "22",
"name": "RA2/AN2/VREF-",
"type": "bidirectional",
"description": "Digital I/O with TTL input; also Analog Input 2 and A/D reference voltage (low) input."
},
{
"number": "23",
"name": "RA1/AN1",
"type": "bidirectional",
"description": "Digital I/O with TTL input; also Analog Input 1."
},
{
"number": "24",
"name": "RA0/AN0/ULPWU",
"type": "bidirectional",
"description": "Digital I/O with TTL input; also Analog Input 0 and Ultra Low-Power Wake-up input."
},
{
"number": "25",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "26",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "27",
"name": "RA5/AN4/T1CKI/T3G/HLVDIN",
"type": "bidirectional",
"description": "Digital I/O with TTL input; also Analog Input 4, Timer1 clock input, Timer3 external clock gate input, and High/Low-Voltage Detect input."
},
{
"number": "28",
"name": "RA4/T0CKI",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Timer0 external clock input."
},
{
"number": "29",
"name": "RC1/SOSCI/ECCP2/P2A",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also SOSC oscillator input, ECCP2 capture/compare/PWM (default assignment when CCP2MX is set), and ECCP2 PWM output A."
},
{
"number": "30",
"name": "RC0/SOSCO/SCLKI",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also SOSC oscillator output and digital SOSC clock input (SCLKI)."
},
{
"number": "31",
"name": "RC6/TX1/CK1",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also EUSART1 asynchronous transmit or synchronous clock."
},
{
"number": "32",
"name": "RC7/RX1/DT1",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also EUSART1 asynchronous receive or synchronous data."
},
{
"number": "33",
"name": "RC2/ECCP1/P1A",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Capture 1 input/Compare 1 output/PWM1 output and ECCP1 PWM output A."
},
{
"number": "34",
"name": "RC3/SCK1/SCL1",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also MSSP1 SPI clock input/output or I2C clock input/output."
},
{
"number": "35",
"name": "RC4/SDI1/SDA1",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also MSSP1 SPI data input or I2C data I/O."
},
{
"number": "36",
"name": "RC5/SDO1",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also MSSP1 SPI data output."
},
{
"number": "37",
"name": "RB7/KBI3/PGD",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also interrupt-on-change KBI3 and ICSP/ICD serial data pin."
},
{
"number": "38",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "39",
"name": "OSC1/CLKI/RA7",
"type": "input",
"description": "Oscillator crystal or external clock input (OSC1/CLKI); pin is general purpose I/O RA7 only in oscillator modes where it is not used as the oscillator input."
},
{
"number": "40",
"name": "OSC2/CLKO/RA6",
"type": "output",
"description": "Oscillator crystal output or clock output (CLKO, FOSC/4); pin is general purpose I/O RA6 only in oscillator modes where it is not used as the oscillator output."
},
{
"number": "41",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "42",
"name": "RB6/KBI2/PGC",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also interrupt-on-change KBI2 and ICSP/ICD programming clock pin."
},
{
"number": "43",
"name": "RB5/KBI1/T3CKI/T1G",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also interrupt-on-change KBI1, Timer3 clock input, and Timer1 external clock gate input."
},
{
"number": "44",
"name": "RB4/KBI0",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also interrupt-on-change KBI0."
},
{
"number": "45",
"name": "RB3/INT3/CTED2/ECCP2/P2A",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also External Interrupt 3, CTMU Edge 2 input, ECCP2 capture/compare/PWM, and ECCP2 PWM output A."
},
{
"number": "46",
"name": "RB2/INT2/CTED1",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also External Interrupt 2 and CTMU Edge 1 input."
},
{
"number": "47",
"name": "RB1/INT1",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also External Interrupt 1."
},
{
"number": "48",
"name": "RB0/INT0/FLT0",
"type": "bidirectional",
"description": "Digital I/O with TTL input and weak pull-up; also External Interrupt 0 and Enhanced PWM Fault input for ECCP1/2/3."
},
{
"number": "49",
"name": "RD7/PSP7/SS2",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data and SPI slave select input for MSSP2."
},
{
"number": "50",
"name": "RD6/PSP6/SCK2/SCL2",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data, MSSP2 SPI clock input/output, and I2C clock input/output."
},
{
"number": "51",
"name": "RD5/PSP5/SDI2/SDA2",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data, MSSP2 SPI data input, and I2C data I/O."
},
{
"number": "52",
"name": "RD4/PSP4/SDO2",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data and MSSP2 SPI data output."
},
{
"number": "53",
"name": "RD3/PSP3",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data."
},
{
"number": "54",
"name": "RD2/PSP2",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data."
},
{
"number": "55",
"name": "RD1/PSP1/T5CKI/T7G",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data, Timer5 clock input, and Timer7 external clock gate input."
},
{
"number": "56",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "57",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "58",
"name": "RD0/PSP0/CTPLS",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port data and CTMU pulse generator output."
},
{
"number": "59",
"name": "RE7/ECCP2/P2A",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also ECCP2 capture/compare/PWM (alternate assignment when CCP2MX is cleared) and ECCP2 PWM output A."
},
{
"number": "60",
"name": "RE6/P1B/CCP6",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also ECCP1 PWM output B and Capture 6/Compare 6/PWM6 output."
},
{
"number": "61",
"name": "RE5/P1C/CCP7",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also ECCP1 PWM output C and Capture 7/Compare 7/PWM7 output."
},
{
"number": "62",
"name": "RE4/P3B/CCP8",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also ECCP3 PWM output B and Capture 8/Compare 8/PWM8 output."
},
{
"number": "63",
"name": "RE3/P3C/CCP9/REFO",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also ECCP3 PWM output C, Capture 9/Compare 9/PWM9 output, and reference clock output REFO."
},
{
"number": "64",
"name": "RE2/CS/P2B/CCP10",
"type": "bidirectional",
"description": "Digital I/O with Schmitt Trigger input; also Parallel Slave Port chip select, ECCP2 PWM output B, and Capture 10/Compare 10/PWM10 output."
}
],
"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: Source is the family datasheet DS39960D (PIC18F87K22 family). The 64-pin pinout in Table 1-3 (pages ; Pin names show the primary function from the pin table. Multiplexed alternates are listed in the des; Pins 29, 45, 59 (ECCP2) depend on the CCP2MX configuration bit. Pins 7 (RG5) and 39/40 (RA7/RA6) dep"
],
"pages_sent": 88,
"cost_usd": 0.6263,
"at": "2026-10-20T18:43:41"
},
"datasheet": {
"url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586181967494983680",
"pages": 550,
"sha256": "64337c8891e746c1",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 64,
"described": 64,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "pic18f66k22-i.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
12.0,
12.0,
1.1
],
"zmin_mm": -0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "60567e81b0770b6c519104183a7a05ba52dddc11146b5fbe21434fbb5801696c",
"checked": "2026-10-20",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "pic18f66k22-i-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
12.0,
12.0,
1.1
],
"zmin_mm": -0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "9055c84837ec9d5d3647836f83f2be01b933165af666a553afe478d874f4a3ee",
"checked": "2026-10-20",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
}
}