PIC16F1787-I/MV - 8-Bit 32MHz 14KB Flash MCU 40-UQFN | Microchip
MPN: PIC16F1787-I/MV ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.02 | $3.02 |
| 10 | $2.71 | $27.10 |
| 100 | $2.41 | $241.00 |
| 500 | $2.16 | $1,080.00 |
| 1,000 | $1.94 | $1,940.00 |
PIC16F1787-I/MV Overview
What is a PIC16 microcontroller? A PIC16 (Peripheral Interface Controller, 16-bit instruction set) is a class of 8-bit RISC microcontrollers from Microchip Technology offering low power, deterministic core performance, and a rich peripheral set. PIC16F1787 belongs to the PIC® XLP™ (eXtreme Low Power) family, which in turn is part of the broader PIC microcontroller taxonomy: PIC16 -> 8-bit MCU -> microcontroller -> embedded processing IC. Compared to PIC10/PIC12 baseline families, PIC16 adds enhanced analog (12-bit ADC, 8-bit DAC, op-amps, comparators), 3 programmable switch mode controllers (PSMC), and richer communication peripherals (I²C, SPI, EUSART).
Key features include 14 KB flash, 1 KB RAM, 256 B EEPROM, 32 MHz operation, 12-bit differential ADC, 8-bit DAC, two operational amplifiers, two high-speed comparators with DAC reference, 3 PSMC (16-bit PWM) channels, and ultra-low-power XLP modes. The 40-UQFN package integrates peripherals that previously required multiple discrete components, shrinking BOM and PCB area for sensor-conditioning and motor-control nodes.
The architecture is built around the enhanced mid-range core with a 16-level hardware stack and a deterministic 4-cycle instruction pipeline. Internal 32 MHz oscillator, hardware CRC, and a 5-bit DAC per PSMC enable closed-loop control without external references, while eXtreme Low Power (XLP) technology offers sub-uA sleep currents for battery applications.
Typical applications include LED lighting with PSMC-driven constant-current control, sensor signal conditioning using on-chip op-amps and 12-bit ADC, IoT end nodes, and small motor control (BLDC driver FOC companion, fan/PWM driver). The integrated analog chain is particularly valuable in industrial sensor transmitters where board space is constrained.
When designing with this part, allocate the exposed thermal pad (EP) to a continuous ground pour for thermal dissipation and mechanical stress relief; floating the EP is a common mistake. PSMC channels should be configured via MCC code configurator to avoid PWM glitching at the first switching cycle.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet, providing actionable selection guidance for engineers evaluating PIC16F1787-I/MV against functional equivalents.
Drop-in alternatives for PIC16F1787-I/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-I/MV (same form factor and footprint) — differing in DAC, ADC, Package, Comparators, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1786-I/MV
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
PIC16F1787-I/ML
✅ Drop-In✓ In Stock
$1.92 / Unit
View Datasheet →PIC16F1787-E/MV
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.94 / Unit
View Datasheet →PIC16F1719-I/MV
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.89 / Unit
View Datasheet →PIC16F1717-I/MV
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.72 / Unit
View Datasheet →PIC16F1776-I/MV
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
PIC16F1787-I/MV Maximum Ratings & Electrical Characteristics
| Core | Enhanced Mid-Range 8-bit |
| Instruction Set | 49 instructions, 16 stack levels |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| Data RAM | 1 KB |
| Data EEPROM | 256 B |
| Max CPU Speed | 32 MHz |
| Operating Voltage Range | 2.3 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 12-bit differential, up to 28 channels |
| DAC | 8-bit, 1 channel |
| Comparators | 2 high-speed with DAC reference |
| Operational Amplifiers | 2 on-chip |
| PSMC (Programmable Switch Mode Controller) | 3 x 16-bit PWM |
| Communication | I²C, SPI, EUSART |
| Timers | 5 (8-bit/16-bit mix) |
| Package | 40-UQFN (MV) 5x5 mm with exposed pad |
| Mounting Type | Surface Mount |
| Operating Temperature | -40C to +85C (industrial, -I suffix) |
| RoHS Status | Compliant |
PIC16F1787-I/MV Pin Configuration
| Pin 1 | RA0/AN0 — GPIO / Analog input 0 |
| Pin 2 | RA1/AN1 — GPIO / Analog input 1 |
| Pin 3 | RA2/AN2 — GPIO / Analog input 2 |
| Pin 4 | RA3/AN3 — GPIO / Analog input 3 / VREF+ |
| Pin 5 | RA4/AN4 — GPIO / Analog input 4 |
| Pin 6 | RA5/AN5 — GPIO / Analog input 5 |
| Pin 7 | RA6 — GPIO only |
| Pin 8 | RA7 — GPIO only |
| Pin 9 | VSS — Ground reference |
| Pin 10 | VDD — Positive supply voltage (2.3 V to 5.5 V) |
| Pin 11 | RB0 — GPIO / Interrupt-on-change |
| Pin 12 | RB1 — GPIO / Interrupt-on-change |
| Pin 13 | RB2 — GPIO / Interrupt-on-change |
| Pin 14 | RB3 — GPIO / Interrupt-on-change |
| Pin 15 | RB4 — GPIO / Interrupt-on-change |
| Pin 16 | RB5 — GPIO / Interrupt-on-change |
| Pin 17 | RB6/ICSPCLK — GPIO / ICSP clock |
| Pin 18 | RB7/ICSPDAT — GPIO / ICSP data |
| Pin 19 | RC0 — GPIO |
| Pin 20 | RC1 — GPIO |
| Pin 21 | RC2 — GPIO |
| Pin 22 | RC3 — GPIO / SCL (I²C) |
| Pin 23 | RC4 — GPIO / SDA (I²C) |
| Pin 25 | RC6 — GPIO / TX (EUSART) |
| Pin 26 | RC7 — GPIO / RX (EUSART) |
| Pin 27 | RE3/MCLR — Master Clear (reset, active low) |
| Pin 28 | RD0 — GPIO |
| Pin 29 | RD1 — GPIO |
| Pin 30 | RD2 — GPIO |
| Pin 31 | RD3 — GPIO |
| Pin 32 | RD4 — GPIO |
| Pin 33 | RD5 — GPIO |
| Pin 34 | RD6 — GPIO |
| Pin 35 | RD7 — GPIO |
| Pin 36 | RE0 — GPIO |
| Pin 37 | RE1 — GPIO |
| Pin 38 | RE2 — GPIO |
| Pin 39 | VSS — Ground reference (second pad) |
| Pin 40 | VDD — Positive supply voltage (second pad) |
| Pin EP | EP — Exposed thermal pad - solder to PCB ground plane for thermal dissipation |
Typical Applications
PIC16F1787-I/MV is suitable for 6 applications: LED Lighting Constant-Current Driver, Industrial Sensor Signal Conditioning, Small Motor Control (BLDC / Fan Driver), IoT End-Node / Sensor Hub, Consumer Appliance User Interface, Battery-Powered Measurement Instrument.
LED Lighting Constant-Current Driver
The PIC16F1787-I/MV is well suited for high-brightness LED lighting due to its 3 integrated PSMC (Programmable Switch Mode Controller) channels that drive 16-bit PWM at the 32 MHz core clock, and its on-chip high-speed comparators with DAC reference for closed-loop current feedback. The PIC16F1787's on-chip op-amp can amplify shunt-resistor voltage, while the 12-bit ADC samples the feedback for tight constant-current regulation across LED forward-voltage variation. Designers can implement a single-stage buck or boost topology without external PWM controllers, reducing BOM. The XLP sleep mode cuts idle current to sub-uA levels for battery-driven accent lighting.
Recommended
Industrial Sensor Signal Conditioning
For 4-20 mA loop-powered or 0-10 V sensor transmitters, the PIC16F1787-I/MV integrates two on-chip operational amplifiers, two high-speed comparators with DAC reference, and a 12-bit differential ADC with up to 28 channels - eliminating external analog front-end ICs. The PIC16F1787's 32 MHz CPU executes digital filtering and linearization in real time, while the 256-byte EEPROM stores sensor calibration coefficients. The XLP mode achieves sub-uA sleep currents for loop-powered 4-20 mA sensor heads. The 40-UQFN package fits in space-constrained sensor housings, and the industrial -40C to +85C temperature range meets factory-floor requirements.
Recommended
Small Motor Control (BLDC / Fan Driver)
Small BLDC motors, fans, and pumps benefit from the PIC16F1787-I/MV's 3 PSMC channels with 16-bit PWM resolution, programmable dead-band, and dedicated fault inputs for overcurrent protection. The PIC16F1787's 32 MHz CPU implements 6-step commutation or sensorless BEMF detection algorithms without external timers. Hardware CRC and the enhanced mid-range core with 49 instructions keep firmware compact for cost-sensitive fan controllers. The 40-UQFN package and 5x5 mm footprint enable compact motor-driver PCBs where the MCU co-locates with the inverter FETs. Industrial temperature range supports appliance and HVAC blower motors.
Recommended
IoT End-Node / Sensor Hub
IoT edge nodes leverage the PIC16F1787-I/MV's XLP (eXtreme Low Power) technology achieving sub-uA sleep currents, with the 32 MHz core waking rapidly to service sensor events. The PIC16F1787's 14 KB flash accommodates lightweight wireless HCI stacks (BLE, LoRa P2P, sub-GHz proprietary) over I²C/SPI/EUSART to external transceivers. The 12-bit ADC reads temperature, humidity, or battery voltage, while the on-chip op-amp conditions analog sensors. The 1 KB RAM is sufficient for small sensor-data buffers before batched transmission. The 40-UQFN 5x5 mm footprint fits coin-cell or energy-harvesting housings.
Recommended
Consumer Appliance User Interface
Consumer appliance HMI panels (coffee machines, microwave ovens, washing-machine control boards) use the PIC16F1787-I/MV to drive segmented LED displays, capacitive touch sensing via the on-chip comparators, and serial LCDs over EUSART. The PIC16F1787's 32 MHz CPU and 14 KB flash handle user-interface state machines and simple menu logic without external display drivers. The PSMC channels drive backlight brightness with smooth 16-bit PWM dimming. Hardware CRC validates user settings stored in 256-byte EEPROM, while XLP mode keeps standby power below regulatory limits for energy-star appliances.
Recommended
Battery-Powered Measurement Instrument
Handheld test instruments, digital multimeters, and portable data loggers leverage the PIC16F1787-I/MV's 12-bit differential ADC for accurate measurements, on-chip op-amps for signal conditioning, and XLP modes extending runtime to months on a single battery. The PIC16F1787's 32 MHz CPU executes RMS calculations, peak detection, and statistical analysis in real time, while the 1 KB RAM stores measurement history. The 256-byte EEPROM retains user preferences across battery replacement. The 40-UQFN 5x5 mm footprint fits handheld enclosures, and the industrial -40C to +85C range covers field-service environments.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1787-I/MV — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1786-I/MV | PIC16F1787-I/ML | PIC16F1719-I/MV | PIC16F1717-I/MV | PIC16F1776-I/MV |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 40-UQFN (MV) 5x5 mm | 40-UQFN (MV) 5x5 mm - same | 44-QFN (ML) 8x8 mm - same die, larger package | 40-UQFN (MV) 5x5 mm - same | 40-UQFN (MV) 5x5 mm - same | 40-UQFN (MV) 5x5 mm - same |
| Flash Memory | 14 KB | 8 KB (-43%) | 14 KB (same) | 14 KB (same) | 7 KB (-50%) | 8 KB (-43%) |
| Data RAM | 1 KB | 1 KB | 1 KB | 1 KB | 512 B | 1 KB |
| CPU Speed | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| Operating Voltage | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 2.3 V to 5.5 V |
| Operating Temperature | -40C to +85C (industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
Key Differentiators
- On-chip dual op-amp and 12-bit differential ADC eliminate external analog front-end (vs PIC16F1717-I/MV)
- 3 PSMC channels enable direct PWM-driven power-conversion control (vs PIC16F1776-I/MV)
- 14 KB flash provides firmware headroom for complex protocols (vs PIC16F1786-I/MV)
Design Notes
The 40-UQFN (MV) package uses a center exposed pad (EP) that MUST be soldered to the PCB ground plane. The EP provides both a low-impedance ground reference and a mechanical stress-relief anchor; floating or improperly soldered EP degrades thermal performance and reliability under thermal-cycling stress. For high-current GPIO switching applications, increase the PCB copper area beneath the EP to spread heat into the inner ground plane layers. Estimated: with EP soldered to 1 sq inch of 1 oz copper, theta_JA of UQFN-40 is approximately 35 C/W, allowing up to 1.5 W dissipation at 85C ambient.
Place decoupling capacitors as close to the VDD pins (pin 10 and pin 40) as possible - use a 100 nF ceramic in parallel with a 4.7 uF bulk capacitor. The dual VDD/VSS pin pairs (10/9 and 40/39) require separate bypass networks; do not share a single capacitor between both pairs. Add a 10 kohm pull-up on MCLR (pin 27) for proper reset behavior, and route ICSP signals (RB6/RB7) directly to a programming header for field firmware updates per Microchip PIC16F1787 datasheet DS40001793G section 2.
Avoid configuring PSMC channels before initializing the system clock - starting PWM with an unstable clock source causes first-cycle glitches and FET shoot-through. Always use the MPLAB Code Configurator (MCC) to generate PSMC initialization code rather than hand-writing register sequences. Another common pitfall: enabling the 12-bit ADC without configuring the bandgap reference leaves ADC readings erroneous at low VDD; per Microchip datasheet DS40001793G, the FVR (Fixed Voltage Reference) must be enabled before ADC operation below 2.7 V supply.
Route analog signals (AN0-AN5) away from switching PSMC PWM traces to avoid coupling into ADC readings. Use a ground guard ring around analog pins and keep the analog ground plane separate from the digital ground plane, joining them at a single point near the EP. The 12-bit ADC achieves 70 dB SNR only with proper analog layout. Crystal oscillator traces (if external crystal is used instead of internal 32 MHz oscillator) must be short and symmetric with a ground guard trace to minimize EMI pickup.
Compliance Information
RoHS and REACH compliant per Microchip product page. Industrial -40C to +85C temperature range; not AEC-Q100 qualified - choose PIC16F1787-E/MV or Q1 variant for automotive applications. Conflict-minerals compliant per Microchip corporate policy.