Microchip Technology

PIC16F785-E/P - 8-Bit 20MHz 3.5KB Flash MCU w/ PWM & Op-Amps | Microchip

MPN: PIC16F785-E/P ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss 20-pin PDIP (300 mil, through-hole) Package 20 MHz (200 ns instruction cycle) Speed 3.5 KB (2K x 14) Flash Memory
From $1.22 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $2.35 $2.35
10 $2.1 $21.00
100 $1.84 $184.00
500 $1.62 $810.00
1,000 $1.41 $1,410.00
3,000 $1.22 $3,660.00
ℹ️ All prices are in USD

PIC16F785-E/P Overview

The Microchip Technology PIC16F785-E/P is a 20-pin DIP Flash-based 8-bit CMOS microcontroller from the mid-range PIC16 family, integrating a 20 MHz CPU core with 3.5 KB (2K x 14) of Flash program memory, 128 bytes of EEPROM data memory, and 128 bytes of RAM. Housed in a through-hole 20-PDIP package, it operates from 2.0 V to 5.5 V and is engineered with nanoWatt Technology for low-power applications.

What is a PIC16F-series 8-bit microcontroller? The PIC16F family is Microchip's mid-range 14-bit instruction architecture line, sitting between the baseline PIC10/12/16/17 families and the enhanced PIC18 family. It uses a RISC-style Harvard architecture that executes most instructions in a single 200 ns instruction cycle at 20 MHz. PIC microcontrollers integrate CPU, memory, and peripherals on a single die and are widely used for embedded control where deterministic timing, low cost, and on-chip analog peripherals matter more than raw compute throughput.

The PIC16F785 distinguishes itself with two on-chip operational amplifiers, two analog comparators with hysteresis, a 10-bit ADC with up to 14 channels, and a Capture/Compare/PWM (CCP) module plus an Enhanced Capture/Compare/PWM (ECCP) module that supports full-bridge, half-bridge, and single-shot PWM modes. The ECCP block can be configured for two-phase asynchronous feedback switching power topologies, making this MCU especially attractive for digital power conversion.

Typical applications include LED drivers and lighting controls, switch-mode power supply (SMPS) digital control loops, battery chargers, motor control, sensor signal conditioning, and general-purpose embedded control in consumer and industrial products. The internal 8 MHz and 32 kHz MOSFET drivers (where applicable) plus nanoWatt sleep modes support battery-powered designs with extended runtime.

When designing with this part, allocate adequate decoupling (100 nF plus bulk) close to VDD, and follow Microchip AN530 and TB3013 for PWM-driven SMPS loop compensation. Industrial-grade variants operate over -40C to +85C; this E (extended) variant covers -40C to +125C. For an SOIC footprint, choose PIC16F785-E/SO.

This page synthesizes distributor pricing, drop-in alternatives, application context, and engineering notes drawn from the Microchip datasheet and authorized distributor listings - context not consolidated on a single manufacturer page.

Drop-in alternatives for PIC16F785-E/P — 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/P (same form factor and footprint) — differing in Package, Comparators, I/O Pins, Mounting Type, Program Memory (Flash).

Microchip Technology
Package: 20-pin PDIP (DIP-20, 0.300 in / 7.62 mm)
Comparators: 2 on-chip
Mounting Type: Through-hole (THT)
Microchip Technology
Package: 20-pin PDIP (0.300 in)
Comparators: 2
I/O Pins: 18
Microchip Technology
Package: SSOP-20 (5.30 mm body, 0.65 mm pitch)
Comparators: 2 high-speed comparators with programmable reference
I/O Pins: 18 digital I/O
Microchip Technology
Package: 20-pin SSOP (5.30 mm body, 0.65 mm pitch)
I/O Pins: 12
Program Memory (Flash): 3.5 KB (2K x 14 words)

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

PIC16F785-I/P

