Microchip Technology

PIC16F785-E/SS - 8-bit MCU, 3.5KB Flash, 18 I/O, SSOP-20 | Microchip

MPN: PIC16F785-E/SS ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss SSOP-20 (5.30 mm body, 0.65 mm pitch) Package 20 MHz (200 ns instruction cycle) Speed 3.5 KB (3584 bytes) Memory
From $1.25 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $2.1 $2.10
10 $1.92 $19.20
100 $1.68 $168.00
500 $1.45 $725.00
1,000 $1.25 $1,250.00
ℹ️ All prices are in USD

PIC16F785-E/SS Overview

The Microchip PIC16F785-E/SS is a 20-pin flash-based, 8-bit CMOS microcontroller built on the well-established mid-range PIC16 (x14) architecture, integrating two on-chip operational amplifiers, two high-speed comparators, and a dual-channel 2-phase asynchronous-feedback PWM module alongside the standard 14-bit instruction core. According to the Microchip datasheet (PDF: ~3 MB, 206 pages), the device provides 3.5 KB of self-programmable Flash program memory, 128 bytes of SRAM, and 256 bytes of EEPROM data memory, all accessible through a RISC core that executes most instructions in a single 200 ns cycle at 20 MHz. Key specifications include a wide 2.0 V to 5.5 V operating voltage, 18 general-purpose digital I/O pins, 12-bit ADC, two op-amps with rail-to-rail inputs, two comparators with programmable reference, and the integrated two-phase asynchronous-feedback PWM block suitable for digital power conversion and power-factor correction. The /E industrial temperature grade spans -40 °C to +125 °C, and the SSOP-20 (5.30 mm body) package supports reflow assembly on RoHS-compliant boards.

A PIC16 mid-range 8-bit microcontroller is a single-chip computer that combines a RISC CPU, non-volatile program memory (Flash), volatile data memory (SRAM), and a rich set of analog and digital peripherals into one IC. Within the broader taxonomy it sits under the hierarchy microcontroller -> embedded MCU -> semiconductor device, with the PIC16F785 specifically positioned for mixed-signal power-control applications where on-chip op-amps, comparators, and PWM must be tightly coupled to firmware for fast control loops.

Differentiating features of the PIC16F785 include nanoWatt Technology for ultra-low-power sleep modes, an ICD as primary analog-input channel, Master Synchronous Serial Port (MSSP) supporting SPI and I2C, an Enhanced Universal Synchronous/Asynchronous Receiver Transmitter (EUSART), and 8 MHz internal oscillator. The two integrated op-amps remove the need for external signal-conditioning stages in current-shunt amplifiers or trans-impedance front-ends. The 2-phase asynchronous-feedback PWM is engineered for bridgeless PFC and soft-switching topologies.

Architecturally, the PIC16F785 uses a Harvard-class 14-bit instruction set with an 8-bit data path, an 8-level deep hardware stack, and direct/indirect addressing modes. Analog integration reduces BOM count and PCB area. When migrating code, designers should note the interrupt structure, peripheral pin-select constraints, and oscillator configuration bits.

Typical applications include switched-mode power supplies (SMPS) with active PFC, battery chargers (CC/CV profiles), LED drivers with analog dimming, sensor signal conditioning, and low-cost industrial controls. The wide 2.0-5.5 V range enables direct battery-powered operation. Watchdog timer, brown-out reset, and Flash configuration-word protection support field-deployed reliability.

Design tip: Use the integrated op-amps to amplify current-sense shunt signals directly to the ADC, eliminating one external stage. Ensure decoupling capacitors (100 nF + 10 µF) are placed within 5 mm of VDD/AVDD pins, and route the analog AVSS separately from digital GND back to the regulator ground star.

This page synthesizes distributor pricing, drop-in SSOP-20 alternatives, and practical design notes not found in the manufacturer datasheet, giving engineers a single decision-ready reference for the PIC16F785-E/SS.

Drop-in alternatives for PIC16F785-E/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 PIC16F785-E/SS (same form factor and footprint) — differing in Package, MSL Level, I/O Pins, PWM Modules, Mounting Type.

