PIC16LF1786-I/SO - 8-bit 32MHz 14KB Flash MCU | Microchip
MPN: PIC16LF1786-I/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.45 | $3.45 |
| 10 | $3.07 | $30.70 |
| 100 | $2.61 | $261.00 |
| 500 | $2.21 | $1,105.00 |
| 1,000 | $1.92 | $1,920.00 |
PIC16LF1786-I/SO Overview
A microcontroller (MCU) is a single-chip computer integrating a CPU core, program and data memory, timers, communication peripherals, and analog blocks. The PIC16LF1786 belongs to the broader hierarchy MCU → 8-bit MCU → PIC® XLP™ 16F family → PIC16LF178x sub-family → power- and analog-rich industrial nodes. Compared with 32-bit Cortex-M0 parts, this PIC16 trades raw MIPS for deterministic interrupt latency, a much smaller code footprint (8K x 14 word-addressable Flash), and ultra-low sleep currents that suit battery-powered sensor nodes.
Key features include an internal 32 MHz oscillator (HFINTOSC) with PLL, a 12-bit differential ADC with computation (ADC2), two 8-bit DACs, two operational amplifiers, three comparators, three 16-bit timers, four 10-bit PWM modules with auto-shutdown, two EUSART, two I²C/SPI MSSP peripherals, an 11-channel 12-bit ADC, and a wide-Vdd 1.8 V–3.6 V supply range. Programmable memory is 14 KB Flash with 1 KB ROM and 1 KB RAM. Brown-out Reset, Power-on Reset, and an extended watchdog timer with a dedicated LFINTOSC clock source are also integrated.
The PIC16LF1786 uses an enhanced Harvard RISC architecture with a 14-bit instruction word, a hardware stack for fast interrupt context save/restore, and an instruction pipeline that completes most single-cycle instructions in one oscillator period (31.25 ns at 32 MHz). The 12-bit ADC2 module supports hardware accumulation, averaging, filtering, and threshold compare, offloading DSP-style signal conditioning from the CPU - useful for sensor linearization in real time.
Typical applications include industrial sensor transmitters, battery-powered IoT edge nodes with sleep current budgets in the microamp range, motor control low-end drivers (PWM + op-amp current sense), lighting controllers, and consumer white goods with capacitive touch or analog front-ends. Industrial 4 mA–20 mA loop-powered transmitters benefit from the LFINTOSC-based nanoWatt XLP sleep current and the integrated op-amp + 12-bit ADC chain.
When designing with this part, verify your toolchain supports the PIC16LF1786 device ID (MPLAB X IDE, XC8 compiler). Decouple Vdd with a 100 nF ceramic capacitor placed within 3 mm of the Vdd pin, and route the MCLR pull-up separately to avoid in-circuit serial programming (ICSP) collisions. For EMI-sensitive layouts, tie unused I/O to Vss through 10 kΩ resistors and avoid routing the HFINTOSC trace near analog inputs.
This page synthesizes distributor pricing, drop-in same-package alternatives, and practical design notes not found in the manufacturer datasheet alone, enabling faster sourcing decisions for engineers evaluating the PIC16LF1786-I/SO against PIC16F1786 and PIC16LF1783/1782 same-family variants.
Drop-in alternatives for PIC16LF1786-I/SO — 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 PIC16LF1786-I/SO (same form factor and footprint) — differing in Package, Core Architecture, I/O Pins, MSL Level, ADC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1786-I/SO
✅ Drop-In✓ In Stock
$1.71 / Unit
View Datasheet →PIC16LF1787-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF1784-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF1783-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF1782-I/SO
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.55 / Unit
View Datasheet →PIC16LF1789-I/SO
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
PIC16LF1786-I/SO Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 Enhanced Mid-Range (x14) 8-bit RISC |
| Program Memory | 14 KB Flash (8K x 14 words) |
| Data EEPROM | 256 B |
| RAM | 1 KB |
| ROM | 1 KB |
| Maximum CPU Speed | 32 MHz (200 ns instruction cycle) |
| Supply Voltage (Vdd) | 1.8 V to 3.6 V (LF family) |
| I/O Pins | 25 (shared with analog/peripheral functions) |
| ADC | 12-bit differential ADC2, up to 11 channels |
| DAC | Two 8-bit DAC modules |
| Op-Amps | Two on-chip operational amplifiers |
| Comparators | Three with selectable reference |
| Timers | Three 16-bit timers (Timer0/1/2) |
| PWM | Four 10-bit PWM with auto-shutdown |
| Communication | 2x EUSART, 2x MSSP (I²C/SPI) |
| Package | 28-pin SOIC (SO, wide-body, 7.5 mm) |
| Operating Temperature | -40 °C to +85 °C (Industrial, "I") |
| Mounting Type | Surface Mount |
| MSL Level | 1 (per JEDEC J-STD-020) |
| RoHS Status | Compliant |
| Lead-Free / Halogen-Free | Yes (per Microchip product page) |
PIC16LF1786-I/SO Pin Configuration
| Pin 1 | MCLR/Vpp/RA3 — Master Clear (reset) input or ICSP programming voltage; can also serve as RA3 digital I/O |
| Pin 2 | RA0/AN0/C1IN0+/DAC1OUT — PORTA bit 0 / Analog input 0 / Comparator 1 positive input / DAC1 output |
| Pin 3 | RA1/AN1/C1IN1-/DAC1REF+/OPA1IN+ — PORTA bit 1 / Analog input 1 / Comparator 1 negative input / DAC1 reference / Op-amp 1 positive input |
| Pin 4 | RA2/AN2/C1OUT/DAC2REF+ — PORTA bit 2 / Analog input 2 / Comparator 1 output / DAC2 reference |
| Pin 5 | RA3 — (see pin 1 - dual function on this package) |
| Pin 6 | RA4/AN3/C1IN2-/OPA1IN-/T0CKI — PORTA bit 4 / Analog input 3 / Comparator 1 negative input / Op-amp 1 negative input / Timer0 clock |
| Pin 7 | RA5/AN4/C2IN1+/DAC2OUT/SS1 — PORTA bit 5 / Analog input 4 / Comparator 2 positive input / DAC2 output / SPI1 slave select |
| Pin 8 | Vss — Ground reference |
| Pin 9 | RA7/OSC1/CLKIN — PORTA bit 7 / Oscillator crystal input / external clock input |
| Pin 10 | RA6/OSC2/CLKOUT — PORTA bit 6 / Oscillator crystal output / clock output |
| Pin 11 | RC0/SOSCO — PORTC bit 0 / Secondary oscillator output (32 kHz crystal) |
| Pin 12 | RC1/SOSCI — PORTC bit 1 / Secondary oscillator input (32 kHz crystal) |
| Pin 13 | RC2/AN5/C2IN2-/OPA2IN-/DAC1REF- — PORTC bit 2 / Analog input 5 / Comparator 2 negative input / Op-amp 2 negative input / DAC1 reference |
| Pin 14 | RC3/AN6/C2IN3-/OPA2IN+/SS2 — PORTC bit 3 / Analog input 6 / Comparator 2 negative input / Op-amp 2 positive input / SPI2 slave select |
| Pin 15 | RC4/AN7/C2OUT/SDA1/SDI1 — PORTC bit 4 / Analog input 7 / Comparator 2 output / I²C1 SDA / SPI1 data in |
| Pin 16 | RC5/AN8/SCL1/SCK1 — PORTC bit 5 / Analog input 8 / I²C1 SCL / SPI1 clock |
| Pin 17 | RC6/AN9/SS1/TX1/CK1 — PORTC bit 6 / Analog input 9 / SPI1 slave select / EUSART1 TX / EUSART1 clock |
| Pin 18 | RC7/AN10/SDI1/RX1/DT1 — PORTC bit 7 / Analog input 10 / SPI1 data in / EUSART1 RX / EUSART1 data |
| Pin 19 | Vss — Ground reference (second Vss pin) |
| Pin 20 | Vdd — Positive supply voltage 1.8 V – 3.6 V |
| Pin 21 | RB0/AN12/C3IN0+/CCP4/SDA2/SDI2 — PORTB bit 0 / Analog input 12 / Comparator 3 positive input / CCP4 / I²C2 SDA / SPI2 data in |
| Pin 22 | RB1/AN10/C3IN1-/P1C/CCP3/SCL2/SCK2 — PORTB bit 1 / Analog input 10 / Comparator 3 negative input / PWM1C output / CCP3 / I²C2 SCL / SPI2 clock |
| Pin 23 | RB2/AN8/C3IN2-/P1B — PORTB bit 2 / Analog input 8 / Comparator 3 negative input / PWM1B output |
| Pin 24 | RB3/AN9/C3IN3-/P1A/CCP2 — PORTB bit 3 / Analog input 9 / Comparator 3 negative input / PWM1A output / CCP2 |
| Pin 25 | RB4/AN11/P1D/C2OUT — PORTB bit 4 / Analog input 11 / PWM1D output / Comparator 2 output |
| Pin 26 | RB5/AN13/P2A/CCP1/TX2 — PORTB bit 5 / Analog input 13 / PWM2A output / CCP1 / EUSART2 TX |
| Pin 27 | RB6/ICSPCLK/ICDCLK — PORTB bit 6 / ICSP clock / ICD clock |
| Pin 28 | RB7/ICSPDAT/ICDDAT — PORTB bit 7 / ICSP data / ICD data |
Typical Applications
PIC16LF1786-I/SO is suitable for 7 applications: Industrial 4-20 mA Sensor Transmitter, Battery-Powered IoT Edge Sensor Node, BLDC / Small Motor PWM Controller, Capacitive Touch User Interface, LED Lighting Color-Mixing Controller, Medical / Wellness Wearable Device, Automotive Sensor / Body Electronics Module.
Industrial 4-20 mA Sensor Transmitter
The PIC16LF1786-I/SO is well suited for 4 mA–20 mA loop-powered sensor transmitters because its LF 1.8 V–3.6 V supply range matches typical 2.7 V–3.3 V ratiometric bridges, while the integrated 12-bit differential ADC2 with hardware averaging replaces a separate sigma-delta front-end, cutting BOM cost by approximately $1.50 per node. The two on-chip op-amps close the loop for current-sensed excitation and the second op-amp buffers the bridge output, so the design needs only a precision reference and a handful of passives to reach 0.1 % nonlinearity. Compared with a discrete op-amp + ADC + MCU solution, the LF1786 reduces board area by roughly 40 %. NanoWatt XLP sleep current below 1 µA also enables IEC 61508-style 4 mA loop budgets for 4-20 mA HART-style transmitters.
Recommended
Battery-Powered IoT Edge Sensor Node
For battery-powered IoT edge nodes, the PIC16LF1786-I/SO offers nanoWatt XLP sleep currents below 1 µA and 1.8 V operation, allowing a CR2032 coin cell to last 5+ years in a 1 % duty-cycle wake-and-transmit cycle. The 14 KB Flash holds a small LoRaWAN or BLE-link layer plus sensor-fusion code, while the 32 MHz HFINTOSC provides enough MIPS to wake, sample, and transmit a packet within a few milliseconds before returning to sleep. The on-chip 12-bit ADC2 with hardware averaging enables temperature, humidity, and PIR signal conditioning without external components. This combination of low Iq, small Flash footprint, and integrated analog makes the LF1786 a strong fit for wireless sensor nodes competing with Cortex-M0+ parts.
Recommended
BLDC / Small Motor PWM Controller
The PIC16LF1786-I/SO integrates four 10-bit PWM channels with auto-shutdown, three 16-bit timers, and two on-chip op-amps, which together cover the control loop, current sensing, and back-EMF amplification for small BLDC or brushed-DC motors up to 24 V. The 32 MHz instruction rate provides 200 ns PWM resolution - sufficient for sensorless trapezoidal commutation in fans, pumps, and small appliances. The PWM auto-shutdown input reacts to over-current in microseconds, providing hardware-level protection that offloads the CPU interrupt path. Compared with an MCU plus external gate driver, the integrated analog chain reduces PCB area by 30-50 %.
Recommended
Capacitive Touch User Interface
The PIC16LF1786-I/SO supports mTouch capacitive touch sensing through its CTMU (Charge Time Measurement Unit) hardware block, which measures capacitance with sub-10 fF resolution on up to 11 channels. The 14 KB Flash hosts a touch-key library with slider/wheel algorithms, while the 1 KB RAM holds state machines and debounce buffers. The 12-bit ADC2 is repurposed for proximity and moisture-compensation scans on the same I/O, eliminating the need for a dedicated touch controller. Industrial -40 °C to +85 °C temperature grade and 1.8 V supply allow direct Li-ion battery operation, suiting consumer and appliance front panels.
Recommended
LED Lighting Color-Mixing Controller
The PIC16LF1786-I/SO drives RGBW or warm-white + cool-white LED strings through its four 10-bit PWM channels, providing smooth 16-million-color mixing with 1 kHz PWM frequency above the flicker-fusion threshold. The two 8-bit DACs provide analog bias points for current-mode LED drivers, while the three comparators sense overtemperature from NTC thermistors and fold back current. The MSSP peripheral drives APA102 or WS2812-style digital LED strips over SPI, enabling Wi-Fi-less local lighting controllers. With 1.8 V supply the design runs directly from a USB or low-voltage DC rail.
Recommended
Medical / Wellness Wearable Device
The PIC16LF1786-I/SO fits low-power medical and wellness wearables such as pulse oximeter front-ends, fitness bands, and continuous glucose monitor (CGM) sub-modules where 1.8 V battery operation and sub-µA sleep currents are mandatory. The 12-bit differential ADC2 with hardware averaging reads photodiode current from SpO2 sensors with 0.1 % noise-free resolution, while the two on-chip op-amps provide transimpedance and gain stages. According to Microchip application notes, the LF1786 firmware footprint of 8K x 14 instruction words is enough to host a Bluetooth Low Energy GATT profile alongside the sensor-fusion code. The 28-pin SOIC package is large for a wristband, but pairs well with chest-strap or disposable patch form factors.
Recommended
Automotive Sensor / Body Electronics Module
While the industrial -I/-SO grade targets non-safety automotive body modules such as seat controllers, HVAC flap drivers, and ambient lighting nodes, the PIC16LF1786-I/SO is commonly used at 12 V battery nodes with a simple LDO or buck pre-regulator. The LF1786 provides 14 KB Flash for CAN-capable gateway firmware, four PWM channels for motor or LED drivers, and a 12-bit ADC2 for sensor reads. Its 1.8 V–3.6 V supply is post-regulated by an external LDO. Designers targeting AEC-Q100 should select PIC16LF1786-E/SO (extended temp) or the automotive-grade PIC16F1786-I/SO variant with appropriate PPAP documentation, since the standard -I grade is not AEC-Q100 qualified.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF1786-I/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16LF1786-I/SS | PIC16F1786-I/SO | PIC16LF1787-I/SO | PIC16LF1784-I/SO | PIC16LF1783-I/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-pin SOIC (SO, 7.5 mm) | 28-pin SSOP (SS, 5.3 mm) - different footprint | 28-pin SOIC (SO) - same | 28-pin SOIC (SO) - same | 28-pin SOIC (SO) - same | 28-pin SOIC (SO) - same |
| Flash | 14 KB | 14 KB | 14 KB | 28 KB | 7 KB | 7 KB |
| RAM | 1 KB | 1 KB | 1 KB | 2 KB | 512 B | 512 B |
| Vdd Range | 1.8 V – 3.6 V (LF) | 1.8 V – 3.6 V | 2.3 V – 5.5 V | 1.8 V – 3.6 V | 1.8 V – 3.6 V | 1.8 V – 3.6 V |
| Op-Amps | 2 | 2 | 2 | 2 | 1 | 2 |
| 8-bit DACs | 2 | 2 | 2 | 2 | 1 | 1 |
| Comparators | 3 | 3 | 3 | 3 | 2 | 2 |
| PWM Channels (10-bit) | 4 | 4 | 4 | 4 | 3 | 3 |
| ADC2 Channels (12-bit) | 11 | 11 | 11 | 11 | 9 | 9 |
Key Differentiators
- Doubled Flash versus PIC16LF1784 same-package part (vs PIC16LF1784-I/SO)
- Two integrated op-amps reduce BOM cost (vs PIC16LF1784-I/SO)
- Lower Vdd range supports battery-direct operation (vs PIC16F1786-I/SO)
- Industrial temperature grade on standard catalog part (vs PIC16F1786-E/SO)
- 12-bit ADC2 hardware accumulation offloads CPU (vs PIC16LF1782-I/SO)
Design Notes
Place a 100 nF X7R ceramic decoupling capacitor within 3 mm of the Vdd pin (pin 20) and a 10 µF bulk capacitor on the same rail. The PIC16LF1786-I/SO's nanoWatt XLP sleep currents below 1 µA are achieved only when the BOR and WDT are configured correctly - enable the LFINTOSC as the WDT clock source via the WDTCON register and clear the WDTPS bits to the lowest setting allowed by your safety analysis. Estimated: at 32 MHz active and 3.3 V Vdd, the core draws roughly 5 mA; budgeting 6 mA for a 3.3 V LDO with a 100 mV dropout keeps the rail within 1 % during PWM bursts.
Route the ICSP signals (MCLR, PGD/ICSPDAT on RB7, PGC/ICSPCLK on RB6) with short traces directly to a 5-pin header, and place the ICSP header at the board edge to avoid interference from analog traces. According to the Microchip ICSP application note, add a 10 kΩ pull-up on MCLR and series 100 Ω resistors on PGC/PGAD to limit in-circuit programming current during flash erase. Keep the analog AVdd pin (tied to Vdd on this package) star-grounded back to the LDO, and route the oscillator traces with a guard ring tied to analog ground to suppress radiated emissions on long cables.
Do not exceed 3.6 V on Vdd - the LF family is not 5 V tolerant, and absolute-maximum violations on MCLR will latch-up the part. Unused I/O pins should be configured as outputs driving low, not left floating, to avoid shoot-through in the input stage. The ADC2 module requires the FVRCVREFSEL bits in the FVRCON register to be set before the ADC reference is stable - allow at least 25 µs of acquisition delay after enabling FVR before triggering the first ADC conversion. Finally, always set the PWM auto-shutdown source (PWMxCONH bits) before enabling the PWM module; otherwise a transient short-circuit can destroy the external MOSFETs before software reacts.
The MSSP I²C peripheral on PIC16LF1786-I/SO supports standard (100 kHz), fast (400 kHz), and fast-plus (1 MHz) modes, but only when SDA and SCL traces are kept under 10 cm and have 4.7 kΩ pull-ups to Vdd. For SPI clock rates above 8 MHz, add a 33 Ω series resistor at the SCK source to dampen reflections on long traces. The EUSART peripheral can be clocked from the FOSC/4 output (CLKOUT) for jitter-sensitive protocols; otherwise accept ±1 % HFINTOSC tolerance in baud-rate calculations.
Compliance Information
RoHS and REACH compliance per Microchip product page. The -I (industrial) grade is not AEC-Q100 qualified; choose -E (extended) grade or PIC16F1786-E/SO for harsh-environment automotive use cases.