✅ Drop-In
Microchip Technology
📦 20-pin PDIP
PIC16 mid-range x14 (8-bit RISC Harvard) · 3.5 KB (2K x 14 words) · 128 bytes · 256 bytes · 20 MHz · 200 ns · 2.0 V to 5.5 V · 17 (max)

✓ In Stock

$1.88 / Unit

View Datasheet →

PIC16F685-I/P

✅ Drop-In
Microchip Technology
📦 20-pin PDIP
PIC16F mid-range 8-bit (enhanced x14) · 35 single-word instructions, 14-bit wide · 20 MHz (200 ns instruction cycle) · 7 KB (4K x 14 words) · 256 bytes · 256 bytes · 18 · 2.0 V to 5.5 V

✓ In Stock

$1.32 / Unit

View Datasheet →

PIC16F677-I/P

✅ Drop-In
📦 20-pin PDIP
lower Flash (3.5 KB vs 3.5 KB), no op-amps, similar mid-range core and pinout; check pinout mapping before drop-in

📋 Reference alternative (not in catalog)

PIC16F690-I/P

✅ Drop-In
Microchip Technology
📦 20-pin PDIP
PIC16 mid-range 8-bit (14-bit instruction) · RISC (35 single-word instructions) · 20 MHz · 200 ns (1 cycle at 20 MHz) · 7 KB (4K x 14 words) · 256 bytes · 256 bytes · 18

✓ In Stock

$1.89 / Unit

View Datasheet →

PIC16F716-I/P

✅ Drop-In
📦 20-pin PDIP
no on-chip op-amps, different comparator count; shared 20-PDIP package and mid-range core

📋 Reference alternative (not in catalog)

PIC16F785-E/P Maximum Ratings & Electrical Characteristics

Product Type 8-bit Flash Microcontroller
Architecture PIC16 mid-range (14-bit instruction, RISC)
Program Memory 3.5 KB (2K x 14) Flash
RAM 128 bytes
EEPROM 128 bytes
Maximum CPU Speed 20 MHz (200 ns instruction cycle)
Operating Voltage Range 2.0 V to 5.5 V
I/O Pins 17 (maximum), 12 with interrupt-on-change
A/D Converter 10-bit, up to 14 channels
Comparators 2 (with hysteresis)
Operational Amplifiers 2 on-chip op-amps
PWM Modules 1x CCP + 1x ECCP (full-bridge capable)
Timers Timer0, Timer1, Timer2
Package 20-pin PDIP (300 mil, through-hole)
Operating Temperature Range -40C to +125C (E suffix - extended)
Mounting Type Through-Hole
MSL Level 1 (unlimited floor life)
Lead-Free / RoHS Lead-free; RoHS status per lot
Power-Saving Modes nanoWatt Technology (sleep, watchdog timer disable)
In-Circuit Programming ICSP via PGD/PGC

PIC16F785-E/P Pin Configuration

