PIC18F24K40T-I/ML - 8-Bit XLP MCU, 16KB Flash, 28-QFN | Microchip
MPN: PIC18F24K40T-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.88 | $1.88 |
| 10 | $1.69 | $16.90 |
| 100 | $1.51 | $151.00 |
| 500 | $1.36 | $680.00 |
| 1,000 | $1.22 | $1,220.00 |
PIC18F24K40T-I/ML Overview
An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data path. PIC18F "K-series" parts combine the legacy PIC mid-range instruction set with enhanced peripherals, XLP nanoWatt sleep modes (down to ~30 nA typical), and on-chip op amps / comparators that previously required external components. They sit in the hierarchy: 8-bit MCU -> microcontroller -> embedded computing -> semiconductor.
Key features include ten 10-bit ADCs with Computation (ADC2), a 5-bit DAC, four configurable logic cells, 4 CCP/ECCP/PWM channels, an on-chip 32 MHz internal oscillator, EUSART plus SPI/I2C, and 36-level instruction width. The XLP IDLE/DOZE/PMD power modes plus Peripheral Module Disable let unused peripherals consume zero current, enabling years of battery life in always-on sensor nodes.
Architecture-wise, the PIC18F24K40 family uses an enhanced mid-range RISC core that executes most instructions in one cycle, supported by a wide 31-level hardware stack and interrupt priority levels. Hardware CVD (Capacitive Voltage Divider) lets the chip read mTouch capacitive touch sensors without an external conversion IC, while Zero-Cross Detect simplifies AC mains zero-crossing switching applications.
Typical applications include low-power IoT sensor nodes, battery-powered thermostats and metering, capacitive touch user interfaces, automotive body and interior modules, USB-free home appliances, and motor control loops driving brushed or small BLDC loads. The combination of 5V tolerance on I/O and 1.8V minimum operation suits wide industrial range designs.
When designing with this MCU, ensure the PICKit or Snap programmer is connected to the ICSP pins (RA0/RA1/RA3) during development. Decoupling: place a 100 nF X7R capacitor within 3 mm of each VDD/AVDD pin and a 10 uF bulk capacitor near the package. Brown-out and watchdog should be enabled for safety-critical workloads.
This page synthesizes distributor pricing, drop-in alternative MPNs, parametric comparisons, and practical design notes drawn from manufacturer datasheets, providing information that individual distributor product pages do not aggregate.
Drop-in alternatives for PIC18F24K40T-I/ML — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with PIC18F24K40T-I/ML (same form factor and footprint) — differing in Package, ADC, Program Memory (Flash), I/O Pins, DAC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F24K40-I/ML
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.66 / Unit
View Datasheet →PIC18F24K40-E/ML
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.55 / Unit
View Datasheet →PIC18F25K40T-I/ML
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F24K40T-I/MV
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.42 / Unit
View Datasheet →PIC18F24K40T-I/SO
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F24K40T-I/ML Maximum Ratings & Electrical Characteristics
| Family | PIC18F "K40" |
| Core | PIC 8-bit RISC (enhanced mid-range) |
| Program Memory (Flash) | 16 KB (8K x 16 words) |
| SRAM | 1 KB |
| EEPROM | 256 B |
| Maximum CPU Speed | 64 MHz |
| Supply Voltage (VDD) | 1.8 V to 5.5 V |
| I/O Pins | 25 |
| ADC | 10-bit, up to 24 channels (ADC2 with Computation) |
| DAC | 5-bit |
| Comparators | 2 |
| Timers / CCP / PWM | 4 CCP/ECCP, 10-bit PWM |
| Communication | EUSART, 2x SPI, 2x I2C |
| Core Independent Peripherals | CWG, WWDT, CRC/Memory Scan, Zero-Cross Detect, Hardware CVD, PPS |
| Operating Temperature | -40C to +85C (Industrial, "I") |
| Package | 28-pin QFN (6x6 mm), ML suffix |
| Mounting Type | Surface Mount |
| MSL Level | 3 (168 hours) |
| RoHS Status | Compliant |
PIC18F24K40T-I/ML Pin Configuration
| Pin 1 | RA5 — Bidirectional I/O / ADC channel |
| Pin 2 | RA4 — Bidirectional I/O / PWM output |
| Pin 3 | RA3 — Bidirectional I/O / Analog input AN3 |
| Pin 4 | RC5 — Bidirectional I/O / I2C/SPI |
| Pin 5 | RC4 — Bidirectional I/O / I2C/SPI |
| Pin 6 | RC3 — Bidirectional I/O |
| Pin 7 | VDD — Positive supply (1.8 V to 5.5 V) |
| Pin 8 | RA2 — Bidirectional I/O / Analog input |
| Pin 9 | RA1/ICSPCLK — ICSP clock / GPIO |
| Pin 10 | RA0/ICSPDAT — ICSP data / GPIO |
| Pin 11 | RC2 — Bidirectional I/O / PWM |
| Pin 12 | RC1 — Bidirectional I/O / PWM |
| Pin 13 | RC0 — Bidirectional I/O |
| Pin 14 | OSC1 — Crystal oscillator input or ext clock |
| Pin 15 | OSC2 — Crystal oscillator output |
| Pin 16 | RC7 — Bidirectional I/O / EUSART RX |
| Pin 17 | VSS — Ground reference |
| Pin 18 | VDD — Positive supply (1.8 V to 5.5 V) |
| Pin 19 | RB7 — Bidirectional I/O / analog / I2C |
| Pin 20 | RB6 — Bidirectional I/O / analog / I2C |
| Pin 21 | RB5 — Bidirectional I/O / analog / PWM |
| Pin 22 | RB4 — Bidirectional I/O / analog / PWM |
| Pin 23 | RB3 — Bidirectional I/O / analog |
| Pin 24 | RB2 — Bidirectional I/O / analog |
| Pin 25 | RB1 — Bidirectional I/O / analog |
| Pin 26 | RB0 — Bidirectional I/O / analog / interrupt |
| Pin 27 | RC6 — Bidirectional I/O / EUSART TX |
| Pin 28 | RA7 — Bidirectional I/O / Oscillator clockout |
Typical Applications
PIC18F24K40T-I/ML is suitable for 6 applications: Low-Power IoT Sensor Node, Capacitive Touch User Interface (mTouch), Battery-Powered Thermostat / Metering, Automotive Interior & Body Module, Brushed DC Motor & Fan Control, Industrial 5V Sensor Hub.
Low-Power IoT Sensor Node
The PIC18F24K40T-I/ML suits coin-cell IoT sensor nodes thanks to its XLP nanoWatt sleep currents (<100 nA typical with RTCC + WDT) and the 1.8 V to 5.5 V VDD range. Its 64 MHz core wakes from sleep, processes the ADC2 reading and sleeps within milliseconds, while 16 KB Flash handles local protocol stacks. PWROFF current scales below 1 uA, offering multi-year battery life from a CR2032 cell in 5-second duty-cycle telemetry scenarios.
Recommended
Capacitive Touch User Interface (mTouch)
The PIC18F24K40T-I/ML implements Microchip's mTouch capacitive touch interface using the Hardware CVD (Capacitive Voltage Divider) peripheral, removing the need for an external touch controller IC. The 5-bit DAC plus 2 onboard comparators enable robust noise-immune touch acquisition even through 5 mm plastic overlays. With 10-bit ADC2 and DMA-free interrupt-driven sampling, this MCU delivers responsive sliders, buttons and proximity gestures for kitchen appliances, automotive interiors, and consumer electronics.
Recommended
Battery-Powered Thermostat / Metering
The PIC18F24K40T-I/ML serves battery-powered thermostats and metering equipment because the XLP power modes (IDLE, DOZE, PMD, SLEEP) and peripheral module disable keep quiescent current below 1 uA when gateways idle. The 10-bit ADC2 with Computation offloads averaging and threshold detection in hardware, while 256 B EEPROM stores calibration constants across firmware updates. The 5 V tolerance and 1.8 V minimum operation span both 3.6 V lithium and 5 V mains-derived layouts.
Recommended
Automotive Interior & Body Module
Automotive interior and body modules (cluster indicators, ambient lighting controllers, rear-seat modules) benefit from the PIC18F24K40T-I/ML thanks to its 28-QFN small footprint, 5 V rail tolerance and -40C to +85C industrial rating. The CWG peripheral synthesizes precision PWM for LED drivers, while the WWDT and CRC/Memory Scan provide fail-safe operation required for body electronics. For higher-grade automotive deployments requiring AEC-Q100 conformance, designers migrate to the PIC18F24K40T-I/ML-Q1 suffix variant with the same firmware image.
Recommended
Brushed DC Motor & Fan Control
The PIC18F24K40T-I/ML controls small brushed DC motors and fans through its 4 CCP/ECCP/PWM channels with up to 10-bit resolution and configurable dead-band. The configurable logic cell (CLC) and CWG peripheral generate complementary PWM with hardware fault shutdown without CPU intervention. Current sensing is handled through one of the 24 ADC2 channels, while the 32 MHz internal oscillator eliminates an external crystal for cost-sensitive appliance fans.
Recommended
Industrial 5V Sensor Hub
In industrial 5V sensor hubs, the PIC18F24K40T-I/ML aggregates multiple analog inputs via its 10-bit ADC2 (up to 24 channels) and routes them through EUSART or SPI to a higher-tier controller. The 1.8 V to 5.5 V VDD plus 5 V-tolerant digital I/O eliminates level shifters when bridging to 3.3 V sensors. With 36-level instruction width, deterministic interrupt latency, and zero-cross detect on dedicated pins, the MCU handles real-time industrial protocols such as DMX512 or analog setpoint signalling.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F24K40T-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F24K40-I/ML | PIC18F24K40-E/ML | PIC18F25K40T-I/ML | PIC18F24K40T-I/MV | PIC18F24K40T-I/SO |
|---|---|---|---|---|---|---|
| Package | 28-QFN (6x6 mm) | 28-QFN (6x6) - same | 28-QFN (6x6) - same | 28-QFN (6x6) - same | 28-UQFN (4x4) - smaller | 28-SOIC (300 mil) - different |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 16 KB | 16 KB | 16 KB | 32 KB (+100%) | 16 KB | 16 KB |
| SRAM | 1 KB | 1 KB | 1 KB | 2 KB (+100%) | 1 KB | 1 KB |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B | 256 B |
| Maximum CPU Speed | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| Operating Temperature | -40C to +85C | -40C to +85C | -40C to +125C (Extended) | -40C to +85C | -40C to +85C | -40C to +85C |
| Package Suffix | ML (28-QFN, T&R) | ML (28-QFN, Tray) | ML (28-QFN, Tray, Ext -40/125) | ML (28-QFN, T&R, 32KB) | MV (28-UQFN 4x4, T&R) | SO (28-SOIC, T&R) |
Key Differentiators
- Same-package speed/Flash match for firmware-compatible drop-in (vs PIC18F25K40T-I/ML)
- Industrial vs Extended temperature option (vs PIC18F24K40-E/ML)
- Packaging/footprint scalability across K40 family (vs PIC18F24K40T-I/SO)
Design Notes
Place a 100 nF X7R ceramic decoupling capacitor within 3 mm of each VDD pin (7 and 18) and add a 10 uF bulk capacitor at the package entrance. The wide 1.8 V to 5.5 V supply tolerance lets a single MCP1700 LDO serve both 3.3 V and 5 V designs. Always enable Brown-Out Reset (BOR) in configuration words to prevent code runaway at slow VDD rising edges.
The ICSP pins (RA0/ICSPDAT and RA1/ICSPCLK) are shared with general-purpose I/O — do not add a low-impedance load on these pins unless ICD 4 / PICKit 4 isolation is required. PPS is enabled by default; revert peripherals to fixed pin locations before debugging to avoid mapping conflicts. AVDD must be connected even when ADC is unused.
Route the 32 kHz SOSC crystal traces short and symmetric, and isolate them from the PWM/ECCP outputs on PORTC to prevent noise coupling into ADC2 readings. Use a dedicated ground plane under analog traces; if using 28-QFN, the exposed thermal pad should be soldered to a copper pour tied to VSS to dissipate the ~200 mA peak digital current and meet thermal limits.
Compliance Information
RoHS compliant per Microchip product page. Industrial temperature range -40 to +85 C; not AEC-Q100 qualified (choose PIC18F24K40T-I/ML-Q1 or -E/ML for automotive/extended).