PIC16F628-20E/SS - 8-bit 20MHz 3.5KB Flash MCU | Microchip
N.º de pieza: PIC16F628-20E/SS ✗ Fin de vida| Cant. | Precio unitario | Total |
|---|---|---|
| 1 | $4.59 | $4,59 |
| 10 | $4.12 | $41,20 |
| 100 | $3.65 | $365,00 |
| 500 | $3.27 | $1.635,00 |
| 1.000 | $2.94 | $2.940,00 |
PIC16F628-20E/SS Descripción general
A microcontroller (MCU) is a single-chip computer containing a CPU core, program memory (ROM/Flash), data memory (RAM), and integrated peripherals such as timers, communication interfaces, and I/O ports. The PIC16 family occupies the 8-bit mid-range tier of Microchip's PIC hierarchy (PIC10/12/14/16/18 -> 8-bit MCU -> microcontroller -> semiconductor) and is targeted at cost-sensitive embedded control where deterministic interrupt latency and low power are valued. This part falls under Microchip's PIC16 mid-range product line.
Key features include 16 I/O pins, an internal 4MHz precision oscillator (selectable), two analog comparators, a USART module, a capture/compare/PWM (CCP) module, brown-out detect (BOD), power-on reset (POR), power-up timer (PWRT), oscillator start-up timer (OST), watchdog timer (WDT) with its own RC oscillator, and in-circuit serial programming (ICSP). The 'E' suffix denotes the extended industrial temperature grade of -40C to +125C. Programmable weak pull-ups on PORTB and code protection round out the feature set.
The device operates from 3.0V to 5.5V (the '04' variant) or 4.5V to 5.5V at the full 20MHz speed grade. CMOS technology with nanoWatt power management enables very low standby current (typical < 1uA). The Harvard bus architecture separates program and data memory to allow simultaneous fetch and read/write in a single instruction cycle.
Typical applications include industrial control, automotive body electronics, smart sensors, consumer appliances, remote controls, low-cost data loggers, and battery-powered instrumentation. The extended temperature range makes the PIC16F628-20E/SS well suited to harsh environments where commercial-grade parts would fail.
When designing with this MCU, note that the 'E' temperature grade requires verification of the analog comparator and internal oscillator behavior at extreme temperatures. Designers migrating from the older PIC16F84 will find similar peripheral mapping but with substantially more memory and a richer peripheral set.
Alternativas directas para PIC16F628-20E/SS — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.
Variantes de esta serie
Modelos de la misma serie compatibles directamente con PIC16F628-20E/SS (mismo factor de forma y huella) — difiere en Package, Operating Temperature, I/O Pins, Analog Comparators, Core Architecture.
Herramienta de comparación rápida — seleccione piezas alternativas para compararlas lado a lado:
PIC16F628-20/SS
✅ Sustitución directa📋 Alternativa de referencia (no en el catálogo)
PIC16F628-20I/SS
✅ Sustitución directa📋 Alternativa de referencia (no en el catálogo)
PIC16F628T-20E/SS
✅ Sustitución directa✓ En stock
$2.5 / unidad
Ver hoja de datos →PIC16F627A-I/SS
✅ Sustitución directa✓ En stock
$1.12 / unidad
Ver hoja de datos →PIC16F627-20E/SS
✅ Sustitución directa✓ En stock
$1.65 / unidad
Ver hoja de datos →PIC16F628-04E/SS
✅ Sustitución directa✓ En stock
$2.1 / unidad
Ver hoja de datos →PIC16F628-20E/SS Valores máximos y características eléctricas
| Core Architecture | PIC16 Enhanced Mid-Range 8-bit RISC |
| Instruction Set | 35 single-word instructions |
| Program Memory (Flash) | 3.5 KB (2K x 14 words) |
| RAM | 224 bytes |
| EEPROM | 128 bytes |
| Maximum CPU Clock | 20 MHz |
| Instruction Execution Time | 200 ns at 20 MHz |
| Supply Voltage (VDD) | 4.5 V to 5.5 V (at 20 MHz) |
| I/O Pins | 16 |
| Encapsulado | 20-pin SSOP (5.30 mm width) |
| Temperatura de funcionamiento | -40 C to +125 C (Extended, 'E' suffix) |
| Timers | Timer0, Timer1, Timer2 |
| Analog Comparators | 2 |
| Communication Peripherals | USART (SCI), SPI/I2C via MSSP not present (USART only) |
| CCP Module | 1 (Capture/Compare/PWM) |
| Internal Oscillator | 4 MHz precision (software-selectable) |
| Watchdog Timer | Yes, with dedicated on-chip RC oscillator |
| Brown-out Detect (BOD) | Yes |
| In-Circuit Programming | ICSP |
| Estado RoHS | Compliant |
| Tipo de montaje | Surface Mount |
Configuración de pines de PIC16F628-20E/SS
| Pin 1 | RA2/AN2/VREF — PORTA bit 2 / analog input 2 / voltage reference |
| Pin 2 | RA3/AN3/CMP1 — PORTA bit 3 / analog input 3 / comparator 1 output |
| Pin 3 | RA4/T0CKI/CMP2 — PORTA bit 4 / Timer0 clock input / comparator 2 output |
| Pin 4 | RA5/MCLR/VPP — PORTA bit 5 / Master Clear reset (active low) / programming voltage |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RB0/INT — PORTB bit 0 / external interrupt input |
| Pin 7 | RB1/RX/DT — PORTB bit 1 / USART RX / data line |
| Pin 8 | RB2/TX/CK — PORTB bit 2 / USART TX / clock line |
| Pin 9 | RB3/CCP1 — PORTB bit 3 / Capture-Compare-PWM module 1 |
| Pin 10 | RB4/PGM — PORTB bit 4 / low-voltage programming |
| Pin 11 | RB5 — PORTB bit 5 |
| Pin 12 | RB6/T1OSO/T1CKI/PGC — PORTB bit 6 / Timer1 oscillator out / Timer1 clock in / ICSP clock |
| Pin 13 | RB7/T1OSI/PGD — PORTB bit 7 / Timer1 oscillator in / ICSP data |
| Pin 14 | VDD — Positive supply voltage (4.5 V to 5.5 V at 20 MHz) |
| Pin 15 | RA6/OSC2/CLKO — PORTA bit 6 / crystal oscillator output / clock output |
| Pin 16 | RA7/OSC1/CLKI — PORTA bit 7 / crystal oscillator input / clock input |
| Pin 17 | RA0/AN0 — PORTA bit 0 / analog input 0 |
| Pin 18 | RA1/AN1 — PORTA bit 1 / analog input 1 |
| Pin 19 | OSC1/RA7 — (see pin 16; alternate function noted) |
| Pin 20 | OSC2/RA6 — (see pin 15; alternate function noted) |
Aplicaciones típicas
PIC16F628-20E/SS es adecuado para 6 aplicacións: Industrial Control and Sensor Interface, Automotive Body Electronics, Consumer Appliance Control, Remote Control and IR Transmitter, Battery-Powered Sensor Node, Security and Access Control Panels.
Industrial Control and Sensor Interface
The PIC16F628-20E/SS fits industrial control and sensor interface designs thanks to its extended -40C to +125C temperature grade, 16 digital I/O pins, and two on-chip analog comparators. With 3.5KB flash and 224 bytes RAM, the MCU can run PID control loops, debounce switch inputs, and drive relay or SSR outputs. The internal 4MHz oscillator eliminates an external crystal in cost-sensitive applications, while the 20MHz external clock supports tighter timing. Built-in brown-out detect and watchdog timer with dedicated RC oscillator give the fault resilience expected on factory floors.
Recomendado
Automotive Body Electronics
The PIC16F628-20E/SS serves automotive body electronics applications such as seat controllers, lighting modules, and HVAC damper drivers where extended temperature and reliability are required. The 35-instruction RISC core delivers deterministic 200ns interrupt latency, suitable for encoder decoding and PWM-driven actuators via the on-chip CCP module. The internal USART enables LIN bus slave implementations when paired with a transceiver. The 128-byte EEPROM stores trim and configuration across battery disconnects, and the watchdog timer with dedicated RC oscillator ensures recovery from lock-up events.
Recomendado
Consumer Appliance Control
The PIC16F628-20E/SS is well matched to consumer appliance control boards such as washing machine user interfaces, microwave ovens, and coffee machines. Its 16 I/O pins directly drive LED indicators, keypads, and 7-segment displays, while the CCP module generates PWM for motor speed or buzzer tones. The 3.5KB flash accommodates user-interface state machines plus diagnostic routines, and 128 bytes of EEPROM preserve user settings across power cycles. The 20MHz clock provides responsive button debounce and display refresh, and ICSP allows in-circuit firmware updates during production.
Recomendado
Remote Control and IR Transmitter
The PIC16F628-20E/SS is an excellent fit for handheld remote controls and IR transmitter designs. Its nanoWatt sleep modes drop current below 1uA, extending battery life in standby. The CCP module generates accurate 38kHz/40kHz IR carrier frequencies, and the 35-instruction RISC core executes RC5, NEC, or SIRC protocols with deterministic timing. The internal 4MHz oscillator is accurate enough for most consumer IR protocols, eliminating the need for an external resonator. Sixteen I/O pins support matrix keypads up to 4x4 plus status LEDs.
Recomendado
Battery-Powered Sensor Node
The PIC16F628-20E/SS supports battery-powered sensor nodes such as wireless thermostats, utility meters, and environmental loggers. Sleep currents below 1uA combined with the internal low-power oscillator allow multi-year operation on two AA cells. The two on-chip analog comparators can directly interface thermistors or other resistive sensors without an op-amp front-end, while the 128-byte EEPROM stores calibration data. The 16-bit Timer1 with its optional external crystal provides a real-time-clock timebase for periodic wake-and-sample cycles.
Recomendado
Security and Access Control Panels
The PIC16F628-20E/SS integrates well into security panels, door access controllers, and alarm keypads. Its 16 I/O pins accept multiple keypad rows/columns, magnetic door sensor inputs, and relay-driver outputs for door strikes. The hardware USART supports a connection to a GSM modem or Ethernet bridge for off-premises monitoring. The watchdog timer and brown-out detect guard against firmware lock-up and under-voltage events that could leave a door unsecured. The 128-byte EEPROM holds user credentials and event counters that survive power loss.
Recomendado
Resumen de productos recomendados
Datos de referencia de ingeniería para PIC16F628-20E/SS — comparación, orientación de diseño e información de cumplimiento.
Guía de selección
Comparación con alternativas
| Parámetro | Este producto | PIC16F628-20/SS | PIC16F628-20I/SS | PIC16F627A-I/SS | PIC16F628-04E/SS |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 20-pin SSOP | 20-pin SSOP (same) | 20-pin SSOP (same) | 20-pin SSOP (same) | 20-pin SSOP (same) |
| Max CPU Clock | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 4 MHz |
| Program Flash | 3.5 KB (2K x 14) | 3.5 KB | 3.5 KB | 1.75 KB | 3.5 KB |
| RAM | 224 bytes | 224 bytes | 224 bytes | 128 bytes | 224 bytes |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | None | 128 bytes |
| Operating Temperature | -40C to +125C (Extended) | 0C to +70C (Commercial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +125C (Extended) |
| Supply Voltage | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 3.0 V to 5.5 V | 3.0 V to 5.5 V |
Diferenciadores clave
- Extended industrial temperature range of -40C to +125C (frente a PIC16F628-20/SS)
- On-chip 128-byte EEPROM for non-volatile storage (frente a PIC16F627A-I/SS)
- Internal 4 MHz precision oscillator (frente a PIC16F628-04E/SS)
Notas de diseño
At 20 MHz the PIC16F628-20E/SS requires a supply of 4.5 V to 5.5 V; the 04 MHz speed grade supports 3.0 V to 5.5 V. Add a 100 nF decoupling capacitor as close as possible to VDD (pin 14) and a bulk capacitor (10 uF) on the supply rail. For battery-powered designs, use the nanoWatt sleep modes and the internal 4 MHz oscillator to reduce active current. The internal EEPROM write voltage is generated on-chip; no external programming voltage is needed for in-circuit serial programming (ICSP).
Route the MCLR/VPP pin (pin 4) directly to a dedicated reset supervisor or pull-up resistor network; do not share this trace with high-current switching signals. Place the crystal or resonator (if used) within 5 mm of OSC1/RA7 and OSC2/RA6 (pins 16 and 15) and guard the traces with a ground pour. For ICSP, dedicate PGC (RB6, pin 12) and PGD (RB7, pin 13) to programming and avoid loading these with large capacitances.
PIC16F628-20E/SS has only 224 bytes of RAM and 3.5 KB flash; recursive algorithms or large lookup tables will exhaust memory quickly. The CCP1 module is shared with PORTB bit 3, so using PWM disables RB3 as general I/O. Brown-out detect voltage is fixed and cannot be adjusted in this family - if a tunable threshold is needed, use the PIC16F88 or PIC16F1827. The 4 MHz internal oscillator accuracy is approximately +/- 1 percent over temperature, insufficient for tight baud-rate UART links without calibration.
Información de cumplimiento
RoHS compliant per Microchip product page; lead-free finish is standard for SSOP packaging. Part is not AEC-Q100 qualified - for automotive applications requiring full AEC-Q100 compliance, consider PIC16F15244 or another PIC16F1xx automotive-grade part. Lifecycle status is Not Recommended for new Designs (NRND) per Microchip.