DIP-20 Package Pinout Diagram DIP-20 20-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 DIP-20
Pin 1 RA0/AN0/C1-/C2-/OP1- — GPIO RA0 / ADC channel 0 / Comparator1 inverting / Comparator2 inverting / Op-amp1 inverting input
Pin 2 RA1/AN1/C1+/C2+/OP1+ — GPIO RA1 / ADC channel 1 / Comparator1 non-inverting / Comparator2 non-inverting / Op-amp1 non-inverting input
Pin 3 RA2/AN2/OP1OUT/C1OUT — GPIO RA2 / ADC channel 2 / Op-amp1 output / Comparator1 output
Pin 4 RA3/AN3/C2OUT/VREF+/OP2- — GPIO RA3 / ADC channel 3 / Comparator2 output / Voltage reference / Op-amp2 inverting input
Pin 5 RA4/AN4/OP2+/T0CKI — GPIO RA4 / ADC channel 4 / Op-amp2 non-inverting input / Timer0 clock input
Pin 6 RA5/AN5/OP2OUT/SS/HLVDIN — GPIO RA5 / ADC channel 5 / Op-amp2 output / SPI slave select / High-Low Voltage detect input
Pin 7 RA6/OSC2/CLKOUT — GPIO RA6 / Crystal oscillator output / Clock output
Pin 8 RA7/OSC1/CLKIN — GPIO RA7 / Crystal oscillator input / External clock input
Pin 9 RC0 — GPIO RC0
Pin 10 RC1 — GPIO RC1
Pin 11 RC2/P1B/CCP1 — GPIO RC2 / Enhanced PWM output 1B / CCP1 output
Pin 12 RC3/P1C/CCP2 — GPIO RC3 / Enhanced PWM output 1C / CCP2 output
Pin 13 RC4/P1D — GPIO RC4 / Enhanced PWM output 1D
Pin 14 RC5/P1A — GPIO RC5 / Enhanced PWM output 1A
Pin 15 RC6/TX/CK — GPIO RC6 / USART asynchronous transmit / USART synchronous clock
Pin 16 RC7/RX/DT — GPIO RC7 / USART asynchronous receive / USART synchronous data
Pin 17 VSS — Ground reference
Pin 18 VDD — Positive supply voltage (2.0-5.5 V)
Pin 19 RB7 — GPIO RB7 (interrupt-on-change)
Pin 20 RB6 — GPIO RB6 (interrupt-on-change)

Typical Applications

PIC16F785-E/P is suitable for 7 applications: LED Lighting Drivers & Dimming Control, Switch-Mode Power Supply (SMPS) Digital Control, Battery Charging & Power Management, Brushless DC (BLDC) Motor Control, Sensor Signal Conditioning & Data Acquisition, Industrial Control & Automation, Consumer Appliance Control.

💡

LED Lighting Drivers & Dimming Control

The PIC16F785-E/P's ECCP full-bridge PWM and two on-chip op-amps are well-suited to LED driver and dimmer control. Place the MCU at the heart of a constant-current buck or boost driver: one op-amp serves as the transconductance error amplifier sensing shunt current, while the ECCP module generates the switching waveform at adjustable dead-band. According to the Microchip datasheet, the 20 MHz core runs the LED current-control loop with sub-microsecond resolution, while nanoWatt sleep cuts quiescent current in standby. The 10-bit ADC samples LED string current for closed-loop regulation across 2.0-5.5 V inputs.

Switch-Mode Power Supply (SMPS) Digital Control

The PIC16F785-E/P's two-phase asynchronous feedback PWM mode directly supports digital control of SMPS converters. One on-chip op-amp senses output voltage, the other senses current, and the ECCP drives the synchronous-FET timing with programmable dead-band to prevent shoot-through. At 20 MHz / 5 MIPS the MCU runs compensation algorithms at 100 kHz switching frequency with ample headroom. Per Microchip app note AN530, this part targets digital SMPS where analog-only control is replaced with adaptive firmware without sacrificing transient response.

🔋

Battery Charging & Power Management

The PIC16F785-E/P is well-matched to NiMH, Li-ion, or lead-acid charger controllers. The two comparators can implement windowed charge-current monitoring without external analog ICs, while the op-amps amplify shunt voltage. CCP plus ECCP modules generate PWM for buck or buck-boost charging stages, and the 10-bit ADC reads battery voltage and temperature for charge-state termination. Wide 2.0-5.5 V VDD range lets the same MCU run directly from a 2-cell battery stack. Extended -40C to +125C range supports automotive and outdoor deployments.

🏭

Brushless DC (BLDC) Motor Control

The PIC16F785-E/P can drive small three-phase brushless DC motors using its ECCP full-bridge PWM mode plus back-EMF sensing through the on-chip comparators. With 5 MIPS instruction throughput, sensorless back-EMF zero-crossing detection can be implemented in firmware for sensorless commutation at moderate speeds. The on-chip op-amps condition current-sense signals from low-side shunt resistors without external amplifiers, saving BOM cost. The 20-PDIP package simplifies hand-soldered prototype and lab motor tuning.

🧩

Sensor Signal Conditioning & Data Acquisition

