PIC16F1787-E/MV - 8-Bit MCU 14KB Flash 32MHz UQFN-40 | Microchip
MPN: PIC16F1787-E/MV ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.29 | $3.29 |
| 10 | $3.13 | $31.30 |
| 100 | $2.78 | $278.00 |
| 500 | $2.42 | $1,210.00 |
| 1,000 | $2.18 | $2,180.00 |
| 3,000 | $1.94 | $5,820.00 |
PIC16F1787-E/MV Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program and data memory, and peripheral interfaces such as ADC, timers, communication controllers (I2C/SPI/UART), and GPIOs. PIC16F1787 is part of Microchip's mid-range 8-bit PIC family (PIC16 -> 8-bit MCU -> microcontroller -> embedded IC -> semiconductor) and targets applications that demand rich analog integration, flexible PWM, and low-power operation under the eXtreme Low Power (XLP) banner. Compared with earlier PIC16F1xxx generations, the PIC16(L)F1784/6/7 family adds PSMC and a wider operating voltage range.
Key features include 14 KB self-read/write Flash, 1 KB SRAM, 256 bytes EEPROM, three PSMC channels (16-bit), an internal 32 MHz oscillator, four 8-bit timers plus one 16-bit timer, two comparators, two op amps, a 12-bit ADC with up to 14 inputs, an 8-bit DAC, and communication peripherals supporting I2C, SPI, EUSART, and LIN. The 40-pin UQFN package supports industrial-grade operating temperatures and offers a small 5x5 mm footprint for space-constrained designs.
The device uses Microchip's enhanced mid-range 8-bit core with 49 instructions and 16 stack levels, providing deterministic interrupt response and predictable execution timing for real-time control. The integrated PSMC peripherals, combined with the 12-bit ADC and op amps, allow direct digital control of power topologies such as buck, boost, and LLC converters without external analog controllers. Internal voltage reference and zero-cross detect further reduce bill of materials.
Typical applications include LED lighting drivers, digital power conversion (SMPS), battery chargers, sensor conditioning interfaces, motor control BLDC/PMSM auxiliary loops, and industrial automation. The on-chip PSMC is particularly suited to digitally controlled SMPS and LED drivers that require fine dead-band control and high-resolution PWM.
Designers should allocate sufficient PCB copper under the UQFN-40 thermal pad and follow Microchip's power and decoupling guidelines (typically 100 nF + 10 uF near VDD) to ensure ADC accuracy. Programming is supported through ICSP and the standard MPLAB X IDE / MPLAB XC8 toolchain; the device is in active production per the Microchip product page.
This page combines distributor availability, parametric data, and pin-compatible Microchip alternatives not aggregated on any single distributor page.
Drop-in alternatives for PIC16F1787-E/MV — 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/MV (same form factor and footprint) — differing in ADC, Comparators, Package, Operating Temperature, DAC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1786-E/MV
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1786-I/MV
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1787-I/MV
✅ Drop-In✓ In Stock
$1.94 / Unit
View Datasheet →PIC16F1787T-I/MV
✅ Drop-In✓ In Stock
$2.1 / Unit
View Datasheet →PIC16F1719-E/MV
✅ Drop-In✓ In Stock
$2.75 / Unit
View Datasheet →PIC16F15385-E/MV
✅ Drop-In✓ In Stock
$1.24 / Unit
View Datasheet →PIC16F1787-E/MV Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 enhanced mid-range 8-bit |
| Instruction Set | 49 instructions, 16-level stack |
| Maximum CPU Speed | 32 MHz |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| Data SRAM | 1 KB |
| Data EEPROM | 256 bytes |
| ADC | 12-bit, up to 14 channels |
| DAC | 8-bit |
| PSMC Channels | 3 x 16-bit (Programmable Switch Mode Controller) |
| Comparators | 2 |
| Operational Amplifiers | 2 on-chip op amps |
| Timers | 4 x 8-bit / 1 x 16-bit (typical PIC16F178x configuration) |
| Communication Peripherals | I2C, SPI, EUSART (LIN-capable) |
| Operating Voltage | 2.3 V to 5.5 V (typical for PIC16F178x) |
| Operating Temperature | -40C to +125C (E = extended industrial) |
| Package | 40-pin UQFN (5x5 mm) with exposed pad |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
| Lead-Free | Yes (per Microchip product page) |
PIC16F1787-E/MV Pin Configuration
| Pin 1 | RA5 — GPIO / alternate function |
| Pin 2 | RA0 — GPIO / analog input |
| Pin 3 | RA1 — GPIO / analog input |
| Pin 4 | RA2 — GPIO / analog input |
| Pin 5 | RA3 — GPIO / analog input |
| Pin 6 | RA4 — GPIO / analog input |
| Pin 7 | VDD — Positive supply voltage |
| Pin 8 | VSS — Ground reference |
| Pin 9 | OSC1/RA7 — Crystal oscillator input or GPIO |
| Pin 10 | OSC2/RA6 — Crystal oscillator output or GPIO |
| Pin 11 | RC0 — GPIO / analog input |
| Pin 12 | RC1 — GPIO / analog input |
| Pin 13 | RC2 — GPIO / analog input |
| Pin 14 | RC3 — GPIO / analog input / SCL |
| Pin 15 | RC4 — GPIO / SDA |
| Pin 16 | RC5 — GPIO |
| Pin 17 | RC6 — GPIO / TX |
| Pin 18 | RC7 — GPIO / RX |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RB0 — GPIO / analog input / INT |
| Pin 22 | RB1 — GPIO / analog input |
| Pin 23 | RB2 — GPIO / analog input |
| Pin 24 | RB3 — GPIO / analog input |
| Pin 25 | RB4 — GPIO / analog input |
| Pin 26 | RB5 — GPIO / analog input / ICSPDAT |
| Pin 27 | RB6 — GPIO / ICSPCLK |
| Pin 28 | RB7 — GPIO |
| Pin 29 | RD0 — GPIO |
| Pin 30 | RD1 — GPIO |
| Pin 31 | RD2 — GPIO |
| Pin 32 | RD3 — GPIO |
| Pin 33 | RD4 — GPIO |
| Pin 34 | RD5 — GPIO |
| Pin 35 | RD6 — GPIO |
| Pin 36 | RD7 — GPIO |
| Pin 37 | RE0 — GPIO |
| Pin 38 | RE1 — GPIO |
| Pin 39 | RE2 — GPIO |
| Pin 40 | RE3 — GPIO |
Typical Applications
PIC16F1787-E/MV is suitable for 6 applications: Digital Switch-Mode Power Supply (SMPS) Controller, LED Lighting Driver with Dimming Control, Battery Charger with CC/CV Control, Industrial Sensor Conditioning and Bridge Measurement, BLDC Motor Commutation Helper, Industrial LIN Node and Sensor Interface.
Digital Switch-Mode Power Supply (SMPS) Controller
The PIC16F1787-E/MV fits digital SMPS control because it integrates three 16-bit PSMC channels, a 12-bit ADC, and two on-chip op amps - all in a 40-pin UQFN (5x5 mm). With 32 MHz core speed (8 MIPS) and 14 KB Flash, the MCU runs voltage-mode and peak-current-mode control loops for buck, boost, and half-bridge converters. Typical topologies use PSMC for switch timing while the on-chip op amp closes the current-sense loop and the 12-bit ADC samples Vout for regulation. Compared with analog PWM controllers, the PIC16F1787 enables firmware-defined compensation, soft-start, and adaptive dead-band control without external logic.
Recommended
LED Lighting Driver with Dimming Control
The PIC16F1787-E/MV's three PSMC channels, 8-bit DAC, and 12-bit ADC make it well suited to high-brightness LED driver designs with analog and PWM dimming. The PSMC provides high-resolution PWM at frequencies up to several hundred kHz, allowing flicker-free dimming down to 0.1% duty cycle. The 12-bit ADC monitors LED current via an external sense resistor closed by the on-chip op amp, while the DAC generates an analog dimming reference. 14 KB Flash is sufficient for color-mixing algorithms and DALI or 0-10V dimming stacks in connected lighting.
Recommended
Battery Charger with CC/CV Control
The PIC16F1787-E/MV enables digital CC/CV battery charger designs by combining PSMC PWM outputs with 12-bit ADC current/voltage sampling and 8-bit DAC for reference generation. Charge profiles (Li-ion, LiFePO4, lead-acid) are implemented in firmware using 14 KB Flash for state-machine and lookup tables. The op amp supports precise current-sense amplification with low offset, while 1 KB RAM holds ADC sample buffers and charge-time statistics. The UQFN-40 5x5 mm footprint allows integration into compact handheld chargers.
Recommended
Industrial Sensor Conditioning and Bridge Measurement
The PIC16F1787-E/MV's integrated op amps, 12-bit ADC, 8-bit DAC, and comparators support direct bridge sensor conditioning for load cells, pressure, and strain-gauge applications. The two on-chip op amps implement instrumentation-amp-style signal conditioning for differential bridge outputs, while the 12-bit ADC digitizes the conditioned signal with up to 14 channels for multi-sensor multiplexing. The 8-bit DAC provides excitation-voltage trimming for ratiometric measurements. 256-byte EEPROM stores calibration coefficients that persist across power cycles.
Recommended
BLDC Motor Commutation Helper
The PIC16F1787-E/MV complements a primary motor controller in BLDC and PMSM designs by handling auxiliary tasks like back-EMF zero-cross detection, Hall-sensor decoding, and fault monitoring. Three PSMC channels drive timing-critical PWM synchronization signals while the 12-bit ADC reads phase currents and bus voltage. The 14 KB Flash stores sensorless start-up algorithms and PI loop tuning. The compact UQFN-40 5x5 mm package fits on the same PCB as the main inverter driver ICs.
Recommended
Industrial LIN Node and Sensor Interface
The PIC16F1787-E/MV's EUSART with LIN support, 12-bit ADC, and rich GPIO make it suitable for LIN-connected industrial sensor nodes. The device communicates on LIN bus at up to 20 kbaud, while the ADC samples multiple analog sensor channels and the PSMC generates PWM outputs for actuator control. 14 KB Flash holds LIN stack, diagnostics, and sensor calibration routines. The -40C to +125C extended temperature grade supports industrial automation environments per the Microchip PIC16F1784/6/7 datasheet.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1787-E/MV — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1786-E/MV | PIC16F1786-I/MV | PIC16F1787-I/MV | PIC16F1787T-I/MV | PIC16F1719-E/MV | PIC16F15385-E/MV |
|---|---|---|---|---|---|---|---|
| Package | 40-pin UQFN (5x5 mm) | 40-pin UQFN (5x5 mm) - same | 40-pin UQFN (5x5 mm) - same | 40-pin UQFN (5x5 mm) - same | 40-pin UQFN (5x5 mm) - same | 40-pin UQFN (5x5 mm) - same | 40-pin UQFN (5x5 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 14 KB | 8 KB | 8 KB | 14 KB | 14 KB | 14 KB | 14 KB |
| RAM | 1 KB | 1 KB | 1 KB | 1 KB | 1 KB | 1 KB | 1 KB |
| Maximum CPU Speed | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| PSMC Channels | 3 x 16-bit | 3 x 16-bit | 3 x 16-bit | 3 x 16-bit | 3 x 16-bit | 0 (uses CWG instead) | 0 (uses CWG instead) |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit | 10-bit / 12-bit | 10-bit |
| Temperature Grade | Extended -40C to +125C | Extended -40C to +125C | Industrial -40C to +85C | Industrial -40C to +85C | Industrial -40C to +85C | Extended -40C to +125C | Extended -40C to +125C |
Key Differentiators
- Three dedicated 16-bit PSMC channels for digital SMPS (vs PIC16F1719-E/MV)
- Extended -40C to +125C industrial temperature grade (vs PIC16F1787-I/MV)
- Same 40-pin UQFN (5x5 mm) footprint across multiple PIC16F families (vs PIC16F15385-E/MV)
Design Notes
Use a 4-layer PCB with a continuous ground plane under the PIC16F1787-E/MV UQFN-40 footprint. Solder the central exposed thermal pad to a copper pour with at least 4 thermal vias (0.3 mm drill, 1 mm pitch) connecting to the inner ground plane. This pad provides the main thermal path and reduces junction temperature rise for SMPS and motor-control applications that run at elevated ambient temperatures per Microchip's PIC16F178x PCB layout guidelines.
Decouple VDD/VSS pairs with 100 nF X7R ceramic capacitors placed within 2 mm of each supply pin; add a shared 10 uF X5R bulk capacitor per the Microchip PIC16F1784/6/7 datasheet power-supply recommendations. For AVDD/AVSS analog rails used by the 12-bit ADC, use a 10 uH ferrite bead in series with AVDD and a 1 uF + 100 nF L/C network to isolate digital switching noise. This decoupling is essential to achieve the 12-bit ADC SNR specified in the datasheet.
Route PSMC output traces as differential pairs (PSMCxA/PSMCxB) with matched length (delta < 5 mm) and 50 ohm characteristic impedance to maintain clean complementary PWM edges for the gate driver. Keep ADC analog traces away from PSMC and digital switching traces by at least 3x the trace width to avoid capacitive coupling that degrades ADC linearity. Place the current-sense op amp feedback components within 5 mm of the device per the PIC16F178x datasheet analog design notes.
A common pitfall is configuring PSMC without clearing the PSMCxCON register bits in a specific order - this can produce shoot-through in half-bridge topologies. Follow the PSMC initialization sequence in the datasheet section on Programmable Switch Mode Controller. Another frequent error is leaving the MCLR pin floating in noise-prone SMPS designs; tie MCLR to VDD through a 10 kohm resistor or to the PICkit reset circuit. Always use the latest MPLAB X IDE and XC8 compiler to ensure PSMC library support is current.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified; for AEC-Q100 automotive applications use the PIC16F1787-E/MV automotive-grade variant if available. Halogen-free status not explicitly stated in verified web data.