PIC18F87K22T-I/PTRSL - 64MHz, 128KB Flash 8-bit MCU | Microchip
MPN: PIC18F87K22T-I/PTRSL ✓ Hoạt độngPIC18F87K22T-I/PTRSL Tóm tắt
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.
Bộ thay thế dễ dàng lắp đặt cho PIC18F87K22T-I/PTRSL — cùng gói, chân-to-chân tương thích. Các bộ phận yêu cầu hàn PCB bị loại trừ.
Các biến thể trong loạt này
Các mẫu cùng loạt có thể lắp đặt dễ dàng tương thích với PIC18F87K22T-I/PTRSL (cùng hình factor và footprint) — khác nhau ở Package, Timers, I/O Pins, ADC, Program Memory (Flash).
PIC18F87K22-I/PTRSL
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F87K22T-I/PT
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F87K22-I/PT
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F87K22T-I/PTRSL Tỷ lệ tối đa & tính chất điện
| 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 |
| Điện áp cung cấp | 4.2 V to 5.5 V (wide Vdd mode) |
| I/O Pins | 70 |
| ADC | 12-bit, up to 16 channels |
| Hộp | 80-pin TQFP (12x12 mm, 1 mm height) |
| Kiểu lắp đặt | Surface Mount |
| Nhiệt độ hoạt động | -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 |
| Trạng thái RoHS | Compliant |
Cấu hình chân PIC18F87K22T-I/PTRSL
| Chân 1 | RA0/AN0/ULPWU — PORTA bit 0 / Analog input 0 / Ultra-Low-Power Wake-up |
| Chân 2 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| Chân 3 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / ADC negative reference |
| Chân 4 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC positive reference |
| Chân 5 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Chân 6 | RA5/AN4 — PORTA bit 5 / Analog input 4 |
| Chân 7 | RA6 — PORTA bit 6 |
| Chân 8 | RA7 — PORTA bit 7 |
| Chân 9 | RE0/RD — PORTE bit 0 / Read control for Parallel Master Port |
| Chân 10 | RE1/WR — PORTE bit 1 / Write control for Parallel Master Port |
| Chân 11 | RE2/CS — PORTE bit 2 / Chip select for Parallel Master Port |
| Chân 12 | VDD — Positive supply voltage |
| Chân 13 | VSS — Ground reference |
| Chân 14 | OSC1/CLKI/RA7 — Oscillator crystal input / External clock input |
| Chân 15 | OSC2/CLKO/RA6 — Oscillator crystal output / Clock output |
| Chân 16 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Chân 17 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| Chân 18 | RC2/CCP1 — PORTC bit 2 / CCP1 output |
| Chân 19 | RC3/SCK1/SCL1 — PORTC bit 3 / SPI1 clock / I2C1 clock |
| Chân 20 | RC4/SDI1/SDA1 — PORTC bit 4 / SPI1 data in / I2C1 data |
| Chân 21 | RC5/SDO1 — PORTC bit 5 / SPI1 data out |
| Chân 22 | RC6/TX1/CK1 — PORTC bit 6 / USART1 transmit / USART1 clock |
| Chân 23 | RC7/RX1/DT1 — PORTC bit 7 / USART1 receive / USART1 data |
| Chân 24 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Chân 25 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Chân 26 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Chân 27 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Chân 28 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Chân 29 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| Chân 30 | RD6/PSP6/TX2/CK2 — PORTD bit 6 / Parallel Slave Port bit 6 / USART2 transmit |
| Chân 31 | RD7/PSP7/RX2/DT2 — PORTD bit 7 / Parallel Slave Port bit 7 / USART2 receive |
| Chân 32 | VSS — Ground reference |
| Chân 33 | VDD — Positive supply voltage |
| Chân 34 | RB0/INT0/FLT0 — PORTB bit 0 / External interrupt 0 / PWM fault input |
| Chân 35 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| Chân 36 | RB2/INT2/CTED1 — PORTB bit 2 / External interrupt 2 / CTMU edge 1 |
| Chân 37 | RB3/INT3/CTED2 — PORTB bit 3 / External interrupt 3 / CTMU edge 2 |
| Chân 38 | RB4/KBI0 — PORTB bit 4 / Keyboard interrupt bit 0 |
| Chân 39 | RB5/KBI1 — PORTB bit 5 / Keyboard interrupt bit 1 |
| Chân 40 | RB6/KBI2/PGC — PORTB bit 6 / Keyboard interrupt bit 2 / ICSP clock |
| Chân 41 | RB7/KBI3/PGD — PORTB bit 7 / Keyboard interrupt bit 3 / ICSP data |
| Chân 42 | VSS — Ground reference |
| Chân 43 | VDD — Positive supply voltage |
| Chân 44 | RF0 — PORTF bit 0 |
| Chân 45 | RF1 — PORTF bit 1 |
| Chân 46 | RF2 — PORTF bit 2 |
| Chân 47 | RF3 — PORTF bit 3 |
| Chân 48 | RF4 — PORTF bit 4 |
| Chân 49 | RF5 — PORTF bit 5 |
| Chân 50 | RF6 — PORTF bit 6 |
| Chân 51 | RF7 — PORTF bit 7 |
| Chân 52 | RG0 — PORTG bit 0 |
| Chân 53 | RG1 — PORTG bit 1 |
| Chân 54 | RG2 — PORTG bit 2 |
| Chân 55 | RG3 — PORTG bit 3 |
| Chân 56 | RG4 — PORTG bit 4 |
| Chân 57 | RG5 — PORTG bit 5 |
| Chân 58 | AVDD — Analog positive supply |
| Chân 59 | AVSS — Analog ground |
| Chân 60 | RH0 — PORTH bit 0 |
| Chân 61 | RH1 — PORTH bit 1 |
| Chân 62 | RH2 — PORTH bit 2 |
| Chân 63 | RH3 — PORTH bit 3 |
| Chân 64 | RH4 — PORTH bit 4 |
| Chân 65 | RH5 — PORTH bit 5 |
| Chân 66 | RH6 — PORTH bit 6 |
| Chân 67 | RH7 — PORTH bit 7 |
| Chân 68 | RJ0 — PORTJ bit 0 |
| Chân 69 | RJ1 — PORTJ bit 1 |
| Chân 70 | RJ2 — PORTJ bit 2 |
| Chân 71 | RJ3 — PORTJ bit 3 |
| Chân 72 | RJ4 — PORTJ bit 4 |
| Chân 73 | RJ5 — PORTJ bit 5 |
| Chân 74 | RJ6 — PORTJ bit 6 |
| Chân 75 | RJ7 — PORTJ bit 7 |
| Chân 76 | VSS — Ground reference |
| Chân 77 | VDD — Positive supply voltage |
| Chân 78 | RC0 — PORTC bit 0 (alternate digital function) |
| Chân 79 | RC1 — PORTC bit 1 (alternate digital function) |
| Chân 80 | MCLR/RE3 — Master Clear reset / PORTE bit 3 |
Ứng dụng tiêu biểu
PIC18F87K22T-I/PTRSL phù hợp cho 6 Áp dụngs: 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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
Tóm tắt các sản phẩm được đề xuất
Dữ liệu tham khảo kỹ thuật cho PIC18F87K22T-I/PTRSL — so sánh, hướng dẫn thiết kế và thông tin tuân thủ.
Hướng dẫn chọn lựa
So sánh với các sản phẩm thay thế
| Tham số | Sản phẩm này | 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 |
Bảo phân biệt quan trọng
- Same 80-pin TQFP family with identical 128 KB Flash (vsPIC18F85K22T-I/PTRSL)
- Upgrade path with same footprint (vsPIC18F85K90T-I/PTRSL)
- Industry-standard PIC18 core vs ARM Cortex-M migration (vsSTM32F103 in equivalent package)
Ghi chú thiết kế
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.
Thông tin tuân thủ
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.