PIC16F628-20I/P - 8-Bit 20MHz 3.5KB Flash MCU | Microchip
N.º da peça: PIC16F628-20I/P ✗ Fim de vida| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $3.2 | $3,20 |
| 10 | $2.95 | $29,50 |
| 100 | $2.62 | $262,00 |
| 500 | $2.34 | $1.170,00 |
| 1.000 | $2.1 | $2.100,00 |
PIC16F628-20I/P Visão geral
What is a PIC16 mid-range microcontroller? A PIC16F-series microcontroller is an 8-bit RISC CMOS MCU built on Microchip's Harvard architecture. Within the semiconductor hierarchy it sits under: microcontroller -> 8-bit MCU -> mid-range PIC16 family -> flash-programmable MCU. It executes a single instruction per clock cycle (200 ns at 20 MHz), has a 14-bit instruction word, and is programmed using the PIC16 instruction set.
Key features include: 20 MHz maximum clock with 200 ns instruction cycle; 3.5KB flash program memory; 224 bytes SRAM; 128 bytes EEPROM; 16 I/O pins with individually configurable direction; an internal 4 MHz RC oscillator; a hardware USART for serial communication; two on-chip analog comparators with programmable reference; one Capture/Compare/PWM (CCP) module; and an ICD (In-Circuit Debugger) interface.
The architecture is based on a 14-bit instruction word with 35 single-word instructions, a hardware multiplier is absent, and the device uses a von-Neumann-style data path with Harvard program/data memory separation. The integrated analog comparators and PWM make the part suitable for closed-loop control without external ICs.
Typical applications include HVAC fan and damper control, small appliance controllers, automotive interior lighting and body electronics, security and alarm panels, low-cost remote sensor transmitters, and hobby/education platforms where the classic 18-pin PIC footprint is expected. The 18-pin PDIP package remains the most familiar form factor for breadboard-based prototyping.
When designing, note that the "I" suffix indicates the industrial temperature grade (-40C to +85C). The 20 MHz speed grade requires VDD of 4.5V-5.5V; below 4.5V the oscillator cannot reliably hit 20 MHz. Place a 100 nF decoupling capacitor within 5 mm of VDD and a 10 uF bulk capacitor near the package.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
Alternativas drop-in para PIC16F628-20I/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 PIC16F628-20I/P (mesmo formato e footprint) — diferindo em Operating Temperature, Package, RoHS Status, Core Architecture, Internal Oscillator.
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC16F628-20/P
✅ Drop-In✓ Em estoque
$1.96 / unidade
Ver ficha técnica →PIC16F628-20E/P
✅ Drop-In✓ Em estoque
$2.75 / unidade
Ver ficha técnica →PIC16F628-04I/P
✅ Drop-In✓ Em estoque
$2.16 / unidade
Ver ficha técnica →PIC16F627-20I/P
✅ Drop-In✓ Em estoque
$2.18 / unidade
Ver ficha técnica →PIC16F628-20I/P Classificações máximas e características elétricas
| Product Type | 8-bit Flash Microcontroller (MCU) |
| Series | PIC® 16F Mid-Range |
| Core Architecture | RISC Harvard, 14-bit instruction word |
| Program Memory (Flash) | 3.5 KB (2K x 14) |
| Data Memory (RAM) | 224 bytes |
| EEPROM Data Memory | 128 bytes |
| Frequência máxima de clock | 20 MHz |
| Instruction Cycle Time | 200 ns at 20 MHz |
| Tensão de alimentação de operação | 4.5 V to 5.5 V (20 MHz); 3.0 V to 5.5 V (low-frequency operation) |
| I/O Pins | 16 |
| CCP Modules | 1 |
| Analog Comparators | 2 |
| Communication Interfaces | USART (hardware) |
| Internal Oscillator | 4 MHz RC (calibrated) |
| Temperatura de operação | -40 C to +85 C (industrial, "I" grade) |
| Encapsulamento | 18-pin PDIP (through-hole, "P") |
| Tipo de montagem | Through-Hole (DIP) |
| Lead Free / RoHS | Lead free; RoHS compliant |
| Tube Quantity | 25 per tube |
Configuração de pinos do PIC16F628-20I/P
| Pino 1 | RA2/AN2/VREF- — Bidirectional I/O / analog channel 2 / negative voltage reference |
| Pino 2 | RA3/AN3/VREF+ — Bidirectional I/O / analog channel 3 / positive voltage reference |
| Pino 3 | RA4/T0CKI — Bidirectional I/O / Timer0 clock input (open-drain output option) |
| Pino 4 | RA5/MCLR/Vpp — Bidirectional I/O / Master Clear (reset, active-low) / programming voltage input |
| Pino 5 | VSS — Ground reference |
| Pino 6 | RB0/INT — Bidirectional I/O / external interrupt input |
| Pino 7 | RB1/RX/DT — Bidirectional I/O / USART RX / synchronous data |
| Pino 8 | RB2/TX/CK — Bidirectional I/O / USART TX / synchronous clock |
| Pino 9 | RB3/CCP1 — Bidirectional I/O / Capture/Compare/PWM module 1 output |
| Pino 10 | RB4 — Bidirectional I/O with interrupt-on-change |
| Pino 11 | RB5 — Bidirectional I/O with interrupt-on-change |
| Pino 12 | RB6/PGC — Bidirectional I/O / ICSP clock (ICD clock input) |
| Pino 13 | RB7/PGD — Bidirectional I/O / ICSP data (ICD data I/O) |
| Pino 14 | VDD — Positive supply voltage (4.5V-5.5V at 20 MHz) |
| Pino 15 | OSC1/RA7 — Crystal oscillator input / general-purpose I/O |
| Pino 16 | OSC2/RA6 — Crystal oscillator output / general-purpose I/O |
| Pino 17 | RA0/AN0 — Bidirectional I/O / analog channel 0 |
| Pino 18 | RA1/AN1 — Bidirectional I/O / analog channel 1 |
Aplicações típicas
PIC16F628-20I/P é adequado para 6 aplicaçãos: HVAC Fan and Damper Control, Small Appliance Controllers, Automotive Interior Lighting, Security and Alarm Panels, Hobby and Education Platforms, Industrial Sensor Transmitters.
HVAC Fan and Damper Control
The PIC16F628-20I/P fits HVAC damper and fan control because its 20 MHz core provides the 200 ns instruction cycle needed to drive the CCP1 PWM module at typical 25 kHz switching frequencies while leaving headroom for closed-loop PID computation. With two analog comparators on-chip, the MCU can sense zero-crossing of the AC mains for TRIAC firing without a dedicated zero-cross IC, reducing BOM cost by $0.30-$0.50. The 128-byte EEPROM stores user-set fan speeds across power cycles, and the 16 I/O lines handle multiple switch inputs plus LED indicators. Industrial -40C to +85C temperature grade allows installation in unconditioned attic or basement spaces.
Recomendado
Small Appliance Controllers
The PIC16F628-20I/P suits coffee makers, microwave ovens, and washing-machine sub-controllers thanks to its 3.5KB flash holding state-machine code plus lookup tables for sensor calibration. The on-chip USART interfaces to LED display drivers or external Wi-Fi/Bluetooth modules, while the two analog comparators monitor temperature via NTC thermistor bridges. At 20 MHz, the MCU executes a full keypad scan, LED multiplex, and PID update loop in well under 10 ms, comfortably supporting user-interface responsiveness requirements.
Recomendado
Automotive Interior Lighting
For dome-light dimming, footwell ambient LED controllers, and instrument-cluster backlight drivers, the PIC16F628-20I/P's hardware USART and PWM CCP provide flicker-free dimming via 16-bit resolution. With 16 I/O pins, the MCU can drive RGB LED strings, read CAN-bus signals via a transceiver, and service push-button inputs simultaneously. Designers must note that this part lacks AEC-Q100 qualification - for OEM automotive deployment, choose PIC16F628-20I/P only in aftermarket or non-safety-critical interior modules, or migrate to PIC16F15323-I/P (AEC-Q100 qualified).
Recomendado
Security and Alarm Panels
The PIC16F628-20I/P is widely used in PIR motion-sensor alarm panels and door/window contact modules because its 20 MHz core can scan up to 32 zones within a 50 ms loop while running an AES-128 encryption routine in software for wireless key-fob authentication. The 128-byte EEPROM stores up to 50 user codes and zone configurations across battery swaps, and the USART interfaces to GSM or LoRa modem modules for alarm reporting. Industrial -40C to +85C rating supports unheated garage and shed installations.
Recomendado
Hobby and Education Platforms
The PIC16F628-20I/P remains a staple of hobbyist electronics and university microcontroller courses due to its breadboard-friendly 18-pin PDIP package, free MPLAB X IDE support, and abundant tutorial ecosystem. Its 3.5KB flash comfortably accommodates teaching projects from blinking LEDs to UART-based GPS loggers. Compared to modern PIC16F15244, the F628 has simpler peripherals (no ADC, no DAC, no CWG) which actually helps beginners focus on fundamentals rather than peripheral configuration complexity.
Recomendado
Industrial Sensor Transmitters
4-20 mA loop-powered sensor transmitters benefit from the PIC16F628-20I/P's 20 MHz performance and integrated analog comparators for low-side current sensing. The CCP PWM module combined with an external MOSFET generates the precise loop current, while the USART connects to HART modems for bidirectional digital communication over the same loop. With only 3.5KB flash, code is typically written in assembly or compact C - migrating to PIC16F15244-I/P (7KB flash) is recommended for designs adding HART or WirelessHART stacks.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC16F628-20I/P — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | PIC16F628-20I/SO | PIC16F628-20/P | PIC16F628-20E/P | PIC16F628-04I/P | PIC16F627-20I/P |
|---|---|---|---|---|---|---|
| Package | PDIP-18 (P) | SOIC-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB | 1 KB |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 4 MHz | 20 MHz |
| Operating Temperature | -40 C to +85 C (industrial) | -40 C to +85 C | 0 C to +70 C | -40 C to +125 C | -40 C to +85 C | -40 C to +85 C |
| I/O Pins | 16 | 16 | 16 | 16 | 16 | 16 |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes |
| Lifecycle Status | NRND (Not Recommended for New Designs) | NRND | NRND | NRND | NRND | NRND |
| AEC-Q100 Automotive Qualified | No | No | No | No | No | No |
Principais diferenciais
- Internal 4 MHz calibrated RC oscillator eliminates external crystal (vs PIC16F84A-I/P)
- Hardware USART for asynchronous serial communication (vs PIC16F627-20I/P)
- 128 bytes on-chip EEPROM for parameter storage (vs PIC16F88-I/P)
Notas de projeto
Decoupling: Place a 100 nF ceramic decoupling capacitor within 5 mm of the VDD pin (pin 14) and a 10 uF bulk tantalum or aluminum electrolytic capacitor on the same power rail within 25 mm. The PIC16F628 has internal brown-out reset (BOR) configurable via configuration bits; enable BOR at 4.0V threshold for 5V designs to prevent code execution during brown-out. Note that the BOR is disabled by default in configuration bits and many debugging failures are due to BOR not being enabled. Current consumption is typically 5 mA active at 20 MHz / 5V and drops to <1 uA in sleep mode with WDT disabled.
Oscillator layout: When using an external crystal on OSC1/OSC2 (pins 15/16), keep crystal traces short (<10 mm) and shield them with a ground pour to minimize EMI pickup. Add a 1 MOhm parallel resistor across the crystal to bias the inverter into its linear region and guarantee startup. When using the internal 4 MHz RC oscillator instead, OSC1 and OSC2 can be repurposed as GPIO RA7/RA6 by setting the FOSC configuration bits to INTOSC. For noise-sensitive applications, avoid routing PWM or USART traces adjacent to the crystal traces.
MCLR pin (pin 4) must NOT be left floating. Tie MCLR to VDD through a 10 kOhm pull-up resistor and, if ICSP programming is required, add a diode or 100 Ohm resistor in series to allow the programmer to pull MCLR low. Floating MCLR is the #1 cause of intermittent reset behavior on PIC16 designs. Also note that PIC16F628A is NOT a software-compatible replacement for PIC16F628 - registers (EECON1, ADCON1) were reorganized; code compiled for F628 will not execute correctly on F628A without re-validation. Always verify part marking against the original BOM.
ICSP layout: Reserve access to RB6/PGC (pin 12), RB7/PGD (pin 13), and MCLR/Vpp (pin 4) for the in-circuit serial programming (ICSP) connector. Place a 5-pin header (Vpp, PGD, PGC, GND, VDD) on the board edge or test pads for factory programming. If the board is in a sealed enclosure, add programming pads on an accessible edge or expose an ICSP connector to avoid having to disassemble the product for firmware updates. PICkit 3 and PICkit 5 both support this part natively.
Informações de conformidade
RoHS compliant and lead-free per Microchip product page. NRND (Not Recommended for New Designs) per Microchip - migrate to PIC16F15244 for new designs. Not AEC-Q100 qualified - not suitable for OEM automotive safety-critical applications.