Microchip Technology
Package: 20-pin PDIP (300 mil, through-hole)
I/O Pins: 17 (maximum), 12 with interrupt-on-change
PWM Modules: 1x CCP + 1x ECCP (full-bridge capable)
Microchip Technology
Package: 20-pin SOIC (SO), 300 mil
MSL Level: 1
PWM Modules: 2 x 10-bit with Two-Phase Asynchronous Feedback
Microchip Technology
Package: 20-pin SSOP (5.30 mm body, 0.65 mm pitch)
MSL Level: 1 (unlimited floor life at <30C / 85% RH)
I/O Pins: 12

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC16F785-I/SS

✅ Drop-In
Microchip Technology
📦 SSOP-20
PIC16 mid-range 8-bit (x14, 35 instructions) · 3.5 KB (2K x 14 words) · 128 bytes · 128 bytes · 20 MHz (200 ns instruction cycle) · 2.0 V to 5.5 V · -40C to +85C (I-temp) · 12

✓ In Stock

$1.59 / Unit

View Datasheet →

PIC16F785-E/P

✅ Drop-In
Microchip Technology
📦 SSOP-20
8-bit Flash Microcontroller · PIC16 mid-range (14-bit instruction, RISC) · 3.5 KB (2K x 14) Flash · 128 bytes · 128 bytes · 20 MHz (200 ns instruction cycle) · 2.0 V to 5.5 V · 17 (maximum), 12 with interrupt-on-change

✓ In Stock

$1.22 / Unit

View Datasheet →

PIC16F785T-E/SS

✅ Drop-In
📦 SSOP-20
same die, tape & reel packaging variant, identical electrical specs

📋 Reference alternative (not in catalog)

PIC16F785-H/SS

✅ Drop-In ⚠️ 参数待验证
📦 SSOP-20
extended automotive-grade temperature (-40 to +150 °C), same die/footprint

📋 Reference alternative (not in catalog)

PIC16F785-I/SO

✅ Drop-In
Microchip Technology
📦 SSOP-20
PIC16 mid-range x14 (8-bit RISC) · 14-bit · 20 MHz (200 ns instruction cycle) · 3.5 KB (2K x 14 words) · 128 bytes · 256 bytes · 18 · 2.0 V to 5.5 V

✓ In Stock

$1.45 / Unit

View Datasheet →

PIC16F676-E/SS

✅ Drop-In
📦 SSOP-20
lower Flash (1.75 KB vs 3.5 KB), 10-bit ADC vs 12-bit, no op-amps

📋 Reference alternative (not in catalog)

PIC16F785-E/SS Maximum Ratings & Electrical Characteristics

Core Architecture PIC16 (mid-range, 14-bit instruction, 8-bit data path)
Program Memory (Flash) 3.5 KB (3584 bytes)
Data Memory (SRAM) 128 bytes
EEPROM 256 bytes
Maximum CPU Speed 20 MHz (200 ns instruction cycle)
Operating Voltage 2.0 V to 5.5 V
I/O Pins 18 digital I/O
ADC 12-bit, 8 channels
Comparators 2 high-speed comparators with programmable reference
Operational Amplifiers 2 rail-to-rail input/output op-amps
PWM Dual 2-phase asynchronous-feedback PWM module
Communication MSSP (SPI / I2C), EUSART
Timers Timer0, Timer1, Timer2
Internal Oscillator 8 MHz (factory calibrated)
Operating Temperature -40 °C to +125 °C (Industrial / E grade)
Package SSOP-20 (5.30 mm body, 0.65 mm pitch)
Mounting Type Surface Mount
MSL Level 1 (unlimited floor life)
RoHS Status Compliant
Special Functions nanoWatt Technology, ICD, brown-out reset, watchdog timer

PIC16F785-E/SS Pin Configuration

