PIC18F65K22-I/PT - 8-bit 64MHz PIC MCU, 32KB Flash, TQFP-64
MPN: PIC18F65K22-I/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $5.18 | $5.18 |
| 10 | $4.66 | $46.60 |
| 100 | $4.14 | $414.00 |
| 500 | $3.72 | $1,860.00 |
| 1,000 | $3.45 | $3,450.00 |
PIC18F65K22-I/PT Overview
What is a PIC18F microcontroller? The PIC18F family is Microchip's high-performance 8-bit PIC architecture, sitting between the baseline PIC10/12/16 and the 16-bit PIC24/dsPIC families. It uses a 16-bit modified Harvard instruction set with an 8-bit data path, 31-level hardware stack, and a hardware multiplier - more capable than PIC16 but less expensive and easier to migrate to than PIC24. The "K" suffix denotes the nanoWatt XLP low-power family with the integrated Charge Time Measurement Unit (CTMU) for capacitive touch and other precision timing functions.
Key features include 12-bit A/D conversion up to 16 channels, dual I2C, dual SPI, dual enhanced USART, a Parallel Slave Port (PSP), two analog comparators, ten 8/16-bit timers, the CTMU peripheral, and nanoWatt XLP deep-sleep modes that draw only tens of nanoamps. The CTMU simplifies capacitive touch user interfaces and enables ultrasonic flow and time-of-flight measurement. On-chip 8 MHz internal oscillator can be multiplied via PLL to reach 64 MHz, removing the need for an external crystal in cost-sensitive designs.
Typical applications include low-power battery-powered embedded controllers, capacitive-touch human-machine interfaces (keypads, sliders, proximity sensors), industrial control and sensor conditioning, USB/serial converter dongles, motor control signal conditioning, automotive body electronics (PIC18F65K22 is the industrial sibling of the -E extended part), and general-purpose replacement of legacy PIC18F6520/PIC18F6622 designs. The large 53-I/O count in a 64-pin package supports multi-channel sensor aggregation and LCD segment driving via the integrated LCD controller available in the family.
When designing with the PIC18F65K22, leave MCLR pulled high through a 10 kohm resistor unless an external reset source is needed. Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pair and add a bulk 10 uF tantalum or ceramic cap on the 5 V rail. For capacitive-touch sensing using the CTMU, follow Microchip application note AN1250 and the mTouch reference firmware; add a 1 nF to 10 nF series resistor to the analog input to dampen ESD transients.
This page synthesizes distributor pricing, drop-in alternatives within the PIC18F6xK22 family, and practical design notes not collected in the manufacturer datasheet. All specifications are extracted from the manufacturer datasheet and live distributor listings as of the last-verified date.
Drop-in alternatives for PIC18F65K22-I/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 PIC18F65K22-I/PT (same form factor and footprint) — differing in Timers, Package, Operating Temperature, Program Memory (Flash), Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F66K22-I/PT
✅ Drop-In✓ In Stock
$3.96 / Unit
View Datasheet →PIC18F67K22-I/PT
✅ Drop-In✓ In Stock
$4.1 / Unit
View Datasheet →PIC18F65K22-E/PT
✅ Drop-In✓ In Stock
$4.39 / Unit
View Datasheet →PIC18F65K22T-I/PT
✅ Drop-In✓ In Stock
$2.88 / Unit
View Datasheet →PIC18F86K22-I/PT
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$4.21 / Unit
View Datasheet →PIC18F65K22-I/PT Maximum Ratings & Electrical Characteristics
| Program Memory Type | Flash (enhanced) |
| Program Memory Size | 32 KB (16K x 16) |
| Data RAM | 2 KB |
| Data EEPROM | 1 KB |
| CPU Core | PIC18 8-bit RISC |
| Maximum CPU Speed | 64 MHz (16 MIPS) |
| Supply Voltage Range | 1.8 V to 5.5 V (4.2 V to 5.5 V typical for -I/PT) |
| I/O Pins | Up to 53 |
| ADC | 12-bit, up to 16 channels |
| Comparators | 2 analog comparators |
| Timers | 10 (8/16-bit) |
| Communication Peripherals | 2x I2C, 2x SPI, 2x EUSART, PSP |
| Special Peripheral | CTMU (Charge Time Measurement Unit) |
| Low-Power Technology | nanoWatt XLP |
| Operating Temperature Range | -40C to +85C (Industrial, "I") |
| Package | 64-pin TQFP (10x10 mm, "PT") |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC18F65K22-I/PT Pin Configuration
| Pin 1 | RF0 — Digital I/O port F bit 0 (also MCLR alternate) |
| Pin 2 | RF1 — Digital I/O port F bit 1 |
| Pin 3 | RF2 — Digital I/O port F bit 2 |
| Pin 4 | RF3 — Digital I/O port F bit 3 |
| Pin 5 | RF4 — Digital I/O port F bit 4 |
| Pin 6 | RF5 — Digital I/O port F bit 5 |
| Pin 7 | RF6 — Digital I/O port F bit 6 |
| Pin 8 | RF7 — Digital I/O port F bit 7 |
| Pin 9 | RG3 — Digital I/O port G bit 3 |
| Pin 10 | RG4 — Digital I/O port G bit 4 |
| Pin 11 | AVSS — Analog ground |
| Pin 12 | AVDD — Analog positive supply |
| Pin 13 | RA0 — Digital I/O port A bit 0 (also AN0) |
| Pin 14 | RA1 — Digital I/O port A bit 1 (also AN1) |
| Pin 15 | RA2 — Digital I/O port A bit 2 (also AN2) |
| Pin 16 | RA3 — Digital I/O port A bit 3 (also AN3) |
| Pin 17 | RA4 — Digital I/O port A bit 4 (also AN4) |
| Pin 18 | RA5 — Digital I/O port A bit 5 (also AN5) |
| Pin 19 | RA6 — Digital I/O port A bit 6 (also AN6/osc) |
| Pin 20 | RA7 — Digital I/O port A bit 7 (also AN7/osc) |
| Pin 21 | VSS — Ground reference |
| Pin 22 | VDD — Positive supply |
| Pin 23 | RB0 — Digital I/O port B bit 0 (also AN12/CTED1) |
| Pin 24 | RB1 — Digital I/O port B bit 1 (also AN8/CTED2) |
| Pin 25 | RB2 — Digital I/O port B bit 2 (also AN9) |
| Pin 26 | RB3 — Digital I/O port B bit 3 (also AN10) |
| Pin 27 | RB4 — Digital I/O port B bit 4 (also AN11) |
| Pin 28 | RB5 — Digital I/O port B bit 5 (also AN13) |
| Pin 29 | RB6 — Digital I/O port B bit 6 (also PGC) |
| Pin 30 | RB7 — Digital I/O port B bit 7 (also PGD) |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply |
| Pin 33 | RC0 — Digital I/O port C bit 0 |
| Pin 34 | RC1 — Digital I/O port C bit 1 |
| Pin 35 | RC2 — Digital I/O port C bit 2 |
| Pin 36 | RC3 — Digital I/O port C bit 3 |
| Pin 37 | RC4 — Digital I/O port C bit 4 |
| Pin 38 | RC5 — Digital I/O port C bit 5 |
| Pin 39 | RC6 — Digital I/O port C bit 6 (also TX) |
| Pin 40 | RC7 — Digital I/O port C bit 7 (also RX) |
| Pin 41 | VSS — Ground reference |
| Pin 42 | VDD — Positive supply |
| Pin 43 | RD0 — Digital I/O port D bit 0 |
| Pin 44 | RD1 — Digital I/O port D bit 1 |
| Pin 45 | RD2 — Digital I/O port D bit 2 |
| Pin 46 | RD3 — Digital I/O port D bit 3 |
| Pin 47 | RD4 — Digital I/O port D bit 4 |
| Pin 48 | RD5 — Digital I/O port D bit 5 |
| Pin 49 | RD6 — Digital I/O port D bit 6 |
| Pin 50 | RD7 — Digital I/O port D bit 7 |
| Pin 51 | VSS — Ground reference |
| Pin 52 | VDD — Positive supply |
| Pin 53 | RE0 — Digital I/O port E bit 0 (also AN5 alt) |
| Pin 54 | RE1 — Digital I/O port E bit 1 (also AN6 alt) |
| Pin 55 | RE2 — Digital I/O port E bit 2 (also AN7 alt) |
| Pin 56 | RE3 — Digital I/O port E bit 3 |
| Pin 57 | RE4 — Digital I/O port E bit 4 |
| Pin 58 | RE5 — Digital I/O port E bit 5 |
| Pin 59 | RE6 — Digital I/O port E bit 6 |
| Pin 60 | RE7 — Digital I/O port E bit 7 |
| Pin 61 | RG0 — Digital I/O port G bit 0 |
| Pin 62 | RG1 — Digital I/O port G bit 1 |
| Pin 63 | RG2 — Digital I/O port G bit 2 |
| Pin 64 | NC — Not connected (reserved per datasheet) |
Typical Applications
PIC18F65K22-I/PT is suitable for 6 applications: Capacitive Touch HMI Keypad, Industrial Sensor Conditioning and Aggregation, Battery-Powered Wireless Sensor Node, Low-End BLDC Motor Control, Automotive Body Electronics Module, USB-to-Serial Converter Dongle.
Capacitive Touch HMI Keypad
The PIC18F65K22-I/PT is ideally suited for capacitive touch human-machine interfaces thanks to its integrated Charge Time Measurement Unit (CTMU). The CTMU provides a hardware constant-current source that measures capacitance change in nanoseconds, enabling reliable touch detection on PCB pads, sliders, and proximity sensors without dedicated touch ICs. With 12-bit ADC accuracy up to 16 channels and dual SPI for driving LED feedback, a complete 16-key backlit touch panel can be implemented with one MCU. Its nanoWatt XLP deep-sleep mode draws less than 100 nA, allowing battery-powered remote controls and wireless keypads to last years on a coin cell.
Recommended
Industrial Sensor Conditioning and Aggregation
In multi-sensor industrial installations, the PIC18F65K22-I/PT serves as a local aggregator: up to 16 channels of 12-bit ADC handle analog sensors (pressure, temperature, strain), while dual I2C buses connect to digital sensor arrays and dual EUSART links to upstream PLCs. The 53 I/O count is sufficient to drive indicator LEDs and relays directly, eliminating a separate GPIO expander. Operating from -40C to +85C industrial range and tolerating 5.5 V supply transients on the supply pin, the part withstands the IEC 61000-4-2/4 environments common on factory floors. CTMU can also drive ultrasonic flow transducer excitation, replacing an external timing ASIC.
Recommended
Battery-Powered Wireless Sensor Node
The PIC18F65K22-I/PT's nanoWatt XLP technology makes it a strong choice for battery-powered wireless sensor nodes. Sleep currents drop below 100 nA with RTC running, and the part wakes in microseconds on external interrupts. Pairing with a sub-GHz transceiver such as the MRF89XA or a BLE module like the RN4870, a coin-cell sensor node can run for years on a single CR2032 while periodically sampling temperature, humidity, or battery voltage through the 12-bit ADC. CTMU also supports wake-on-touch, eliminating the always-on mechanical button.
Recommended
Low-End BLDC Motor Control
For small BLDC fans, pumps, and stepper drives under 50 W, the PIC18F65K22-I/PT provides sufficient horsepower. The CTMU handles rotor position sensing via Hall-effect timing, dual PWM channels drive the high-side and low-side gates through an MCP8026 driver, and the 12-bit ADC reads back-phase currents for sensorless commutation. -40C to +85C operation covers white-goods, automotive cabin, and industrial sealed environments. For higher-power three-phase motors, upgrade to dsPIC33EP or PIC32MK families.
Recommended
Automotive Body Electronics Module
Inside the cabin, the PIC18F65K22-I/PT (industrial-grade, -40C to +85C) handles body-electronics modules such as window lifters, seat controllers, mirror adjusters, and interior lighting. LIN bus support via the EUSART, 12-bit ADC for current monitoring, and PWM for LED dimming cover typical BCM requirements. For under-hood or outdoor-mounted modules exceeding 85C ambient, choose the PIC18F65K22-E/PT extended-temperature variant instead. CAN connectivity requires an external MCP2551 or TJA1050 transceiver since the PIC18F65K22 itself does not integrate CAN.
Recommended
USB-to-Serial Converter Dongle
Although the PIC18F65K22-I/PT itself lacks a USB peripheral, its dual UART and 53 I/O make it a capable firmware-based USB-CDC bridge. The Microchip USB Framework for PIC18F bit-bangs low-speed USB on RB0/RB1 and presents as a virtual COM port. For native USB, switch to the PIC18F46K50-I/PT (USB FS device) in the same TQFP-44 family, or use the PIC18F14K50-I/P for space-constrained dongle designs. The PIC18F65K22-I/PT is best suited here when extra I/O and CTMU sensing are also needed alongside the serial bridge.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F65K22-I/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F66K22-I/PT | PIC18F67K22-I/PT | PIC18F65K22-E/PT | PIC18F65K22T-I/PT | PIC18F86K22-I/PT |
|---|---|---|---|---|---|---|
| Package | TQFP-64 (10x10 mm) | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same | TQFP-80 (different footprint) |
| 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 | 64 KB |
| RAM | 2 KB | 4 KB | 4 KB | 2 KB | 2 KB | 4 KB |
| EEPROM | 1 KB | 1 KB | 1 KB | 1 KB | 1 KB | 1 KB |
| 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 |
| I/O Pins | Up to 53 | Up to 53 | Up to 53 | Up to 53 | Up to 53 | Up to 69 |
| CTMU Peripheral | Yes | Yes | Yes | Yes | Yes | Yes |
| Operating Temperature | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
Key Differentiators
- Integrated CTMU peripheral eliminates external touch ASIC (vs PIC18F46K22-I/PT (44-pin TQFP, no CTMU))
- Largest Flash in TQFP-64 K22 family (vs PIC18F65K22 with 32 KB Flash)
- 53 I/O count in TQFP-64 vs 36 in TQFP-44 (vs PIC18F46K22-I/PT (44-pin TQFP))
Design Notes
The PIC18F65K22-I/PT accepts 1.8 V to 5.5 V on VDD/AVDD; for industrial 5 V rails add a 100 nF X7R 0603 ceramic decoupler placed within 5 mm of each VDD-VSS pair and a bulk 10 uF tantalum or ceramic on the rail. Use separate analog and digital ground returns tied at a single point near the MCU. If the supply drives inductive loads (relays, motors), add a TVS diode such as SMAJ5.0A and a 10 uH pi-filter to block injected transients.
TQFP-64 (10x10 mm) has 0.5 mm pitch and 0.4 mm lead width; use NSMD pads with 0.27 mm aperture for solder paste and ensure 0.2 mm solder mask sliver between pads. Route PGC/PGD (RB6/RB7) as a 4-wire In-Circuit Serial Programming (ICSP) header with at minimum VPP/MCLR, VDD, VSS, PGD, PGC exposed even on production boards to allow firmware updates. Place the ICSP header at the board edge for probe access.
Do not leave MCLR floating; tie to VDD through a 10 kohm pull-up or drive through a 100 nF capacitor for hard-reset applications. Failure to disable ICD/ICSP via the CONFIG3L register can lock the PGC/PGD pins. When using CTMU, configure the A/D channel as analog before enabling the constant-current source. The 32 KB Flash is split into a 32 KB boot-protected region; verify the boot-block configuration bits before locking the device.
Keep analog traces (AN0-AN15, CTMU inputs) short and away from switching digital lines such as PWM outputs and clock traces. Place a ground pour under the MCU and stitch with 4-8 vias around the package perimeter to reduce thermal resistance. For capacitive-touch PCB layout, follow the mTouch design guide: minimum 6 mm trace width, 2 mm spacing between adjacent sensors, and a hatched ground plane with 25% fill 0.5 mm below the sensor pad.
Compliance Information
RoHS and REACH compliance per Microchip product page. Not AEC-Q100 qualified; for AEC-Q100 select the automotive-grade PIC18F65K22-E (extended temperature) only after consulting Microchip's automotive product catalog.