PIC18F24K40-I/ML - 8-bit MCU, 16KB Flash, 28-QFN | Microchip
MPN: PIC18F24K40-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.65 | $2.65 |
| 10 | $2.4 | $24.00 |
| 100 | $2.12 | $212.00 |
| 500 | $1.88 | $940.00 |
| 1,000 | $1.66 | $1,660.00 |
PIC18F24K40-I/ML Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, and a rich set of programmable peripherals around a shared bus. PIC microcontrollers sit in the broader hierarchy of embedded microcontrollers -> 8-bit microcontrollers -> RISC microcontrollers -> semiconductor ICs. The PIC18F family is Microchip's enhanced mid-range line, bridging legacy PIC16F parts and the 16-bit PIC24/dsPIC families, and is widely used in cost-sensitive, low-power, mixed-signal embedded designs.
Key differentiating features of the PIC18F24K40 include eXtreme Low Power (XLP) technology with nanoWatt XLP sleep currents, a 10-bit ADC with Computation (ADC2) for automated averaging and threshold comparison, a 5-bit DAC, two comparators, PWM, CCP, the Complementary Waveform Generator (CWG) for half-bridge and full-bridge driver control, a Windowed Watchdog Timer (WWDT), and hardware CRC/SCAN for memory integrity. The 28-QFN (ML) footprint suits compact layouts where thermal dissipation through the exposed pad is desirable.
The architecture combines an 8-bit data path with a 16-bit instruction word and a hardware multiplier, giving 16 MIPS peak throughput at 64 MHz. The ADC2 peripheral off-loads filtering from the CPU, while CIPs (Core Independent Peripherals) such as CWG and WWDT run without core intervention, freeing the CPU for application code.
Typical applications include low-power IoT sensor nodes, battery-powered consumer appliances, industrial control and HVAC peripherals, automotive body and lighting subsystems, and USB or human-interface front-ends that need moderate Flash but stringent power budgets. The wide 1.8 V - 5.5 V supply range also supports direct connection to a single-cell Li-ion or 3.3 V system rail.
When designing with this part, place a 100 nF decoupling capacitor close to VDD and tie the exposed thermal pad to ground for thermal and electrical performance. The ICSP/ICD pins (PGED/PGEC) must be brought out for in-circuit debug, and the MCLR pin should use the recommended 10 kohm pull-up network specified in the Microchip PIC18F2X/4XK40 family datasheet.
Drop-in alternatives for PIC18F24K40-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 PIC18F24K40-I/ML (same form factor and footprint) — differing in ADC, Package, Operating Temperature, DAC, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F24K42-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K40-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F24K20-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F24K40-E/ML
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.55 / Unit
View Datasheet →PIC18F24K40T-I/ML
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.22 / Unit
View Datasheet →PIC18F24K40-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 enhanced mid-range 8-bit |
| Maximum CPU Frequency | 64 MHz |
| Program Memory (Flash) | 16 KB (8K x 16 words) |
| SRAM | 1 KB |
| EEPROM | 256 bytes |
| Operating Voltage Range | 1.8 V to 5.5 V |
| I/O Pins | 24 (shared with analog/peripheral functions) |
| ADC | 10-bit ADC2 with Computation, up to 35 channels |
| DAC | 5-bit DAC |
| Comparators | 2 |
| PWM Outputs | Yes (CCP, PWM, CWG) |
| Timers | Multiple 8/16-bit timers plus WWDT |
| Communication Peripherals | EUSART, MSSP (I2C/SPI) |
| Package | 28-pin QFN (6 x 6 mm) with exposed pad |
| Operating Temperature | -40C to +85C (industrial, /I suffix) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC18F24K40-I/ML Pin Configuration
| Pin 1 | RA2 — Port A bit 2 / analog input |
| Pin 2 | RA3 — Port A bit 3 / analog input |
| Pin 3 | RA4 — Port A bit 4 / analog input |
| Pin 4 | RA5 — Port A bit 5 / analog input |
| Pin 5 | RA6 — Port A bit 6 |
| Pin 6 | RA7 — Port A bit 7 |
| Pin 7 | VSS — Ground reference |
| Pin 8 | VDD — Positive supply voltage (1.8 V to 5.5 V) |
| Pin 9 | RA0 — Port A bit 0 / analog input |
| Pin 10 | RA1 — Port A bit 1 / analog input |
| Pin 11 | RB4 — Port B bit 4 / analog input |
| Pin 12 | RB5 — Port B bit 5 / analog input |
| Pin 13 | RB6 — Port B bit 6 / ICD PGEC |
| Pin 14 | RB7 — Port B bit 7 / ICD PGED |
| Pin 15 | VSS — Ground reference |
| Pin 16 | VDD — Positive supply voltage (1.8 V to 5.5 V) |
| Pin 17 | RB0 — Port B bit 0 / analog input |
| Pin 18 | RB1 — Port B bit 1 / analog input |
| Pin 19 | RB2 — Port B bit 2 / analog input |
| Pin 20 | RB3 — Port B bit 3 / analog input |
| Pin 21 | RC0 — Port C bit 0 |
| Pin 22 | RC1 — Port C bit 1 |
| Pin 23 | RC2 — Port C bit 2 |
| Pin 24 | RC3 — Port C bit 3 |
| Pin 25 | RC4 — Port C bit 4 |
| Pin 26 | RC5 — Port C bit 5 |
| Pin 27 | RC6 — Port C bit 6 |
| Pin 28 | RC7 — Port C bit 7 |
Typical Applications
PIC18F24K40-I/ML is suitable for 6 applications: Low-Power IoT Sensor Nodes, Industrial Control and HVAC Peripherals, Automotive Body and Lighting Subsystems, Battery-Powered Consumer Appliances, LED Lighting and Signage Drivers, Human-Machine Interface (HMI) Front-Ends.
Low-Power IoT Sensor Nodes
The PIC18F24K40-I/ML suits battery-powered wireless sensor nodes because its nanoWatt XLP sleep currents, typically below 50 nA with RTCC retained, allow multi-year coin-cell operation. Its 16 KB Flash accommodates small LoRaWAN or BLE protocol stacks while the 10-bit ADC2 with Computation engine handles temperature, humidity, and battery-voltage monitoring without CPU wake-ups. The 1.8 V to 5.5 V supply range matches single-cell Li-ion and 3.3 V system rails directly. The 28-QFN 6x6 mm footprint keeps the BOM area minimal, allowing the MCU to share PCB real estate with the radio module.
Recommended
Industrial Control and HVAC Peripherals
For industrial sensor and actuator front-ends, the PIC18F24K40-I/ML offers the CWG peripheral for driving half-bridge MOSFET stages in motor-control or valve-driver circuits, plus two comparators for analog threshold detection. Its 1.8 V to 5.5 V range tolerates 24 V industrial bus transients when paired with a TVS and LDO. The hardware CRC/SCAN block validates Flash and EEPROM integrity, supporting functional-safety documentation. The exposed thermal pad on the 28-QFN package ensures adequate heat spreading when the part runs at full 64 MHz near maximum ambient.
Recommended
Automotive Body and Lighting Subsystems
The PIC18F24K40-I/ML is well matched to non-safety automotive body modules such as interior LED drivers, ambient-lighting controllers, and HVAC panel logic where XLP nanoWatt sleep extends quiescent battery drain. Its CWG outputs can drive N-channel MOSFET half-bridges for LED strings or small DC loads, while ADC2 reads back current-sense amplifiers for closed-loop brightness regulation. The 28-QFN (6x6 mm) package withstands automotive underhood vibration when PCB-mounted with proper staking. For AEC-Q100-qualified designs, choose the /E or /VAO variants of the same family.
Recommended
Battery-Powered Consumer Appliances
The PIC18F24K40-I/ML's XLP sleep modes and fast wake-up make it ideal for handheld appliances such as blood-pressure monitors, electronic thermometers, and wireless remote controls where battery life is the primary spec. The 5-bit DAC and two comparators can drive simple audio or haptic-feedback stages without additional analog ICs. Its 64 MHz CPU headroom supports graphical LCD or segment-display refresh routines. The wide 1.8 V to 5.5 V supply range allows direct connection to two alkaline cells, a single Li-ion, or a USB-powered 5 V rail.
Recommended
LED Lighting and Signage Drivers
The PIC18F24K40-I/ML's Complementary Waveform Generator (CWG) is purpose-built for driving LED strings and full-bridge lighting stages with programmable dead time and auto-shutdown on comparator faults. Its PWM and CCP peripherals generate dimming waveforms up to 64 MHz system clock with sub-microsecond resolution, enabling flicker-free analog dimming. ADC2 monitors LED current-sense resistors for closed-loop constant-current regulation. The 28-QFN footprint keeps driver PCBs compact enough for MR16 spotlights and linear-strip controllers.
Recommended
Human-Machine Interface (HMI) Front-Ends
The PIC18F24K40-I/ML's 16 KB Flash accommodates USB HID stacks or capacitive-touch firmware for small HMI panels. Its MSSP peripheral supports both I2C and SPI, enabling connection to segment LCDs, OLED displays, and touch-sensing ICs. ADC2 reads potentiometers and rotary encoders without CPU load, and the EUSART supports RS-485 industrial panels. The exposed pad on the 28-QFN package allows the part to dissipate heat during continuous full-speed operation in enclosed HMI enclosures.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F24K40-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F24K42-I/ML | PIC18F25K40-I/ML | PIC18F24K20-I/ML | PIC18F24K40-E/ML |
|---|---|---|---|---|---|
| Package | 28-QFN (6x6 mm) | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 16 KB | 16 KB | 32 KB | 16 KB | 16 KB |
| SRAM | 1 KB | 1 KB | 2 KB | 768 B | 1 KB |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B |
| Maximum CPU Frequency | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| XLP nanoWatt Sleep | Yes (nanowatt XLP) | Yes (XLP) | Yes (XLP) | No | Yes (nanowatt XLP) |
| ADC2 with Computation | Yes | Yes | Yes | No | Yes |
| Operating Temperature | -40C to +85C (industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +125C (extended) |
Key Differentiators
- nanoWatt XLP sleep currents below 50 nA (vs PIC18F24K20-I/ML)
- ADC2 with Computation offloads CPU from averaging loops (vs PIC18F24K20-I/ML)
- Drop-in compatibility with newer PIC18F24K42-I/ML (vs PIC18F24K20-I/ML)
- Doubled Flash and RAM on the PIC18F25K40-I/ML sibling (vs PIC18F25K40-I/ML)
Design Notes
Estimated: at 64 MHz CPU, 5 V VDD, the PIC18F24K40-I/ML active current is approximately 10-12 mA, giving around 50-60 mW dissipation. During XLP sleep with RTCC, current drops below 50 nA - ideal for battery applications. Place a 100 nF decoupling capacitor within 5 mm of each VDD pin and a bulk 1-10 uF tantalum or ceramic at the supply entry to handle digital switching transients. Use a low-Iq LDO such as Microchip MCP1700 for the standby rail.
Estimated: with 60 mW dissipation, the junction temperature rise above ambient on the 28-QFN (theta_JA approximately 35 C/W on a standard 4-layer JEDEC test board) is only 2-3 C, so no heatsink is required. However, in enclosed HMI enclosures with limited airflow, ensure the exposed thermal pad is soldered to a continuous ground copper pour of at least 100 mm^2 to keep junction temperature below 100 C.
Route the ICSP/ICD pins (RB6/PGEC, RB7/PGED) directly to a 0.1 inch header for in-circuit debug. Keep the MCLR pull-up (typically 10 kohm to VDD) close to the pin to avoid spurious resets. Place the 28-QFN exposed pad on a continuous ground plane stitched with multiple vias for both thermal and electrical performance. Separate analog and digital ground regions are not strictly required for the QFN package but improve ADC2 accuracy if the design has mixed-signal content.
Do not omit the decoupling capacitors - the PIC18F24K40 datasheet mandates at least one 100 nF low-ESR ceramic on each VDD pair. Avoid driving CWG outputs directly with long traces; gate resistors of 10-100 ohm suppress ringing on half-bridge MOSFET gates. When using ADC2, ensure the analog supply AVDD and AVSS pins (shared with VDD/VSS in 28-QFN) have a clean reference; otherwise ADC2 readings suffer offset and gain errors. Finally, do not configure unused I/O pins as outputs without internal pull-ups, or floating inputs may draw extra current in sleep mode.
Compliance Information
Industrial -40C to +85C grade (/I suffix). For AEC-Q100 qualified automotive parts, choose /E or /VAO variants. RoHS and REACH compliance per Microchip product page.