PIC16F1786-I/SS - 8-bit MCU, 14KB Flash, 32MHz, 28-SSOP | Microchip
MPN: PIC16F1786-I/SS β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.61 | $4.61 |
| 10 | $4.15 | $41.50 |
| 100 | $3.69 | $369.00 |
| 500 | $3.32 | $1,660.00 |
| 1,000 | $2.96 | $2,960.00 |
| 3,000 | $2.62 | $7,860.00 |
PIC16F1786-I/SS Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory (Flash/ROM), data memory (RAM), and peripherals into one package. PIC microcontrollers from Microchip use a RISC-based Harvard architecture optimized for deterministic interrupt response and low-power operation, making them suitable for embedded control across consumer, industrial, and automotive markets. Within the broader taxonomy, the PIC16F1786 belongs to the PIC16 enhanced mid-range family -> 8-bit MCU -> microcontroller -> embedded processor -> semiconductor IC.
Key features of the PIC16F1786 include Core Independent Peripherals such as the Configurable Logic Cell (CLC), Complementary Waveform Generator (CWG), Numerically Controlled Oscillator (NCO), and Zero-Cross Detect (ZCD), enabling complex control tasks without CPU intervention. The on-chip op-amp and fast comparator reduce external component count for sensor signal conditioning. With 24 I/O pins and multiple timer modules, the device supports PWM, capture, and compare functions for motor and lighting control.
The PIC16F1786 uses Microchip's enhanced mid-range core with 49 instructions and 16-level hardware stack, executing most instructions in a single 200ns instruction cycle at 20MHz. The integrated 32MHz internal oscillator eliminates external clock components in cost-sensitive designs. Advanced peripherals like the CLC allow logic functions to be implemented in hardware, reducing code overhead and improving real-time performance.
Typical applications include LED lighting drivers, motor control, battery chargers, sensor signal conditioning, IoT edge nodes, and consumer appliances. The op-amp plus 12-bit ADC combination makes the part well-suited for thermocouple, pressure, and current-sensing front-ends without external instrumentation amplifiers.
When designing with this MCU, ensure MPLAB X IDE is used with the XC8 compiler for firmware development. The PICkit 5 programmer/debugger provides in-circuit programming through the ICSP interface. Reserve adequate decoupling (100nF plus 10uF bulk) near VDD pins and follow Microchip AN230 for EMI/EMC best practices.
This page synthesizes distributor pricing from DigiKey and Mouser, a curated drop-in alternative list with same-footprint Microchip variants, and practical design notes not consolidated in the manufacturer datasheet.
Drop-in alternatives for PIC16F1786-I/SS β 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/SS (same form factor and footprint) β differing in Comparators, Package, DAC, Program Memory (Flash), Communication Interfaces.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
PIC16F1786-E/SS
β Drop-Inβ In Stock
$2.05 / Unit
View Datasheet βPIC16F1783-I/SS
β Drop-Inπ Reference alternative (not in catalog)
PIC16F1782-I/SS
β Drop-Inβ In Stock
$1.38 / Unit
View Datasheet βPIC16F1716-I/SS
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
PIC16F1768-I/SS
β Drop-Inπ Reference alternative (not in catalog)
PIC16F1708-I/SS
β Drop-Inβ In Stock
$1.18 / Unit
View Datasheet βPIC16F1786-I/SS Maximum Ratings & Electrical Characteristics
| Core | PIC16 enhanced mid-range 8-bit RISC |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| RAM | 1 KB |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 32 MHz |
| Instruction Cycle Time | 200 ns at 20 MHz |
| Operating Voltage (VDD) | 2.3 V to 5.5 V |
| I/O Pins | 24 |
| ADC | 12-bit, up to 11 channels |
| DAC | 8-bit and 5-bit, 1 channel each |
| Operational Amplifier | 1 on-chip op-amp |
| Comparators | 2 (1 fast comparator + 1 standard) |
| Timers | 4 (8-bit / 16-bit mix) |
| PWM Modules | 4 (10-bit enhanced) |
| Communication Interfaces | 1x I2C, 1x SPI, 1x EUSART |
| Core Independent Peripherals | CLC, CWG, NCO, ZCD, DSM |
| Internal Oscillator | 32 MHz HF, 31 kHz LF |
| Package | 28-pin SSOP (5.30 mm body) |
| Operating Temperature | -40 C to +85 C (industrial) |
| Mounting Type | Surface Mount |
| MSL Level | 1 (unlimited floor life) |
| RoHS Status | Compliant |
PIC16F1786-I/SS Pin Configuration
| Pin 1 | RA7/OSC1/CLKIN β GPIO RA7 / external clock input / crystal oscillator input |
| Pin 2 | RA6/OSC2/CLKOUT β GPIO RA6 / crystal oscillator output / clock output |
| Pin 3 | RA5/MCLR/VPP β GPIO RA5 / Master Clear reset (active low) / programming voltage |
| Pin 4 | RA4/AN3/T1G β GPIO RA4 / ADC input 3 / Timer1 gate input |
| Pin 5 | RA3/AN2/C1IN+/VREF+ β GPIO RA3 / ADC input 2 / Comparator1 non-inverting / voltage reference + |
| Pin 6 | RA2/AN1/C2IN+ β GPIO RA2 / ADC input 1 / Comparator2 non-inverting input |
| Pin 7 | RA1/AN0/OPA1OUT β GPIO RA1 / ADC input 0 / op-amp 1 output |
| Pin 8 | RA0/AN4/OPA1IN- β GPIO RA0 / ADC input 4 / op-amp 1 inverting input |
| Pin 9 | VSS β Ground reference |
| Pin 10 | RA12/AN11/DAC2OUT β GPIO RA12 / ADC input 11 / DAC2 output |
| Pin 11 | RA11/AN10/DAC1OUT β GPIO RA11 / ADC input 10 / DAC1 output |
| Pin 12 | RA10/AN9/C2IN1- β GPIO RA10 / ADC input 9 / Comparator2 inverting input |
| Pin 13 | RA9/AN8/C2IN2- β GPIO RA9 / ADC input 8 / Comparator2 inverting input |
| Pin 14 | RA8/AN7/C1IN2- β GPIO RA8 / ADC input 7 / Comparator1 inverting input |
| Pin 15 | RB7/DAC5OUT β GPIO RB7 / DAC5 output |
| Pin 16 | RB6/ICSPCLK β GPIO RB6 / ICSP clock |
| Pin 17 | RB5/ICSPDAT β GPIO RB5 / ICSP data |
| Pin 18 | RB4/AN6 β GPIO RB4 / ADC input 6 |
| Pin 19 | RB3/AN5/CWG1FLT β GPIO RB3 / ADC input 5 / CWG fault input |
| Pin 20 | RB2/OPA1IN+ β GPIO RB2 / op-amp 1 non-inverting input |
| Pin 21 | RB1/C1IN3-/ZCD β GPIO RB1 / Comparator1 inverting input / zero-cross detect output |
| Pin 22 | RB0/INT/C1OUT β GPIO RB0 / external interrupt / Comparator1 output |
| Pin 23 | VDD β Positive supply voltage (2.3 V to 5.5 V) |
| Pin 24 | VSS β Ground reference |
| Pin 25 | RC7 β GPIO RC7 |
| Pin 26 | RC6 β GPIO RC6 |
| Pin 27 | RC5 β GPIO RC5 |
| Pin 28 | RC4 β GPIO RC4 |
Typical Applications
PIC16F1786-I/SS is suitable for 6 applications: LED Lighting Driver and Dimming Control, Industrial Sensor Signal Conditioning, Battery-Powered IoT Edge Node, Small DC Motor and Fan Control, Consumer Appliance User Interface, Automotive Aftermarket Accessory Control.
LED Lighting Driver and Dimming Control
The PIC16F1786-I/SS fits LED lighting because it integrates four 10-bit enhanced PWM channels, a Complementary Waveform Generator (CWG), and a Numerically Controlled Oscillator (NCO) - all core independent peripherals that drive high-resolution dimming and color-mixing without CPU overhead. At 32 MHz the 8-bit core executes most instructions in 125 ns, leaving ample headroom to implement DMX-512, DALI, or WS2812 protocols in firmware. The 12-bit ADC samples ambient light or thermistor feedback, while the on-chip op-amp conditions current-sense signals for closed-loop LED current regulation. Running from 2.3 V to 5.5 V, the part works directly from a single Li-ion cell or a 5 V supply, and the 28-SSOP package keeps the BOM compact for retrofit bulb designs.
Recommended
Industrial Sensor Signal Conditioning
The PIC16F1786-I/SS is well-matched to industrial sensor front-ends because it integrates a precision on-chip operational amplifier, a fast comparator, a 12-bit ADC with up to 11 channels, and dual DACs on a single die. The op-amp can be configured as a transimpedance amplifier for photodiodes or as a non-inverting gain stage for thermocouples and load cells, eliminating an external instrumentation amplifier. The 12-bit ADC delivers 11 ENOB at typical conversion rates, sufficient for pressure, temperature, and strain-gauge digitisation. With 14 KB of Flash, calibration lookup tables, linearisation polynomials, and MODBUS RTU stacks fit comfortably. Industrial -40C to +85C rating covers most factory environments.
Recommended
Battery-Powered IoT Edge Node
The PIC16F1786-I/SS suits battery-powered IoT edge nodes because its XLP (eXtreme Low Power) technology draws sub-uA sleep currents while retaining RAM, and the integrated 32 MHz HF oscillator plus 31 kHz LF oscillator enable precise duty-cycled wake/sleep timing. The 14 KB Flash holds TLS-style lightweight stacks or LoRaWAN MAC, while 1 KB RAM buffers sensor packets before UART/I2C/SPI transmission. The op-amp and 12-bit ADC digitise battery voltage and sensor readings, and the DAC can drive a reference for low-side current monitoring. A single Li-ion cell (3.0-4.2 V) sits inside the 2.3-5.5 V operating window, removing the need for a boost regulator in compact wireless sensor designs.
Recommended
Small DC Motor and Fan Control
The PIC16F1786-I/SS handles small DC motor and brushless DC fan control because its four 10-bit enhanced PWM channels drive H-bridge or three-phase inverter gate signals, and the CWG generates complementary PWM with dead-band insertion to prevent shoot-through. The fast comparator triggers back-EMF zero-cross detection for sensorless BLDC commutation, while the op-amp amplifies shunt-resistor current feedback for torque limiting. At 32 MHz the core runs field-oriented control loops in software at moderate RPM, and 14 KB Flash accommodates startup, commutation tables, and fault-handling routines. The 28-SSOP footprint plus 2.3-5.5 V range simplifies 3.3 V or 5 V motor PCB designs.
Recommended
Consumer Appliance User Interface
The PIC16F1786-I/SS is appropriate for consumer appliance user interfaces because it combines capacitive touch via the CLC and comparator inputs, PWM-driven buzzer or LED feedback, and I2C/SPI expansion for display modules. The op-amp and ADC read potentiometers, NTC thermistors, or rotary encoder positions for knob-based inputs, while the DAC generates reference voltages for threshold detection. 14 KB of Flash supports graphical menu state machines, and 1 KB RAM handles debounced key buffers and display refresh. The -40C to +85C industrial grade covers kitchen and laundry appliance environments, and the 28-SSOP package fits behind a control-panel membrane switch.
Recommended
Automotive Aftermarket Accessory Control
The PIC16F1786-I/SS can serve aftermarket automotive accessory controllers (lighting, auxiliary pumps, alarm modules) thanks to its -40C to +85C industrial temperature grade, 5.5 V VDD tolerance, and robust ESD ratings on I/O pins. The op-amp monitors high-side current shunts, the fast comparator triggers overcurrent protection in microseconds, and the CWG generates PWM with programmable dead time for driving FETs directly. With 14 KB Flash and 1 KB RAM, the firmware fits CAN-LIN gateway bridges or sequential turn-signal patterns. The internal 32 MHz oscillator eliminates external crystals in cost-sensitive aftermarket modules while still meeting CAN bit-timing jitter requirements in many cases.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1786-I/SS β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1786-E/SS | PIC16F1783-I/SS | PIC16F1782-I/SS | PIC16F1716-I/SS | PIC16F1768-I/SS |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SSOP | 28-SSOP - same | 28-SSOP - same | 28-SSOP - same | 28-SSOP - same | 28-SSOP - same |
| Flash Memory | 14 KB | 14 KB | 7 KB | 3.5 KB | 14 KB | 7 KB |
| RAM | 1 KB | 1 KB | 512 B | 256 B | 1 KB | 512 B |
| Maximum 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 |
| Temperature Grade | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
| On-Chip Op-Amp | Yes | Yes | Yes | Yes | No | No |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 10-bit | 10-bit |
| Core Independent Peripherals | CLC, CWG, NCO, ZCD, DSM | CLC, CWG, NCO, ZCD, DSM | CLC, CWG, NCO, ZCD, DSM | CLC, CWG, NCO, ZCD, DSM | CLC, CWG, NCO, ZCD | CLC, CWG, NCO, ZCD |
Key Differentiators
- Largest memory in the PIC16F1782-1783-1786 SSOP family (vs PIC16F1783-I/SS)
- Industrial temperature grade plus extended grade family member available (vs PIC16F1786-E/SS)
- On-chip op-amp plus 12-bit ADC plus dual DAC in 28-SSOP (vs PIC16F1716-I/SS)
- More CIP (Core Independent Peripherals) than PIC16F17xx entry-level siblings (vs PIC16F1708-I/SS)
Design Notes
Place a 100 nF ceramic decoupling capacitor as close as possible to each VDD pin (pin 23 and the AVSS-adjacent supply routing) with a 10 uF bulk capacitor on the main supply rail. The PIC16F1786 draws brief current spikes during oscillator startup and ADC conversions; without local decoupling, these spikes can couple into the analog op-amp and degrade ADC readings. Microchip AN230 recommends separate analog (AVDD) and digital (VDD) supply planes joined at a single point near the MCU, with ferrite beads if isolation is needed.
Do not leave the MCLR pin (pin 3 / RA5) floating - if unused as a reset, tie it to VDD through a 10 kohm pull-up. A floating MCLR causes spurious resets and erratic startup behaviour. Similarly, ensure all unused I/O pins are configured as outputs low (or inputs with internal pull-ups enabled) to minimise quiescent current and prevent oscillation. When using the internal 32 MHz HF oscillator, allow the OST (oscillator startup timer) to complete before executing timing-critical code.
For SSOP-28 layouts, use 0.65 mm pitch traces with 0.3 mm width and route the ICSP lines (RB6/ICSPCLK pin 16, RB5/ICSPDAT pin 17) to a 2x3 0.1 inch header with a 4.7 kohm pull-up on MCLR to enable in-circuit programming. Keep analog traces (AN0-AN11, OPA1OUT) short and away from PWM outputs to reduce digital-to-analog crosstalk. A ground pour on the top layer under the SSOP body, stitched with vias to the bottom ground plane, provides thermal relief and EMI shielding for the on-chip op-amp.
When using the on-chip op-amp for high-gain sensor amplification, route the inverting input trace (RA0/AN4/OPA1IN- pin 8) as a guarded ring connected to the op-amp output to minimise leakage and parasitic capacitance. The non-inverting input (RB2/OPA1IN+ pin 20) should reference a low-impedance source to avoid offset drift. The op-amp output (RA1/AN0/OPA1OUT pin 7) shares a pin with ADC input AN0 - useful for direct digitisation, but the ADC acquisition time must be programmed long enough to settle the switched-capacitor input.
Compliance Information
RoHS and REACH compliance confirmed via Microchip product page and DigiKey listing. Not AEC-Q100 qualified - for automotive safety-critical applications, consider PIC16F1786-E/SS or a PIC16F1xxx with -Q1 suffix. Lead-free and halogen-free per Microchip material declarations.