PIC16F1786-I/SP - 8-Bit 32MHz MCU, 14KB Flash, 28-SPDIP | Microchip
MPN: PIC16F1786-I/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.46 | $2.46 |
| 10 | $2.21 | $22.10 |
| 100 | $1.97 | $197.00 |
| 500 | $1.72 | $860.00 |
| 1,000 | $1.51 | $1,510.00 |
| 3,000 | $1.3 | $3,900.00 |
PIC16F1786-I/SP Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, program and data memory, peripherals, and I/O. PIC® XLP™ (eXtreme Low Power) parts add proprietary nanoWatt technology to minimise active and sleep current. The PIC16F1786 family targets advanced analogue and sensor-interface applications, sitting in Microchip's hierarchy between baseline PIC10/12/16 and 16-bit dsPIC®/PIC24 controllers.
Key features include 25 I/O pins, two 8-bit timers, one 16-bit timer, three op-amps with rail-to-rail input/output selectable bandwidth up to 5MHz, and 36-level LDO core voltage regulator. The device supports 1.8V-3.6V core operation from a 2.3V-5.5V supply range, runs at 32MHz from internal oscillator, and offers in-circuit serial programming (ICSP) plus in-circuit debugging (ICD). Peripherals also include mTouch™ capacitive touch, PWM, EUSART, I2C and SPI.
Architecturally, the PIC16F1786 uses a 14-bit wide instruction word with a hardware multiplier, automatic context saving on interrupts, and a 16-level hardware stack. The integrated op-amps, 8-bit DAC and 12-bit ADC enable closed-loop analogue control without external components, while the PSMC supports high-resolution digital control of power-conversion stages.
Typical applications include LED lighting and SSL drivers, battery charging, motor control (BLDC, brushed), digital power supplies, sensor conditioning, and industrial control. Designers use it where on-chip analogue reduces BOM and where nanoWatt XLP enables long battery life.
When designing with this MCU, ensure decoupling capacitors (100nF plus 10µF) sit within 4mm of VDD/VSS pins, keep analogue traces short, and respect the 5.5V absolute-maximum VDD. The 28-SPDIP package supports hand prototyping and breadboard work, ideal for the education and small-production segments.
Drop-in alternatives for PIC16F1786-I/SP — 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-I/SP (same form factor and footprint) — differing in Comparators, I/O Pins, Package, Programming/Debug, Timers.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1787-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1788-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1789-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1783-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1784-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1786-I/SO
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.71 / Unit
View Datasheet →PIC16F1786-I/SP Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC® 8-bit RISC (enhanced mid-range) |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| Data Memory (RAM) | 1 KB |
| EEPROM | 256 B |
| Maximum CPU Speed | 32 MHz (8 MIPS) |
| Supply Voltage (VDD) | 2.3 V to 5.5 V |
| I/O Pins | 25 |
| ADC | 12-bit, up to 11 channels |
| DAC | 8-bit, 1 channel |
| Operational Amplifiers | 3 (rail-to-rail I/O, up to 5 MHz GBW) |
| Comparators | 1 fast comparator |
| Timers | 2 x 8-bit, 1 x 16-bit |
| PWM/PSMC | PSMC (Programmable Switched Mode Controller) + CCP/ECCP |
| Communication | EUSART, I2C, SPI |
| Operating Temperature | -40 °C to +85 °C (industrial -I) |
| Package | 28-pin SPDIP (SP), through-hole |
| Programming/Debug | ICSP + ICD (2-wire) |
| RoHS Status | Compliant |
PIC16F1786-I/SP Pin Configuration
| Pin 1 | RA3/AN3/VREF+/T1G/CMP1/PGM — Bidirectional I/O / ADC input / comparator / ICSP programming |
| Pin 2 | RA4/AN4/T1G/CMP2 — Bidirectional I/O / ADC input / comparator |
| Pin 3 | RA5/MCLR/VPP/AN5 — Bidirectional I/O / Master Clear (Reset) input / programming voltage |
| Pin 4 | RA6/OSC2/CLKOUT — Bidirectional I/O / crystal oscillator output |
| Pin 5 | RA7/OSC1/CLKIN — Bidirectional I/O / crystal oscillator input |
| Pin 6 | RE3/MCLR/VPP — Input only / Master Clear alternative |
| Pin 7 | VDD — Positive supply (2.3V-5.5V) |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RB0/AN12/CCP4/SRI — Bidirectional I/O / ADC input / CCP / SR latch input |
| Pin 10 | RB1/AN10/OPA1OUT/C12IN0- — Bidirectional I/O / OPA1 output |
| Pin 11 | RB2/AN8/OPA2OUT/C12IN1- — Bidirectional I/O / OPA2 output |
| Pin 12 | RB3/AN9/C12IN2-/CPS3 — Bidirectional I/O / capacitive touch input |
| Pin 13 | RB4/AN11/CPS4 — Bidirectional I/O / capacitive touch input |
| Pin 14 | RB5/AN13/CPS5 — Bidirectional I/O / capacitive touch input |
| Pin 15 | RB6/ICSPCLK/ICDCLK — Bidirectional I/O / ICSP clock / ICD clock |
| Pin 16 | RB7/ICSPDAT/ICDDAT — Bidirectional I/O / ICSP data / ICD data |
| Pin 17 | RC0/SOSCO/PSMC1A/CPS16 — Bidirectional I/O / PSMC output A |
| Pin 18 | RC1/SOSCI/PSMC1B/CPS17 — Bidirectional I/O / PSMC output B |
| Pin 19 | VSS — Ground reference (second) |
| Pin 20 | VDD — Positive supply (second) |
| Pin 21 | RC2/CCP1/OPA3OUT — Bidirectional I/O / CCP / OPA3 output |
| Pin 22 | RC3/PSMC2A/SCL — Bidirectional I/O / PSMC / I2C clock |
| Pin 23 | RC4/PSMC2B/SDA — Bidirectional I/O / PSMC / I2C data |
| Pin 24 | RC5/CCP2/SRCLK — Bidirectional I/O / CCP / SR latch clock |
| Pin 25 | RC6/TX/CK — Bidirectional I/O / EUSART TX |
| Pin 26 | RC7/RX/DT — Bidirectional I/O / EUSART RX |
| Pin 27 | RD0/PSMC3A — Bidirectional I/O / PSMC output |
| Pin 28 | RD1/PSMC3B — Bidirectional I/O / PSMC output |
Typical Applications
PIC16F1786-I/SP is suitable for 6 applications: LED Lighting and SSL Drivers, Battery Charging and Power Management, Sensor Signal Conditioning and IoT Nodes, Motor Control (BLDC, Brushed, Stepper), Digital Power and Switching Power Supplies, Industrial Control and PLC I/O.
LED Lighting and SSL Drivers
The PIC16F1786-I/SP suits solid-state-lighting (SSL) LED drivers by combining the PSMC, three 5 MHz op-amps, 12-bit ADC, and 8-bit DAC on a single 32 MHz 8-bit core. The PSMC generates high-resolution PWM for current-mode buck or boost LED drivers, while the integrated op-amps form closed-loop current-sense amplifiers, eliminating external analogue components. The 14 KB Flash accommodates dimming curves, thermal-foldback algorithms, and DALI/Casambi-style digital protocols without external memory.
Recommended
Battery Charging and Power Management
The PIC16F1786's 12-bit ADC monitors battery voltage and charge current with sub-mV resolution, while the 8-bit DAC sets programmable charge-voltage references for Li-Ion, NiMH, or lead-acid chemistries. The PSMC delivers high-resolution PWM to switching chargers (buck, buck-boost, SEPIC), and the on-chip op-amps condition current-sense signals for CC/CV control loops. nanoWatt XLP™ sleep mode keeps standby current below 1 µA, extending shelf life in cordless-tool or backup-power designs.
Recommended
Sensor Signal Conditioning and IoT Nodes
The PIC16F1786 integrates three rail-to-rail op-amps that condition bridge, thermocouple, or pH-sensor outputs directly without external instrumentation amplifiers. Combined with the 12-bit ADC (11 ch) and 8-bit DAC, the MCU performs excitation, amplification, linearisation, and calibration on-chip, drastically reducing BOM for IoT environmental, gas-detection, and weigh-scale nodes. Sub-µA sleep and 25 I/O lines allow direct connection of multiple sensor front-ends to a battery-powered wireless module.
Recommended
Motor Control (BLDC, Brushed, Stepper)
The PIC16F1786's PSMC provides complementary PWM with programmable dead-band and fault input, ideal for 3-phase BLDC, brushed DC, and bipolar stepper drives up to several hundred watts. The three on-chip 5 MHz op-amps amplify low-side shunt currents, while the 12-bit ADC samples back-EMF or phase currents synchronously with the PWM carrier for field-oriented control (FOC). 25 I/O lines drive gate drivers and Hall-sensor inputs without external logic, and 14 KB Flash holds sensorless-startup algorithms.
Recommended
Digital Power and Switching Power Supplies
The PSMC, 12-bit ADC and on-chip op-amps make the PIC16F1786 a compact digital controller for AC-DC, DC-DC, and PFC stages. The PSMC drives the main switch with high-resolution duty control and supports current-mode topology, while the op-amp and ADC sample current and voltage for digital compensation. The 14 KB Flash fits power-factor-correction, soft-start, and protection-state code, and the 2.3V-5.5V supply permits direct start-up from rectified mains via an external regulator.
Recommended
Industrial Control and PLC I/O
The PIC16F1786-I/SP's 28-SPDIP through-hole package and -40°C to +85°C industrial temperature range suit PLC-style digital and analogue I/O modules. The 25 I/O lines interface to relays, opto-isolated inputs, and 4-20 mA loops, while the 12-bit ADC reads process variables and the 8-bit DAC provides analogue outputs for valve control. The fast comparator supports zero-crossing detection, and the EUSART/SPI/I2C peripherals connect to industrial buses and HMI displays.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1786-I/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1787-I/SP | PIC16F1788-I/SP | PIC16F1789-I/SP | PIC16F1783-I/SP | PIC16F1784-I/SP |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SPDIP (SP) | 28-SPDIP (SP) - same | 28-SPDIP (SP) - same | 28-SPDIP (SP) - same | 28-SPDIP (SP) - same | 28-SPDIP (SP) - same |
| Flash Program Memory | 14 KB | 14 KB | 28 KB | 28 KB | 7 KB | 7 KB |
| Data RAM | 1 KB | 3 KB | 2 KB | 2 KB | 512 B | 1 KB |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B | 256 B |
| Maximum CPU Speed | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| ADC | 12-bit, 11 ch | 12-bit, 11 ch | 12-bit, 17 ch | 12-bit, 17 ch | 12-bit, 11 ch | 12-bit, 11 ch |
| DAC | 8-bit, 1 ch | 8-bit, 1 ch | 8-bit, 1 ch | 8-bit, 2 ch | 8-bit, 1 ch | 8-bit, 1 ch |
| Op-Amps | 3 | 3 | 3 | 3 | 2 | 2 |
Key Differentiators
- Highest memory density in 28-SPDIP PIC16F178x family without doubling Flash (vs PIC16F1783-I/SP)
- Triple op-amps + PSMC in a 28-pin MCU (vs PIC16F1784-I/SP)
- Direct upgrade path to 28 KB Flash within the same footprint (vs PIC16F1787-I/SP)
Design Notes
Decouple VDD/VSS with a 100 nF X7R ceramic placed within 4 mm of the pins, plus a bulk 10 µF tantalum or aluminium-polymer cap on the same rail. The PIC16F1786 has two VDD pins (7 and 20) and two VSS pins (8 and 19) that MUST each be decoupled - leaving VDD20 floating causes ADC reference noise and erratic resets. For battery designs, place a 100 nF + 1 µF combo on each rail entry point to suppress inrush spikes from the load.
Keep analogue traces (ANx, OPAxOUT, VREF+) short and routed away from PWM outputs (PSMC1A/B, PSMC2A/B, PSMC3A/B). Use a ground plane under the MCU and route digital returns through a separate net, joining only at VSS pin 19. The 28-SPDIP package is through-hole and works on 2-layer FR4; for 4-layer designs, dedicate layer 2 to ground and layer 3 to +5V/3.3V rails to provide excellent EMC for the ADC and PSMC subsystems.
Do not leave the MCLR/RA5 pin floating - it requires a 10 kΩ pull-up to VDD to prevent spurious resets from EMI, even when unused. The ICSP/ICD pins (RB6/ICSPCLK, RB7/ICSPDAT) must be accessible via test pads or a 2x3 header for production programming. When using the on-chip op-amps, configure unused op-amp output pins as digital outputs and disable the analogue input buffers via ANSEL to save ~3 µA per channel and eliminate ADC crosstalk.
Compliance Information
RoHS and REACH compliance per Microchip product environmental certification. Not AEC-Q100 qualified - PIC16F1786 is industrial-grade (-40°C to +85°C). For automotive designs, Microchip recommends PIC16F1786-E/SP or PIC18F equivalent with AEC-Q100 qualification.