PIC16F628-04I/P - 8-Bit 4MHz PIC MCU 3.5KB Flash | Microchip
Teilenummer: PIC16F628-04I/P ✗ Abgekündigt| Menge | Stückpreis | Gesamt |
|---|---|---|
| 1 | $3.62 | $3,62 |
| 10 | $3.21 | $32,10 |
| 100 | $2.74 | $274,00 |
| 500 | $2.41 | $1.205,00 |
| 1.000 | $2.16 | $2.160,00 |
PIC16F628-04I/P Übersicht
What is a PIC microcontroller? A PIC (Peripheral Interface Controller) is an 8-bit RISC microcontroller family from Microchip Technology, designed around a Harvard-architecture CPU with separate program and data buses. PIC microcontrollers integrate a CPU, non-volatile Flash program memory, data RAM, EEPROM, and configurable peripherals into a single chip. The PIC16F mid-range family targets cost-sensitive embedded applications requiring deterministic performance, low power, and small footprint, sitting between the baseline PIC10/12 families and the enhanced PIC18 family in capability.
Key features of the PIC16F628-04I/P include 4MHz internal/external oscillator operation, internal 4MHz RC oscillator, programmable brown-out reset (BOR), low-voltage programming, 128 bytes of EEPROM for non-volatile parameter storage, and 16 I/O pins with individual direction control. The device supports In-Circuit Serial Programming (ICSP) via two pins, enabling firmware updates without removing the part from the board. An on-chip voltage reference and 10-bit ADC-compatible comparator module simplify analog signal acquisition.
The architecture uses a 14-bit instruction word with single-cycle execution for branch instructions and two-cycle for most others. The device includes two 8-bit timers (Timer0, Timer2) and one 16-bit timer (Timer1), a Capture/Compare/PWM (CCP) module, a hardware USART for asynchronous/synchronous serial, and a synchronous serial port (SSP) supporting SPI and I2C. Power-down current drops to the low microampere range when SLEEP is invoked.
Typical applications include HVAC thermostat controls, security and alarm panels, remote controls, sensor interface modules, automotive interior lighting, low-end industrial control, and any general-purpose 5V embedded design where 3.5KB of Flash and 16 I/O pins are sufficient. The wide 3.0V to 5.5V range supports both 3.3V and 5V systems.
When designing with the PIC16F628-04I/P, ensure decoupling capacitors (100nF + 10uF) are placed within 5mm of VDD/VSS pins, MCLR is tied to VDD through a 10k resistor with optional decoupling, and unused I/O pins are configured as outputs low to minimize power consumption. The device is offered in a 300-mil PDIP-18 package and is not recommended for new designs; Microchip suggests migrating to the PIC16F18444 or PIC16F628A family for new projects.
This page synthesizes distributor pricing, drop-in alternative MPNs from Microchip's same-package family, and practical PCB design notes that are not consolidated in any single manufacturer datasheet.
Drop-in-Alternativen für PIC16F628-04I/P – gleiches Gehäuse, Pin-kompatibel. Bauteile mit anderem Gehäuse, die eine PCB-Überarbeitung erfordern, sind ausgeschlossen.
Varianten dieser Serie
Modelle derselben Serie, die drop-in-kompatibel sind mit PIC16F628-04I/P (gleiche Bauform und Footprint) – abweichend in Package, Core Architecture, RoHS Status, Operating Temperature, Timers.
Schnellvergleichstool – Wählen Sie Alternativbauteile für den Direktvergleich:
PIC16F628A-I/P
✅ Drop-In✓ Auf Lager
$1.62 / Stück
Datenblatt ansehen →PIC16F628-04I/SO
✅ Drop-In✓ Auf Lager
$2.3 / Stück
Datenblatt ansehen →PIC16F627-04I/P
✅ Drop-In✓ Auf Lager
$2.3 / Stück
Datenblatt ansehen →PIC16F628-04/P
✅ Drop-In✓ Auf Lager
$2.35 / Stück
Datenblatt ansehen →PIC16F628-04E/P
✅ Drop-In✓ Auf Lager
$2.55 / Stück
Datenblatt ansehen →PIC16F627A-I/P
✅ Drop-In✓ Auf Lager
$1.72 / Stück
Datenblatt ansehen →PIC16F628T-04I/P
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F628-04I/P Grenzwerte & elektrische Eigenschaften
| Core | PIC16 (8-bit RISC) |
| Program Memory | 3.5 KB (2K x 14) Flash |
| Data RAM | 224 bytes |
| Data EEPROM | 128 bytes |
| Maximum Clock Speed | 4 MHz |
| Supply Voltage (VDD) | 3.0 V to 5.5 V |
| I/O Pins | 16 |
| Timers | 1 x 8-bit (Timer0), 1 x 16-bit (Timer1), 1 x 8-bit (Timer2) |
| Communication Interfaces | USART, SSP (SPI / I2C) |
| CCP Modules | 1 (Capture / Compare / PWM) |
| Comparators | 2 analog comparators with on-chip voltage reference |
| Brown-Out Reset (BOR) | Yes, programmable |
| Internal Oscillator | 4 MHz RC |
| In-Circuit Serial Programming (ICSP) | Yes, low-voltage programming supported |
| Gehäuse | PDIP-18 (300 mil, through-hole) |
| Montageart | Through-Hole (DIP) |
| Betriebstemperatur | -40 °C to +85 °C (Industrial grade, 'I' suffix) |
| RoHS-Status | Compliant |
| Lead-Free | Yes |
| Halogenfrei | Compliant per manufacturer datasheet |
PIC16F628-04I/P Pin-Konfiguration
| Pin 1 | RA5/MCLR/VPP — Digital I/O RA5 / Master Clear reset (active low) / Programming voltage input |
| Pin 2 | RA0/AN0 — Digital I/O RA0 / Analog channel 0 / Comparator input |
| Pin 3 | RA1/AN1 — Digital I/O RA1 / Analog channel 1 / Comparator input |
| Pin 4 | RA2/AN2/VREF — Digital I/O RA2 / Analog channel 2 / External voltage reference |
| Pin 5 | RA3/AN3/CMP1 — Digital I/O RA3 / Analog channel 3 / Comparator 1 output |
| Pin 6 | RA4/AN4/T0CKI — Digital I/O RA4 (open-drain) / Analog channel 4 / Timer0 clock input |
| Pin 7 | RA5/OSC1/CLKIN — Digital I/O RA5 / Oscillator crystal input / External clock input |
| Pin 8 | VSS — Ground reference |
| Pin 9 | OSC2/CLKOUT — Oscillator crystal output / 1/4 Fosc clock output |
| Pin 10 | RB0/INT — Digital I/O RB0 / External interrupt input |
| Pin 11 | RB1/RX/DT — Digital I/O RB1 / USART RX / Synchronous data line |
| Pin 12 | RB2/TX/CK — Digital I/O RB2 / USART TX / Synchronous clock line |
| Pin 13 | RB3/CCP1 — Digital I/O RB3 / Capture/Compare/PWM channel 1 |
| Pin 14 | RB4/PGM — Digital I/O RB4 / Low-voltage programming input |
| Pin 15 | RB5 — Digital I/O RB5 |
| Pin 16 | RB6/PGC — Digital I/O RB6 / ICSP clock input |
| Pin 17 | RB7/PGD — Digital I/O RB7 / ICSP data input/output |
| Pin 18 | VDD — Positive supply voltage (3.0 V to 5.5 V) |
Typische Anwendungen
PIC16F628-04I/P ist geeignet für 7 Anwendungs: HVAC Thermostat Control, Security and Alarm Panel I/O, Remote Control Transmitter/Receiver, Sensor Interface Module, Automotive Interior Lighting Controller, Industrial Control Logic Replacement, Small Protocol Bridge / UART Converter.
HVAC Thermostat Control
The PIC16F628-04I/P suits HVAC thermostat controllers needing deterministic 8-bit control with EEPROM-backed setpoint storage and modest memory. Its 128 bytes of EEPROM reliably retain user temperature schedules and calibration values across power cycles, while 224 bytes of SRAM handles runtime state. The 16 I/O pins drive multiplexed seven-segment or LCD displays, read keypad inputs, and switch triac outputs for the heating/cooling stages. The 4 MHz core is sufficient for thermistor sampling at 1 Hz with median filtering. Industrial-grade -40 to +85 C temperature operation matches the demanding thermal environment near furnace/air-handler enclosures. Brown-out reset protects scheduled setpoints during brown-outs common on shared HVAC circuits.
Empfohlen
Security and Alarm Panel I/O
The PIC16F628-04I/P is well-suited for alarm-panel I/O modules that read zone sensors and drive sirens, LED annunciators, and relay outputs. Its 16 I/O pins support 8 to 12 hard-wired zones via direct GPIO, with the remainder handling keypad polling and status LEDs. The hardware USART connects to a central panel or a wireless transmitter for off-premise reporting, while the SSP port can interface to an external EEPROM for event-log storage when the internal 128 bytes is insufficient. The analog comparators detect line tampering on supervised sensor loops. Programmable brown-out reset prevents false alarms caused by short power dips during thunderstorms.
Empfohlen
Remote Control Transmitter/Receiver
The PIC16F628-04I/P works well in low-cost RF remote control transmitters that need code generation in firmware rather than dedicated encoder ASICs. Its internal 4 MHz RC oscillator eliminates the external crystal, reducing BOM cost and PCB area - critical for battery-powered keyfob designs. The CCP module generates accurate carrier frequencies or PWM for IR modulation, while the SLEEP mode extends battery life by stopping the CPU between button presses. The 16 I/O pins handle up to 16 button inputs via matrix scanning. Industrial temperature operation supports outdoor and automotive keyfob environments. EEPROM stores pairing codes persistently across battery swaps.
Empfohlen
Sensor Interface Module
The PIC16F628-04I/P serves as a low-cost front-end for sensor interface modules that aggregate analog sensor data and forward it to a host controller. Its analog comparators can directly read thermistor or photocell voltages, while the USART reports readings over RS-232/485 to the host. The 224 bytes of SRAM is adequate for FIFO-buffered multi-channel logging at slow sample rates. With 128 bytes of EEPROM, calibration constants and per-sensor offsets can be stored field-upgradeable via ICSP. Industrial temperature grade allows deployment near motors, solenoids, and HVAC equipment where thermal stress is significant.
Empfohlen
Automotive Interior Lighting Controller
The PIC16F628-04I/P fits automotive interior lighting controllers that drive LED strings or incandescent lamps via MOSFET switches. Its 16 I/O pins can PWM multiple channels using the CCP module plus software PWM for additional channels, providing dimming and fade-in/out sequences. The wide 3.0 to 5.5 V supply range matches 12 V automotive rails after local regulation. Industrial temperature grade is borderline for under-hood use; for cabin applications the -40 to +85 C range is sufficient. EEPROM stores user-selected color modes. Brown-out reset handles cranking transients common during engine start.
Empfohlen
Industrial Control Logic Replacement
The PIC16F628-04I/P is a modern replacement for legacy 8-bit industrial control logic that previously used discrete logic ICs or small PLDs. Its Flash memory allows last-minute firmware changes, while EEPROM holds configuration parameters. The USART interfaces to operator panels and HMI displays, and the SSP port connects to SPI sensors or I/O expanders. Programmable BOR prevents corruption of the configuration EEPROM during brown-outs typical on industrial mains. Industrial-grade temperature rating is required for cabinet-mounted controls near heat-generating equipment. The PDIP-18 package allows socketed field-replacement, simplifying maintenance in legacy plants.
Empfohlen
Small Protocol Bridge / UART Converter
The PIC16F628-04I/P works as a compact protocol bridge between UART-based peripherals and an I2C or SPI master. Its hardware USART plus SSP (SPI/I2C) ports are purpose-built for translating between serial protocols, and the 4 MHz core is fast enough for sub-115200 baud translation tasks. The 224 bytes of SRAM provide buffer headroom for short packets, and 128 bytes of EEPROM hold protocol-specific configuration. Industrial temperature rating suits factory-floor deployments. ICSP allows in-field firmware updates when protocol requirements change. Brown-out reset prevents mid-packet corruption during noisy industrial mains events.
Empfohlen
Zusammenfassung der empfohlenen Produkte
Technische Referenzdaten für PIC16F628-04I/P – Vergleich, Designhinweise und Compliance-Informationen.
Auswahlhilfe
Vergleich mit Alternativen
| Parameter | Dieses Produkt | PIC16F628A-I/P | PIC16F628-04I/SO | PIC16F627-04I/P | PIC16F628-04/P | PIC16F628-04E/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | PDIP-18 (300 mil) | PDIP-18 - same | SOIC-18 - different package, same die | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same |
| Maximum Clock | 4 MHz | 20 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz |
| Program Memory (Flash) | 3.5 KB (2K x 14) | 3.5 KB | 3.5 KB | 1.75 KB (-50%) | 3.5 KB | 3.5 KB |
| Data RAM | 224 bytes | 224 bytes | 224 bytes | 72 bytes (-68%) | 224 bytes | 224 bytes |
| Data EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes |
| I/O Pins | 16 | 16 | 16 | 16 | 16 | 16 |
| Operating Temperature | -40 to +85 C (Industrial) | -40 to +85 C (Industrial) | -40 to +85 C (Industrial) | -40 to +85 C (Industrial) | 0 to +70 C (Commercial) | -40 to +125 C (Extended) |
| Lifecycle Status | NRND (not recommended for new designs) | Active (recommended replacement) | NRND | NRND | NRND | NRND |
Wichtigste Unterscheidungsmerkmale
- Industrial temperature range with full Flash/EEPROM/RAM retention (vs. PIC16F628-04/P (commercial grade))
- Drop-in compatible with PIC16F628A-I/P upgrade path (vs. PIC16F628-04/P (commercial grade))
- Larger Flash/RAM than PIC16F627 series (vs. PIC16F627-04I/P)
Designhinweise
Decouple the VDD pin with a 100 nF ceramic capacitor plus a 10 uF tantalum or aluminum polymer bulk capacitor placed within 5 mm of the VDD/VSS pin pair. Use separate analog and digital VDD traces if the board has analog sensors - the PIC16F628-04I/P's internal VREF is sensitive to digital switching noise. For battery-powered designs, route all unused I/O pins to outputs low to minimize SLEEP current leakage.
MCLR must be tied to VDD through a 4.7k to 10k resistor (never left floating) for normal operation. For ICSP programming, add a diode from VDD to MCLR and a series resistor to allow in-circuit programming without disturbing the running application. RA4 is open-drain and requires an external pull-up when used as a logic output. The internal 4 MHz RC oscillator drifts with VDD and temperature; for time-critical UART or PWM applications, use an external crystal.
Keep the trace from MCLR/VPP to the ICSP connector short and isolated from switching signals. Place the ICSP connector near the MCU with pin assignments per Microchip's ICSP specification (PGD, PGC, VPP, VDD, VSS). For PCB layout, route the crystal/oscillator traces short and symmetric with a ground guard ring to minimize EMI. The PDIP-18 footprint allows socketed assembly for prototyping, simplifying field replacement and firmware iteration.
The USART RX pin RB1 should not be shared with other functions when the USART is enabled, as noise on RB1 can corrupt received data. The Capture/Compare/PWM (CCP) output on RB3 must be assigned the correct TRISB direction (output) before use, or the pin will float. When using the analog comparators, route comparator inputs (RA0-RA3) away from high-frequency digital traces to prevent oscillation. Configure unused comparators off to reduce current draw.
Compliance-Informationen
RoHS and REACH compliant per Microchip product page. Halogen-free per FindIC datasheet listing. Not AEC-Q100 qualified (automotive); for AEC-Q100 automotive designs choose PIC16F18444 or PIC16F628A automotive-qualified variants. Conflict minerals compliance documented per Microchip corporate policy.