PIC18F24K40-E/ML - 64MHz 8-bit MCU 16KB Flash 28-QFN | Microchip
MPN: PIC18F24K40-E/ML ✓ Hoạt độngPIC18F24K40-E/ML Tóm tắt
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, memory, timers, and I/O peripherals around an 8-bit data path. PIC18F-series MCUs sit in Microchip's mid-range 8-bit lineup (PIC10/12/16/18 family), chosen for low cost, deterministic interrupt latency, and a mature toolchain (MPLAB X, XC8). The PIC18F24K40-E/ML sits in the MCU -> microcontroller -> 8-bit MCU -> PIC18 hierarchy and is widely used as a drop-in upgrade for legacy PIC16/PIC18 designs that need more analog and richer peripherals.
Key features include 16 KB self-programmable Flash, 1 KB SRAM, 256 B EEPROM, 64 MHz operation, 24-channel 10-bit ADC, 5-bit DAC, two comparators, 10-bit PWM with CCP, Complementary Waveform Generator (CWG), Hardware Limit Timer (HLT), Windowed Watchdog Timer (WWDT), and CRC/Memory Scan. XLP (eXtreme Low Power) technology delivers <50 nA typical sleep current with RTCC. The 28-QFN package with exposed thermal pad supports 25 I/O pins and provides a low-thermal-resistance path for higher-current GPIO drive.
Technical depth: the CIP architecture lets the CWG, ADC, DAC, comparators, and timers operate without CPU intervention, enabling deterministic hardware-driven control loops for motor, power-conversion, and lighting applications. The 64 MHz core delivers 16 MIPS of throughput, while Peripheral Pin Select (PPS) remaps digital functions to any I/O, simplifying PCB layout. The integrated Hardware Limit Timer (HLT) provides fault-rate-limited PWM shutdown for safety-critical applications.
Typical applications include automotive body and interior modules, IoT sensor nodes, battery-powered sensor hubs, BLDC and stepper motor control, digital lighting, and home appliances. The extended -40C to +125C temperature range makes the -E/ML variant particularly suitable for underhood automotive and harsh-environment industrial designs.
Design consideration: confirm the 28-QFN footprint matches your PCB land pattern and that the exposed thermal pad is soldered to a sufficient copper pour for heat spreading. Programming via ICSP requires dedicated RG0/PGD, RG1/PGC, and MCLR/VPP pins routed for probe access. Plan PPS assignments early because peripheral-to-pin remapping occurs at runtime and can save board space but complicates firmware reuse.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
Bộ thay thế dễ dàng lắp đặt cho PIC18F24K40-E/ML — cùng gói, chân-to-chân tương thích. Các bộ phận yêu cầu hàn PCB bị loại trừ.
Các biến thể trong loạt này
Các mẫu cùng loạt có thể lắp đặt dễ dàng tương thích với PIC18F24K40-E/ML (cùng hình factor và footprint) — khác nhau ở ADC, Package, Core Architecture, Program Memory (Flash), Operating Temperature.
PIC18F25K40-E/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F24K40-I/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F24K22-I/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F24K20-E/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F23K22-I/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F24K40-E/ML Tỷ lệ tối đa & tính chất điện
| Family | PIC18F K40 series |
| Core | PIC18 8-bit RISC |
| CPU Speed | 64 MHz (16 MIPS) |
| Program Memory (Flash) | 16 KB |
| Data SRAM | 1 KB |
| Data EEPROM | 256 B |
| Operating Voltage | 2.3 V to 5.5 V |
| ADC | 10-bit, 24 channels |
| DAC | 5-bit, 1 channel |
| Comparators | 2 |
| PWM Channels | 10-bit PWM, multiple CCP |
| CIP Peripherals | CWG, WWDT, CRC/SCAN, HLT |
| I/O Pins | 25 |
| Hộp | 28-QFN (6x6 mm) |
| Temperature Grade | -40C to +125C (Extended -E) |
| Kiểu lắp đặt | Surface Mount |
| Trạng thái RoHS | Compliant |
| Cấp MSL | 1 |
Cấu hình chân PIC18F24K40-E/ML
| Chân 1 | RA5 — Digital I/O / analog input / ICSP programming pin |
| Chân 2 | RA4 — Digital I/O / analog input |
| Chân 3 | RA3 — Digital I/O / analog input |
| Chân 4 | RC5 — Digital I/O / analog input |
| Chân 5 | RC4 — Digital I/O / analog input |
| Chân 6 | RC3 — Digital I/O / analog input |
| Chân 7 | RC2 — Digital I/O / analog input |
| Chân 8 | RC1 — Digital I/O / analog input |
| Chân 9 | RC0 — Digital I/O / analog input |
| Chân 10 | RC6 — Digital I/O / TX/CK (peripheral pin select) |
| Chân 11 | RC7 — Digital I/O / RX/DT (peripheral pin select) |
| Chân 12 | RB7 — Digital I/O / ICSP PGD |
| Chân 13 | RB6 — Digital I/O / ICSP PGC |
| Chân 14 | RB5 — Digital I/O / analog input |
| Chân 15 | RB4 — Digital I/O / analog input |
| Chân 16 | RB3 — Digital I/O / analog input |
| Chân 17 | RB2 — Digital I/O / analog input |
| Chân 18 | RB1 — Digital I/O / analog input |
| Chân 19 | RB0 — Digital I/O / analog input / interrupt-on-change |
| Chân 20 | VDD — Positive supply voltage (2.3V-5.5V) |
| Chân 21 | VSS — Ground reference |
| Chân 22 | RA7 — Digital I/O / analog input / oscillator |
| Chân 23 | RA6 — Digital I/O / analog input / oscillator |
| Chân 24 | RA1 — Digital I/O / analog input / DAC reference |
| Chân 25 | RA0 — Digital I/O / analog input / DAC output |
| Chân 26 | RA2 — Digital I/O / analog input |
| Chân 27 | MCLR — Master clear (reset) / ICSP programming voltage |
| Chân 28 | RE2 — Digital I/O / analog input |
| Chân 29 | EP — Exposed thermal pad - connect to VSS for heat spreading |
Ứng dụng tiêu biểu
PIC18F24K40-E/ML phù hợp cho 6 Áp dụngs: Automotive Body and Interior Modules, Battery-Powered IoT Sensor Hubs, BLDC and Stepper Motor Control, Digital LED Lighting and Signage, Home Appliance Control Boards, Industrial Sensor and Actuator Nodes.
Automotive Body and Interior Modules
The PIC18F24K40-E/ML's extended -40C to +125C temperature grade and AEC-Q100 qualification make it ideal for automotive body controllers, interior lighting, seat control, and HVAC damper actuators. The 64 MHz core delivers 16 MIPS, while the integrated CWG and HLT peripherals provide hardware fault shutdown for motor and LED driver stages. The 24-channel 10-bit ADC reads thermistor, switch, and position-sensor inputs directly. PPS remaps digital functions across the 28-QFN pinout, freeing PCB routing for compact module designs.
Được đề xuất
Battery-Powered IoT Sensor Hubs
The PIC18F24K40-E/ML's XLP technology delivers <50 nA typical sleep current with RTCC and WDT active, enabling years of battery life on coin-cell or 2x AA power. The 24-channel ADC reads temperature, humidity, gas, and motion sensor inputs; the 5-bit DAC and comparators provide threshold-based wake-up triggers. The 16 KB Flash holds small BLE/Zigbee stack bridges or local sensor-fusion firmware, and PPS minimizes board space by remapping UART/I2C/SPI to any I/O. CIP peripherals let the ADC and CWG run autonomously during deep sleep.
Được đề xuất
BLDC and Stepper Motor Control
The PIC18F24K40-E/ML drives small BLDC and stepper motors via the integrated Complementary Waveform Generator (CWG), which generates complementary PWM with dead-band control without CPU intervention. The 10-bit PWM with CCP modules handles speed and torque loops; the Hardware Limit Timer (HLT) provides hardware-rate-limited shutdown on overcurrent faults. The 5-bit DAC and two comparators form a hardware current-limit loop. At 16 MIPS the core handles position decoding, FOC math for low-RPM, or trapezoidal commutation for fans and pumps.
Được đề xuất
Digital LED Lighting and Signage
The PIC18F24K40-E/ML controls addressable LED strings, dimmable drivers, and architectural lighting via its CWG peripheral, which generates high-resolution PWM at hardware rates up to 64 MHz. The 24-channel ADC reads ambient light sensors and potentiometer dimmers; the 5-bit DAC sets constant-current driver references. WWDT and CRC/SCAN provide functional safety for commercial lighting, and PPS lets engineers route PWM outputs to any of the 25 I/O pins, simplifying multi-zone lighting PCBs. XLP sleep current supports battery-powered emergency luminaires.
Được đề xuất
Home Appliance Control Boards
White goods, kitchen appliances, and small HVAC units use the PIC18F24K40-E/ML for user-interface control, sensor reading, and relay/triac switching. The integrated comparators and 10-bit ADC read temperature probes, capacitive touch buttons via CVD, and AC zero-cross signals. The CWG and HLT handle triac firing with hardware safety interlocks. The extended -40C to +125C temperature grade supports oven and dishwasher environments. 16 KB Flash comfortably fits user-interface state machines plus bootloader for field firmware updates.
Được đề xuất
Industrial Sensor and Actuator Nodes
Factory automation edge nodes use the PIC18F24K40-E/ML to read analog sensors (4-20 mA, 0-10 V, RTD, thermocouple) and drive digital outputs to actuators and indicators. The 24-channel 10-bit ADC multiplexes multiple sensor inputs; the 10-bit PWM and CCP modules drive proportional valves and motor speeds. UART, I2C, and SPI peripherals (remappable via PPS) connect to industrial bus transceivers, displays, and EEPROM. The extended temperature grade handles cabinet environments, and WWDT provides functional-safety supervision.
Được đề xuất
Tóm tắt các sản phẩm được đề xuất
Dữ liệu tham khảo kỹ thuật cho PIC18F24K40-E/ML — so sánh, hướng dẫn thiết kế và thông tin tuân thủ.
Hướng dẫn chọn lựa
So sánh với các sản phẩm thay thế
| Tham số | Sản phẩm này | PIC18F25K40-E/ML | PIC18F24K40-I/ML | PIC18F24K22-I/ML | PIC18F24K20-E/ML | PIC18F23K22-I/ML |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-QFN (6x6 mm) | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN - same footprint | 28-QFN - same footprint | 28-QFN - same footprint |
| Flash Memory | 16 KB | 32 KB | 16 KB | 16 KB | 16 KB | 8 KB |
| SRAM | 1 KB | 2 KB | 1 KB | 768 B | 768 B | 512 B |
| CPU Speed | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) |
| Temperature Grade | -40C to +125C (Extended -E) | -40C to +125C (E) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +125C (E) | -40C to +85C (Industrial) |
| CIP Peripherals | CWG, WWDT, HLT, CRC/SCAN, CVD | CWG, WWDT, HLT, CRC/SCAN, CVD | CWG, WWDT, HLT, CRC/SCAN, CVD | No CWG, no HLT, no PPS | No CWG, no WWDT, no PPS | No CWG, no HLT, no PPS |
| ADC Channels / Resolution | 24 channels / 10-bit | 24 channels / 10-bit | 24 channels / 10-bit | 17 channels / 10-bit | 13 channels / 10-bit | 17 channels / 10-bit |
Bảo phân biệt quan trọng
- Core Independent Peripherals (CIP) - CWG, HLT, CRC/SCAN (vsPIC18F24K22-I/ML)
- Peripheral Pin Select (PPS) - remappable digital functions (vsPIC18F24K20-E/ML)
- Extended -40C to +125C temperature grade (E) (vsPIC18F24K40-I/ML)
- XLP (eXtreme Low Power) - <50 nA sleep current (vsPIC18F24K22-I/ML)
Ghi chú thiết kế
The 28-QFN (6x6 mm) package requires a land pattern with a central thermal pad (EP) that must be soldered to a copper pour connected to VSS. Without this connection, thermal dissipation suffers and the device can hit thermal shutdown under heavy GPIO load. Use an array of thermal vias under the EP - 0.3 mm drill, 0.5 mm pitch - to spread heat into inner PCB layers. Keep digital traces away from the analog ADC inputs (RA0-RA7, RB0-RB7, RC0-RC7) to minimize coupling noise; use a ground guard ring around sensitive analog signals.
Place a 100 nF decoupling capacitor as close as possible to the VDD pin (pin 20) with a wide, short trace to VSS. Add a bulk 1 uF to 10 uF capacitor on the VDD rail near the MCU. For ADC accuracy, add a small ferrite bead or 10 ohm resistor between the MCU VDD and the AV analog supply if noise is observed. Estimated: with 64 MHz operation and all peripherals active, peak current can reach 15 mA; XLP sleep mode reduces this to <50 nA typical. Plan power-rail sequencing if the MCU shares supplies with motor drivers.
Do not leave the MCLR pin floating - always pull it to VDD through a 10 kohm resistor (or tie directly if not used) to prevent spurious resets. The ICSP pins RG0/PGD and RG1/PGC must be reserved for in-circuit programming access; do not load them with low-impedance peripherals. Programming voltage on MCLR/VPP must reach 8V-9V during ICSP - ensure your MCLR pull-down network does not divide this voltage below spec. Finally, Peripheral Pin Select (PPS) remapping must be unlocked via the PPSLOCK register sequence before configuration; forgetting this sequence is the most common firmware-startup bug.
PPS allows digital peripherals (UART, I2C, SPI, PWM, CWG) to be remapped to most I/O pins, giving flexibility in PCB routing. Group high-speed signals (SPI SCK, PWM outputs) close together and away from analog inputs. Route the 10-bit ADC traces in a star pattern from a single quiet ground point to minimize crosstalk. For motor-control applications using CWG, keep the complementary PWM outputs on adjacent pins to maintain matched trace impedance and reduce shoot-through from layout imbalance.
Thông tin tuân thủ
AEC-Q100 qualified under the -E extended temperature grade. RoHS compliant per Microchip product page. Lead-free and halogen-free per package materials declaration.