The PIC16F785-E/P is ideal for low-cost sensor front-ends and data-acquisition modules. The two on-chip op-amps provide programmable gain for thermocouples, strain gauges, or current shunts; the comparators trigger on thresholds; and the 10-bit ADC samples up to 14 channels at up to 100 ksps. EEPROM stores per-unit calibration constants, while the 128-byte RAM buffers samples. ICSP permits in-field firmware updates without removing the part from the PCB - useful for industrial sensor networks.

🏭

Industrial Control & Automation

Industrial control systems use the PIC16F785-E/P for relay drivers, valve actuation, and process-loop control. The 17 I/O pins drive relays, optocouplers, and digital inputs; the ECCP module generates PWM for proportional valves; and the comparator/op-amp analog front-end handles 4-20 mA loop signal conditioning. nanoWatt technology and the extended -40C to +125C temperature grade make this part a fit for factory-floor controllers, HVAC damper drives, and irrigation controllers. Robust ICSP supports in-field firmware maintenance.

🏭

Consumer Appliance Control

Consumer appliances (washing machines, dishwashers, induction cookers, microwave ovens) use the PIC16F785-E/P as a cost-optimized control MCU. The two op-amps handle current sensing for motor protection; the ECCP drives power triacs or IGBTs at appliance-grade frequencies; the ADC reads user knobs and safety sensors; and EEPROM stores cycle settings. The extended temperature grade and through-hole 20-PDIP package align with high-volume consumer manufacturing using wave-solder assembly.

Recommended Products Summary

