PIC16F1787-I/ML - 14KB Flash 8-bit MCU 44-QFN | Microchip
MPN: PIC16F1787-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.42 | $3.42 |
| 10 | $3.07 | $30.70 |
| 100 | $2.62 | $262.00 |
| 500 | $2.34 | $1,170.00 |
| 1,000 | $2.12 | $2,120.00 |
| 3,000 | $1.92 | $5,760.00 |
PIC16F1787-I/ML Overview
A PIC16F family 8-bit microcontroller is a RISC-based single-chip computer built on Microchip's enhanced mid-range core, executing most instructions in one instruction cycle (200 ns at 20 MHz, 125 ns at 32 MHz) and integrating Flash program memory, SRAM data memory, EEPROM, and a wide range of analog and communication peripherals on a single die. Within the broader microcontroller taxonomy it sits between 8-bit PIC MCUs and 16-bit dsPIC DSCs, and belongs to the larger category of embedded microcontrollers, mixed-signal ICs, and finally integrated circuits - the foundational silicon category. The 14 KB Flash variant is commonly used when a moderate code footprint and strong analog integration are required without the BOM cost of a 32-bit Cortex-M0+ device.
Key features include 14 KB Flash / 1 KB RAM / 256 B EEPROM, three operational amplifiers with rail-to-rail input/output, two high-speed comparators (50 ns response), a 12-bit ADC with up to 14 channels, and hardware Limit Timer modules. The 44-QFN package provides compact footprint integration while maintaining sufficient I/O count for human-machine interface, lighting, and signal-conditioning applications.
Architecturally, the PIC16F1787 combines the enhanced mid-range PIC core with Microchip's nanoWatt XLP technology for ultra-low-power sleep modes and interrupt-driven wakeup. The integrated CIP (Core Independent Peripherals) such as the CWG, NCO and Zero-Cross Detect allow complex timing and signal generation without CPU intervention - ideal for SMPS, motor control, and lighting feedback loops.
Typical applications include LED lighting with constant-current regulation, switching-mode power supply (SMPS) digital control loops, battery chargers with Power-Factor Correction, industrial sensor signal conditioning, and small motor control (BLDC, fan, pump). The wide analog integration removes external op-amps and comparators from the BOM.
When designing with this MCU, place decoupling capacitors (100 nF + 1 µF) within 2 mm of each power pin and tie the exposed thermal pad of the QFN package to a clean ground plane to manage thermal dissipation. Use MPLAB X IDE with XC8 compiler and MPLAB Code Configurator for rapid peripheral setup.
This page synthesizes distributor pricing, drop-in pin-compatible alternatives from the PIC16F178x family, and practical design notes not found in the manufacturer datasheet, giving engineers a single source for sourcing, replacement, and design validation.
Drop-in alternatives for PIC16F1787-I/ML — 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/ML (same form factor and footprint) — differing in Package, ADC, DAC, Operating Temperature, Comparators.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1787-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1786-I/ML
✅ Drop-In✓ In Stock
$1.78 / Unit
View Datasheet →PIC16F1779-I/ML
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
PIC16F1787-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 Enhanced Mid-Range 8-bit RISC |
| Maximum CPU Frequency | 32 MHz (125 ns instruction cycle) |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| Data SRAM | 1 KB |
| Data EEPROM | 256 B |
| Supply Voltage (VDD) | 2.3 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 12-bit, up to 14 channels |
| DAC | 5-bit + 8-bit (2 channels) |
| Operational Amplifiers | 3 (rail-to-rail I/O) |
| Comparators | 2 (high-speed, ~50 ns) |
| Timers | 5 (8/16-bit with Limit Timer) |
| Serial Interfaces | I2C, SPI, EUSART (RS-485 capable) |
| Package | 44-pin QFN (8x8 mm) with exposed pad |
| Operating Temperature (Industrial) | -40 °C to +85 °C |
| MSL Level | 3 |
| RoHS Status | Compliant |
PIC16F1787-I/ML Pin Configuration
| Pin 1 | RE3/MCLR — Master Clear / Input only (with weak pull-up) |
| Pin 2 | RA0 — Digital I/O / AN0 / OPA1IN+ |
| Pin 3 | RA1 — Digital I/O / AN1 / OPA1IN- |
| Pin 4 | RA2 — Digital I/O / AN2 / OPA1OUT / DAC5OUT1 |
| Pin 5 | RA3 — Digital I/O / AN3 / OPA2IN+ |
| Pin 6 | RA4 — Digital I/O / OPA2IN- / DAC5OUT2 |
| Pin 7 | RA5 — Digital I/O / AN4 / OPA2OUT |
| Pin 8 | RA6 — Digital I/O / OPA3IN+ |
| Pin 9 | RA7 — Digital I/O / OPA3IN- |
| Pin 10 | VSS — Ground |
| Pin 11 | VDD — Positive supply voltage (2.3-5.5V) |
| Pin 12 | RB0 — Digital I/O / AN12 / Interrupt-on-change |
| Pin 13 | RB1 — Digital I/O / AN10 / IOC |
| Pin 14 | RB2 — Digital I/O / AN8 / IOC |
| Pin 15 | RB3 — Digital I/O / AN9 / IOC |
| Pin 16 | RB4 — Digital I/O / AN11 / IOC |
| Pin 17 | RB5 — Digital I/O / AN13 / IOC |
| Pin 18 | RB6 — Digital I/O / ICSPCLK / IOC |
| Pin 19 | RB7 — Digital I/O / ICSPDAT / IOC |
| Pin 20 | VSS — Ground (return path for ADC) |
| Pin 21 | VDD — Positive supply voltage |
| Pin 22 | RC0 — Digital I/O / SOSCO |
| Pin 23 | RC1 — Digital I/O / SOSCI |
| Pin 24 | RC2 — Digital I/O / AN14 / DAC8OUT1 |
| Pin 25 | RC3 — Digital I/O / AN15 / DAC8OUT2 |
| Pin 26 | RC4 — Digital I/O / AN16 |
| Pin 27 | RC5 — Digital I/O / AN17 |
| Pin 28 | RC6 — Digital I/O / AN18 / TX/CK |
| Pin 29 | RC7 — Digital I/O / AN19 / RX/DT |
| Pin 30 | VSS — Ground |
| Pin 31 | VDD — Positive supply voltage |
| Pin 32 | RD0 — Digital I/O / AN20 |
| Pin 33 | RD1 — Digital I/O / AN21 |
| Pin 34 | RD2 — Digital I/O / AN22 |
| Pin 35 | RD3 — Digital I/O / AN23 |
| Pin 36 | RD4 — Digital I/O / AN24 / SDO2 |
| Pin 37 | RD5 — Digital I/O / AN25 / SDI2 |
| Pin 38 | RD6 — Digital I/O / AN26 / SCK2 |
| Pin 39 | RD7 — Digital I/O / AN27 / SS2 |
| Pin 40 | RE0 — Digital I/O / AN5 |
| Pin 41 | RE1 — Digital I/O / AN6 |
| Pin 42 | RE2 — Digital I/O / AN7 |
| Pin 43 | VSS — Ground |
| Pin 44 | VDD — Positive supply voltage |
Typical Applications
PIC16F1787-I/ML is suitable for 6 applications: LED Lighting Constant-Current Driver, Switching-Mode Power Supply (SMPS) Digital Control, Industrial Sensor Signal Conditioning, Battery Charging and Power-Path Management, Small BLDC / Brushless DC Motor Control, Home Appliance User Interface and HMI.
LED Lighting Constant-Current Driver
The PIC16F1787-I/ML's three integrated rail-to-rail op-amps, two high-speed comparators, and PWM/Limit Timer peripherals make it ideal for closed-loop LED current regulation. Typical circuits use the op-amps to amplify the high-side current-sense shunt voltage and feed the comparator into a hysteretic control loop driving a MOSFET at 100-500 kHz. The XLP low-power sleep (<1 µA) is critical for standby lighting systems where efficiency dictates Energy Star compliance. According to Microchip application note AN2041, this device supports boost, buck-boost, and SEPIC LED driver topologies with sub-1% line regulation across a 2.3-5.5 V input range.
Recommended
Switching-Mode Power Supply (SMPS) Digital Control
The PIC16F1787-I/ML provides a strong platform for digital SMPS control loops in sub-500 W converters. Its PWM with complementary outputs, programmable dead-band, and Limit Timer Module support cycle-by-cycle current limiting for peak-current-mode control. The 12-bit ADC samples current/voltage at up to 100 ksps with hardware averaging, while the high-speed comparator triggers peak-current-mode turn-off in ~50 ns. Compared to analog UC3842 implementations, the PIC16F1787-I/ML enables soft-start, adaptive dead-time, and telemetry via EUSART. Microchip's digital-compensation library (AN1099) accelerates loop tuning for forward, flyback, and PFC boost stages.
Recommended
Industrial Sensor Signal Conditioning
The PIC16F1787-I/ML's combination of three op-amps, two comparators, and a 12-bit ADC provides a complete analog front-end for bridge sensors (load cells, strain gauges), thermocouples, and 4-20 mA loop transmitters in factory-automation systems. The op-amps can be configured as instrumentation amplifiers for high-CMRR (>80 dB) thermocouple amplification, while the 12-bit ADC with hardware oversampling achieves effective 14-bit resolution at lower sample rates. Industrial -40 °C to +85 °C operation and 5.5 V tolerance match IEC 61000-4-2/4 EMC requirements when used with proper PCB layout and TVS protection.
Recommended
Battery Charging and Power-Path Management
The PIC16F1787-I/ML supports single-cell Li-Ion/Li-Po and multi-cell NiMH charging with CC-CV profiles implemented in firmware. Its 5-bit and 8-bit DACs generate programmable charge voltage/current setpoints, the ADC monitors battery voltage and temperature via NTC, and the op-amp conditions the charge current sense signal. PWM drives the buck MOSFET at 100-250 kHz with synchronous rectification. Low-power XLP standby (typ. 50 nA) preserves battery life when the device is not actively charging - critical for solar trickle chargers and USB-C PD source designs.
Recommended
Small BLDC / Brushless DC Motor Control
The PIC16F1787-I/ML drives sensorless BLDC fans, blowers, and pumps using back-EMF zero-crossing detection from the integrated comparators. The 32 MHz CPU executes commutation tables with <1 µs latency, while the PWM module generates complementary 6-step commutation with programmable dead-band (50 ns resolution). The three op-amps handle back-EMF amplification, current sensing, and bus-voltage feedback. XLP sleep current <1 µA enables battery-powered robotic tools with months of standby lifetime between charges.
Recommended
Home Appliance User Interface and HMI
The PIC16F1787-I/ML is well-suited for washing-machine, dishwasher, and induction-cooktop user interface controllers that drive LED segment displays, capacitive touch sliders, and rotary encoders. Its 36 I/O pins drive 7-segment LEDs directly without external drivers, the 12-bit ADC reads capacitive-touch sensors via the CTMU peripheral, and the EUSART connects to a host control board. Industrial temperature rating and 5 V tolerance suit noisy home-appliance EMC environments when combined with TVS protection and common-mode chokes.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1787-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1787-I/PT | PIC16F1786-I/ML | PIC16F1779-I/ML |
|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-QFN (ML) 8x8 mm | 44-TQFP (PT) | 44-QFN (ML) 8x8 mm - same | 44-QFN (ML) 8x8 mm - same |
| Program Memory (Flash) | 14 KB | 14 KB | 8 KB | 28 KB |
| SRAM | 1 KB | 1 KB | 1 KB | 2 KB |
| Maximum CPU Frequency | 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 |
| ADC | 12-bit, 14 channels | 12-bit, 14 channels | 12-bit, 14 channels | 12-bit, 14 channels |
| Operational Amplifiers | 3 (rail-to-rail) | 3 | 3 | 3 |
| Serial Interfaces | I2C, SPI, EUSART | I2C, SPI, EUSART | I2C, SPI, EUSART | I2C, SPI, EUSART |
| Approximate Unit Price (qty-1) | $3.42 | $3.55 | $3.30 | $3.85 |
Key Differentiators
- Highest memory in 44-QFN pin-compatible family at 14 KB Flash (vs PIC16F1786-I/ML (8 KB Flash))
- Three integrated rail-to-rail op-amps eliminate external analog ICs (vs PIC16F1784-I/ML (1 op-amp))
- Industrial temperature range and XLP nanoWatt sleep for energy-harvesting (vs PIC16F1787-E/ML (Extended temp only))
Design Notes
Estimated: with 32 MHz operation, place a 100 nF decoupling capacitor within 2 mm of each VDD pin and a single 10 µF bulk cap on the supply rail. The QFN's exposed thermal pad (EP) MUST be soldered to the ground plane to provide thermal dissipation and electrical return. Use four thermal vias (0.3 mm drill) in a 1.2 mm pitch array beneath the EP for best heat-sinking.
Do not leave the MCLR/RE3 pin floating - even with internal weak pull-up enabled, route a 10 kΩ external pull-up to VDD for production reliability. When using the ICSP pins (RB6/RB7) for in-circuit programming, ensure no series resistors >470 Ω are placed on these lines, as the programmer cannot overcome higher impedance. Always configure the PPS (Peripheral Pin Select) for alternate functions to avoid pin-function lockout.
Keep analog input traces short and guarded with a ground pour to minimize crosstalk with PWM outputs. If using the 12-bit ADC for >10-bit effective resolution, average 4-16 samples in firmware to suppress 50/60 Hz line-frequency noise. Reference the Microchip TB3019 document for ADC accuracy anti-patterns including source-impedance-induced gain error.
Estimated: at 32 MHz and 5 V with all peripherals active, the device draws approximately 7-10 mA (35-50 mW). Thermal resistance θJA for the 44-QFN with 1 oz copper and thermal vias is around 28 °C/W, resulting in a junction temperature rise of less than 1.5 °C above ambient. No external heatsink is required under typical industrial conditions.
Compliance Information
RoHS and REACH compliance per Microchip product page. Not AEC-Q100 qualified - this is an industrial-grade MCU. Lead-free matte-tin finish. For automotive designs, refer to PIC16F1787-I/ML automotive equivalents or contact Microchip.