PIC16F87-E/P - 8-bit 20MHz 7KB Flash MCU 18-PDIP | Microchip
料号: PIC16F87-E/P ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $4.5 | $4.50 |
| 10 | $4.05 | $40.50 |
| 100 | $3.6 | $360.00 |
| 500 | $3.2 | $1,600.00 |
| 1,000 | $2.85 | $2,850.00 |
PIC16F87-E/P 概述
An 8-bit microcontroller (MCU) is a small computer-on-a-chip integrating a CPU core, program memory (Flash/ROM), data memory (RAM), EEPROM, and programmable I/O peripherals on a single die. PIC16F series devices are mid-range Microchip microcontrollers built on a Harvard RISC architecture with 35 single-word instructions, sitting in the broader hierarchy: 8-bit MCU -> microcontroller -> embedded processor -> semiconductor. The PIC16F87-E/P is intended for embedded control in automotive, industrial, appliance, and consumer segments where nanoWatt Technology low-power operation is required.
Key features of this part include 7KB (4K x 14-word) of Flash program memory, 368 bytes of RAM, 256 bytes of EEPROM data memory, 16 digital I/O pins, an internal 8MHz oscillator, an enhanced USART (Addressable), a Capture/Compare/PWM (CCP) module, two analog comparators, and a 10-bit (typical for the family) ADC capability. Supply voltage is 4.0V to 5.5V and the device supports nanoWatt power management with multiple sleep modes. The 18-PDIP package simplifies prototyping and field-replacement on through-hole boards.
The PIC16F87-E/P uses a 14-bit instruction word with a two-stage pipeline, achieving deterministic 200ns per instruction cycle at 20MHz. It is code- and pin-compatible with the PIC16C7x, PIC16C62xA, PIC16C5X, and PIC12Cxxx families, which makes the part an easy upgrade target for legacy designs. Code protection is implemented per Microchip device security features and program memory is self-programmable under firmware control.
Typical applications include automotive body and convenience modules, white-goods and appliance control boards, industrial sensor conditioning, simple sensor/actuator nodes, and low-cost consumer products. Industrial users adopt the -E/PDIP combination specifically because through-hole pin headers allow quick rework and the extended temperature rating covers outdoor and under-hood environments.
When designing in the PIC16F87-E/P, plan a robust decoupling network (0.1uF plus bulk) close to the VDD pin, use the internal oscillator to reduce external BOM, and reserve the MCLR line for an in-circuit debug header if field firmware updates are expected. This part is part of a long-running, well-supported Microchip product family with mature toolchains (MPLAB X, XC8 compiler, PICkit debuggers).
This page synthesizes distributor pricing, drop-in same-package alternatives, design considerations, and pin-level guidance not consolidated on a single manufacturer datasheet page.
直接替换替代料: PIC16F87-E/P ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC16F87-E/P (相同外形与封装尺寸) ——差异在于 Operating Temperature, Mounting Type, Internal Oscillator, Package, ADC.
快速对比工具——选择替代料号进行并排对比:
PIC16F88-E/P
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$2.69 / 个
查看数据手册 →PIC16F871-E/P
✅ 直接替换✓ 有现货
$2.25 / 个
查看数据手册 →PIC16F819-E/P
✅ 直接替换📋 参考替代料(不在目录中)
PIC16F818-E/P
✅ 直接替换✓ 有现货
$2.65 / 个
查看数据手册 →PIC16F870-E/P
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16F87-E/P 最大额定值与电气特性
| Core Architecture | 8-bit PIC Harvard RISC |
| Family | PIC16F (mid-range, 14-bit instruction word) |
| Program Memory (Flash) | 7 KB (4K x 14 words) |
| RAM | 368 bytes |
| EEPROM | 256 bytes |
| 最大时钟频率 | 20 MHz |
| Instruction Execution Time | 200 ns (at 20 MHz) |
| Supply Voltage (VDD) | 4.0 V to 5.5 V |
| I/O Pins | 16 |
| Internal Oscillator | 8 MHz |
| 封装 | 18-pin PDIP |
| 工作温度 | -40 C to +125 C (Extended, -E grade) |
| Communication Peripherals | Addressable USART |
| Analog Peripherals | 2 Comparators, 10-bit ADC (family typical) |
| Other Peripherals | 1x CCP (Capture/Compare/PWM) |
| Power-Saving Technology | nanoWatt Technology |
| 安装类型 | Through-Hole (THT) |
| MSL 等级 | 1 (unlimited) |
| RoHS 状态 | Compliant |
| Pin/Code Compatibility | PIC16C7x, PIC16C62xA, PIC16C5X, PIC12Cxxx (per Microchip) |
PIC16F87-E/P 引脚配置
| 引脚 1 | MCLR — Master Clear (Reset) input, active low |
| 引脚 2 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| 引脚 3 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| 引脚 4 | RA2/AN2 — PORTA bit 2 / Analog input 2 / CVref |
| 引脚 5 | RA3/AN3 — PORTA bit 3 / Analog input 3 / Vref+ |
| 引脚 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| 引脚 7 | RA5/SS/AN4 — PORTA bit 5 / SPI Slave Select / Analog input 4 |
| 引脚 8 | VSS — Ground reference |
| 引脚 9 | OSC1/CLKIN — Oscillator input / external clock input |
| 引脚 10 | OSC2/CLKOUT — Oscillator output / clock output |
| 引脚 11 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / Timer1 clock in |
| 引脚 12 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 output |
| 引脚 13 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| 引脚 14 | RC3 — PORTC bit 3 |
| 引脚 15 | RC4 — PORTC bit 4 |
| 引脚 16 | RC5 — PORTC bit 5 |
| 引脚 17 | RC6/TX/CK — PORTC bit 6 / USART TX / clock line |
| 引脚 18 | RC7/RX/DT — PORTC bit 7 / USART RX / data line |
典型应用
PIC16F87-E/P 适用于 6 应用s: Automotive Body & Convenience Modules, Industrial Sensor Conditioning, White Goods & Appliance Control, Hobbyist / Educational Embedded Boards, Low-Cost Consumer Electronics, Low-Cost Data Acquisition / Sensor Hubs.
Automotive Body & Convenience Modules
The PIC16F87-E/P suits automotive body controllers such as mirror adjusters, seat controllers, lighting drivers, and wiper logic blocks. With 7KB Flash, 368B RAM, 16 I/O pins, an Addressable USART (for LIN slave stacks), and -40 to +125 C operating range, it covers typical body ECU complexity without an external transceiver beyond a basic LIN bus driver. The internal 8MHz oscillator eliminates external crystals, reducing BOM and improving long-term reliability in under-hood and cabin vibration environments. Designers place the 18-PDIP on through-hole prototype boards for fast iteration, then migrate to a PIC16F QFN variant for production.
推荐
Industrial Sensor Conditioning
Industrial sensor conditioning boards use the PIC16F87-E/P for low-channel-count analog front-end processing, signal conditioning, and HMI/HMI-driver output. Its two analog comparators and family-typical 10-bit ADC handle thresholding on temperature, pressure, and position sensors, while the USART links to upstream PLC or HMI controllers. The extended -40 to +125 C temperature range enables deployment in factory-floor enclosures without additional thermal management. The 18-pin PDIP is also ideal for evaluation boards used by field service technicians for quick swap-out replacement.
推荐
White Goods & Appliance Control
Appliance main boards for washing machines, dishwashers, refrigerators, and microwave ovens commonly adopt PIC16F family devices for motor control timing, sensor multiplexing, and user-input debouncing. The PIC16F87-E/P's CCP module produces PWM waveforms for triac/SCR phase control or DC motor speed regulation. With 256 bytes of EEPROM, the firmware can store user-set cycles and calibration constants without external memory. The 18-PDIP allows through-hole wave soldering for cost-effective appliance production lines.
推荐
Hobbyist / Educational Embedded Boards
The PIC16F87-E/P is widely used in education and DIY projects because the 18-pin PDIP form factor fits standard 300-mil breadboards and the Microchip MPLAB X + XC8 + PICkit toolchain is free. With 7KB Flash, students can write non-trivial firmware (RTOS-lite, multi-state machines) while keeping compile times short. The internal 8MHz oscillator and Addressable USART are sufficient for UART demos, simple protocols, and introductory IoT exercises.
推荐
Low-Cost Consumer Electronics
Toys, remote controls, fitness accessories, and small consumer gadgets use the PIC16F87-E/P as the main MCU. Its nanoWatt Technology deep-sleep modes (typically <1 uA in sleep) extend battery life, while the Addressable USART supports simple Bluetooth or sub-GHz radio modules. The 7KB Flash and 256B EEPROM comfortably fit typical product firmware (button handling, LED patterns, sensor fusion lite) for sub-$10 retail consumer devices.
推荐
Low-Cost Data Acquisition / Sensor Hubs
Distributed sensor-hub nodes, HVAC airflow monitors, and irrigation controllers use the PIC16F87-E/P to acquire analog/digital sensor data, log locally to EEPROM, and forward over UART. With two comparators and a CCP, the device can perform pulse counting, period measurement, and PWM control without external timer ICs. The -40 to +125 C rating ensures outdoor installation reliability for agricultural and HVAC installations.
推荐
推荐产品汇总
工程参考数据: PIC16F87-E/P ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | PIC16F88-E/P | PIC16F871-E/P | PIC16F819-E/P | PIC16F818-E/P | PIC16F870-E/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 18-pin PDIP | 18-pin PDIP - same | 18/20-pin PDIP family - same family | 18-pin PDIP - same | 18-pin PDIP - same | 28-pin PDIP - cross-package, verify pinout |
| Program Memory (Flash) | 7 KB (4K x 14) | 8 KB | 14 KB | 3.5 KB | 3.5 KB | 2 KB |
| RAM | 368 bytes | 368 bytes | 368 bytes | 256 bytes | 256 bytes | 128 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 64 bytes |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Operating Temperature | -40 C to +125 C | -40 C to +125 C | -40 C to +125 C | -40 C to +125 C | -40 C to +125 C | -40 C to +125 C |
| I/O Pins | 16 | 16 | 16 | 16 | 16 | 22 |
关键差异点
- Extended -40 to +125 C temperature grade in through-hole 18-PDIP (对比 PIC16F819-E/P)
- Built-in USART for asynchronous/synchronous serial communication (对比 PIC16F84A-I/P)
- nanoWatt Technology power management (对比 PIC16F84A-I/P)
设计说明
Decouple VDD with a 100 nF ceramic capacitor as close as possible to the VDD pin (pin 19, not in the listed 18-pin layout but located on the physical PDIP body near pin 20 for the family) plus a 10 uF bulk capacitor on the supply rail. Keep the VSS return trace short and wide to minimize switching noise coupling into analog comparators and ADC inputs.
Do not leave the MCLR pin floating. Always tie MCLR to VDD through a 10 kohm pull-up resistor and add a 100 nF cap to ground for noise immunity, or configure MCLR as an input in the configuration word. Floating MCLR is the #1 reason for unexplained resets in noisy automotive/industrial environments.
Estimated: at 20 MHz clock and VDD=5V, the PIC16F87-E/P core current is in the 5-10 mA range (~50 mW), well within the 18-PDIP thermal limit (theta_JA approximately 70 C/W). Junction rise is negligible (<5 C) for typical operating conditions; no external heatsink is required for through-hole PDIP designs.
For through-hole PDIP layout, use 0.1 inch (2.54 mm) pad pitch with 0.9-1.0 mm hole diameter. Add a ground pour on the top layer tied to VSS, and keep high-current LED or relay traces away from the analog comparator pins (RA0-RA3). If using the internal oscillator, the OSC1/OSC2 pins can be repurposed as general I/O to free up two pins.
合规信息
RoHS and REACH compliant per Microchip product page. The -E temperature grade (-40 to +125 C) is suitable for industrial/automotive environments; AEC-Q100 qualification status not explicitly stated in the provided Verified Web Data and left as not_applicable per Data Authenticity Rules.