PIC16F785-I/P Industrial-temperature drop-in variant Used in: LED Lighting Drivers & Dimming Control, Brushless DC (BLDC) Motor Control MCP1700 Low-quiescent LDO for MCU power rail Used in: LED Lighting Drivers & Dimming Control, Switch-Mode Power Supply (SMPS) Digital Control, Industrial Control & Automation, Consumer Appliance Control MCP6001 External op-amp for second feedback loop Used in: LED Lighting Drivers & Dimming Control PIC16F785-E/SO Surface-mount variant for SMPS PCB Used in: Switch-Mode Power Supply (SMPS) Digital Control TC1413 MOSFET gate driver for SMPS power stage Used in: Switch-Mode Power Supply (SMPS) Digital Control PIC16F685-I/P Microchip Technology Used in: Battery Charging & Power Management MCP73831 Companion Li-ion charge-management IC Used in: Battery Charging & Power Management TC4423 Gate driver for BLDC FET bridge Used in: Brushless DC (BLDC) Motor Control MCP9800 Digital temperature sensor companion Used in: Sensor Signal Conditioning & Data Acquisition MCP6S21 Programmable-gain amplifier for analog chain Used in: Sensor Signal Conditioning & Data Acquisition ULN2003 Darlington driver for relay arrays Used in: Industrial Control & Automation MOC3021 Optoisolated triac driver companion Used in: Consumer Appliance Control
What is the program memory size of PIC16F785-E/P?
The PIC16F785-E/P integrates 3.5 KB (2K x 14 words) of Flash program memory, complemented by 128 bytes of RAM and 128 bytes of EEPROM data memory. According to the Microchip datasheet (DS41291E), this memory configuration targets mid-range embedded control where on-chip non-volatile data storage is required for calibration or user-set parameters without external EEPROM chips.
What is the operating voltage range of PIC16F785-E/P?
The PIC16F785-E/P operates from 2.0 V to 5.5 V across the extended -40C to +125C temperature range. This wide supply range, confirmed by the Microchip product page, lets a single design serve 3.3V and 5V buses or battery-powered systems. Designers should ensure VDD rises cleanly within Microchip's power-on-reset thresholds to avoid code-execution anomalies at cold start.
Does PIC16F785-E/P have built-in op-amps and comparators?
Yes, the PIC16F785 integrates two on-chip operational amplifiers and two analog comparators with programmable hysteresis. This analog front-end enables direct sensor signal conditioning, current-shunt amplification, and feedback loop construction without external analog ICs, lowering BOM cost in motor-drive, lighting, and SMPS applications where the op-amps often implement the feedback error amplifier.
Where can I buy PIC16F785-E/P and what is the price?
As of 2026-09-21, the PIC16F785-E/P is listed by DigiKey, Mouser, Octopart, and other authorized distributors in the $1.22 to $2.35 range depending on quantity break. Authorized Microchip franchised distributors guarantee factory-direct traceability and current date-code stock. Lead time is typically stock-to-3 weeks, with over 9 distributors reporting active inventory per Octopart aggregation.
Is PIC16F785-E/P in stock right now?
Yes, PIC16F785-E/P is reported in stock at DigiKey and Mouser as of 2026-09-21, with multiple distributors listing active inventory per Octopart. The part is in Microchip's standard mid-range PIC16F family and has not been flagged EOL. For higher-volume production runs, request a quote from a Microchip authorized distributor or Microchip Direct to lock allocation against your annual forecast.
What is the lead time for PIC16F785-E/P?
The PIC16F785-E/P has a typical lead time of stock to 3 weeks for distributor orders as of 2026-09-21. Microchip mid-range Flash MCUs are usually produced in long-running production lines, so allocation risk is low. For volume schedules, Microchip Direct can provide production-window forecasts and consign safety stock against multi-quarter purchase orders.
PIC16F785-E/P vs PIC16F785-I/P - what is the difference?
The PIC16F785-E/P operates over the extended temperature range -40C to +125C, while the PIC16F785-I/P is industrial grade rated -40C to +85C. Both share the same 20-PDIP package, 3.5 KB Flash, 128 B RAM, 128 B EEPROM, two op-amps, two comparators, and 10-bit ADC. According to the Microchip datasheet DS41291E, the silicon and pinout are identical; choose E for automotive or harsh-environment deployments.
PIC16F785-E/P vs PIC16F785-E/SO - which should I pick?
Both share identical silicon, pinout, and electrical specs per the Microchip datasheet - the difference is purely the package. PIC16F785-E/P comes in a 20-pin PDIP (300 mil, through-hole) ideal for prototyping, breadboarding, and educational labs. PIC16F785-E/SO is the 20-pin SOIC surface-mount variant for volume SMT assembly. Pick -E/P for hand-soldered prototypes, -E/SO for production.
What is the best drop-in replacement for PIC16F785-E/P?
The closest drop-in alternative is PIC16F785-I/P, which shares the same 20-PDIP package, same silicon die, and same Flash/RAM/EEPROM map, but with industrial -40C to +85C temperature range instead of the extended range. For other-pin-equivalent PIC16F785 family members in 20-PDIP see PIC16F785-E/P. Note: 20-pin SOIC (-E/SO) variants require PCB footprint rework and are not drop-in for the DIP pad pattern.
What is the equivalent of PIC16F785-E/P from another brand?
There is no true cross-brand drop-in equivalent for the PIC16F785-E/P because of its unique combination of 20-PDIP package, two on-chip op-amps, two comparators, ECCP full-bridge PWM, and PIC16 mid-range core. Competing 8-bit MCUs like ATtiny or STM8 will differ in pinout, toolchain, and feature mix; firmware and PCB design must be reworked. Microchip's own cross-reference tool maps it only to other PIC16F785 family members.
When should I choose PIC16F785-E/P over a PIC18 or PIC16F1xxx part?
Choose the PIC16F785-E/P when you need two on-chip op-amps and ECCP full-bridge PWM at the lowest cost in a 20-pin DIP - features that are uncommon in baseline PIC16F parts and would otherwise require external analog ICs. If your application needs more memory, USB, or a faster MIPS core, step up to PIC18 or PIC16F1xxx families. For 14-pin designs, downsize to PIC16F684 family; the toolchain and instruction set are compatible.
Can I program PIC16F785-E/P without an external programmer?
The PIC16F785-E/P supports In-Circuit Serial Programming (ICSP) via its PGD and PGC pins, allowing on-board programming through a 5-pin header using Microchip's PICkit 3, PICkit 4, ICD 3, ICD 4, or MPLAB Snap tools. No external parallel programmer is required. According to Microchip's programming specification, VPP high-voltage entry is generated by the ICSP tool itself; you do not need a separate high-voltage supply.
Where to download PIC16F785-E/P datasheet PDF?
The PIC16F785-E/P datasheet (document 41291E) is available as a free PDF on Microchip's website at https://ww1.microchip.com/downloads/en/DeviceDoc/41291E.pdf. The datasheet covers pinout, instruction set summary, peripheral registers, electrical characteristics, and timing diagrams. Microchip's product page at https://www.microchip.com/en-us/product/PIC16F785 also links to errata, application notes (TB3013, AN530), and the MPLAB X-compatible header files.
Where to find PIC16F785-E/P pinout diagram?
The PIC16F785-E/P pinout diagram is published in Section 1 of the Microchip datasheet (DS41291E) and reproduced on the XAIPART product page. For the 20-PDIP package, pin 1 is marked by the dot/notch and the layout is: RA0..RA5, RA6/OSC2/CLKOUT, RA7/OSC1/CLKIN on one side; RC0..RC5, RC6/TX/CK, RC7/RX/DT, VSS, VDD on the other. Always cross-check against the latest datasheet revision before PCB layout.
Is PIC16F785-E/P RoHS compliant and lead-free?
The PIC16F785-E/P is supplied in lead-free finish with matte-tin or NiPdAu lead-frame plating, meeting RoHS directive 2011/65/EU. Per the Microchip material declaration, this part is also REACH compliant. The extended -40C to +125C operating range combined with lead-free assembly supports industrial and automotive-grade deployment where end-product environmental compliance is required.
What are the key specifications of PIC16F785-E/P that engineers should know?
Key PIC16F785-E/P specifications: 8-bit PIC16 RISC core at 20 MHz (5 MIPS), 3.5 KB Flash, 128 B RAM, 128 B EEPROM, 2 op-amps, 2 comparators with hysteresis, 10-bit ADC up to 14 channels, 1 CCP + 1 ECCP (full-bridge PWM), 17 I/O pins, 2.0-5.5 V VDD, nanoWatt sleep modes, ICSP, and -40C to +125C operating range in a 20-PDIP package. This combination is uncommon in 8-bit MCUs and explains its long product life.

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

