PIC16F1786-E/SO - 28-Pin 8-Bit MCU, 14KB Flash, Op Amps | Microchip
MPN: PIC16F1786-E/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.42 | $3.42 |
| 10 | $3.08 | $30.80 |
| 100 | $2.71 | $271.00 |
| 500 | $2.35 | $1,175.00 |
| 1,000 | $1.96 | $1,960.00 |
PIC16F1786-E/SO Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, and a rich set of peripherals such as ADCs, timers, and communication interfaces. The PIC16F1786 belongs to the PIC16F1 enhanced mid-range family, sitting in the broader 8-bit MCU taxonomy (PICmicro -> 8-bit MCU -> embedded microcontroller -> semiconductor). Its enhanced mid-range core delivers up to 8 MIPS at 32 MHz and supports C-optimized compilers, while the integrated op amps and DAC allow direct analog signal chains without external components.
Key features include 14 KB self-programmable Flash, 1 KB RAM, 256 B EEPROM, two rail-to-rail op amps with programmable gain, two 50 ns comparators with 16-bit PWM capture, a 12-bit ADC with up to 17 channels, a 5-bit DAC and a 9-bit DAC, and a built-in mTouch capacitive-sensing peripheral. Communication interfaces include I2C, SPI, and EUSART, while the operating voltage range of 1.8V to 5.5V allows direct battery-powered designs.
The PIC16F1786 uses the enhanced PIC16 mid-range core with a hardware multiplier, 49 instructions, and a 16-level hardware stack. The integrated op amps save board area by replacing external analog front ends for sensors such as load cells, thermistors, or current shunts. The mTouch peripheral supports capacitive buttons and sliders, and the device is supported by MPLAB X IDE, XC8 compilers, and the PICkit debugger ecosystem.
Typical applications include industrial sensor transmitters, smart thermostats and HVAC actuators, automotive body modules, consumer white goods, battery-powered IoT nodes, and lighting-control ballasts. In these designs, the MCU reads a sensor, executes compensation algorithms in firmware, and drives outputs via the 16-bit PWM or 5-bit DAC.
When designing, always place 100 nF decoupling capacitors on each VDD pin within 3 mm of the package and add a bulk 10 uF capacitor on the main rail. Ensure the analog supply AVSS/AVDD pins are correctly filtered and that unused op-amp outputs are disabled in firmware to avoid parasitic quiescent current.
This page synthesizes distributor pricing, same-family pin-compatible alternatives, and practical design notes not found in the manufacturer datasheet, giving a more objective engineering reference for the PIC16F1786-E/SO.
Drop-in alternatives for PIC16F1786-E/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 PIC16F1786-E/SO (same form factor and footprint) — differing in Package, ADC, Comparators, DAC, I/O Pins.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1786-E/SS
✅ Drop-In✓ In Stock
$2.05 / Unit
View Datasheet →PIC16F1786-E/ML
✅ Drop-In✓ In Stock
$2.18 / Unit
View Datasheet →PIC16F1786-I/SO
✅ Drop-In✓ In Stock
$1.71 / Unit
View Datasheet →PIC16F1783-E/SO
✅ Drop-In✓ In Stock
$1.42 / Unit
View Datasheet →PIC16F1784-I/PT
✅ Drop-In✓ In Stock
$1.85 / Unit
View Datasheet →PIC16F1786-E/SO Maximum Ratings & Electrical Characteristics
| Family | PIC16F1xxx Enhanced Mid-Range |
| Core | 8-bit PIC16 Enhanced Mid-Range |
| Program Memory (Flash) | 14 KB |
| RAM | 1 KB |
| EEPROM | 256 B |
| Maximum CPU Speed | 32 MHz (8 MIPS) |
| Operating Voltage | 1.8 V to 5.5 V |
| ADC | 12-bit, up to 17 channels |
| DAC | 1x 5-bit, 1x 9-bit |
| Operational Amplifiers | 2 (rail-to-rail, programmable) |
| Comparators | 2 with 50 ns response |
| PWM | 16-bit, multiple channels |
| Communication | I2C, SPI, EUSART |
| Capacitive Touch | mTouch peripheral |
| Package | 28-pin SOIC (SO, 300 mil) |
| Operating Temperature | -40C to +125C (E suffix) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC16F1786-E/SO Pin Configuration
| Pin 1 | RA1/AN1/CPS7 — Port A bit 1 / Analog input 1 / Cap touch |
| Pin 2 | RA2/AN2/DAC5OUT1 — Port A bit 2 / Analog input 2 / 5-bit DAC output |
| Pin 3 | RA3/AN3/VREF+ — Port A bit 3 / Analog input 3 / VREF+ |
| Pin 4 | RA4/OPA1OUT/T1G — Port A bit 4 / Op amp 1 output / Timer1 gate |
| Pin 5 | RA5/OPA1IN+/SS — Port A bit 5 / Op amp 1 non-inverting input / SPI SS |
| Pin 6 | RE3/MCLR/VPP — Reset / Master Clear / Programming voltage |
| Pin 7 | RA7/OSC1/CLKIN — Port A bit 7 / Oscillator input / External clock |
| Pin 8 | RA6/OSC2/CLKOUT — Port A bit 6 / Oscillator output / Clock out |
| Pin 9 | RC0/SOSCO/T1CKI — Port C bit 0 / Secondary oscillator / Timer1 clock |
| Pin 10 | RC1/SOSCI/CCP2 — Port C bit 1 / Secondary oscillator / CCP2 |
| Pin 11 | RC2/AN12/CCP1 — Port C bit 2 / Analog 12 / CCP1 |
| Pin 12 | RC3/AN13/SCK/SCL — Port C bit 3 / Analog 13 / SPI clock / I2C clock |
| Pin 13 | RC4/AN14/SDI/SDA — Port C bit 4 / Analog 14 / SPI data in / I2C data |
| Pin 14 | RC5/AN15/SDO — Port C bit 5 / Analog 15 / SPI data out |
| Pin 15 | RC6/AN8/TX/CK — Port C bit 6 / Analog 8 / UART TX / clock |
| Pin 16 | RC7/AN9/RX/DT — Port C bit 7 / Analog 9 / UART RX / data |
| Pin 17 | VSS — Ground |
| Pin 18 | VDD — Digital supply voltage |
| Pin 19 | RB7/AN6/OPA2OUT — Port B bit 7 / Analog 6 / Op amp 2 output |
| Pin 20 | RB6/AN5/OPA2IN- — Port B bit 6 / Analog 5 / Op amp 2 inverting input |
| Pin 21 | RB5/AN4/OPA2IN+ — Port B bit 5 / Analog 4 / Op amp 2 non-inverting input |
| Pin 22 | RB4/AN11/CPS4 — Port B bit 4 / Analog 11 / Cap touch |
| Pin 23 | RB3/AN9/C12IN2-/CPS3 — Port B bit 3 / Analog 9 / Comparator input / Cap touch |
| Pin 24 | RB2/AN8/C12IN1-/CPS2 — Port B bit 2 / Analog 8 / Comparator input / Cap touch |
| Pin 25 | RB1/AN7/C12IN0-/CPS1 — Port B bit 1 / Analog 7 / Comparator input / Cap touch |
| Pin 26 | RB0/AN10/C12IN+/FLT0 — Port B bit 0 / Analog 10 / Comparator input / PWM fault |
| Pin 27 | AVSS — Analog ground |
| Pin 28 | AVDD — Analog supply voltage |
Typical Applications
PIC16F1786-E/SO is suitable for 6 applications: Industrial Sensor Transmitter, Smart Thermostat and HVAC Actuator, Automotive Body Module, Consumer White Goods Control Board, Battery-Powered IoT Sensor Node, LED Lighting Driver and Ballast.
Industrial Sensor Transmitter
The PIC16F1786 fits industrial sensor transmitters because its two integrated rail-to-rail op amps condition bridge or shunt sensors directly, eliminating external instrumentation amplifiers. The 12-bit ADC delivers 0.024% resolution at full scale, while the 1.8V to 5.5V input range supports 4-20 mA loop or 24V bus operation. With 14 KB Flash and 1 KB RAM, the MCU runs linearization, temperature compensation, and HART-style communication firmware. The 16-bit PWM drives a 4-20 mA output stage, and the EUSART interfaces an isolated HART modem. Compared with a discrete op-amp + MCU solution, the integrated analog saves 4-6 components and reduces board area by ~30%.
Recommended
Smart Thermostat and HVAC Actuator
The PIC16F1786 is well suited for smart thermostats and HVAC actuators because its 12-bit ADC reads NTC thermistors with 0.1C resolution, while the integrated op amp conditions the resistive bridge. The mTouch peripheral supports capacitive touch buttons and sliders for the user interface without external touch ICs. The 16-bit PWM precisely drives TRIAC gates or proportional valves, and the 1.8V to 5.5V input range allows direct 3.3V or 5V operation from a small wall adapter. With 14 KB Flash, designers implement PID loops, weekly scheduling, and Wi-Fi/BLE co-processor command parsing. Compared with PIC16F1764, this part adds two comparators for HVAC over-temperature protection.
Recommended
Automotive Body Module
The PIC16F1786 operates over the automotive -40C to +125C extended temperature range, qualifying it for body-control modules such as seat controllers, mirror adjusters, and lighting drivers. The 12-bit ADC reads current shunts and potentiometers for seat-position memory, while two comparators detect over-current conditions and trigger PWM shutdown within 50 ns. The EUSART or LIN-compatible UART interfaces a body-control bus, and the 16-bit PWM drives LED matrices or motor bridges. With 14 KB Flash, the MCU runs CAN/LIN slave stacks, LED dimming algorithms, and seat-memory profiles. Compared with PIC16F15376, this part integrates op amps for sensor conditioning that external MCUs lack.
Recommended
Consumer White Goods Control Board
The PIC16F1786 fits washing machines, dishwashers, and microwave ovens because its op amps and comparators interface directly with motor current shunts and temperature sensors. The 12-bit ADC measures water level, motor RPM, and humidity, while the 16-bit PWM drives BLDC motor commutation or inverter stages. The 1.8V to 5.5V input range supports direct 5V operation, and the 28-pin SOIC package is compatible with high-volume SMT lines. With 14 KB Flash and 1 KB RAM, the MCU runs motor control algorithms, user-interface logic, and safety timers. Compared with PIC16F1509, this part adds op amps for current sensing that external circuits would require.
Recommended
Battery-Powered IoT Sensor Node
The PIC16F1786 operates from 1.8V to 5.5V and integrates two op amps and a 12-bit ADC, making it suitable for battery-powered IoT sensor nodes operating from 3V coin cells or 2xAA batteries. Sleep current in the low-microamp range extends battery life to multi-year horizons. The mTouch peripheral adds capacitive user-interface buttons, and the EUSART interfaces a BLE or LoRa co-processor for wireless reporting. With 14 KB Flash, designers implement sensor fusion, edge filtering, and over-the-air update bootloaders. Compared with PIC16F1615, this part adds two comparators that wake the MCU from sleep when sensor thresholds are exceeded.
Recommended
LED Lighting Driver and Ballast
The PIC16F1786 drives LED lighting fixtures because its 16-bit PWM delivers dimming resolution down to 0.0015% and supports logarithmic dimming curves. The two integrated op amps condition 4-20 mA dimming signals or photodiode feedback for closed-loop constant-current regulation. The 12-bit ADC monitors LED junction temperature, while the EUSART implements DMX-512 or DALI dimming protocols. With 14 KB Flash, the MCU runs color-mixing algorithms for tunable-white or RGBW fixtures. Compared with PIC16F15214, this part adds the second op amp that two-stage current-feedback loops require.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1786-E/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1786-E/SS | PIC16F1786-E/ML | PIC16F1786-I/SO | PIC16F1783-E/SO | PIC16F1784-I/PT |
|---|---|---|---|---|---|---|
| Package | SOIC-28 (300 mil) | SSOP-28 (5.30 mm) | QFN-28 (6x6 mm) | SOIC-28 - same | SOIC-28 - same | TQFP-44 |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 14 KB | 14 KB | 14 KB | 14 KB | 7 KB | 14 KB |
| RAM | 1 KB | 1 KB | 1 KB | 1 KB | 512 B | 1 KB |
| Operational Amplifiers | 2 | 2 | 2 | 2 | 1 | 2 |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit | 12-bit |
| Temperature Grade | -40C to +125C | -40C to +125C | -40C to +125C | -40C to +85C | -40C to +125C | -40C to +85C |
Key Differentiators
- Two integrated rail-to-rail op amps (vs PIC16F1783-E/SO)
- 1 KB RAM vs 512 B on smaller siblings (vs PIC16F1783-E/SO)
- Pin compatibility across SOIC/SSOP/QFN packages (vs PIC16F1786-E/SS)
Design Notes
Place a 100 nF decoupling capacitor on each VDD and AVDD pin within 3 mm of the package. Add a bulk 10 uF ceramic or tantalum capacitor on the main 5V or 3.3V rail. Connect VSS and AVSS to a single ground star-point near the MCU to avoid ground-loop noise coupling into the analog inputs. Estimated: a typical 5V/32 MHz PIC16F1786 design draws 7-10 mA active and <5 uA sleep current.
When using the integrated op amps, always configure unused op-amp inputs to mid-supply via firmware or external resistors to avoid parasitic quiescent current. The 12-bit ADC's acquisition time must be set to at least 1.5 us for 10k source impedance - shorter settings degrade conversion accuracy. The mTouch capacitive inputs require firmware calibration per PCB layout and should not share pins with high-impedance analog signals without proper guarding.
Route the analog op-amp feedback traces away from digital PWM traces to avoid capacitive coupling. Use a guard ring around high-impedance analog inputs. The 28-pin SOIC has 1.27 mm pin pitch - allow at least 8 mil trace width with 8 mil clearance for escape routing. Place the ICSP programming header near the MCU pins (1, 28) to simplify in-circuit programming, and use a 4.7 kohm pull-up on MCLR for normal operation.
Compliance Information
RoHS and REACH compliant per Microchip product page. Lead-free (Pb-free) reflow profile per JEDEC J-STD-020. AEC-Q100 not qualified - the -E suffix indicates extended industrial temperature, not automotive qualification.