component
PIC18LF45K22-I
Public Made by Adomby adom
Microchip Tech Microcontroller Units (MCUs/MPUs/SOCs), QFN-40-EP(5x5). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
{
"schema_version": 1,
"type": "component",
"slug": "pic18lf45k22-i",
"title": "PIC18LF45K22-I",
"brief": "Microchip Tech Microcontroller Units (MCUs/MPUs/SOCs), QFN-40-EP(5x5). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"version": "0.1.0",
"license": "CC-BY-SA-4.0",
"tags": [
"component",
"single chip microcomputer-microcontroller",
"pic18lf45k22-i",
"factory-2.0.0",
"extractor-text"
],
"component": {
"mpn": "PIC18LF45K22-I",
"manufacturer": "Microchip Tech",
"package": "QFN-40-EP(5x5)",
"pin_count": 41,
"category": "Single Chip Microcomputer/Microcontroller",
"subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
"datasheet": "https://datasheet.lcsc.com/datasheet/pdf/7b42ddaae6355604045dbdd2576c11e9.pdf",
"parts": {
"symbol": "pic18lf45k22-i.kicad_sym",
"footprint": "pic18lf45k22-i.kicad_mod",
"model_3d": "pic18lf45k22-i-hero.glb",
"model_3d_plain": "pic18lf45k22-i-etched.glb",
"model_3d_step": "pic18lf45k22-i-etched.step",
"model_3d_step_plain": "pic18lf45k22-i.step",
"lbr": "pic18lf45k22-i.lbr"
},
"distributor_links": {
"lcsc": "C638952"
},
"distributor_check": {
"checked_at": "2026-10-26T18:34:36Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "RC7/RX1/DT1/AN19",
"type": "bidirectional",
"description": "PORTC bit 7 digital I/O (ST), also EUSART1 asynchronous receive (RX1), synchronous data (DT1) and analog input 19."
},
{
"number": "2",
"name": "RD4/P2D/SDO2/AN24",
"type": "bidirectional",
"description": "PORTD bit 4 digital I/O (ST), also Enhanced CCP2 PWM output P2D, MSSP2 SPI data out (SDO2) and analog input 24."
},
{
"number": "3",
"name": "RD5/P1B/AN25",
"type": "bidirectional",
"description": "PORTD bit 5 digital I/O (ST), also Enhanced CCP1 PWM output P1B and analog input 25."
},
{
"number": "4",
"name": "RD6/P1C/TX2/CK2/AN26",
"type": "bidirectional",
"description": "PORTD bit 6 digital I/O (ST), also Enhanced CCP1 PWM output P1C, EUSART2 transmit (TX2), synchronous clock (CK2) and analog input 26."
},
{
"number": "5",
"name": "RD7/P1D/RX2/DT2/AN27",
"type": "bidirectional",
"description": "PORTD bit 7 digital I/O (ST), also Enhanced CCP1 PWM output P1D, EUSART2 receive (RX2), synchronous data (DT2) and analog input 27."
},
{
"number": "6",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "7",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "8",
"name": "RB0/INT0/FLT0/SRI/AN12",
"type": "bidirectional",
"description": "PORTB bit 0 digital I/O (TTL), also external interrupt 0, ECCP auto-shutdown fault input FLT0, SR latch input SRI and analog input 12."
},
{
"number": "9",
"name": "RB1/INT1/C12IN3-/AN10",
"type": "bidirectional",
"description": "PORTB bit 1 digital I/O (TTL), also external interrupt 1, comparators C1/C2 inverting input C12IN3- and analog input 10."
},
{
"number": "10",
"name": "RB2/INT2/CTED1/AN8",
"type": "bidirectional",
"description": "PORTB bit 2 digital I/O (TTL), also external interrupt 2, CTMU edge 1 input and analog input 8."
},
{
"number": "11",
"name": "RB3/CTED2/P2A/CCP2/C12IN2-/AN9",
"type": "bidirectional",
"description": "PORTB bit 3 digital I/O (TTL), also CTMU edge 2 input, alternate P2A/CCP2 pin, comparator inverting input C12IN2- and analog input 9."
},
{
"number": "12",
"name": "RB4/IOC0/T5G/AN11",
"type": "bidirectional",
"description": "PORTB bit 4 digital I/O (TTL), also interrupt-on-change 0, Timer5 gate input and analog input 11."
},
{
"number": "13",
"name": "RB5/IOC1/P3A/CCP3/T3CKI/T1G/AN13",
"type": "bidirectional",
"description": "PORTB bit 5 digital I/O (TTL), also interrupt-on-change 1, P3A/CCP3 and T3CKI per configuration bits, Timer1 gate input and analog input 13."
},
{
"number": "14",
"name": "RB6/IOC2/PGC",
"type": "bidirectional",
"description": "PORTB bit 6 digital I/O (TTL), also interrupt-on-change 2 and In-Circuit Debugger/ICSP programming clock pin."
},
{
"number": "15",
"name": "RB7/IOC3/PGD",
"type": "bidirectional",
"description": "PORTB bit 7 digital I/O (TTL), also interrupt-on-change 3 and In-Circuit Debugger/ICSP programming data pin."
},
{
"number": "16",
"name": "RE3/VPP/MCLR",
"type": "input",
"description": "Input-only digital pin (ST) that serves as active-low Master Clear (device Reset) input and as programming voltage input VPP."
},
{
"number": "17",
"name": "RA0/C12IN0-/AN0",
"type": "bidirectional",
"description": "PORTA bit 0 digital I/O (TTL), also comparators C1/C2 inverting input C12IN0- and analog input 0."
},
{
"number": "18",
"name": "RA1/C12IN1-/AN1",
"type": "bidirectional",
"description": "PORTA bit 1 digital I/O (TTL), also comparators C1/C2 inverting input C12IN1- and analog input 1."
},
{
"number": "19",
"name": "RA2/C2IN+/AN2/DACOUT/VREF-",
"type": "bidirectional",
"description": "PORTA bit 2 digital I/O (TTL), also comparator C2 noninverting input, analog input 2, DAC reference output and A/D low reference voltage input."
},
{
"number": "20",
"name": "RA3/C1IN+/AN3/VREF+",
"type": "bidirectional",
"description": "PORTA bit 3 digital I/O (TTL), also comparator C1 noninverting input, analog input 3 and A/D high reference voltage input."
},
{
"number": "21",
"name": "RA4/C1OUT/SRQ/T0CKI",
"type": "bidirectional",
"description": "PORTA bit 4 digital I/O (ST), also comparator C1 output, SR latch Q output and Timer0 external clock input."
},
{
"number": "22",
"name": "RA5/C2OUT/SRNQ/SS1/HLVDIN/AN4",
"type": "bidirectional",
"description": "PORTA bit 5 digital I/O (TTL), also comparator C2 output, SR latch inverted output, MSSP1 SPI client select, High/Low-Voltage Detect input and analog input 4."
},
{
"number": "23",
"name": "RE0/P3A/CCP3/AN5",
"type": "bidirectional",
"description": "PORTE bit 0 digital I/O (ST), also alternate P3A/CCP3 pin when CCP3MX is clear and analog input 5."
},
{
"number": "24",
"name": "RE1/P3B/AN6",
"type": "bidirectional",
"description": "PORTE bit 1 digital I/O (ST), also Enhanced CCP3 PWM output P3B and analog input 6."
},
{
"number": "25",
"name": "RE2/CCP5/AN7",
"type": "bidirectional",
"description": "PORTE bit 2 digital I/O (ST), also Capture 5 input/Compare 5 output/PWM 5 output and analog input 7."
},
{
"number": "26",
"name": "VDD",
"type": "power_in",
"description": "Positive supply for logic and I/O pins."
},
{
"number": "27",
"name": "VSS",
"type": "power_in",
"description": "Ground reference for logic and I/O pins."
},
{
"number": "28",
"name": "RA7/CLKI/OSC1",
"type": "bidirectional",
"description": "PORTA bit 7 digital I/O (TTL), also external clock input CLKI and oscillator crystal/external clock input OSC1."
},
{
"number": "29",
"name": "RA6/CLKO/OSC2",
"type": "bidirectional",
"description": "PORTA bit 6 digital I/O (TTL), also CLKOUT (1/4 OSC1 frequency in RC mode) and oscillator crystal output OSC2."
},
{
"number": "30",
"name": "RC0/P2B/T3CKI/T3G/T1CKI/SOSCO",
"type": "bidirectional",
"description": "PORTC bit 0 digital I/O (ST), also alternate P2B/T3CKI pin, Timer3 gate, Timer1 clock input and secondary oscillator output."
},
{
"number": "31",
"name": "RC1/P2A/CCP2/SOSCI",
"type": "bidirectional",
"description": "PORTC bit 1 digital I/O (ST), also default P2A/CCP2 pin and secondary oscillator input."
},
{
"number": "32",
"name": "RC2/CTPLS/P1A/CCP1/T5CKI/AN14",
"type": "bidirectional",
"description": "PORTC bit 2 digital I/O (ST), also CTMU pulse generator output, Enhanced CCP1 P1A/CCP1, Timer5 clock input and analog input 14."
},
{
"number": "33",
"name": "RC3/SCK1/SCL1/AN15",
"type": "bidirectional",
"description": "PORTC bit 3 digital I/O (ST), also MSSP1 SPI clock (SCK1), I2C clock (SCL1) and analog input 15."
},
{
"number": "34",
"name": "RD0/SCK2/SCL2/AN20",
"type": "bidirectional",
"description": "PORTD bit 0 digital I/O (ST), also MSSP2 SPI clock (SCK2), I2C clock (SCL2) and analog input 20."
},
{
"number": "35",
"name": "RD1/CCP4/SDI2/SDA2/AN21",
"type": "bidirectional",
"description": "PORTD bit 1 digital I/O (ST), also CCP4, MSSP2 SPI data in (SDI2), I2C data (SDA2) and analog input 21."
},
{
"number": "36",
"name": "RD2/P2B/AN22",
"type": "bidirectional",
"description": "PORTD bit 2 digital I/O (ST), also Enhanced CCP2 PWM output P2B and analog input 22."
},
{
"number": "37",
"name": "RD3/P2C/SS2/AN23",
"type": "bidirectional",
"description": "PORTD bit 3 digital I/O (ST), also Enhanced CCP2 PWM output P2C, MSSP2 SPI client select (SS2) and analog input 23."
},
{
"number": "38",
"name": "RC4/SDI1/SDA1/AN16",
"type": "bidirectional",
"description": "PORTC bit 4 digital I/O (ST), also MSSP1 SPI data in (SDI1), I2C data (SDA1) and analog input 16."
},
{
"number": "39",
"name": "RC5/SDO1/AN17",
"type": "bidirectional",
"description": "PORTC bit 5 digital I/O (ST), also MSSP1 SPI data out (SDO1) and analog input 17."
},
{
"number": "40",
"name": "RC6/TX1/CK1/AN18",
"type": "bidirectional",
"description": "PORTC bit 6 digital I/O (ST), also EUSART1 transmit (TX1), synchronous clock (CK1) and analog input 18."
},
{
"number": "41",
"name": "EP",
"type": "passive",
"description": "Exposed pad (from the footprint; not named in the datasheet pin table)."
}
],
"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 package hint QFN-40-EP(5x5) was mapped to the 40-pin UQFN (5x5x0.5 mm), the only 5x5 40-pin pack; Pin types are inferred from the datasheet's I/O descriptions: multiplexed I/O pins are bidirectional"
],
"pages_sent": 90,
"cost_usd": 0.8903,
"at": "2026-10-26T18:34:08"
},
"datasheet": {
"url": "https://datasheet.lcsc.com/datasheet/pdf/7b42ddaae6355604045dbdd2576c11e9.pdf",
"pages": 539,
"sha256": "d0ba745eb6a13bdb",
"source_tier": "mfr"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 41,
"described": 41,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "pic18lf45k22-i.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
5,
5,
0.77
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "8f37bc7a9aab4742c34f137d9822c0352acc227532830034555744338483cdfc",
"checked": "2026-10-26",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "pic18lf45k22-i-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
5,
5,
0.77
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "9c18f39341feabd389b1e55d8b04f0d04f075f00674f9e966c38e2f313fff396",
"checked": "2026-10-26",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Manufacturer": "Microchip Tech",
"Package": "QFN-40-EP(5x5)",
"Category": "Single Chip Microcomputer/Microcontroller",
"Pins": "41"
},
"characteristics": {
"version": 1,
"source": "datasheet",
"datasheet_sha256": "d0ba745eb6a13bdb8218042c534ace62abfde00b655cb089b2cdeb2ce787962e",
"rows": [
{
"name": "Supply Voltage (PIC18LF2X/4XK22)",
"symbol": "VDD",
"kind": "electrical",
"unit": "V",
"min": 1.8,
"typ": null,
"max": 3.6,
"conditions": "PIC18LF2X/4XK22",
"source_page": 417,
"source": "datasheet"
},
{
"name": "RAM Data Retention Voltage",
"symbol": "VDR",
"kind": "electrical",
"unit": "V",
"min": 1.5,
"typ": null,
"max": null,
"conditions": "",
"source_page": 417,
"source": "datasheet"
},
{
"name": "VDD Start Voltage to ensure internal Power-on Reset",
"symbol": "VPOR",
"kind": "electrical",
"unit": "V",
"min": null,
"typ": null,
"max": 0.7,
"conditions": "See section on Power-on Reset for details",
"source_page": 417,
"source": "datasheet"
},
{
"name": "VDD Rise Rate to ensure internal Power-on Reset",
"symbol": "SVDD",
"kind": "electrical",
"unit": "V/ms",
"min": 0.05,
"typ": null,
"max": null,
"conditions": "See section on Power-on Reset for details",
"source_page": 417,
"source": "datasheet"
},
{
"name": "Brown-out Reset Voltage",
"symbol": "VBOR",
"kind": "electrical",
"unit": "V",
"min": 1.75,
"typ": 1.9,
"max": 2.05,
"conditions": "BORV<1:0> = 11",
"source_page": 417,
"source": "datasheet"
},
{
"name": "Brown-out Reset Voltage",
"symbol": "VBOR",
"kind": "electrical",
"unit": "V",
"min": 2.05,
"typ": 2.2,
"max": 2.35,
"conditions": "BORV<1:0> = 10",
"source_page": 417,
"source": "datasheet"
},
{
"name": "Brown-out Reset Voltage",
"symbol": "VBOR",
"kind": "electrical",
"unit": "V",
"min": 2.35,
"typ": 2.5,
"max": 2.65,
"conditions": "BORV<1:0> = 01",
"source_page": 417,
"source": "datasheet"
},
{
"name": "Brown-out Reset Voltage",
"symbol": "VBOR",
"kind": "electrical",
"unit": "V",
"min": 2.65,
"typ": 2.85,
"max": 3.05,
"conditions": "BORV<1:0> = 00",
"source_page": 417,
"source": "datasheet"
},
{
"name": "Operating temperature",
"symbol": "TA",
"kind": "recommended_operating",
"unit": "°C",
"min": -40,
"typ": null,
"max": 125,
"conditions": "Standard Operating Conditions",
"source_page": 417,
"source": "datasheet"
},
{
"name": "Ambient temperature under bias",
"symbol": "",
"kind": "absolute_maximum",
"unit": "°C",
"min": -40,
"typ": null,
"max": 125,
"conditions": "",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Storage temperature",
"symbol": "",
"kind": "absolute_maximum",
"unit": "°C",
"min": -65,
"typ": null,
"max": 150,
"conditions": "",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Voltage on any pin with respect to VSS (except VDD and MCLR)",
"symbol": "",
"kind": "absolute_maximum",
"unit": "V",
"min": -0.3,
"typ": null,
"max": null,
"conditions": "max is (VDD + 0.3V)",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Voltage on MCLR with respect to VSS",
"symbol": "",
"kind": "absolute_maximum",
"unit": "V",
"min": 0,
"typ": null,
"max": 11,
"conditions": "Note 2",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Total power dissipation",
"symbol": "",
"kind": "absolute_maximum",
"unit": "W",
"min": null,
"typ": null,
"max": 1,
"conditions": "Note 1",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Maximum current out of VSS pin",
"symbol": "",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 300,
"conditions": "-40°C to +85°C",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Maximum current out of VSS pin",
"symbol": "",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 125,
"conditions": "+85°C to +125°C",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Maximum current into VDD pin",
"symbol": "",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 200,
"conditions": "-40°C to +85°C",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Maximum current into VDD pin",
"symbol": "",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 85,
"conditions": "+85°C to +125°C",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Input clamp current",
"symbol": "IIK",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 20,
"conditions": "VI < 0 or VI > VDD",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Output clamp current",
"symbol": "IOK",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 20,
"conditions": "VO < 0 or VO > VDD",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Maximum current sunk by all ports",
"symbol": "",
"kind": "absolute_maximum",
"unit": "mA",
"min": null,
"typ": null,
"max": 200,
"conditions": "-40°C to +85°C",
"source_page": 414,
"source": "datasheet"
},
{
"name": "Sleep mode power-down base current",
"symbol": "IPD",
"kind": "electrical",
"unit": "µA",
"min": null,
"typ": 0.01,
"max": 2,
"conditions": "VDD=1.8V, Max at +85°C (Max +125°C: 10); WDT, BOR, FVR and SOSC disabled",
"source_page": 418,
"source": "datasheet"
},
{
"name": "Watchdog Timer delta current",
"symbol": "ΔIPD",
"kind": "electrical",
"unit": "µA",
"min": null,
"typ": 0.3,
"max": 2.5,
"conditions": "VDD=1.8V, typ at +25°C, max at +85°C",
"source_page": 418,
"source": "datasheet"
},
{
"name": "Supply current RC_RUN LFINTOSC 31 kHz",
"symbol": "IDD",
"kind": "electrical",
"unit": "µA",
"min": null,
"typ": 3.6,
"max": 23,
"conditions": "VDD=1.8V, FOSC=31 kHz, -40°C",
"source_page": 420,
"source": "datasheet"
},
{
"name": "Supply current RC_RUN HFINTOSC 16 MHz",
"symbol": "IDD",
"kind": "electrical",
"unit": "mA",
"min": null,
"typ": 1.3,
"max": 2,
"conditions": "VDD=1.8V, FOSC=16 MHz, -40°C to +125°C",
"source_page": 421,
"source": "datasheet"
}
]
}
},
"variants": [],
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"pic18lf45k22-i"
],
"discovery_pitch": "PIC18LF45K22-I (Microchip Tech) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
"author": {
"name": "Ray",
"email": "[email protected]"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"pic18lf45k22-i.kicad_sym",
"pic18lf45k22-i.kicad_mod",
"pic18lf45k22-i.glb",
"pic18lf45k22-i.step",
"pic18lf45k22-i.lbr",
"docs/hero.png",
"docs/pic18lf45k22-i-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"pic18lf45k22-i-hero.glb",
"pic18lf45k22-i-hero.overlay.json",
"pic18lf45k22-i-etched.glb"
],
"visibility": {
"public": true
}
}