Selection Guide

Choose the PIC16F785-E/P when your design needs two on-chip op-amps, two comparators with hysteresis, ECCP full-bridge PWM, and a 20-PDIP through-hole package in one 8-bit MCU - particularly for switch-mode power supplies, LED drivers, BLDC motor control, and sensor signal conditioning. Pick the I (PIC16F785-I/P) variant for cost-sensitive industrial-temperature applications with -40C to +85C limits. For higher Flash budget (7 KB), step up to PIC16F685-I/P; for more RAM (256 B), consider PIC16F690-I/P. For SOIC SMT assembly, choose PIC16F785-E/SO (not a drop-in for the DIP footprint). Avoid substituting this part with cross-brand MCUs unless firmware is fully ported.

Comparison with Alternatives

Parameter This Product PIC16F785-I/P PIC16F685-I/P PIC16F677-I/P PIC16F690-I/P PIC16F716-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 20-pin PDIP 20-pin PDIP - same 20-pin PDIP - same 20-pin PDIP - same 20-pin PDIP - same 20-pin PDIP - same
Program Memory 3.5 KB Flash 3.5 KB Flash 7 KB Flash 3.5 KB Flash 7 KB Flash 3.5 KB Flash
RAM 128 B 128 B 256 B 128 B 256 B 128 B
Maximum CPU Speed 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
On-Chip Op-Amps 2 2 0 0 0 0
Comparators 2 with hysteresis 2 with hysteresis 2 2 2 0
ECCP Full-Bridge PWM Yes Yes Yes No Yes No
Operating Temperature -40C to +125C (E) -40C to +85C (I) -40C to +85C (I) -40C to +85C (I) -40C to +85C (I) -40C to +85C (I)

