main
Ray Publish 0.1.1 2921154
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
{
  "schema_version": 1,
  "type": "component",
  "slug": "pic18f65k22t-i",
  "title": "PIC18F65K22T-I",
  "brief": "Microchip Tech Microcontroller Units (MCUs/MPUs/SOCs), TQFP-64(10x10). 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",
    "single chip microcomputer-microcontroller",
    "pic18f65k22t-i",
    "factory-2.0.0",
    "extractor-text"
  ],
  "component": {
    "mpn": "PIC18F65K22T-I",
    "manufacturer": "Microchip Tech",
    "package": "TQFP-64(10x10)",
    "pin_count": 64,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://ww1.microchip.com/downloads/en/DeviceDoc/PIC18F87K22-Family-Data-Sheet-30009960F.pdf",
    "parts": {
      "symbol": "pic18f65k22t-i.kicad_sym",
      "footprint": "pic18f65k22t-i.kicad_mod",
      "model_3d": "pic18f65k22t-i-hero.glb",
      "model_3d_plain": "pic18f65k22t-i.glb",
      "model_3d_step": "pic18f65k22t-i-etched.step",
      "model_3d_step_plain": "pic18f65k22t-i.step",
      "lbr": "pic18f65k22t-i.lbr"
    },
    "distributor_links": {
      "lcsc": "C630897"
    },
    "distributor_check": {
      "checked_at": "2026-10-30T20:50:14Z",
      "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": "PORTE digital I/O that is also the Parallel Slave Port write strobe and ECCP2 PWM Output C."
      },
      {
        "number": "2",
        "name": "RE0/RD/P2D",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also the Parallel Slave Port read strobe and ECCP2 PWM Output D."
      },
      {
        "number": "3",
        "name": "RG0/ECCP3/P3A",
        "type": "bidirectional",
        "description": "PORTG digital I/O that is also the Capture 3 input/Compare 3 output/PWM3 output and ECCP3 PWM Output A."
      },
      {
        "number": "4",
        "name": "RG1/TX2/CK2/AN19/C3OUT",
        "type": "bidirectional",
        "description": "PORTG digital I/O that is 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": "PORTG digital I/O that is 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": "PORTG digital I/O that is also Capture 4 input/Compare 4 output/PWM4 output, Analog Input 17 (printed as 18 in the pin table), ECCP3 PWM Output D and Comparator 3 Input B."
      },
      {
        "number": "7",
        "name": "MCLR/RG5",
        "type": "input",
        "description": "Active-low device Reset and programming voltage input (Schmitt Trigger), or general purpose input-only pin RG5."
      },
      {
        "number": "8",
        "name": "RG4/RTCC/T7CKI/T5G/CCP5/AN16/P1D/C3INC",
        "type": "bidirectional",
        "description": "PORTG digital I/O that is also RTCC output, Timer7 clock input, Timer5 gate input, Capture 5/Compare 5/PWM5, 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 or external filter capacitor connection for the on-chip regulator."
      },
      {
        "number": "11",
        "name": "RF7/AN5/SS1",
        "type": "bidirectional",
        "description": "PORTF digital I/O that is also Analog Input 5 and SPI1 slave select input."
      },
      {
        "number": "12",
        "name": "RF6/AN11/C1INA",
        "type": "bidirectional",
        "description": "PORTF digital I/O that is also Analog Input 11 and Comparator 1 Input A."
      },
      {
        "number": "13",
        "name": "RF5/AN10/CVREF/C1INB",
        "type": "bidirectional",
        "description": "PORTF digital I/O that is also Analog Input 10, comparator reference voltage output and Comparator 1 Input B."
      },
      {
        "number": "14",
        "name": "RF4/AN9/C2INA",
        "type": "bidirectional",
        "description": "PORTF digital I/O that is also Analog Input 9 and Comparator 2 Input A."
      },
      {
        "number": "15",
        "name": "RF3/AN8/C2INB/CTMUI",
        "type": "bidirectional",
        "description": "PORTF digital I/O that is 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": "PORTF digital I/O that is also Analog Input 7 and Comparator 1 output."
      },
      {
        "number": "17",
        "name": "RF1/AN6/C2OUT/CTDIN",
        "type": "bidirectional",
        "description": "PORTF digital I/O that is 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 or to ground to disable."
      },
      {
        "number": "19",
        "name": "AVDD",
        "type": "power_in",
        "description": "Positive supply for analog modules; must always be connected."
      },
      {
        "number": "20",
        "name": "AVSS",
        "type": "power_in",
        "description": "Ground reference for analog modules; must always be connected."
      },
      {
        "number": "21",
        "name": "RA3/AN3/VREF+",
        "type": "bidirectional",
        "description": "PORTA digital I/O that is also Analog Input 3 and A/D reference voltage (high) input."
      },
      {
        "number": "22",
        "name": "RA2/AN2/VREF-",
        "type": "bidirectional",
        "description": "PORTA digital I/O that is also Analog Input 2 and A/D reference voltage (low) input."
      },
      {
        "number": "23",
        "name": "RA1/AN1",
        "type": "bidirectional",
        "description": "PORTA digital I/O that is also Analog Input 1."
      },
      {
        "number": "24",
        "name": "RA0/AN0/ULPWU",
        "type": "bidirectional",
        "description": "PORTA digital I/O that is 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": "PORTA digital I/O that is also Analog Input 4, Timer1 clock input, Timer3 gate input and High/Low-Voltage Detect input."
      },
      {
        "number": "28",
        "name": "RA4/T0CKI",
        "type": "bidirectional",
        "description": "PORTA digital I/O (Schmitt Trigger) that is also Timer0 external clock input."
      },
      {
        "number": "29",
        "name": "RC1/SOSCI/ECCP2/P2A",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also SOSC oscillator input, Capture 2/Compare 2/PWM2 (default ECCP2 assignment) and Enhanced PWM2 Output A."
      },
      {
        "number": "30",
        "name": "RC0/SOSCO/SCLKI",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also SOSC oscillator output and digital SOSC clock input."
      },
      {
        "number": "31",
        "name": "RC6/TX1/CK1",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also EUSART1 asynchronous transmit or synchronous clock."
      },
      {
        "number": "32",
        "name": "RC7/RX1/DT1",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also EUSART1 asynchronous receive or synchronous data."
      },
      {
        "number": "33",
        "name": "RC2/ECCP1/P1A",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also Capture 1 input/Compare 1 output/PWM1 output and Enhanced PWM1 Output A."
      },
      {
        "number": "34",
        "name": "RC3/SCK1/SCL1",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also MSSP1 SPI clock or I2C clock."
      },
      {
        "number": "35",
        "name": "RC4/SDI1/SDA1",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also MSSP1 SPI data in or I2C data I/O."
      },
      {
        "number": "36",
        "name": "RC5/SDO1",
        "type": "bidirectional",
        "description": "PORTC digital I/O that is also MSSP1 SPI data out."
      },
      {
        "number": "37",
        "name": "RB7/KBI3/PGD",
        "type": "bidirectional",
        "description": "PORTB digital I/O with interrupt-on-change that is also the In-Circuit Debugger and ICSP programming 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 (CMOS), or general purpose I/O RA7."
      },
      {
        "number": "40",
        "name": "OSC2/CLKO/RA6",
        "type": "output",
        "description": "Oscillator crystal output or CLKO (1/4 the OSC1 frequency, instruction cycle rate), or general purpose I/O RA6."
      },
      {
        "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": "PORTB digital I/O with interrupt-on-change that is also the In-Circuit Debugger and ICSP programming clock pin."
      },
      {
        "number": "43",
        "name": "RB5/KBI1/T3CKI/T1G",
        "type": "bidirectional",
        "description": "PORTB digital I/O with interrupt-on-change that is also Timer3 clock input and Timer1 external clock gate input."
      },
      {
        "number": "44",
        "name": "RB4/KBI0",
        "type": "bidirectional",
        "description": "PORTB digital I/O with interrupt-on-change."
      },
      {
        "number": "45",
        "name": "RB3/INT3/CTED2/ECCP2/P2A",
        "type": "bidirectional",
        "description": "PORTB digital I/O that is also External Interrupt 3, CTMU Edge 2 input, Capture 2/Compare 2/PWM2 and Enhanced PWM2 Output A."
      },
      {
        "number": "46",
        "name": "RB2/INT2/CTED1",
        "type": "bidirectional",
        "description": "PORTB digital I/O that is also External Interrupt 2 and CTMU Edge 1 input."
      },
      {
        "number": "47",
        "name": "RB1/INT1",
        "type": "bidirectional",
        "description": "PORTB digital I/O that is also External Interrupt 1."
      },
      {
        "number": "48",
        "name": "RB0/INT0/FLT0",
        "type": "bidirectional",
        "description": "PORTB digital I/O that is also External Interrupt 0 and Enhanced PWM Fault input for ECCP1/2/3."
      },
      {
        "number": "49",
        "name": "RD7/PSP7/SS2",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is also Parallel Slave Port data and SPI slave select input."
      },
      {
        "number": "50",
        "name": "RD6/PSP6/SCK2/SCL2",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is also Parallel Slave Port data and MSSP2 SPI clock or I2C clock."
      },
      {
        "number": "51",
        "name": "RD5/PSP5/SDI2/SDA2",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is also Parallel Slave Port data and MSSP2 SPI data in or I2C data I/O."
      },
      {
        "number": "52",
        "name": "RD4/PSP4/SDO2",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is also Parallel Slave Port data and SPI data out."
      },
      {
        "number": "53",
        "name": "RD3/PSP3",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is also Parallel Slave Port data."
      },
      {
        "number": "54",
        "name": "RD2/PSP2",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is also Parallel Slave Port data."
      },
      {
        "number": "55",
        "name": "RD1/PSP1/T5CKI/T7G",
        "type": "bidirectional",
        "description": "PORTD digital I/O that is 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": "PORTD digital I/O that is also Parallel Slave Port data and CTMU pulse generator output."
      },
      {
        "number": "59",
        "name": "RE7/ECCP2/P2A",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also the alternate Capture 2/Compare 2/PWM2 pin (CCP2MX cleared) and ECCP2 PWM Output A."
      },
      {
        "number": "60",
        "name": "RE6/P1B/CCP6",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also ECCP1 PWM Output B and Capture 6/Compare 6/PWM6, placement depending on the ECCPMX bit."
      },
      {
        "number": "61",
        "name": "RE5/P1C/CCP7",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also ECCP1 PWM Output C and Capture 7/Compare 7/PWM7, placement depending on the ECCPMX bit."
      },
      {
        "number": "62",
        "name": "RE4/P3B/CCP8",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also ECCP3 PWM Output B and Capture 8/Compare 8/PWM8, placement depending on the ECCPMX bit."
      },
      {
        "number": "63",
        "name": "RE3/P3C/CCP9/REFO",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also ECCP3 PWM Output C, Capture 9/Compare 9/PWM9 and reference clock out."
      },
      {
        "number": "64",
        "name": "RE2/CS/P2B/CCP10",
        "type": "bidirectional",
        "description": "PORTE digital I/O that is also Parallel Slave Port chip select, ECCP2 PWM Output B and Capture 10/Compare 10/PWM10."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-sonnet-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: The datasheet pin table (Table 1-3) covers the whole 64-pin PIC18F6XK22 family and lists one pin-num; Table 1-3 note 3 says CCP9 and CCP10 are not available on PIC18F65K22. The family table shows only 5; Pin 8's T7CKI function is marked 'not available' on PIC18F65K22 (note 3)."
        ],
        "pages_sent": 83,
        "cost_usd": 0.8612,
        "at": "2026-10-30T20:50:03"
      },
      "datasheet": {
        "url": "https://ww1.microchip.com/downloads/en/DeviceDoc/PIC18F87K22-Family-Data-Sheet-30009960F.pdf",
        "pages": 530,
        "sha256": "1983a9feb3e07767",
        "source_tier": "mfr"
      },
      "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": "pic18f65k22t-i.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          12,
          12,
          1.1
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "60567e81b0770b6c519104183a7a05ba52dddc11146b5fbe21434fbb5801696c",
        "checked": "2026-10-30",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "pic18f65k22t-i-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          12,
          12,
          1.1
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "0607b35a34a92036a4ce0ae0a5199885b1402c1a0f0657ab31d91609ac6dcda8",
        "checked": "2026-10-30",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Manufacturer": "Microchip Tech",
      "Package": "TQFP-64(10x10)",
      "Category": "Single Chip Microcomputer/Microcontroller",
      "Pins": "64"
    },
    "characteristics": {
      "version": 1,
      "source": "datasheet",
      "datasheet_sha256": "1983a9feb3e0776728f08a6b8bd1572fdc05959f2ea77679639c229f8f153a47",
      "rows": [
        {
          "name": "Operating Voltage Range",
          "symbol": "VDD",
          "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": "Minimum",
          "source_page": 1,
          "source": "datasheet"
        },
        {
          "name": "Flash Retention",
          "symbol": "",
          "kind": "electrical",
          "unit": "years",
          "min": 40,
          "typ": null,
          "max": null,
          "conditions": "Minimum",
          "source_page": 1,
          "source": "datasheet"
        },
        {
          "name": "Internal Oscillator Accuracy",
          "symbol": "",
          "kind": "tolerance",
          "unit": "%",
          "min": -2,
          "typ": null,
          "max": 2,
          "conditions": "16 MHz internal oscillator",
          "source_page": 7,
          "source": "datasheet"
        },
        {
          "name": "VCAP/VDDCORE capacitor ESR",
          "symbol": "ESR",
          "kind": "recommended_operating",
          "unit": "Ω",
          "min": null,
          "typ": null,
          "max": 5,
          "conditions": "Regulator enabled, low-ESR (< 5Ω)",
          "source_page": 37,
          "source": "datasheet"
        },
        {
          "name": "VCAP/VDDCORE capacitance",
          "symbol": "",
          "kind": "recommended_operating",
          "unit": "µF",
          "min": null,
          "typ": 10,
          "max": null,
          "conditions": "Regulator enabled",
          "source_page": 37,
          "source": "datasheet"
        }
      ]
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "pic18f65k22t-i"
  ],
  "discovery_pitch": "PIC18F65K22T-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",
    "pic18f65k22t-i.kicad_sym",
    "pic18f65k22t-i.kicad_mod",
    "pic18f65k22t-i.glb",
    "pic18f65k22t-i.step",
    "pic18f65k22t-i.lbr",
    "docs/hero.png",
    "docs/pic18f65k22t-i-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "pic18f65k22t-i-hero.glb",
    "pic18f65k22t-i-hero.overlay.json",
    "pic18f65k22t-i-etched.glb",
    "pic18f65k22t-i-etched.step"
  ],
  "visibility": "public",
  "description": "Microchip Tech Microcontroller Units (MCUs/MPUs/SOCs), TQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "org": "adom"
}