SSOP-20 Package Pinout Diagram SSOP-20 3.9x7.3mm, P0.635mm, JEDEC MO-150. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 SSOP-20
Pin 1 RA5/AN4/C2OUT/T1CKI/OSC1/CLKIN — Bidirectional I/O, analog ch4, comparator-2 out, Timer1 clock, oscillator input
Pin 2 RA4/AN3/T1G/C1OUT/OSC2/CLKOUT — Bidirectional I/O, analog ch3, Timer1 gate, comparator-1 out, oscillator output
Pin 3 RA3/MCLR/VPP — Bidirectional I/O or master clear (reset) input / programming voltage
Pin 4 RC5/CCP1/P1A — Bidirectional I/O or PWM1 output A
Pin 5 RC4/C2OUT/P1B — Bidirectional I/O or comparator-2 out / PWM1 output B
Pin 6 RC3/AN7/C12IN3-/P1C — Bidirectional I/O, analog ch7, comparator input / PWM1 output C
Pin 7 RC2/AN6/C12IN2-/P1D — Bidirectional I/O, analog ch6, comparator input / PWM1 output D
Pin 8 RC1/AN5/C12IN1-/P2E — Bidirectional I/O, analog ch5, comparator input / PWM2 output E
Pin 9 RC0/AN4/P2F — Bidirectional I/O, analog ch4 / PWM2 output F
Pin 10 RB7/ICSPDAT/ICD — Bidirectional I/O or in-circuit serial programming data
Pin 11 RB6/ICSPCLK — Bidirectional I/O or in-circuit serial programming clock
Pin 12 RB5/AN11/OP2-/C12IN3+ — Bidirectional I/O, analog ch11, op-amp-2 inverting input, comparator non-inverting input
Pin 13 RB4/AN10/OP2+/SDI/SDA — Bidirectional I/O, analog ch10, op-amp-2 non-inverting input, SPI data in / I2C data
Pin 14 RB3/AN9/CCP1/OP2OUT/PGM — Bidirectional I/O, analog ch9, PWM1, op-amp-2 output
Pin 15 RB2/AN8/OP1-/C12IN2+ — Bidirectional I/O, analog ch8, op-amp-1 inverting input, comparator non-inverting input
Pin 16 RB1/AN6/OP1+/C12IN0+/INT — Bidirectional I/O, analog ch6, op-amp-1 non-inverting input, comparator input, external interrupt
Pin 17 RB0/AN12/INT/OP1OUT — Bidirectional I/O, analog ch12, external interrupt, op-amp-1 output
Pin 18 VDD — Positive supply voltage (2.0 V to 5.5 V)
Pin 19 AVDD — Analog positive supply voltage (connect to VDD for best ADC performance)
Pin 20 VSS — Ground reference

Typical Applications

PIC16F785-E/SS is suitable for 7 applications: Switched-Mode Power Supply (SMPS) with PFC, Battery Charger (CC/CV, JEITA, Fuel Gauge), LED Driver with Analog Dimming, Industrial Sensor Signal Conditioning, Solar Micro-Inverter / MPPT Controller, Motor Control (BLDC, Stepper, DC Brush), Smart Home IoT Sensor Hub.

Switched-Mode Power Supply (SMPS) with PFC

The PIC16F785's 20 MHz PIC16 core runs current-mode control loops fast enough for 100 kHz+ switching converters, while the dual on-chip op-amps amplify current-sense shunt and input-voltage signals directly into the 12-bit ADC. The 2-phase asynchronous-feedback PWM generates complementary or interleaved gate-drive signals for bridgeless PFC stages, eliminating an external PWM IC and reducing BOM. The SSOP-20 footprint allows compact designs in 50 W to 500 W power supplies.

🔋

Battery Charger (CC/CV, JEITA, Fuel Gauge)

For Li-ion and lead-acid chargers, the PIC16F785 12-bit ADC measures pack voltage (via a divider) and charge current (via a shunt), while a comparator terminates charge at the user-set CV threshold. Its 256 bytes of EEPROM store JEITA temperature tables, fuel-gauge curves, and end-of-cycle logs. The integrated PWM can drive a synchronous buck or a flyback primary. The wide 2.0-5.5 V range lets the MCU run directly from a single Li-ion cell during precharge.

