PIC18F87K22T-I/PTRSL - 64MHz, 128KB Flash 8-bit MCU | Microchip
MPN: PIC18F87K22T-I/PTRSL ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $11.07 | $11.07 |
| 10 | $10.45 | $104.50 |
| 100 | $9.62 | $962.00 |
| 500 | $8.85 | $4,425.00 |
| 1,000 | $8.2 | $8,200.00 |
PIC18F87K22T-I/PTRSL Overview
An 8-bit PIC microcontroller is a Harvard-architecture RISC device that executes one instruction every four oscillator cycles (200 ns at 20 MHz instruction clock) with separate program and data buses. Within the broader taxonomy, a microcontroller sits under MCU -> microprocessor -> semiconductor -> IC, and is used wherever embedded intelligence, peripheral control, or low-power standby operation is needed. The XLP family adds deep sleep modes in the nA-to-uA range, enabling battery-powered products to last years on a single cell.
Key features include a 64 MHz maximum CPU clock (16 MIPS), 70 digital I/O pins, a 12-bit A/D converter with up to 16 input channels, multiple capture/compare/PWM modules, two MSSP (SPI/I2C) ports, two USART modules, and the Charge Time Measurement Unit (CTMU) for capacitive touch and accurate time measurement. The 80-pin TQFP provides ample I/O for human-interface and motor-control designs, and the I-grade (-40C to +85C) operating range covers most indoor and industrial environments.
Architecturally, the PIC18F87K22 uses an enhanced RISC core with hardware multiply, a 31-level deep hardware stack, and a priority-controlled interrupt controller. nanoWart XLP technology implements deep sleep currents measured in tens of nanoamps, with multiple wake sources including RTCC, interrupts, and the watchdog timer. The on-chip CTMU can measure capacitance, temperature, and time with high accuracy for touch, flow, and metering applications.
Typical applications include industrial HMI panels, capacitive touch keypads, battery-powered sensor nodes with LCD or segment displays, motor and stepper control, USB device bridges, and automotive body controllers. The combination of 128 KB Flash, 4 KB RAM, and rich peripherals makes it a good fit for mid-range embedded products with graphical or networked user interfaces.
When designing with this MCU, allocate at least 0.1 uF decoupling on every VDD/VSS pair, follow Microchip's Emulation Header layout guidelines for debug, and use the ICD 3 or PICkit 4 programmer for development. The 'T' suffix in the MPN indicates tape-and-reel packaging, and the '-I' suffix denotes the industrial temperature grade (-40C to +85C).
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone, giving engineers a faster starting point than raw PDF search.
Drop-in alternatives for PIC18F87K22T-I/PTRSL — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F87K22-I/PTRSL
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F87K22T-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F87K22-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F87K22T-I/PTRSL Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 8-bit RISC (Harvard) |
| Maximum CPU Clock | 64 MHz (16 MIPS) |
| Program Memory (Flash) | 128 KB (64K x 16) |
| Data RAM | 4 KB |
| Data EEPROM | 1 KB |
| Supply Voltage | 4.2 V to 5.5 V (wide Vdd mode) |
| I/O Pins | 70 |
| ADC | 12-bit, up to 16 channels |
| Package | 80-pin TQFP (12x12 mm, 1 mm height) |
| Mounting Type | Surface Mount |
| Operating Temperature | -40C to +85C (Industrial) |
| Low-Power Technology | nanoWatt XLP |
| Communication Interfaces | 2x MSSP (SPI/I2C), 2x USART (EUSART) |
| Timers | Multiple 8/16-bit timers with CCP/ECCP |
| Special Features | CTMU (Capacitive Touch), 31-level stack |
| Packaging | Tape & Reel |
| RoHS Status | Compliant |
PIC18F87K22T-I/PTRSL Pin Configuration
| Pin 1 | RA0/AN0/ULPWU — PORTA bit 0 / Analog input 0 / Ultra-Low-Power Wake-up |
| Pin 2 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| Pin 3 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / ADC negative reference |
| Pin 4 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC positive reference |
| Pin 5 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 6 | RA5/AN4 — PORTA bit 5 / Analog input 4 |
| Pin 7 | RA6 — PORTA bit 6 |
| Pin 8 | RA7 — PORTA bit 7 |
| Pin 9 | RE0/RD — PORTE bit 0 / Read control for Parallel Master Port |
| Pin 10 | RE1/WR — PORTE bit 1 / Write control for Parallel Master Port |
| Pin 11 | RE2/CS — PORTE bit 2 / Chip select for Parallel Master Port |
| Pin 12 | VDD — Positive supply voltage |
| Pin 13 | VSS — Ground reference |
| Pin 14 | OSC1/CLKI/RA7 — Oscillator crystal input / External clock input |
| Pin 15 | OSC2/CLKO/RA6 — Oscillator crystal output / Clock output |
| Pin 16 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pin 17 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| Pin 18 | RC2/CCP1 — PORTC bit 2 / CCP1 output |
| Pin 19 | RC3/SCK1/SCL1 — PORTC bit 3 / SPI1 clock / I2C1 clock |
| Pin 20 | RC4/SDI1/SDA1 — PORTC bit 4 / SPI1 data in / I2C1 data |
| Pin 21 | RC5/SDO1 — PORTC bit 5 / SPI1 data out |
| Pin 22 | RC6/TX1/CK1 — PORTC bit 6 / USART1 transmit / USART1 clock |
| Pin 23 | RC7/RX1/DT1 — PORTC bit 7 / USART1 receive / USART1 data |
| Pin 24 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Pin 25 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Pin 26 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Pin 27 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Pin 28 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Pin 29 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| Pin 30 | RD6/PSP6/TX2/CK2 — PORTD bit 6 / Parallel Slave Port bit 6 / USART2 transmit |
| Pin 31 | RD7/PSP7/RX2/DT2 — PORTD bit 7 / Parallel Slave Port bit 7 / USART2 receive |
| Pin 32 | VSS — Ground reference |
| Pin 33 | VDD — Positive supply voltage |
| Pin 34 | RB0/INT0/FLT0 — PORTB bit 0 / External interrupt 0 / PWM fault input |
| Pin 35 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| Pin 36 | RB2/INT2/CTED1 — PORTB bit 2 / External interrupt 2 / CTMU edge 1 |
| Pin 37 | RB3/INT3/CTED2 — PORTB bit 3 / External interrupt 3 / CTMU edge 2 |
| Pin 38 | RB4/KBI0 — PORTB bit 4 / Keyboard interrupt bit 0 |
| Pin 39 | RB5/KBI1 — PORTB bit 5 / Keyboard interrupt bit 1 |
| Pin 40 | RB6/KBI2/PGC — PORTB bit 6 / Keyboard interrupt bit 2 / ICSP clock |
| Pin 41 | RB7/KBI3/PGD — PORTB bit 7 / Keyboard interrupt bit 3 / ICSP data |
| Pin 42 | VSS — Ground reference |
| Pin 43 | VDD — Positive supply voltage |
| Pin 44 | RF0 — PORTF bit 0 |
| Pin 45 | RF1 — PORTF bit 1 |
| Pin 46 | RF2 — PORTF bit 2 |
| Pin 47 | RF3 — PORTF bit 3 |
| Pin 48 | RF4 — PORTF bit 4 |
| Pin 49 | RF5 — PORTF bit 5 |
| Pin 50 | RF6 — PORTF bit 6 |
| Pin 51 | RF7 — PORTF bit 7 |
| Pin 52 | RG0 — PORTG bit 0 |
| Pin 53 | RG1 — PORTG bit 1 |
| Pin 54 | RG2 — PORTG bit 2 |
| Pin 55 | RG3 — PORTG bit 3 |
| Pin 56 | RG4 — PORTG bit 4 |
| Pin 57 | RG5 — PORTG bit 5 |
| Pin 58 | AVDD — Analog positive supply |
| Pin 59 | AVSS — Analog ground |
| Pin 60 | RH0 — PORTH bit 0 |
| Pin 61 | RH1 — PORTH bit 1 |
| Pin 62 | RH2 — PORTH bit 2 |
| Pin 63 | RH3 — PORTH bit 3 |
| Pin 64 | RH4 — PORTH bit 4 |
| Pin 65 | RH5 — PORTH bit 5 |
| Pin 66 | RH6 — PORTH bit 6 |
| Pin 67 | RH7 — PORTH bit 7 |
| Pin 68 | RJ0 — PORTJ bit 0 |
| Pin 69 | RJ1 — PORTJ bit 1 |
| Pin 70 | RJ2 — PORTJ bit 2 |
| Pin 71 | RJ3 — PORTJ bit 3 |
| Pin 72 | RJ4 — PORTJ bit 4 |
| Pin 73 | RJ5 — PORTJ bit 5 |
| Pin 74 | RJ6 — PORTJ bit 6 |
| Pin 75 | RJ7 — PORTJ bit 7 |
| Pin 76 | VSS — Ground reference |
| Pin 77 | VDD — Positive supply voltage |
| Pin 78 | RC0 — PORTC bit 0 (alternate digital function) |
| Pin 79 | RC1 — PORTC bit 1 (alternate digital function) |
| Pin 80 | MCLR/RE3 — Master Clear reset / PORTE bit 3 |
Typical Applications
PIC18F87K22T-I/PTRSL is suitable for 6 applications: Industrial HMI Control Panels, Capacitive Touch Keypads, Battery-Powered Sensor Nodes with LCD, Motor and Stepper Control, USB Device Bridges and Converters, Automotive Body and Climate Controllers.
Industrial HMI Control Panels
The PIC18F87K22T-I/PTRSL's 80-pin TQFP exposes 70 I/O lines and drives segmented LCD, character LCD, or small graphical TFT panels via parallel interface. With 128 KB Flash and 4 KB RAM, it runs multi-page menus, button debouncing, and modbus or CANopen master stacks comfortably. Industrial-grade -40C to +85C operation and nanoWatt XLP standby enable always-on key response without excessive cabinet heat rise.
Recommended
Capacitive Touch Keypads
The on-chip Charge Time Measurement Unit (CTMU) on the PIC18F87K22T-I/PTRSL measures capacitance with sub-pF resolution, enabling robust touch sliders, wheels, and button matrices without external analog ICs. Combined with XLP deep sleep at tens of nA, a battery-powered door lock can stay in standby for years while waking instantly on touch. The 12-bit ADC and CTMU share the I/O pins used for touch, so no extra components are required beyond the sensor pad and ground pour.
Recommended
Battery-Powered Sensor Nodes with LCD
nanoWart XLP sleep modes and the on-chip RTCC on the PIC18F87K22T-I/PTRSL enable multi-year battery operation in remote sensor applications. The 4 KB RAM buffers sensor data between sleep cycles, and 1 KB EEPROM stores calibration constants that survive deep power-down. With two USARTs and two MSSP ports, it bridges I2C sensors and SPI radios while displaying readings on an external character LCD.
Recommended
Motor and Stepper Control
The PIC18F87K22T-I/PTRSL provides multiple CCP/ECCP modules generating complementary PWM outputs suitable for driving H-bridge and three-phase motor stages. Its 16 MIPS throughput runs field-oriented control loops at adequate update rates for small BLDC pumps and stepper drivers. The 12-bit ADC samples motor currents at tens of kHz, while the high-pin-count TQFP exposes encoder and limit-switch inputs without multiplexing.
Recommended
USB Device Bridges and Converters
Using Microchip's USB stack on the PIC18F87K22T-I/PTRSL, the MCU can implement USB CDC, HID, or vendor-class bridges between a PC and serial or SPI peripherals. The 64 MHz core easily handles full-speed USB 2.0 packet scheduling and bulk transfers, while 4 KB of RAM buffers endpoint data. The 80-pin TQFP provides enough I/O to drive status LEDs, buttons, and the upstream/downstream serial links concurrently.
Recommended
Automotive Body and Climate Controllers
In the extended-temperature PIC18F87K22 family, the PIC18F87K22T-I/PTRSL handles climate control and lighting loads in automotive body modules with 70 robust I/O pins driving relays and LED drivers. Its 12-bit ADC reads thermistors and potentiometers accurately, and the CTMU can replace mechanical switches with capacitive proximity sensors. The wide supply range (4.2-5.5 V) tolerates automotive load-dump transients with proper external protection.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F87K22T-I/PTRSL — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F87K22-I/PTRSL | PIC18F87K22T-I/PT | PIC18F87K22-I/PT | PIC18F85K22T-I/PTRSL | PIC18F85K90T-I/PTRSL |
|---|---|---|---|---|---|---|
| Package | 80-pin TQFP (12x12 mm) | 80-pin TQFP (12x12 mm) | 80-pin TQFP (12x12 mm) | 80-pin TQFP (12x12 mm) | 64-pin TQFP | 80-pin TQFP |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Flash | 128 KB | 128 KB | 128 KB | 128 KB | 64 KB | 128 KB |
| Data RAM | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB |
| Maximum CPU Clock | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| I/O Pins | 70 | 70 | 70 | 70 | 53 | 70 |
| ADC | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit |
| Packaging | Tape & Reel | Tape & Reel | Tape & Reel (secondary reel code) | Tray | Tape & Reel | Tape & Reel |
| Operating Temperature | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
Key Differentiators
- Same 80-pin TQFP family with identical 128 KB Flash (vs PIC18F85K22T-I/PTRSL)
- Upgrade path with same footprint (vs PIC18F85K90T-I/PTRSL)
- Industry-standard PIC18 core vs ARM Cortex-M migration (vs STM32F103 in equivalent package)
Design Notes
Place a 0.1 uF ceramic decoupling capacitor on each VDD/VSS pair (pins 12/13, 32/33, 76/77) within 5 mm of the package. Add a bulk 10 uF tantalum or ceramic at the MCU power pin. For battery applications use the nanoWatt XLP Sleep and Deep Sleep modes with RTCC wake-up to reduce average current to single-digit microamps during idle periods.
Keep the 16 MHz crystal (or external clock) traces short and symmetric, with the load capacitors placed within 3 mm of OSC1/OSC2. Route analog and digital grounds separately and join at a single point near the AVDD/AVSS pins (58/59). Avoid running noisy PWM traces parallel to ADC input traces, and place the CTMU touch sensing electrodes on the same layer as the MCU with a solid ground pour beneath.
Do not leave the MCLR pin floating; tie it to VDD through a 10 kohm resistor with a 100 nF capacitor to VSS for in-circuit serial programming. The RB6/PGC and RB7/PGD lines must not be pulled low at power-on or programming will be blocked. Always configure the CONFIG registers (oscillator, watchdog, brown-out, low-voltage programming) explicitly in source code rather than relying on defaults to avoid spurious resets.
For high-speed SPI peripherals above 8 MHz, add 33 ohm series resistors at the SDO output to dampen ringing, and keep clock traces less than 50 mm long on FR-4. I2C buses require 4.7 kohm pull-ups to VDD for 400 kHz operation. When using the Parallel Master Port (PMP) to drive external LCD or memory, add 22 ohm series resistors on all PMP data and control lines.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified - the -I grade is industrial (-40C to +85C). For automotive applications use AEC-Q100 qualified PIC18F variants from the K-series.