PIC18F85K22-E/PT - 8-bit PIC MCU, 32KB Flash, 80-TQFP | Microchip
MPN: PIC18F85K22-E/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $6.95 | $6.95 |
| 10 | $6.32 | $63.20 |
| 100 | $5.62 | $562.00 |
| 500 | $5.05 | $2,525.00 |
| 1,000 | $4.55 | $4,550.00 |
PIC18F85K22-E/PT Overview
An 8-bit PIC microcontroller is a Harvard-architecture RISC processor that combines a CPU core, non-volatile program memory (Flash), data SRAM, and a rich peripheral set on a single die. PIC microcontrollers sit within the microcontroller hierarchy (MCU > 8-bit MCU > PIC > PIC18 family > PIC18FxxK22 sub-family) and are widely deployed in embedded control applications requiring deterministic real-time performance, low power consumption, and small code footprint. The PIC18F85K22 belongs to the enhanced mid-range family and adds nanoWatt XLP Technology, giving it sub-microamp sleep currents suitable for battery-powered designs.
Key features include 70 digital I/O pins, 12 channels of 12-bit A/D conversion, multiple communication peripherals (2x UART, 2x SPI, 2x I2C), 5 CCP/ECCP modules, a Charge Time Measurement Unit (CTMU) for capacitive touch sensing, an internal 16 MHz oscillator, and an operating voltage range of 1.8V to 5.5V (with extended operation to 4.2V-5.5V per the provided data). The integrated nanoWatt XLP Technology enables sleep currents as low as 20 nA, making the device well suited for power-constrained applications.
From an architectural perspective, the PIC18F85K22 uses a 16-bit instruction word (8-bit data path) and a 31-level hardware stack, providing high code density and predictable interrupt latency. The CTMU peripheral converts capacitance changes into timing measurements, supporting buttons, sliders, and proximity sensors without external components. The 12-bit ADC provides 12 channels of analog input with automatic acquisition, simplifying sensor interfacing.
Typical applications include industrial control panels, capacitive touch user interfaces, battery-powered remote sensors, automotive body controllers, and home appliances. The wide operating voltage range and high pin count also make it suitable for IoT edge nodes and human-machine interface (HMI) systems.
When designing with the PIC18F85K22-E/PT, ensure that decoupling capacitors (100 nF ceramic plus bulk) are placed close to the VDD/VSS pins, and that the MCLR reset pin is pulled high through a 10 kohm resistor. Programming is supported by MPLAB X IDE, MPLAB XC8 compiler, and the PICkit/SNAP/MPLAB ICD debuggers.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC18F85K22-E/PT — 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 PIC18F85K22-E/PT (same form factor and footprint) — differing in Package, ADC, Core Architecture, Operating Temperature, Timers.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F86K22-E/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F87K22-E/PT
✅ Drop-In✓ In Stock
$7.65 / Unit
View Datasheet →PIC18F85K22-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F85K22-E/PTVAO
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F8520T-E/PT
✅ Drop-In✓ In Stock
$5.52 / Unit
View Datasheet →PIC18F85K22-E/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC18 RISC |
| Program Memory (Flash) | 32 KB |
| SRAM | 2 KB |
| EEPROM | 1 KB |
| Maximum CPU Speed | 64 MHz (16 MIPS instruction rate) |
| Operating Voltage Range | 1.8 V to 5.5 V (extended 4.2 V to 5.5 V per datasheet family) |
| I/O Pins | 70 |
| ADC | 12-bit, 12 channels |
| Timers | 8-/16-bit, multiple modules |
| UART | 2x EUSART |
| SPI | 2x MSSP |
| I2C | 2x MSSP (Master/Slave) |
| CCP/ECCP Modules | 5 |
| CTMU | Yes (Charge Time Measurement Unit) |
| nanoWatt XLP Technology | Yes |
| Operating Temperature | -40C to +125C (E suffix, extended) |
| Package | TQFP-80 (PT), 12 x 12 mm |
| Mounting Type | Surface Mount |
| MSL Level | 3 (per JEDEC J-STD-020) |
| RoHS Status | Compliant |
PIC18F85K22-E/PT Pin Configuration
| Pin 1 | OSC1/RA7 — Oscillator input / GPIO RA7 |
| Pin 2 | RA6 — GPIO RA6 |
| Pin 3 | RA5 — GPIO RA5 |
| Pin 4 | RA4 — GPIO RA4 |
| Pin 5 | RA3 — GPIO RA3 |
| Pin 6 | RA2 — GPIO RA2 |
| Pin 7 | RA1 — GPIO RA1 |
| Pin 8 | RA0 — GPIO RA0 |
| Pin 9 | VSS — Ground reference |
| Pin 10 | VDD — Positive supply |
| Pin 11 | RB0 — GPIO RB0 / INT0 |
| Pin 12 | RB1 — GPIO RB1 / INT1 |
| Pin 13 | RB2 — GPIO RB2 |
| Pin 14 | RB3 — GPIO RB3 |
| Pin 15 | RB4 — GPIO RB4 |
| Pin 16 | RB5 — GPIO RB5 |
| Pin 17 | RB6 — GPIO RB6 / ICSP PGC |
| Pin 18 | RB7 — GPIO RB7 / ICSP PGD |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply |
Typical Applications
PIC18F85K22-E/PT is suitable for 6 applications: Industrial Control Panels, Capacitive Touch User Interfaces, Battery-Powered Remote Sensors, Automotive Body Controllers, Home Appliance Control Boards, IoT Edge Nodes with HMI.
Industrial Control Panels
The PIC18F85K22-E/PT fits industrial control panels because its 70 I/O pins can directly drive keypads, LED indicators, and segment displays while the 12-bit ADC reads analog sensors such as temperature probes, pressure transducers, and current shunts. The 64 MHz CPU provides 16 MIPS, sufficient for state-machine logic, PID control loops, and Modbus RTU communication over the integrated EUSART peripherals. The extended -40C to +125C operating range matches industrial enclosure requirements without derating, and the 1.8 V to 5.5 V supply tolerance simplifies integration with 3.3 V and 5 V mixed-signal circuitry. The 32 KB Flash supports on-device bootloader updates over RS-485, reducing field service costs.
Recommended
Capacitive Touch User Interfaces
The PIC18F85K22-E/PT is purpose-built for capacitive touch HMIs because of its integrated Charge Time Measurement Unit (CTMU), which measures capacitance changes on touch electrodes with sub-picofarad resolution. This eliminates the external timer IC or dedicated touch controller traditionally required for buttons, sliders, and proximity sensors. Combined with the nanoWatt XLP Technology, a battery-powered remote control with 20 touch buttons can run for years on AA cells. The 12-bit ADC simultaneously supports touch sensing plus analog channels for backlight control and battery monitoring. Reference firmware and PCB layout guidance are available in Microchip application notes AN1250 and AN1375, and Microchip's mTouch library accelerates development.
Recommended
Battery-Powered Remote Sensors
The PIC18F85K22-E/PT is ideal for battery-powered wireless sensor nodes because its nanoWatt XLP Technology delivers sleep currents as low as 20 nA, enabling multi-year operation on a single coin cell. The 12-bit ADC with 12 channels multiplexes temperature, humidity, light, and gas sensors, while the CTMU handles capacitive water-level detection. The internal 16 MHz oscillator eliminates external crystals in many designs, reducing BOM cost and standby power. The EUSART and MSSP peripherals interface directly with sub-GHz transceivers such as the MRF89XA or LoRa modules, and the 32 KB Flash accommodates the wireless protocol stack plus application logic.
Recommended
Automotive Body Controllers
The PIC18F85K22-E/PT is well suited for automotive body control modules including lighting, mirror, and HVAC subsystems because its 70 GPIO pins drive multiple loads directly via FET drivers, and the 12-bit ADC reads position sensors and current monitors. The extended -40C to +125C temperature range meets under-dash and engine-bay environments. The -PT VAO (Vehicle AEC Qualified) variant is AEC-Q100 qualified for OEM automotive designs. Five CCP/ECCP modules generate PWM for motor control, LED dimming, and fan speed regulation. The CTMU can implement rain-sensing wipers or proximity-based door handles, while CAN or LIN connectivity is supported via the EUSART peripherals.
Recommended
Home Appliance Control Boards
The PIC18F85K22-E/PT fits home appliances such as washing machines, dishwashers, and induction cooktops because its 70 I/O pins drive seven-segment displays, keypad matrices, buzzer/relay drivers, and triac interfaces, while the 12-bit ADC reads temperature (NTC), water level, and motor current. The 64 MHz CPU executes state machines and protection algorithms with ample headroom, and the 32 KB Flash stores user-interface strings, fault logs, and calibration data. The nanoWatt XLP Technology supports low-power standby modes required by energy-star regulations, with the device waking on button-press interrupts.
Recommended
IoT Edge Nodes with HMI
The PIC18F85K22-E/PT serves IoT edge nodes that combine local HMI, sensor aggregation, and cloud connectivity. Its CTMU supports glass-touch panels, the 12-bit ADC aggregates up to 12 analog sensors, and the dual UART/SPI/I2C peripherals connect to WiFi/BLE modules such as the ATWINC1500 or RN4871. The 32 KB Flash stores application code, configuration profiles, and OTA update staging, while the 2 KB SRAM buffers sensor data and network packets. The wide 1.8 V to 5.5 V supply range lets the device run directly from battery packs or 3.3 V regulated rails, simplifying power tree design.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F85K22-E/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F86K22-E/PT | PIC18F87K22-E/PT | PIC18F85K22-I/PT | PIC18F85K22-E/PTVAO | PIC18F8520T-E/PT |
|---|---|---|---|---|---|---|
| Package | TQFP-80 (PT) | TQFP-80 (PT) - same | TQFP-80 (PT) - same | TQFP-80 (PT) - same | TQFP-80 (PT) - same | TQFP-80 (PT) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 64 KB | 128 KB | 32 KB | 32 KB | 32 KB |
| SRAM | 2 KB | 4 KB | 4 KB | 2 KB | 2 KB | 1.5 KB |
| Operating Temperature | -40C to +125C (E) | -40C to +125C (E) | -40C to +125C (E) | -40C to +85C (I) | -40C to +125C (E) | -40C to +125C (E) |
| AEC-Q100 Automotive | No (E grade only) | No | No | No | Yes (VAO) | No |
| CTMU (Touch) | Yes | Yes | Yes | Yes | Yes | No |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit | 10-bit |
| nanoWatt XLP | Yes | Yes | Yes | Yes | Yes | No |
| I/O Pins | 70 | 70 | 70 | 70 | 70 | 70 |
Key Differentiators
- Integrated CTMU for capacitive touch without external controller (vs PIC18F8520T-E/PT)
- nanoWatt XLP Technology for sub-microamp sleep current (vs PIC18F8520T-E/PT)
- 12-bit ADC vs legacy 10-bit (vs PIC18F8520T-E/PT)
- VAO variant for AEC-Q100 automotive qualification (vs PIC18F85K22-E/PT (base))
Design Notes
The PIC18F85K22-E/PT has two VDD pins (10, 20) and two VSS pins (9, 19) that must each be decoupled with a 100 nF ceramic capacitor placed as close as possible to the package. Add a bulk 10 uF tantalum or ceramic capacitor on the main supply rail within 1 inch of the MCU. The nanoWatt XLP Technology enables deep-sleep currents below 1 uA when properly configured - ensure unused peripherals are disabled in firmware to achieve the lowest sleep current. Estimated: at 3.3 V and 25C, Sleep mode with WDT off draws approximately 20 nA per the datasheet.
Route the ICSP pins (RB6/PGC, RB7/PGD) directly to a 6-pin ICSP header using short traces, and ensure MCLR has a 10 kohm pull-up to VDD plus a 100 nF capacitor to ground for decoupling. The 80-pin TQFP footprint requires a 12x12 mm land pattern with 0.5 mm pitch; use 0.2 mm traces between pads and avoid via-in-pad without proper filling. Place the crystal (if used) close to OSC1/OSC2 with grounded guard traces to minimize EMI coupling.
Do not exceed 5.5 V on VDD or apply voltage to any pin before VDD is stable. The AVDD and AVSS pins must also be connected even if the ADC is unused. Configuration words must be programmed correctly - wrong oscillator settings can lock out the device. Use MPLAB X IDE with the PIC18F85K22 Device Family Pack (DFP) to ensure correct register definitions. Avoid floating digital inputs on unused I/O pins to minimize sleep current; configure them as outputs low or enable internal weak pull-ups.
For capacitive touch sensing via the CTMU, route the touch electrodes on the top layer with a ground plane on the layer below for stable capacitive coupling. Avoid routing touch traces near noisy switching signals or across ground-plane splits. Use Microchip's mTouch reference layout guidelines (AN1250) for optimal sensitivity. The CTMU current source must be calibrated per temperature using the on-chip bandgap reference for repeatable touch thresholds.
Compliance Information
RoHS compliant per Microchip product page. The base -E/PT is not AEC-Q100 qualified; choose PIC18F85K22-E/PTVAO for AEC-Q100 automotive applications.