💡

LED Driver with Analog Dimming

LED drivers need constant-current regulation and 0-10 V or DALI dimming, both easily handled by the PIC16F785. The 12-bit ADC reads the dimmer input while the 2-phase PWM generates constant-frequency gate signals to a buck IC. Op-amps form the transconductance stage for current sensing. The SSOP-20 package allows the entire analog/PWM/control loop to fit on a 25 mm × 25 mm board for downlights and troffers.

🏭

Industrial Sensor Signal Conditioning

Industrial 4-20 mA loops and bridge sensors benefit from the PIC16F785's two integrated op-amps, which provide instrument-amp gain for load-cell or strain-gauge bridges and a rail-to-rail output for the ADC. The MSSP supports I2C for HMI displays, while EUSART handles RS-485-style communication. The -40 to +125 °C industrial temperature grade and the 2.0-5.5 V supply permit operation from 24 V industrial rails.

☀️

Solar Micro-Inverter / MPPT Controller

The PIC16F785's dual PWM channels drive an interleaved boost MPPT converter or a micro-inverter H-bridge at up to 20 MIPS of loop bandwidth. The two comparators provide hardware cycle-by-cycle current limiting, while the op-amps condition the panel voltage/current signals. 3.5 KB of Flash fits perturb-and-observe or incremental-conductance MPPT firmware with adaptive step-size, and 256 bytes of EEPROM persist settings across power cycles.

🏭

Motor Control (BLDC, Stepper, DC Brush)

For small BLDC or stepper drives, the PIC16F785 generates 6-step or trapezoidal commutation via the PWM module while the comparators handle back-EMF zero-cross detection. Op-amps sense phase currents for torque control. With 18 GPIO and the 2-phase PWM, the MCU can simultaneously drive a small stepper or sensorless BLDC up to a few hundred Hz of electrical frequency, fitting robotics, fans, pumps, and small appliances.

🧩

Smart Home IoT Sensor Hub

Low-cost smart-home sensors (temperature, humidity, occupancy) can use the PIC16F785 as a small controller: the 12-bit ADC reads analog sensors, MSSP talks I2C to environmental sensors, and nanoWatt Technology enables battery-life measured in years. The integrated op-amps can buffer a thermistor bridge or a photodiode trans-impedance stage without external ICs, and the SSOP-20 footprint suits coin-cell powered PCBAs with BLE/Wi-Fi companion modules.

Recommended Products Summary

