PIC16F785-I/P - 8-Bit 20MHz Flash MCU w/ OpAmps | Microchip
N.º da peça: PIC16F785-I/P ✓ Ativo| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $2.94 | $2,94 |
| 10 | $2.65 | $26,50 |
| 100 | $2.36 | $236,00 |
| 500 | $2.1 | $1.050,00 |
| 1.000 | $1.88 | $1.880,00 |
PIC16F785-I/P Visão geral
A microcontroller (MCU) is an integrated circuit that combines a CPU, program memory, RAM, and peripherals such as timers, ADC, and communication interfaces into a single chip intended to be embedded in a larger system. The PIC16F785 belongs to Microchip's mid-range x14 instruction set family, positioned between the baseline PIC10/12/16 devices and the enhanced PIC18 family in terms of instruction count and peripheral richness.
Key features include 20MHz operation with a 200ns instruction cycle, 3.5KB Flash program memory, 128 bytes of RAM, 256 bytes of EEPROM data memory, 12 ADC channels with 10-bit resolution, two on-chip op-amps, two comparators with programmable reference, two PWM modules, a 2-phase PWM controller, and nanoWatt power management for low-power applications. The integrated op-amps and comparators eliminate the need for external analog components in many sensor-interface and power-conversion designs.
The PIC16F785 utilizes Microchip's RISC-based Harvard architecture, separating program and data memory pathways to allow simultaneous instruction fetch and data access. The two-phase asynchronous feedback PWM block is purpose-built for digital control loops, enabling the device to act as both the controller and the analog front-end for offline and isolated power supply designs.
Typical applications include switch-mode power supply (SMPS) digital control, LED lighting drivers, battery chargers, motor control, sensor signal conditioning, and consumer appliance control. The combination of analog front-end, programmable gain op-amps, and PWM peripherals on a 5V-tolerant 8-bit core makes the PIC16F785 particularly attractive for power-conversion designs where a separate MCU plus analog IC would otherwise be required.
When designing with this device, ensure the analog and digital supply pins (VDD/VSS) are properly decoupled and that unused op-amp/comparator pins are not left floating if their outputs are enabled. The integrated 2-phase PWM requires careful configuration of the asynchronous feedback timing registers to avoid shoot-through in half-bridge topologies, and the on-chip op-amps have limited output swing that must be considered when biasing them for single-supply operation.
This page combines the verified Microchip datasheet parameters, current distributor pricing tiers, and a list of pin-compatible same-package drop-in alternatives so engineers can verify the part's fit and quickly plan second sources.
Alternativas drop-in para PIC16F785-I/P — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
Variantes desta série
Modelos da mesma série compatíveis como drop-in com PIC16F785-I/P (mesmo formato e footprint) — diferindo em Package, Timers, ADC, I/O Pins, PWM Modules.
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC16F785-I/SS
✅ Drop-In ⚠️ Especificações não verificadas✓ Em estoque
$1.18 / unidade
Ver ficha técnica →PIC16F785-E/P
✅ Drop-In ⚠️ Especificações não verificadas✓ Em estoque
$1.22 / unidade
Ver ficha técnica →PIC16F785T-I/SS
✅ Drop-In ⚠️ Especificações não verificadas📋 Alternativa de referência (fora do catálogo)
PIC16F767-I/SS
✅ Drop-In✓ Em estoque
$2.18 / unidade
Ver ficha técnica →PIC16F727-I/P
✅ Drop-In✓ Em estoque
$2.78 / unidade
Ver ficha técnica →PIC16F685-I/P
✅ Drop-In✓ Em estoque
$1.32 / unidade
Ver ficha técnica →PIC16F785-I/P Classificações máximas e características elétricas
| Core Architecture | PIC16 mid-range x14 (8-bit RISC Harvard) |
| Program Memory (Flash) | 3.5 KB (2K x 14 words) |
| RAM | 128 bytes |
| EEPROM Data Memory | 256 bytes |
| Maximum CPU Clock | 20 MHz |
| Instruction Cycle | 200 ns |
| Supply Voltage Range | 2.0 V to 5.5 V |
| I/O Pins | 17 (max) |
| ADC | 10-bit, up to 12 channels |
| On-Chip Operational Amplifiers | 2 |
| On-Chip Comparators | 2 (with programmable reference) |
| PWM Modules | 10-bit PWM + 2-phase asynchronous feedback PWM |
| Timers | Timer0, Timer1, Timer2 |
| Operating Temperature Range (industrial) | -40 C to +85 C |
| Encapsulamento | 20-pin PDIP (0.300 inch, 7.62mm) |
| Tipo de montagem | Through-hole (PDIP) |
| Low-Power Mode | nanoWatt Technology |
Configuração de pinos do PIC16F785-I/P
| Pino 1 | RA2/AN2/OPA1IN-/CVREF — GPIO RA2 / ADC input 2 / Op-Amp 1 inverting input / CVREF output |
| Pino 2 | RA3/AN3/OPA1IN+/C1OUT — GPIO RA3 / ADC input 3 / Op-Amp 1 non-inverting input / Comparator 1 output |
| Pino 3 | RA4/AN4/OPA1OUT/CCP4 — GPIO RA4 / ADC input 4 / Op-Amp 1 output / Capture-Compare 4 |
| Pino 4 | RA5/OPA2IN-/T1CKI/SS — GPIO RA5 / Op-Amp 2 inverting input / Timer1 clock / SPI SS |
| Pino 5 | VSS — Ground reference |
| Pino 6 | RA6/OPA2IN+/OSC2/CLKOUT — GPIO RA6 / Op-Amp 2 non-inverting input / Crystal OSC2 / CLKOUT |
| Pino 7 | RA7/OPA2OUT/OSC1/CLKIN — GPIO RA7 / Op-Amp 2 output / Crystal OSC1 / CLKIN |
| Pino 8 | VDD — Positive supply voltage (2.0V-5.5V) |
| Pino 9 | RB2/AN8/P2B — GPIO RB2 / ADC input 8 / PWM 2 Phase B |
| Pino 10 | RB3/AN9/P1D — GPIO RB3 / ADC input 9 / PWM 1 Phase D |
| Pino 11 | RB4/AN10/P1C — GPIO RB4 / ADC input 10 / PWM 1 Phase C |
| Pino 12 | RB5/AN11/P2A — GPIO RB5 / ADC input 11 / PWM 2 Phase A |
| Pino 13 | RB6/ICSPCLK — GPIO RB6 / ICD clock / serial programming clock |
| Pino 14 | RB7/ICSPDAT — GPIO RB7 / ICD data / serial programming data |
| Pino 15 | RC0/P2C — GPIO RC0 / PWM 2 Phase C |
| Pino 16 | RC1/P2D — GPIO RC1 / PWM 2 Phase D |
| Pino 17 | RC2/AN12/CCP2 — GPIO RC2 / ADC input 12 / Capture-Compare 2 |
| Pino 18 | RC3/AN13/C2OUT/P1B — GPIO RC3 / ADC input 13 / Comparator 2 output / PWM 1 Phase B |
| Pino 19 | RC4/P1A — GPIO RC4 / PWM 1 Phase A |
| Pino 20 | RC5 — GPIO RC5 (digital only) |
Aplicações típicas
PIC16F785-I/P é adequado para 6 aplicaçãos: Switch-Mode Power Supply (SMPS) Digital Control, LED Lighting Drivers and Dimmers, Battery Chargers (Li-ion, Lead-Acid, NiMH), Sensor Signal Conditioning and Monitoring, Motor Control (BLDC, Stepper, Brushed DC), Consumer Appliance Control.
Switch-Mode Power Supply (SMPS) Digital Control
The PIC16F785-I/P is purpose-built for digital control of switch-mode power supplies because it integrates the analog front-end (dual op-amps and dual high-speed comparators) alongside the digital control loop (2-phase asynchronous feedback PWM). Current is sensed by Op-Amp 1 with programmable gain, voltage is sensed by Op-Amp 2, and the comparator generates cycle-by-cycle current-limit protection. The 2-phase PWM block drives a half-bridge with programmable dead-time, and the 20MHz CPU clock runs a discrete-time control loop at 100kHz+ switching frequencies.
Recomendado
LED Lighting Drivers and Dimmers
LED drivers require precise current regulation and dimming control, both of which the PIC16F785-I/P handles internally. The 10-bit PWM module provides flicker-free dimming with 1024 brightness steps, while the 2-phase asynchronous feedback PWM can drive a totem-pole stage for offline LED bulb designs. The op-amps sense current through a high-side or low-side shunt, and the 10-bit ADC reads NTC temperature for thermal-foldback. Operating from 2.0V to 5.5V also supports battery-powered LED work lights.
Recomendado
Battery Chargers (Li-ion, Lead-Acid, NiMH)
Battery charger designs benefit from the PIC16F785-I/P's integrated op-amps for current sensing, comparators for voltage thresholds, and PWM for switching-element control. The 256-byte EEPROM stores charging profiles and cycle-life counters without external storage, and the 2.0V minimum supply supports operation directly from a single Li-ion cell. The nanoWatt sleep modes reduce quiescent current to nanoamperes during the trickle-charge phase, extending battery life in portable chargers.
Recomendado
Sensor Signal Conditioning and Monitoring
Industrial sensor designs typically need amplification, filtering, and ADC conversion, all of which the PIC16F785-I/P provides on-chip. The two op-amps buffer bridge-type sensors (load cells, strain gauges) with programmable gain, the 10-bit ADC digitizes the conditioned signal, and the comparators generate alarms when thresholds are exceeded. Industrial -40C to +85C operation handles factory-floor temperature ranges without additional components, saving BOM cost and PCB area.
Recomendado
Motor Control (BLDC, Stepper, Brushed DC)
Small motor control designs use the PIC16F785-I/P's PWM modules for variable-speed drives and the comparators for back-EMF sensing. The op-amps amplify shunt-resistor current signals, and the 20MHz CPU handles trapezoidal or sinusoidal commutation algorithms in real time. EEPROM stores motor calibration constants and fault logs, while nanoWatt power modes reduce idle consumption in battery-powered tools. The 20-pin PDIP is friendly to hand-prototyped motor-control designs.
Recomendado
Consumer Appliance Control
White-goods and small appliances use the PIC16F785-I/P for user-interface handling, sensor reading, and load control. The 2.0V to 5.5V supply range handles direct rectified mains operation with simple regulators, the EEPROM stores user preferences across power cycles, and the comparators provide zero-crossing detection for TRIAC-based heater dimming. The 20-pin PDIP package simplifies hand-soldered prototypes and field repairs — particularly relevant for low-volume appliance variants.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC16F785-I/P — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | PIC16F785-I/SS | PIC16F785-E/P | PIC16F767-I/SS | PIC16F727-I/P | PIC16F685-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 20-pin PDIP | 20-pin SSOP | 20-pin PDIP - same | 20-pin SSOP | 20-pin PDIP - same | 20-pin PDIP - same |
| Flash Program Memory | 3.5 KB | 3.5 KB | 3.5 KB | 14 KB | 14 KB | 7 KB |
| RAM | 128 bytes | 128 bytes | 128 bytes | 368 bytes | 368 bytes | 256 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| On-Chip Op-Amps | 2 | 2 | 2 | 0 | 0 | 0 |
| Comparators | 2 | 2 | 2 | 2 | 2 | 2 |
| ADC Channels | 12 | 12 | 12 | 14 | 14 | 12 |
| Operating Temperature | -40C to +85C | -40C to +85C | -40C to +125C | -40C to +85C | -40C to +85C | -40C to +85C |
Principais diferenciais
- Only PIC16 family member with integrated dual op-amps AND 2-phase asynchronous feedback PWM (vs PIC16F767-I/SS)
- Designed specifically for switch-mode power supply control (vs PIC16F727-I/P)
- Compact 20-pin PDIP with on-chip analog (vs PIC16F685-I/P)
Notas de projeto
The PIC16F785-I/P operates from 2.0V to 5.5V; place a 100nF decoupling capacitor as close as possible to the VDD pin and a 10uF bulk capacitor on the same node. The on-chip analog peripherals (op-amps, comparators, ADC reference) share VDD and need low-noise regulation. For ADC accuracy at full 10-bit resolution, the supply ripple must remain below 50mV during conversion; in switching-power designs, RC-filter the analog supply pin from the digital supply pin.
When using the integrated 2-phase asynchronous feedback PWM, route the PWM output traces (P1A/P1B/P1C/P1D on PORTC4, RC3, RB4, RB3) with matched impedance and keep them short to minimize gate-loop inductance. The op-amp output traces (OPA1OUT/OPA2OUT on RA4/RA7) should be guarded by analog ground planes if they carry low-level sensor signals. Keep digital switching traces away from op-amp input pins to avoid coupling.
Do not leave the op-amp or comparator output pins floating when the analog blocks are enabled — this causes spurious current draw from internal bias networks. Always configure unused op-amps in unity-gain with the input tied to a known voltage (typically mid-rail). Also ensure the ICSP pins RB6/RB7 have a 10kOhm pull-up to VDD so the device does not enter programming mode in noisy environments.
Informações de conformidade
RoHS status not explicitly stated in verified web data; marked as unknown. Industrial temperature grade only — AEC-Q100 qualification is not applicable to the -I/P variant. For automotive applications, Microchip offers separately-qualified PIC16 derivatives.