Key Differentiators

  • Two on-chip op-amps eliminate external analog ICs in feedback loops (vs PIC16F685-I/P)
  • Two-phase asynchronous feedback PWM supports digital SMPS without external logic (vs PIC16F677-I/P)
  • Extended -40C to +125C operating range covers automotive and harsh industrial (vs PIC16F785-I/P)
  • 20-PDIP through-hole package simplifies prototyping and education (vs PIC16F785-E/SO)

Design Notes

Place a 100 nF ceramic decoupling capacitor as physically close as possible to the VDD pin (pin 18), with a 10 uF bulk capacitor on the same VDD node. The PIC16F785-E/P draws sharp transient currents during CCP/ECCP edge switching; insufficient decoupling causes brown-out resets. Microchip's datasheet (DS41291E) recommends ESR below 1 ohm for the bulk capacitor. Estimated: a 10 uF X5R 16V 0805 ceramic provides roughly 8 mOhms ESR at 100 kHz, comfortably meeting this requirement.

Keep analog op-amp inputs (RA0, RA1, RA3, RA4) traces short and guarded from PWM digital traces (RC2-RC5 P1A-P1D). The on-chip op-amps have limited PSRR, so high dV/dt from the ECCP output edges can couple into the analog chain if the layout is poor. Microchip app note AN530 recommends separating analog ground and digital ground on the PCB with a single-point tie near the MCU VSS pin (pin 17). When using the on-chip op-amps as error amplifiers in a SMPS loop, this layout discipline is essential for clean regulation.

Do not assume the on-chip op-amps can drive heavy loads - their output stage is intended for feedback loops only and is rated for low current. External buffering (such as a TC1413 gate driver) is needed to drive power MOSFETs. Also note that the analog multiplexer on the ADC is shared with comparator inputs - reconfiguring ADC channel changes comparator source. Always set the CMCON register before ADCON0 channel selection to avoid unexpected comparator reference shifts during ADC conversion.

The PIC16F785-E/P is rated for -40C to +125C junction operation. With its modest CMOS power dissipation (a few mA at 20 MHz), the die rarely needs explicit thermal management in the 20-PDIP package. Estimated: typical IDD of 5 mA at 5 V yields 25 mW - well within the 20-PDIP thermal resistance of approximately 80 C/W. Heat becomes relevant only if you drive the I/O pins above their 25 mA per-pin spec or run at 5.5 V with all pins simultaneously sourcing current.

Compliance Information

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

RoHS and REACH compliance per Microchip material declaration. Standard mid-range PIC16F parts are not AEC-Q100 qualified; for AEC-Q100 automotive applications request the automotive-grade PIC variant from Microchip. Halogen-free status not specifically published in the cited snippets.

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

Related Searches

PIC16F785-E/P PIC16F785-E/P datasheet PDF PIC16F785-E/P price Microchip PIC16F785 datasheet PIC16F785 SMPS digital control PIC16F785 LED driver MCU PIC16F785 ECCP full bridge PWM PIC16F785-E/P vs PIC16F785-I/P PIC16F785-E/P vs PIC16F785-E/SO 20-pin PDIP 8-bit MCU nanoWatt PIC16F785 pinout diagram buy PIC16F785-E/P online

Related Components & Terms

Microchip Technology PIC16F785 PIC16F785-E/P PIC16F785-I/P PIC16F685 PIC16F677 PIC16F690 PIC16F716 8-bit microcontroller PIC16 family mid-range architecture RISC Flash memory EEPROM nanoWatt Technology ECCP CCP PWM full-bridge operational amplifier analog comparator 10-bit ADC ICSP 20-pin PDIP lead-free RoHS REACH DIP-20 through-hole switch-mode power supply LED driver 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