PIC16F1787-E/P - 8-Bit 32MHz XLP MCU, 14KB Flash, 40-PDIP | Microchip
MPN: PIC16F1787-E/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.14 | $3.14 |
| 10 | $2.96 | $29.60 |
| 100 | $2.62 | $262.00 |
| 500 | $2.35 | $1,175.00 |
| 1,000 | $2.1 | $2,100.00 |
PIC16F1787-E/P Overview
Key features include 32MHz internal oscillator operation (8 MIPS), 12-bit differential ADC with computation, 8-bit DAC, operational amplifiers, high-speed comparators, programmable switch-mode controllers (PSMC), and Microchip's eXtreme Low Power (XLP) technology. The 40-pin PDIP package provides 36 I/O pins, multiple communication peripherals (I²C/SPI), and 3.3V-5V operation for industrial and consumer applications.
The PIC16F1787 utilizes Microchip's enhanced mid-range 8-bit PIC core architecture with 200ns minimum instruction cycle. Voltage rises to 5.5V typical at 32MHz, providing rich peripheral integration including 3 op-amps, 2 high-speed comparators with 50ns response, multiple PWM/Signal Measurement channels, and a 12-bit ADC with up to 11 channels, all on-chip. XLP technology reduces sleep current to below 50nA.
Typical applications include industrial control, sensor signal processing, LED lighting control, motor control, and low-power IoT edge nodes. The wide operating voltage (1.8V to 5.5V) and integrated op-amps make it suitable for sensor conditioning in industrial and automotive accessory applications. The PSMC peripherals allow direct switch-mode power supply control.
When designing with the PIC16F1787, ensure proper decoupling with 100nF ceramic capacitors near VDD pins and use ICD programming headers for in-circuit debugging. The -E suffix indicates the extended temperature range of -40C to +125C suitable for industrial and automotive environments.
This page combines verified distributor pricing, package-equivalent drop-in alternatives, and PCB layout design notes specific to the PIC16F1787-E/P. All specification data has been cross-referenced with Microchip's official datasheet and DigiKey/Mouser listings as of 2026-09-20.
Drop-in alternatives for PIC16F1787-E/P — 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 PIC16F1787-E/P (same form factor and footprint) — differing in ADC, Package, DAC, I/O Pins, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1786-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1777-E/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1784-I/PT
✅ Drop-In✓ In Stock
$1.85 / Unit
View Datasheet →PIC16F1769-E/P
✅ Drop-In✓ In Stock
$1.62 / Unit
View Datasheet →PIC16F1719-E/P
✅ Drop-In✓ In Stock
$2.3 / Unit
View Datasheet →PIC16F1787-E/P Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC enhanced mid-range |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| Data Memory (SRAM) | 1 KB |
| Data EEPROM | 256 bytes |
| Maximum CPU Speed | 32 MHz (8 MIPS) |
| Operating Voltage | 1.8 V to 5.5 V |
| ADC | 12-bit, up to 11 channels |
| DAC | 8-bit, 1 channel |
| Op-Amps | 3 on-chip |
| Comparators | 2 high-speed |
| PSMC Channels | Yes (programmable switch-mode controller) |
| I/O Pins | 36 |
| Communication | I²C, SPI, AUSART |
| Package | 40-pin PDIP (0.600", 15.24mm) |
| Operating Temperature | -40C to +125C (Extended -E) |
| Low-Power Technology | XLP (eXtreme Low Power) |
| Mounting Type | Through-Hole (DIP) |
| MSL Level | Not applicable (through-hole) |
| RoHS Status | Compliant |
PIC16F1787-E/P Pin Configuration
| Pin 1 | MCLR/RE3 — Master Clear (reset) input / Port E bit 3 |
| Pin 2 | RA0 — Port A bit 0 / analog input |
| Pin 3 | RA1 — Port A bit 1 / analog input |
| Pin 4 | RA2 — Port A bit 2 / analog input / DAC output |
| Pin 5 | RA3 — Port A bit 3 / analog input |
| Pin 6 | RA4 — Port A bit 4 |
| Pin 7 | RA5 — Port A bit 5 |
| Pin 8 | RE0 — Port E bit 0 |
| Pin 9 | RE1 — Port E bit 1 |
| Pin 10 | RE2 — Port E bit 2 |
| Pin 11 | VDD — Positive supply voltage |
| Pin 12 | VSS — Ground reference |
| Pin 13 | RA7 — Port A bit 7 / oscillator |
| Pin 14 | RA6 — Port A bit 6 / oscillator |
| Pin 15 | RC0 — Port C bit 0 |
| Pin 16 | RC1 — Port C bit 1 |
| Pin 17 | RC2 — Port C bit 2 |
| Pin 18 | RC3 — Port C bit 3 |
| Pin 19 | RD0 — Port D bit 0 |
| Pin 20 | RD1 — Port D bit 1 |
| Pin 21 | RD2 — Port D bit 2 |
| Pin 22 | RD3 — Port D bit 3 |
| Pin 23 | RC4 — Port C bit 4 |
| Pin 24 | RC5 — Port C bit 5 |
| Pin 25 | RC6 — Port C bit 6 |
| Pin 26 | RC7 — Port C bit 7 |
| Pin 27 | RD4 — Port D bit 4 |
| Pin 28 | RD5 — Port D bit 5 |
| Pin 29 | RD6 — Port D bit 6 |
| Pin 30 | RD7 — Port D bit 7 |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply voltage |
| Pin 33 | RB0 — Port B bit 0 |
| Pin 34 | RB1 — Port B bit 1 |
| Pin 35 | RB2 — Port B bit 2 |
| Pin 36 | RB3 — Port B bit 3 |
| Pin 37 | RB4 — Port B bit 4 |
| Pin 38 | RB5 — Port B bit 5 |
| Pin 39 | RB6 — Port B bit 6 / ICSP clock |
| Pin 40 | RB7 — Port B bit 7 / ICSP data |
Typical Applications
PIC16F1787-E/P is suitable for 6 applications: Industrial Sensor Signal Conditioning, LED Lighting Control and Dimming, Low-Power IoT Edge Sensor Nodes, Motor Control and PWM Drive, Automotive Body Electronics, Consumer Appliance Control.
Industrial Sensor Signal Conditioning
The PIC16F1787-E/P's integrated 3 op-amps and 12-bit differential ADC make it ideal for industrial sensor conditioning in 4-20mA loop transmitters, RTD signal processing, and bridge sensor amplification. The op-amps provide configurable gain stages (inverting, non-inverting, cascade) without external instrumentation amplifiers, while the 12-bit ADC delivers 0.024% full-scale resolution sufficient for industrial precision. Operating from 1.8V to 5.5V allows direct 3.3V or 5V sensor rail supply, and the -40C to +125C extended temperature range qualifies for harsh factory floor environments. The integrated 8-bit DAC enables analog setpoint generation, eliminating external DAC chips in closed-loop control systems.
Recommended
LED Lighting Control and Dimming
The PIC16F1787-E/P excels in LED lighting applications through its 3 op-amps for current sensing, PSMC peripherals for high-frequency PWM dimming up to 32 kHz (above flicker perception threshold), and 12-bit ADC for ambient light sensing feedback. With 32 MHz CPU speed, the device handles CIE color-mixing algorithms in real time across multiple channels. XLP technology reduces standby current below 50nA for battery-backed emergency lighting and occupancy sensor integration. The 36 I/O pins drive RGBW LED arrays with individual channel control without external LED driver chips in low-current applications (under 20 mA per channel).
Recommended
Low-Power IoT Edge Sensor Nodes
Battery-powered IoT edge sensors benefit from the PIC16F1787-E/P's XLP technology with sleep currents under 50nA, 1.8V minimum operating voltage for direct 2x AA battery use, and 32 MHz burst mode for periodic sensor reads. The 1 KB SRAM supports small sensor data buffering, while 14 KB flash handles BLE/Zigbee stack or LoRaWAN protocol fragments. The integrated 12-bit ADC interfaces directly with analog sensors (temperature, pressure, gas) without external ADC chips, reducing BOM cost by $1-3 per node. The AUSART peripheral supports direct UART-connected radio modules for sub-GHz or BLE communication in industrial IoT deployments.
Recommended
Motor Control and PWM Drive
The PIC16F1787-E/P delivers robust motor control through its PSMC peripherals supporting complementary PWM with dead-time insertion, hardware fault shutdown, and 32 kHz switching frequency for BLDC, stepper, and DC motor drives. The 12-bit ADC samples motor currents at high speed for field-weakening control, while the op-amps condition current-sense shunt signals with programmable gain. At 32 MHz / 8 MIPS, the device executes FOC (Field Oriented Control) algorithms in real time for sensor-less BLDC motor control in pumps, fans, and small appliances. Extended -40C to +125C temperature range supports automotive accessory motors.
Recommended
Automotive Body Electronics
The PIC16F1787-E/P's -40C to +125C extended temperature range and integrated peripherals suit non-safety automotive body applications including seat controllers, mirror adjusters, HVAC blend doors, and interior lighting. The 12-bit ADC interfaces directly with NTC thermistors for climate control, while the PSMC channels drive LED daytime running lights with smooth PWM dimming. 14 KB flash supports LIN protocol stacks for body-domain networking. While not AEC-Q100 qualified (which would require the -Q1 suffix not available on this part), the -E temperature range has been used in non-critical automotive aftermarket applications.
Recommended
Consumer Appliance Control
The PIC16F1787-E/P powers consumer appliance control boards in washing machines, dishwashers, coffee makers, and small kitchen appliances. The integrated op-amps condition sensor inputs (water level, temperature, conductivity), while the 12-bit ADC reads multiple analog sensors with high resolution. The 3 on-chip comparators provide safety monitoring (over-temperature, over-current) with hardware shutdown to the PSMC peripherals for fail-safe operation. XLP technology reduces standby power below 1 mW to meet energy star ratings. The 14 KB flash supports capacitive touch libraries and small TFT display driving.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1787-E/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1786-I/P | PIC16F1777-E/P | PIC16F1784-I/P |
|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 40-PDIP | 40-PDIP - same | 40-PDIP - same | 40-PDIP - same |
| Flash Memory | 14 KB | 14 KB | 14 KB | 7 KB (-50%) |
| RAM | 1 KB | 1 KB | 1 KB | 512 B (-50%) |
| ADC Resolution | 12-bit | 12-bit | 10-bit (-17%) | 12-bit |
| Op-Amps | 3 | 3 | 2 (-33%) | 3 |
| Maximum Frequency | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| Temperature Range | -40C to +125C (E) | -40C to +85C (I) | -40C to +125C (E) | -40C to +85C (I) |
| PSMC Channels | Yes | Yes | Yes (enhanced) | Yes |
Key Differentiators
- Highest ADC resolution in 40-PDIP PIC16F family (vs PIC16F1777-E/P)
- Triple op-amp integration eliminates external analog front-end (vs PIC16F1784-I/P)
- Extended temperature grade suitable for industrial and automotive aftermarket (vs PIC16F1786-I/P (I-temp))
Design Notes
Place a 100nF ceramic decoupling capacitor within 5mm of each VDD pin (pins 11 and 32) and a single 10uF bulk capacitor near the device. For low-noise analog performance, use a ferrite bead between digital and analog VDD rails. The PIC16F1787-E/P's XLP sleep current below 50nA requires careful PCB layout - avoid high-leakage paths through pull-up resistors (>100k ohm). When using the on-chip voltage regulator for ADC reference, ensure adequate settling time after power-on.
Route the ICSP clock (RB6) and data (RB7) signals away from high-frequency switching nodes (PSMC outputs) to prevent programming/debugging interference. The 40-PDIP package has 0.1 inch (2.54mm) pin spacing suitable for through-hole prototyping on 0.1 inch perfboard. Use a ground plane on the bottom layer to reduce EMI and provide thermal dissipation. The MCLR pin (pin 1) requires a 10k ohm pull-up to VDD for normal operation - do not leave floating.
Do not exceed the maximum VDD of 5.5V - the PIC16F1787-E/P is not 5V-tolerant on I/O pins above 5.5V. The configuration words (CONFIG1, CONFIG2) must be set correctly for the oscillator source and watchdog timer - incorrect settings can brick the device requiring high-voltage ICSP recovery. When migrating from PIC16F877A code, note that the enhanced mid-range core uses different SFR names and the instruction set differs. The 12-bit ADC requires calibration register initialization for absolute accuracy above 1 LSB.
Estimated: At 32 MHz CPU clock with internal oscillator, the system clock has +/- 2% accuracy across temperature and voltage. For UART communications requiring tight baud-rate tolerance, use the EUSART with BRGH=1 configuration and verify with the Microchip baud-rate calculator. The op-amp bandwidth is typically 5 MHz unity-gain - sufficient for audio-frequency sensor conditioning but not for video applications. The PSMC output rise/fall times are ~10ns at 5V - keep traces short to minimize EMI.
Compliance Information
RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified - this part uses -E extended temperature grade but is not formally automotive-qualified. For AEC-Q100 applications, designers should contact Microchip for PIC16F1787-Q1 variants if available, or consider PIC18F-Q1 family.