PIC16F628T-04I/SS - 8-Bit Flash MCU, 4MHz, 3.5KB | Microchip
料号: PIC16F628T-04I/SS ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $1.29 | $1.29 |
| 10 | $1.16 | $11.60 |
| 100 | $1.03 | $103.00 |
| 500 | $0.92 | $460.00 |
| 1,000 | $0.83 | $830.00 |
PIC16F628T-04I/SS 概述
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program and data memory, I/O peripherals, and interrupt logic on one die. The PIC16F62X family uses Microchip's enhanced mid-range 8-bit RISC core with a 14-bit instruction word, sitting in the product hierarchy of microcontroller -> 8-bit MCU -> PIC16 family -> PIC16F6XX flash series -> PIC16F62X. This category serves cost-sensitive and deterministic real-time control tasks such as appliance control, sensor interfacing, and battery-powered logic replacement.
Key features include an internal 4 MHz oscillator with calibration, dual analog comparators with programmable VREF, a hardware USART for asynchronous serial communication, Capture/Compare/PWM (CCP) modules, power-on reset (POR), brown-out detect (BOD), a watchdog timer with its own RC oscillator, programmable weak pull-ups on PORTB, and in-circuit serial programming (ICSP) via the multiplexed MCLR pin. These features minimize external component count for small-form-factor designs.
The architecture combines a Harvard bus, 35 single-cycle instructions, and direct/indirect addressing modes with peripheral-rich silicon. Compared to the older 16C/16F baseline, the PIC16F628A generation adds internal oscillator calibration and improved flash endurance, making it suitable for low-volume and field-upgradable designs.
Typical applications include appliance and white-goods control boards, sensor signal conditioning front-ends, LED lighting controllers, low-end motor drivers (via CCP/PWM), hobby and educational hardware (Arduino predecessor designs), battery chargers, and small industrial monitoring nodes where deterministic 8-bit performance is sufficient.
When designing with this device, budget the oscillator start-up time and BOD reset behavior in power-sequenced systems, and ensure decoupling on VDD/VSS is placed within 5 mm of the IC pins. For new designs, evaluate the pin-compatible PIC16F628A-I/SS or PIC16F88 upgrades for enhanced peripherals, otherwise the PIC16F628T-04I/SS remains a cost-optimized choice.
This page synthesizes distributor pricing, cross-reference candidates, and practical design notes not found in the manufacturer datasheet alone.
直接替换替代料: PIC16F628T-04I/SS ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC16F628T-04I/SS (相同外形与封装尺寸) ——差异在于 Package, Internal Oscillator, Maximum Clock Speed, RoHS Status, I/O Pins.
快速对比工具——选择替代料号进行并排对比:
PIC16F628-04I/SS
✅ 直接替换📋 参考替代料(不在目录中)
PIC16F628A-I/SS
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$1.41 / 个
查看数据手册 →PIC16F628-20I/SS
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16F88-I/SS
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$3.08 / 个
查看数据手册 →PIC16F1828-I/SS
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16F627A-I/SS
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$1.12 / 个
查看数据手册 →PIC16F628T-04I/SS 最大额定值与电气特性
| Family | PIC16F6XX |
| Core | 8-bit PIC RISC, 14-bit instruction word |
| Program Memory (Flash) | 3.5 KB (2K x 14) |
| Data RAM | 224 bytes |
| Data EEPROM | 128 bytes |
| Maximum Clock Speed | 4 MHz |
| Supply Voltage (VDD) | 3.0 V to 5.5 V |
| 工作温度 | -40C to +85C (industrial) |
| I/O Pins | 16 |
| 封装 | 20-pin SSOP (5.30 mm body width) |
| 安装类型 | Surface Mount |
| Analog Comparators | 2 with programmable VREF |
| Timers | Timer0 (8-bit), timer2 (8-bit), watchdog timer |
| Communication | USART (async serial), ICSP |
| RoHS 状态 | Compliant |
PIC16F628T-04I/SS 引脚配置
| 引脚 1 | RA7/OSC1 — PORTA bit 7 / oscillator input |
| 引脚 2 | RA6/OSC2 — PORTA bit 6 / oscillator output |
| 引脚 3 | RA5/MCLR/VPP — PORTA bit 5 / master clear / programming voltage |
| 引脚 4 | RA4/AN4/TOCKI — PORTA bit 4 / analog input 4 / Timer0 clock |
| 引脚 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input 3 / VREF positive |
| 引脚 6 | RA2/AN2/VREF- — PORTA bit 2 / analog input 2 / VREF negative |
| 引脚 7 | RA1/AN1/C1OUT — PORTA bit 1 / analog input 1 / comparator 1 output |
| 引脚 8 | RA0/AN0/C2OUT — PORTA bit 0 / analog input 0 / comparator 2 output |
| 引脚 9 | RB7/PGD — PORTB bit 7 / ICSP data |
| 引脚 10 | RB6/PGC — PORTB bit 6 / ICSP clock |
| 引脚 11 | RB5 — PORTB bit 5 |
| 引脚 12 | RB4/PGM — PORTB bit 4 / LVP programming |
| 引脚 13 | RB3/CCP1 — PORTB bit 3 / Capture Compare PWM 1 |
| 引脚 14 | RB2 — PORTB bit 2 |
| 引脚 15 | RB1/RX/DT — PORTB bit 1 / USART RX / data |
| 引脚 16 | RB0/TX/CK — PORTB bit 0 / USART TX / clock |
| 引脚 17 | VDD — Positive supply |
| 引脚 18 | GND — Ground |
| 引脚 19 | NC — Not connected (per datasheet) |
| 引脚 20 | NC — Not connected (per datasheet) |
典型应用
PIC16F628T-04I/SS 适用于 6 应用s: Appliance Control Boards, LED Lighting and Signage Controllers, Sensor Signal Conditioning Front-Ends, Battery-Powered Logic Replacement, Hobby and Educational Hardware, Small Industrial Monitoring Nodes.
Appliance Control Boards
The PIC16F628T-04I/SS is well suited for white-goods and small appliance controllers where deterministic 8-bit execution and high-current I/O matter more than raw compute. Its 16 mA source/sink capability on PORTB allows direct LED and relay drive without external buffers, and the on-chip comparators support zero-crossing detection for triac firing. The CCP module delivers PWM for motor-speed or heater regulation, and 3.5 KB of flash fits typical state-machine firmware. Industrial temperature grade (-40 to +85 C) supports under-cabinet and garage environments.
推荐
LED Lighting and Signage Controllers
For LED lighting and signage, the PIC16F628T-04I/SS provides 16 high-drive I/O pins that can source/sink up to 25 mA per pin to multiplex LED matrices or drive discrete indicators directly. The CCP/PWM peripheral generates precise dimming waveforms, while the USART enables daisy-chained addressable displays or DMX-style control. Operating from 3.0-5.5 V, the device is compatible with both 3.3 V and 5 V LED-driver ecosystems, and its 4 MHz instruction rate keeps up with typical refresh-rate demands for static and slow-multiplexed signage.
推荐
Sensor Signal Conditioning Front-Ends
In sensor-conditioning front-ends, the PIC16F628T-04I/SS uses its two on-chip analog comparators with programmable VREF to threshold thermistor, photodiode, or Hall-sensor signals without external op-amps. The programmable reference covers 0-5 V rails for direct threshold setting. Combined with USART telemetry, the MCU can wake on comparator interrupt, capture a reading, and transmit it to a host controller. Its low BOM count (no external crystal needed) and small SSOP-20 footprint suit miniaturized sensor modules.
推荐
Battery-Powered Logic Replacement
The PIC16F628T-04I/SS replaces discrete CMOS logic in battery-powered devices by integrating timers, glue logic, and sequencing into a single chip. Brown-out detect (BOD) and power-on reset (POR) protect lithium cells from under-voltage damage, while sleep current in the microamp range extends runtime. Watchdog timer with its own RC oscillator prevents lockups in unattended deployments. The 3.0-5.5 V supply range aligns with single-cell Li-ion and 2x AA chemistries commonly used in remote controls, door sensors, and IoT edge nodes.
推荐
Hobby and Educational Hardware
Educational and hobby platforms built around the PIC16F628T-04I/SS benefit from 8-bit simplicity, free MPLAB X IDE support, and the XC8 compiler toolchain. The 3.5 KB flash is enough for learning projects from blinking LEDs to interrupt-driven I/O, and the ICSP interface allows live re-flashing on a breadboard. PICkit 3/4/5 programmers support this device, and its 20-pin SSOP package breaks out all relevant pins on standard DIP adapters for student kits.
推荐
Small Industrial Monitoring Nodes
In small industrial monitoring nodes, the PIC16F628T-04I/SS provides the analog comparators, timers, and USART needed to read switch contacts, drive indicator LEDs, and report status over serial links. Industrial temperature rating (-40 to +85 C) tolerates cabinet and outdoor enclosure conditions. The PIC16F62X watchdog with dedicated RC oscillator ensures recovery from EMI-induced lockups, while 128 bytes of EEPROM stores calibration constants and non-volatile configuration. SSOP-20 supports compact, densely-packed PLC-style I/O cards.
推荐
推荐产品汇总
工程参考数据: PIC16F628T-04I/SS ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | PIC16F628-04I/SS | PIC16F628A-I/SS | PIC16F628-20I/SS | PIC16F88-I/SS | PIC16F1828-I/SS |
|---|---|---|---|---|---|---|
| Package | SSOP-20 (5.30 mm) | SSOP-20 (5.30 mm) - same | SSOP-20 (5.30 mm) - same | SSOP-20 (5.30 mm) - same | SSOP-20 (5.30 mm) - same | SSOP-20 (5.30 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Maximum Clock Speed | 4 MHz | 4 MHz | 20 MHz | 20 MHz | 20 MHz | 32 MHz |
| Flash Program Memory | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB | 7 KB | 7 KB |
| Supply Voltage | 3.0 V to 5.5 V | 3.0 V to 5.5 V | 3.0 V to 5.5 V | 3.0 V to 5.5 V | 2.0 V to 5.5 V | 1.8 V to 5.5 V |
| Internal Calibrated Oscillator | No | No | Yes (4 MHz) | No | Yes (8 MHz) | Yes (32 MHz HF + 32 kHz LF) |
| ADC | None (comparators only) | None (comparators only) | None (comparators only) | None (comparators only) | 10-bit ADC, 7 channels | 12-bit ADC, 8 channels |
关键差异点
- High-current I/O for direct LED/relay drive (对比 PIC16F88-I/SS)
- Industrial temperature grade as standard (对比 PIC16F627A-I/SS)
- Dual analog comparators with programmable VREF (对比 PIC16F1828-I/SS)
设计说明
Decouple VDD (pin 17) to ground with a 100 nF ceramic capacitor placed within 5 mm of the IC. Add a bulk 10 uF tantalum or aluminum polymer capacitor on the main 5 V rail to suppress motor inrush transients. The PIC16F62X BOD and POR are sensitive to VDD rise time - a soft-start ramp longer than the PWRT interval (typ. 72 ms) requires external reset supervision. Average active current is below 2 mA at 4 MHz, 5 V; sleep current is approximately 1 uA.
For designs without an external crystal, route the PIC16F628T-04I/SS in RC oscillator mode and add a 100 nF capacitor across OSC1/OSC2. Pin RA5/MCLR must be tied to VDD through a 10 kohm resistor for normal operation. If precise USART baud rates are required, use a 4.000 MHz crystal with 22 pF load capacitors; the '04' speed grade limits instruction rate to 4 MHz, so this part cannot use the higher 20 MHz crystal options.
Do not leave the MCLR/RA5 pin floating - an undriven MCLR may cause spurious resets and prevent ICSP programming. PORTB weak pull-ups are individually programmable but are disabled by default; enable them globally with the RBPU bit for switch-input reliability. The PIC16F628T-04I/SS lacks ADC - if your firmware requires analog conversion, choose the pin-compatible PIC16F88 instead. Lastly, ensure CCP1 is configured before using PWM on RB3, and confirm the comparator output mode is correct for the chosen CVREF polarity.
合规信息
RoHS and REACH compliance per Microchip PIC16F628 family product page. Not AEC-Q100 qualified - industrial grade only.