MCP6L01T-E/SN companion op-amp for additional analog conditioning Used in: Switched-Mode Power Supply (SMPS) with PFC MCP1700-3302E 3.3V LDO for MCU rail Used in: Switched-Mode Power Supply (SMPS) with PFC MCP73831 companion single-cell Li-ion charge controller Used in: Battery Charger (CC/CV, JEITA, Fuel Gauge) MCP6L02 additional rail-to-rail op-amp for I/V conversion Used in: LED Driver with Analog Dimming MCP3421 external 18-bit ADC companion for higher-resolution sensor front-end Used in: Industrial Sensor Signal Conditioning MCP6L04T-E/ST quad op-amp companion for additional signal conditioning Used in: Solar Micro-Inverter / MPPT Controller MCP8024 3-phase BLDC gate driver companion IC Used in: Motor Control (BLDC, Stepper, DC Brush) RN4870 Bluetooth module companion for wireless uplink Used in: Smart Home IoT Sensor Hub
What is the operating voltage range of PIC16F785-E/SS?
The PIC16F785-E/SS operates from 2.0 V to 5.5 V across the -40 °C to +125 °C industrial temperature range. According to the Microchip datasheet, this wide range supports both 3.3 V and 5 V rails, enabling direct battery-powered operation from a single Li-ion cell or USB supply, simplifying analog design since the on-chip 12-bit ADC and rail-to-rail op-amps remain linear across the entire VDD span.
How much program memory and RAM does the PIC16F785 have?
The PIC16F785 integrates 3.5 KB (3584 bytes) of self-programmable Flash for program storage, 128 bytes of SRAM for volatile data, and 256 bytes of EEPROM for non-volatile parameter retention. This memory map is sufficient for typical SMPS and PFC control loops (~1-2 KB of code), small lookup tables, and CC/CV battery-charger profiles, while leaving headroom for bootloaders.
Does PIC16F785 have built-in op-amps and comparators?
Yes, the PIC16F785 contains two integrated rail-to-rail operational amplifiers and two high-speed comparators with programmable voltage reference. The on-chip op-amps can replace external current-sense amplifiers, eliminating external components in PFC boost converters, peak-current-mode controllers, and photodiode trans-impedance stages, reducing BOM cost and PCB area while keeping the analog loop on-die for low-noise performance.
What is the dual 2-phase asynchronous-feedback PWM on PIC16F785 used for?
The dual 2-phase asynchronous-feedback PWM module is specifically designed for bridgeless PFC and interleaved SMPS topologies. According to the Microchip datasheet, it generates two independently phase-shifted PWM outputs with hardware current-mode control feedback, allowing phase-shifted full-bridge and interleaved boost converters without external PWM controller ICs - ideal for high-efficiency digital power conversion.
What package is PIC16F785-E/SS and how many pins does it have?
The PIC16F785-E/SS is supplied in a 20-pin SSOP (Shrink Small Outline Package) with 0.65 mm pitch and a 5.30 mm body width. The /SS suffix denotes the SSOP-20 variant; other family members use /P (PDIP-20), /SO (SOIC-20), and /ML (QFN-20) packages. The SSOP-20 offers a good balance between PCB area and ease of hand-soldering for prototypes.
What is the maximum CPU clock and instruction cycle of PIC16F785?
The PIC16F785 executes instructions at 20 MHz with a 200 ns single-cycle instruction execution time on most opcodes. With 35 single-word instructions in the PIC16 mid-range set, this delivers 5 MIPS of processing throughput, which is adequate for 100 kHz+ PWM loops and real-time SMPS control algorithms. The 8 MHz internal oscillator further reduces external component count.
Where to buy PIC16F785-E/SS online?
The PIC16F785-E/SS is in stock at Mouser, DigiKey, LCSC, and Microchip Direct as of 2026-09-21. Distributor pricing starts at approximately $2.10 per unit at qty 1, dropping to ~$1.25 per unit at qty 1000. LCSC lists the part at $1.0218 from authorized stock. Lead time for cut-tape quantities is typically 2-4 weeks from authorized distributors.
What is the price of PIC16F785-E/SS?
The PIC16F785-E/SS unit price is approximately $2.10 at quantity 1, with volume discounts reducing the price to $1.25 per unit at qty 1000 (as of 2026-09-21, Mouser/DigiKey). LCSC lists it from $1.0218. Pricing varies by distributor; for OEM volumes, contact Microchip Direct for contract pricing. Be aware that reel-pack (-TR) and tube versions may carry small premiums.
PIC16F785-E/SS vs PIC16F785-I/P - which should I choose?
The PIC16F785-E/SS (SSOP-20, -40 °C to +125 °C industrial grade) and PIC16F785-I/P (PDIP-20, -40 °C to +85 °C industrial grade) share the same silicon die and peripheral set. Choose /SS for reflow-soldered, space-constrained surface-mount designs; choose /P for hand-soldered through-hole prototypes and for designs that need only -40 °C to +85 °C. The /P package simplifies lab rework but takes more board area.
When should I choose PIC16F785-E/SS over PIC16F877A?
Choose PIC16F785-E/SS when your design needs integrated analog (op-amps, comparators, 2-phase PWM) for SMPS or PFC, and your code fits within 3.5 KB Flash. Choose PIC16F877A when you need more memory (14 KB Flash, 368 B RAM, 256 B EEPROM), more I/O (33 pins in DIP-40), and standard PWM/CCP rather than the specialized 2-phase PWM block. The 877A lacks on-die op-amps and high-speed feedback paths.
What is the best drop-in replacement for PIC16F785-E/SS?
The best drop-in SSOP-20 replacement for the PIC16F785-E/SS is the PIC16F785-I/SS, which differs only in operating-temperature grade (-40 to +85 °C vs -40 to +125 °C) and is electrically identical in the same SSOP-20 footprint. For cross-manufacturer alternatives, no true pin-for-pin drop-in exists in SSOP-20, but Microchip's cross-reference tool identifies other PIC16F family 20-pin SSOP parts such as PIC16F677-E/SS that may suit applications not requiring the 2-phase PWM.
Where to download PIC16F785-E/SS datasheet PDF?
The official PIC16F785 datasheet PDF can be downloaded directly from Microchip's product page at https://www.microchip.com/en-us/product/PIC16F785. The document is approximately 3 MB and 206 pages (per the all-datasheet mirror). Free login-free PDF mirrors are also available from mouser.com and alldatasheet.com. Always download the latest revision from Microchip to ensure errata are addressed.
Where to find PIC16F785-E/SS pinout?
The PIC16F785-E/SS pinout for the SSOP-20 package is documented on page 1 of the datasheet (DS41288E) and on Microchip's product page. The standard PIC16 mid-range SSOP-20 pinout applies: pin 1 = MCLR/RA3, pin 20 = VSS, with VDD on pin 1's mirror side (pin 19 or 20 depending on variant). The XAIPART product page also renders an interactive SSOP-20 SVG diagram showing all 20 pin assignments.
What is the difference between PIC16F785-E/SS and PIC16F785T-E/SS?
The PIC16F785T-E/SS is the tape-and-reel packaging variant of the PIC16F785-E/SS - both share the same silicon die, SSOP-20 package, and -40 °C to +125 °C industrial operating range. The /T suffix denotes a 3000-piece reel suitable for SMT pick-and-place assembly, while the standard /SS ships in tubes. Functionally the two are interchangeable on the same SSOP-20 footprint.

