EmbeddedRelated.com
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
25days 06hrs 26min 54sec
Learn More →
PIC18F24K40T-I/ML

MCHPPIC18F24K40T-I/ML

Microchip Technology
PIC PIC® XLP™ 18K Microcontroller IC 8-Bit 64MHz 16KB (8K x 16) FLASH 28-QFN (6x6)
Active2,180 in stock

Overview

The PIC18F24K40 is an 8-bit microcontroller that combines 16KB of Flash memory with Microchip eXtreme Low-Power (XLP) technology for power-sensitive applications. Operating at up to 64MHz, it features Core Independent Peripherals (CIPs) that handle tasks in hardware to reduce CPU load and power consumption. This variant is housed in a compact 28-pin QFN package, making it suitable for space-constrained designs requiring integrated analog and digital functionality.

Why Choose This Part

The inclusion of Core Independent Peripherals like the Complementary Waveform Generator (CWG) and CRC/Memory Scan allows for complex timing and safety checks without constant CPU intervention. Peripheral Pin Select (PPS) provides flexible I/O routing to simplify PCB layout, while the integrated ADCC automates signal averaging and threshold comparisons to save power.

Applications

Battery-Powered IoT Sensors
Utilizes XLP technology and a 0.4uA standby current to extend the life of remote sensors and connected nodes.
Capacitive Touch Interfaces
Leverages the ADC with Computation (ADCC) and Capacitive Voltage Divider (CVD) hardware for robust touch button and slider implementation.
Industrial Monitoring
Employs the Zero-Cross Detect (ZCD) and Windowed Watchdog Timer (WWDT) for reliable power control and system safety monitoring.
Portable Medical Devices
Small 6x6mm QFN footprint and low active current (2.0mA at 16MHz) suit handheld diagnostic tools.

Key Specifications

Speed 64MHz
RAM Size 1K x 8
Core Size 8-Bit
EEPROM Size 256 x 8
Peripherals Brown-out Detect/Reset, LVD, POR, PWM, WDT
Connectivity I2C, LINbus, SPI, UART/USART
Mounting Type Surface Mount
Number of I/O 25
Core Processor PIC
Package / Case 28-VQFN Exposed Pad
Data Converters A/D 24x10b; D/A 1x5b
Oscillator Type Internal
Program Memory Size 16KB (8K x 16)
Program Memory Type FLASH
Operating Temperature -40degC ~ 85degC (TA)
Supplier Device Package 28-QFN (6x6)
Voltage - Supply (Vcc/Vdd) 2.3V ~ 5.5V

Getting Started

Engineers can begin development using the MPLAB X IDE and the XC8 C Compiler. For hardware evaluation, the Curiosity High Pin Count (HPC) Development Board or the PIC18F24K40 Curiosity Nano board provides a rapid prototyping platform. Firmware configuration is streamlined through the MPLAB Code Configurator (MCC), which generates initialization code for the CIPs and analog modules.

PIC18F24 Family

Comparing specs that differ across variants. The current part is highlighted.

Part Number Flash RAM I/O Pins Package ADC/DAC Connectivity Stock
PIC18F24K40T-I/ML (this part) 16KB 1K 25 VQFN-28 A/D 24x10b; D/A 1x5b I2C, LINbus, SPI, .. 2,180
PIC18F24K40-I/ML 16KB 1K 25 VQFN-28 A/D 24x10b; D/A 1x5b I2C, LINbus, SPI, .. 2,026
PIC18F24Q10-I/SO 16KB 1K 25 SOIC-28 A/D 24x10b; D/A 1x5b I2C, SPI, UART/USART 4,603
PIC18F24K22-I/SO 16KB 768 x 8 24 SOIC-28 A/D 19x10b I2C, SPI, UART/USART 2,175
PIC18F24K40-I/SO 16KB 1K 25 SOIC-28 A/D 24x10b; D/A 1x5b I2C, LINbus, SPI, .. 1,818
PIC18F24Q10-I/SS 16KB 1K 25 SSOP-28 A/D 24x10b; D/A 1x5b I2C, SPI, UART/USART 23,542
PIC18F24K40T-I/SO 16KB 1K 25 SOIC-28 A/D 24x10b; D/A 1x5b I2C, LINbus, SPI, .. 1,275
PIC18F24K40-I/SS 16KB 1K 25 SSOP-28 A/D 24x10b; D/A 1x5b I2C, LINbus, SPI, .. 110
PIC18F24K42-I/SO 16KB 1K 25 SOIC-28 A/D 24x12b; D/A 1x5b I2C, LINbus, SPI, .. —

Also Consider

PIC18F25K42-I/ML MCHPMicrochip Technology - Offers double the Flash memory at 32KB and increased RAM for more complex firmware requirements in the same 28-QFN package.
ATtiny1616-MFR MCHPMicrochip Technology - An alternative 8-bit architecture with 16KB Flash that also features Core Independent Peripherals in a 20-pin QFN package.