PIC18F87K22T-I/PTRSL - 64MHz, 128KB Flash 8-bit MCU | Microchip
MPN: PIC18F87K22T-I/PTRSL ✓ چالاکPIC18F87K22T-I/PTRSL گشتی
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.
جێگرەوەکانی جێگۆڕکێ بۆ PIC18F87K22T-I/PTRSL — هەمان پاکەت، پین بە پین گونجاو. ئەو بەشانەی پاکەتی جیاوازیان هەیە و پێویستیان بە چاککردنەوەی PCB هەیە لابراون.
جۆرەکان لەم زنجیرەیەدا
مۆدێلەکانی هەمان زنجیرە کە بە شێوەی ڕاستەوخۆ گونجاون لەگەڵ PIC18F87K22T-I/PTRSL (هەمان شێوە و پێکهاتەی شوێن) — جیاوازە لە Package, Timers, I/O Pins, ADC, Program Memory (Flash).
PIC18F87K22-I/PTRSL
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC18F87K22T-I/PT
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC18F87K22-I/PT
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC18F87K22T-I/PTRSL زۆرترین ڕێژە و تایبەتمەندییە کارەباییەکان
| 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 |
| ڤۆڵتیەی دابینکردن | 4.2 V to 5.5 V (wide Vdd mode) |
| I/O Pins | 70 |
| ADC | 12-bit, up to 16 channels |
| پاکێج | 80-pin TQFP (12x12 mm, 1 mm height) |
| جۆری دامەزراندن | Surface Mount |
| پلەی گەرمیی کارکردن | -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 | Compliant |
ڕێکخستنی پینی PIC18F87K22T-I/PTRSL
| پین 1 | RA0/AN0/ULPWU — PORTA bit 0 / Analog input 0 / Ultra-Low-Power Wake-up |
| پین 2 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| پین 3 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / ADC negative reference |
| پین 4 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC positive reference |
| پین 5 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| پین 6 | RA5/AN4 — PORTA bit 5 / Analog input 4 |
| پین 7 | RA6 — PORTA bit 6 |
| پین 8 | RA7 — PORTA bit 7 |
| پین 9 | RE0/RD — PORTE bit 0 / Read control for Parallel Master Port |
| پین 10 | RE1/WR — PORTE bit 1 / Write control for Parallel Master Port |
| پین 11 | RE2/CS — PORTE bit 2 / Chip select for Parallel Master Port |
| پین 12 | VDD — Positive supply voltage |
| پین 13 | VSS — Ground reference |
| پین 14 | OSC1/CLKI/RA7 — Oscillator crystal input / External clock input |
| پین 15 | OSC2/CLKO/RA6 — Oscillator crystal output / Clock output |
| پین 16 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| پین 17 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| پین 18 | RC2/CCP1 — PORTC bit 2 / CCP1 output |
| پین 19 | RC3/SCK1/SCL1 — PORTC bit 3 / SPI1 clock / I2C1 clock |
| پین 20 | RC4/SDI1/SDA1 — PORTC bit 4 / SPI1 data in / I2C1 data |
| پین 21 | RC5/SDO1 — PORTC bit 5 / SPI1 data out |
| پین 22 | RC6/TX1/CK1 — PORTC bit 6 / USART1 transmit / USART1 clock |
| پین 23 | RC7/RX1/DT1 — PORTC bit 7 / USART1 receive / USART1 data |
| پین 24 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| پین 25 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| پین 26 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| پین 27 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| پین 28 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| پین 29 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| پین 30 | RD6/PSP6/TX2/CK2 — PORTD bit 6 / Parallel Slave Port bit 6 / USART2 transmit |
| پین 31 | RD7/PSP7/RX2/DT2 — PORTD bit 7 / Parallel Slave Port bit 7 / USART2 receive |
| پین 32 | VSS — Ground reference |
| پین 33 | VDD — Positive supply voltage |
| پین 34 | RB0/INT0/FLT0 — PORTB bit 0 / External interrupt 0 / PWM fault input |
| پین 35 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| پین 36 | RB2/INT2/CTED1 — PORTB bit 2 / External interrupt 2 / CTMU edge 1 |
| پین 37 | RB3/INT3/CTED2 — PORTB bit 3 / External interrupt 3 / CTMU edge 2 |
| پین 38 | RB4/KBI0 — PORTB bit 4 / Keyboard interrupt bit 0 |
| پین 39 | RB5/KBI1 — PORTB bit 5 / Keyboard interrupt bit 1 |
| پین 40 | RB6/KBI2/PGC — PORTB bit 6 / Keyboard interrupt bit 2 / ICSP clock |
| پین 41 | RB7/KBI3/PGD — PORTB bit 7 / Keyboard interrupt bit 3 / ICSP data |
| پین 42 | VSS — Ground reference |
| پین 43 | VDD — Positive supply voltage |
| پین 44 | RF0 — PORTF bit 0 |
| پین 45 | RF1 — PORTF bit 1 |
| پین 46 | RF2 — PORTF bit 2 |
| پین 47 | RF3 — PORTF bit 3 |
| پین 48 | RF4 — PORTF bit 4 |
| پین 49 | RF5 — PORTF bit 5 |
| پین 50 | RF6 — PORTF bit 6 |
| پین 51 | RF7 — PORTF bit 7 |
| پین 52 | RG0 — PORTG bit 0 |
| پین 53 | RG1 — PORTG bit 1 |
| پین 54 | RG2 — PORTG bit 2 |
| پین 55 | RG3 — PORTG bit 3 |
| پین 56 | RG4 — PORTG bit 4 |
| پین 57 | RG5 — PORTG bit 5 |
| پین 58 | AVDD — Analog positive supply |
| پین 59 | AVSS — Analog ground |
| پین 60 | RH0 — PORTH bit 0 |
| پین 61 | RH1 — PORTH bit 1 |
| پین 62 | RH2 — PORTH bit 2 |
| پین 63 | RH3 — PORTH bit 3 |
| پین 64 | RH4 — PORTH bit 4 |
| پین 65 | RH5 — PORTH bit 5 |
| پین 66 | RH6 — PORTH bit 6 |
| پین 67 | RH7 — PORTH bit 7 |
| پین 68 | RJ0 — PORTJ bit 0 |
| پین 69 | RJ1 — PORTJ bit 1 |
| پین 70 | RJ2 — PORTJ bit 2 |
| پین 71 | RJ3 — PORTJ bit 3 |
| پین 72 | RJ4 — PORTJ bit 4 |
| پین 73 | RJ5 — PORTJ bit 5 |
| پین 74 | RJ6 — PORTJ bit 6 |
| پین 75 | RJ7 — PORTJ bit 7 |
| پین 76 | VSS — Ground reference |
| پین 77 | VDD — Positive supply voltage |
| پین 78 | RC0 — PORTC bit 0 (alternate digital function) |
| پین 79 | RC1 — PORTC bit 1 (alternate digital function) |
| پین 80 | MCLR/RE3 — Master Clear reset / PORTE bit 3 |
بەکارهێنانە باوەکان
PIC18F87K22T-I/PTRSL گونجاوە بۆ 6 بەکارھێنانs: 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.
پێشنیارکراو
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.
پێشنیارکراو
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.
پێشنیارکراو
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.
پێشنیارکراو
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.
پێشنیارکراو
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.
پێشنیارکراو
کورتەی بەرهەمە پێشنیارکراوەکان
داتای سەرچاوەی ئەندازیاری بۆ PIC18F87K22T-I/PTRSL — بەراوردکردن، ڕێنمایی دیزاین و زانیاری پابەندبوون.
ڕێنمایی هەڵبژاردن
بەراوردکردن لەگەڵ جێگرەوەکان
| پارامەتر | ئەم بەرهەمە | 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 |
جیاکەرەوە سەرەکییەکان
- Same 80-pin TQFP family with identical 128 KB Flash (بەراورد بەPIC18F85K22T-I/PTRSL)
- Upgrade path with same footprint (بەراورد بەPIC18F85K90T-I/PTRSL)
- Industry-standard PIC18 core vs ARM Cortex-M migration (بەراورد بەSTM32F103 in equivalent package)
تێبینییەکانی دیزاین
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.
زانیاری پابەندبوون
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.