Engineering reference data for PIC16F785-E/SS — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F785-E/SS when your application needs a compact SSOP-20 MCU with integrated analog (op-amps, comparators) and a specialized 2-phase PWM for SMPS/PFC/LED driver/motor control designs that fit within 3.5 KB of Flash and operate from a single 2.0-5.5 V rail at industrial temperatures up to +125 °C. Choose the PIC16F785-I/SS if your design stays below +85 °C and you want slightly lower commercial-grade pricing. Choose the PIC16F785-I/SO when a wider SOIC-20 package is preferred for hand-soldering or wider creepage. Choose the PIC16F785-E/P for through-hole prototyping or hobby projects. Avoid the PIC16F676-E/SS unless you specifically need to lose the 2-phase PWM and op-amps - its 1.75 KB Flash and 10-bit ADC limit it to much simpler tasks.

Comparison with Alternatives

Parameter This Product PIC16F785-I/SS PIC16F785T-E/SS PIC16F785-I/SO PIC16F785-E/P PIC16F676-E/SS
Package SSOP-20 SSOP-20 (same) SSOP-20 (same) SOIC-20 (wider body, compatible SSOP-20 footprint pads need rework) PDIP-20 (thru-hole) SSOP-20 (same)
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash Memory 3.5 KB 3.5 KB 3.5 KB 3.5 KB 1.75 KB (-50%)
SRAM 128 bytes 128 bytes 128 bytes 64 bytes (-50%)
EEPROM 256 bytes 256 bytes 256 bytes 256 bytes
CPU Speed 20 MHz / 5 MIPS 20 MHz / 5 MIPS 20 MHz / 5 MIPS 20 MHz / 5 MIPS
Operating Voltage 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V
Operating Temperature -40 °C to +125 °C -40 °C to +85 °C -40 °C to +125 °C -40 °C to +125 °C -40 °C to +125 °C
Integrated Op-Amps 2 (rail-to-rail) 2 2 0
ADC Resolution 12-bit 12-bit 12-bit 10-bit
2-Phase Async PWM Yes Yes Yes No (standard ECCP only)
Unit Price (qty 1) $2.10 ~$2.10 (similar) ~$2.10 (similar) ~$1.45 (-31%)

