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
19days 02hrs 07min 38sec
Learn More →
PIC18F65K40-I/MR

MCHPPIC18F65K40-I/MR

Microchip Technology
PIC PIC® XLP™ 18K Microcontroller IC 8-Bit 64MHz 32KB (16K x 16) FLASH 64-VQFN (9x9)
Active1,313 in stock

Overview

The PIC18F65K40-I/MR is an 8-bit microcontroller from Microchip's eXtreme Low Power (XLP) family, featuring 32KB of Flash and 2KB of RAM in a space-saving 64-VQFN package. Operating at up to 64MHz, it integrates a high density of I/O (60 pins) and 47 ADC channels, making it suitable for sensor-heavy applications requiring minimal power consumption. The device includes essential peripherals like 5 UARTs, 2 SPI/I2C ports, and 1KB of on-chip EEPROM for non-volatile data storage.

Why Choose This Part

The primary advantage is the high pin-to-memory ratio, providing 60 I/O pins and extensive analog multiplexing on a modest 32KB Flash footprint. It supports a wide operating voltage range from 2.3V to 5.5V and includes XLP modes that significantly reduce current draw during inactivity.

Applications

Industrial Sensor Hubs
Utilizing the 47-channel 10-bit ADC to monitor large arrays of analog sensors in factory environments.
Battery-Powered Handhelds
Leveraging XLP technology and a 1.5uA standby current to extend operating life in portable devices.
Communication Bridges
Using the 5 available UARTs and dual SPI/I2C interfaces to act as a protocol translator between multiple subsystems.
Home Automation Controllers
Managing lighting and HVAC nodes via LINbus or UART while maintaining low power overhead.

Key Specifications

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

Getting Started

Develop using the MPLAB X IDE and the XC8 compiler, with hardware debugging supported by the MPLAB PICkit 4 or ICD 4 probes. The Curiosity High Pin Count (HPC) Development Board can be used for rapid prototyping, and Microchip Code Configurator (MCC) is recommended for graphical initialization of the 5 UARTs and 47 ADC channels.

PIC18F65 Family

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

Part Number Peripherals I/O Pins Package ADC/DAC Voltage Stock
PIC18F65K40-I/MR (this part) Brown-out Detect/R.. 60 VFQFN-64 A/D 45x10b; D/A 1x5b 2.3V 1,313
PIC18F65K90-I/PT Brown-out Detect/R.. 53 TQFP-64 A/D 16x12b 1.8V 46
PIC18F65K40T-I/MR Brown-out Detect/R.. 60 VFQFN-64 A/D 45x10b; D/A 1x5b 2.3V —

Also Consider

PIC18F66K40-I/MR MCHPMicrochip Technology - Provides double the Flash memory (64KB) in the same 64-VQFN footprint for larger firmware requirements.
ATmega2560 MCHPMicrochip Technology - Offers significantly more Flash (256KB) and RAM (8KB) if the 8-bit application exceeds the PIC18 memory limits.
PIC18F67K40-I/MR MCHPMicrochip Technology - Top-of-line variant in the same family with 128KB Flash for complex logic-heavy designs.