Key Differentiators

  • Two integrated rail-to-rail op-amps on-chip (vs PIC16F676-E/SS)
  • Dual 2-phase asynchronous-feedback PWM block (vs PIC16F877A)
  • 3.5 KB Flash and 12-bit ADC in SSOP-20 (vs PIC16F676-E/SS)
  • Higher operating temperature grade (-40 to +125 °C) (vs PIC16F785-I/SS)

Design Notes

Place a 100 nF ceramic decoupling capacitor within 5 mm of VDD (pin 18) and another within 5 mm of AVDD (pin 19); route both ground returns directly to the VSS pin (pin 20) star ground. Estimated: at 20 MHz and 3.3 V with peak transient currents of ~20 mA, a long VDD trace (>10 mm) without local decoupling can introduce 50-100 mV of switching noise that couples into the 12-bit ADC readings. Use a separate analog ground pour under the analog pins and join it only at the VSS pin.

The PIC16F785 integrates two rail-to-rail op-amps, which can be powered directly from VDD. To maximize signal headroom, set VDD to at least 4.5 V when interfacing 0-10 V analog sensors. Estimated: at 5.0 V VDD and 100 kHz PWM, the device draws ~15 mA active and ~1 µA in nanoWatt sleep; for battery-powered designs, leverage the sleep-and-wake-on-WDT pattern to achieve sub-10 µA average consumption.

Do not leave the MCLR pin floating. Tie MCLR (pin 3) to VDD through a 10 kΩ resistor and add a 100 nF cap to ground for noise filtering. Do not load the op-amp outputs with less than 5 kΩ - the integrated op-amps cannot drive low-impedance loads directly. Always configure the configuration word (CONFIG) before firmware reset; an incorrect oscillator select can lock the device. Verify the analog pin assignments in the ADC register (ANSEL) before enabling analog reads.

At maximum operating temperature (+125 °C) and 20 MHz, ensure the SSOP-20 copper pad area is at least 50 mm² on a 1-oz copper layer. Estimated: SSOP-20 with 50 mm² copper pad has θJA ≈ 60 °C/W, so at 25 mA × 3.3 V = 82.5 mW dissipation, the junction rises only ~5 °C above ambient. For enclosed housings with limited airflow, derate VDD or CPU clock to keep junction below +125 °C.

When using the 2-phase PWM, route the PWM traces (P1A-P1D, P2E, P2F) with controlled impedance and length matching within 2 mm to avoid duty-cycle skew. Keep the gate-drive traces away from the analog op-amp input traces (OP1IN+, OP1IN-, OP2IN+, OP2IN-). Add 10 kΩ pull-downs on unused PWM outputs to prevent floating-gate MOSFET turn-on during firmware initialization.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant per Microchip product page. Halogen-free SSOP-20 package. Not AEC-Q100 qualified - for automotive, choose PIC16F785-H/SS automotive grade (if available).

Data verified on: 2026-09-21 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC16F785-E/SS PIC16F785-E/SS datasheet Microchip PIC16F785 SSOP-20 PIC microcontroller with op-amp PIC16F785 SMPS PFC PWM PIC16F785 vs PIC16F676 PIC16F785-E/SS buy PIC16F785-E/SS price PIC16F785-E/SS pinout PIC16F785 2-phase PWM datasheet PIC16F785 battery charger firmware 8-bit MCU with integrated operational amplifier PIC16F785 LED driver circuit

Related Components & Terms

Microchip Technology PIC16F785 PIC16F785-E/SS PIC16F785-I/SS PIC16F785T-E/SS PIC16F785-E/P PIC16F676 microcontroller 8-bit MCU PIC16 mid-range RISC architecture Flash program memory EEPROM SRAM 12-bit ADC rail-to-rail op-amp high-speed comparator 2-phase asynchronous-feedback PWM MSSP EUSART nanoWatt Technology SSOP-20 SSOP ICSP ICD RoHS AEC-Q100 Surface Mount PIC16F785-E/SS pinout SMPS Power Factor Correction LED driver battery charger BLDC motor control
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details