PIC16F628T-04E/SS - 4MHz 8-Bit FLASH MCU, 3.5KB | Microchip
MPN: PIC16F628T-04E/SS ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.95 | $2.95 |
| 10 | $2.66 | $26.60 |
| 100 | $2.36 | $236.00 |
| 500 | $2.19 | $1,095.00 |
| 1,000 | $1.97 | $1,970.00 |
PIC16F628T-04E/SS Overview
A microcontroller (MCU) is a single-chip computer that contains a processor core, memory, and programmable input/output peripherals. PIC microcontrollers from Microchip are widely used in embedded applications because of their compact instruction set, low power consumption, and broad peripheral integration. The PIC16F628 family sits in the mid-range PIC lineup, balancing cost, code density, and on-chip resources for industrial and consumer designs.
Key features include two analog comparators with a programmable on-chip voltage reference, a Capture/Compare/PWM (CCP) module, a USART for asynchronous serial communication, and a Watchdog Timer with its own on-chip RC oscillator. Brown-out Detect (BOD), Power-on Reset (POR), Power-up Timer (PWRT), and Oscillator Start-up Timer (OST) are integrated for robust operation. The supply voltage range is 2.0 V to 5.5 V (extended) depending on the frequency variant.
Architecturally, the PIC16F628 uses a Harvard bus with separate program and data paths, a 14-bit instruction word, and a two-stage pipeline. Internal peripherals are accessed via a memory-mapped register file. The 'T' suffix indicates tape-and-reel packaging for high-volume assembly, and the 'E' code designates the extended temperature grade of -40 °C to +125 °C. 'SS' refers to the SSOP-20 package.
Typical applications include HVAC control, appliance interfaces, automotive interior subsystems, security and alarm panels, low-end motor control, and battery-powered sensor nodes. The combination of internal oscillator, comparators, USART, and EEPROM in a 20-pin SSOP makes the device a strong fit for compact, cost-sensitive designs that require a reliable 8-bit core.
When designing with this part, ensure that the MCLR pin is properly handled for in-circuit serial programming. Decoupling capacitors of 0.1 µF should be placed as close as possible to VDD, and the oscillator configuration bits must be set correctly for the chosen clock mode.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC16F628T-04E/SS — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with PIC16F628T-04E/SS (same form factor and footprint) — differing in I/O Pins, Package, Maximum Clock Frequency, Analog Comparators, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F628T-04/SS
✅ Drop-In✓ In Stock
$1.99 / Unit
View Datasheet →PIC16F628-04E/SS
✅ Drop-In✓ In Stock
$2.1 / Unit
View Datasheet →PIC16F628-04I/SS
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F628AT-E/SS
✅ Drop-In✓ In Stock
$1.98 / Unit
View Datasheet →PIC16F628T-04E/SS Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC RISC |
| Instruction Set | 35 single-word instructions |
| Program Memory | 3.5 KB (2K x 14) FLASH |
| Data SRAM | 224 bytes |
| Data EEPROM | 128 bytes |
| Maximum Clock Frequency | 4 MHz |
| Supply Voltage Range | 2.0 V to 5.5 V (extended, see datasheet) |
| I/O Pins | 16 (individually direction-controlled) |
| Analog Comparators | 2 with programmable VREF |
| Communication | USART (asynchronous serial) |
| CCP Module | Capture/Compare/PWM |
| Watchdog Timer | Yes, with dedicated on-chip RC oscillator |
| Brown-out Detect (BOD) | Yes |
| Power-on Reset (POR) | Yes |
| Operating Temperature | -40 °C to +125 °C (Extended, 'E' suffix) |
| Package | 20-pin SSOP (5.30 mm body width) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
| Programming Interface | ICSP (In-Circuit Serial Programming) |
PIC16F628T-04E/SS Pin Configuration
| Pin 1 | RA7/OSC1 — PORTA bit 7 / Oscillator input |
| Pin 2 | RA6/OSC2 — PORTA bit 6 / Oscillator output |
| Pin 3 | RA5/MCLR/VPP — PORTA bit 5 / Master Clear (Reset) / Programming voltage |
| Pin 4 | RA4/AN4/TOCKI — PORTA bit 4 / Analog input 4 / Timer0 clock input |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / Positive VREF |
| Pin 6 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / Negative VREF |
| Pin 7 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| Pin 8 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| Pin 9 | RB7 — PORTB bit 7 |
| Pin 10 | RB6 — PORTB bit 6 |
| Pin 11 | RB5 — PORTB bit 5 |
| Pin 12 | RB4/PGM — PORTB bit 4 / Low-voltage programming input |
| Pin 13 | RB3/CCP1 — PORTB bit 3 / CCP1 module I/O |
| Pin 14 | RB2/TX/CK — PORTB bit 2 / USART TX / clock |
| Pin 15 | RB1/RX/DT — PORTB bit 1 / USART RX / data |
| Pin 16 | RB0/INT — PORTB bit 0 / External interrupt |
| Pin 17 | VDD — Positive supply voltage |
| Pin 18 | GND — Ground |
| Pin 19 | NC — Not connected (per datasheet) |
| Pin 20 | NC — Not connected (per datasheet) |
Typical Applications
PIC16F628T-04E/SS is suitable for 8 applications: HVAC Control Systems, Appliance User Interface Boards, Security and Alarm Panels, Battery-Powered Sensor Nodes, Automotive Interior Lighting Controllers, Industrial Sensor Signal Conditioning, Small Motor Control (Brushed DC / Low-Power Stepper), Consumer Remote Controls and IR Transmitters.
HVAC Control Systems
The PIC16F628T-04E/SS is well-suited to HVAC control boards where its 16 I/O pins handle multiple relay drivers, temperature sensors, and user interfaces. The two integrated analog comparators enable direct thermistor or NTC sensor monitoring without external op-amps, while the 224-byte SRAM comfortably supports scheduling logic and PID calculation loops. The USART module allows connection to indoor unit communication buses, and the CCP module can drive triac-based PWM for fan-speed control. With extended -40 °C to +125 °C temperature grade, the device tolerates the harsh environment inside air handler cabinets. The 20-pin SSOP package keeps the controller board compact, and the 3.5 KB flash holds complete control firmware including safety interlocks.
Recommended
Appliance User Interface Boards
For washing machine, dishwasher, and oven front-panel controllers, the PIC16F628T-04E/SS provides enough I/O for keypad scanning, LED indicators, and seven-segment display multiplexing without external driver ICs. Its high-current 25 mA I/O capability directly drives indicator LEDs, simplifying the BOM. The internal EEPROM (128 bytes) is ideal for storing user settings, calibration data, and last-cycle state, which survives power loss. The 2.0-5.5 V operating range accommodates both 3.3 V and 5 V designs, and the integrated USART simplifies debug-log ports or service-mode interfaces. The 20-pin SSOP form factor fits behind compact membrane keypads, and the PIC RISC architecture ensures deterministic interrupt response for safety-critical button handling.
Recommended
Security and Alarm Panels
The PIC16F628T-04E/SS is a strong fit for security alarm control panels where its 16 I/O scan multiple zones (door/window sensors, PIR detectors) and drive siren and strobe outputs directly. The two analog comparators can monitor backup battery voltage and detect tamper-switch analog levels without external components, while the Watchdog Timer with dedicated RC oscillator ensures the panel recovers from firmware lockups. The 128-byte EEPROM stores installer-configured zone definitions and event codes, surviving power-cycle events. The USART supports connection to central-station modems or wireless transceiver modules. Extended temperature operation (-40 °C to +125 °C) suits unheated garages and outdoor enclosures.
Recommended
Battery-Powered Sensor Nodes
For low-power wireless sensor nodes, the PIC16F628T-04E/SS delivers reliable 8-bit processing with the ability to sleep between sensor reads via its SLEEP instruction and peripheral shutdown. The integrated 4 MHz oscillator eliminates external crystals in cost-sensitive designs, and the 2.0 V minimum supply voltage permits operation from a single lithium coin cell down to its end-of-life voltage. The 128-byte EEPROM stores calibration constants and node IDs, and the two comparators allow direct interface to analog sensor bridges or thermistors. With 16 I/O pins available, designers can connect to multiple sensors, an RF module, and status LEDs without port-expanders. Extended temperature grade supports outdoor deployments.
Recommended
Automotive Interior Lighting Controllers
The PIC16F628T-04E/SS works well in automotive interior modules such as dome-light controllers, ambient LED drivers, and puddle-lamp systems. Its high-current 25 mA I/O directly drives LED strings without external MOSFETs in low-current zones. The USART enables LIN or simple serial communication with the body control module, and the CCP module generates PWM dimming signals with 10-bit resolution. The Watchdog Timer and Brown-out Detect provide the fail-safe behavior expected in automotive subsystems. While the device is not AEC-Q100 qualified by default, its -40 °C to +125 °C operating range covers cabin-temperature extremes. The 20-pin SSOP package keeps the controller compact.
Recommended
Industrial Sensor Signal Conditioning
In industrial 4-20 mA loop signal-conditioning and transducer interface modules, the PIC16F628T-04E/SS handles analog monitoring via its two comparators with programmable on-chip voltage reference. The USART transmits scaled/processed values to a PLC or HMI over RS-485, and the 128-byte EEPROM stores per-unit calibration coefficients. The Brown-out Detect and Watchdog Timer ensure field-recoverable operation in electrically noisy factory environments, while the extended -40 °C to +125 °C temperature grade tolerates cabinet mounting near heat sources. The 20-pin SSOP package allows slim DIN-rail module designs, and the 3.5 KB flash holds complete linearization routines for thermocouple or RTD inputs.
Recommended
Small Motor Control (Brushed DC / Low-Power Stepper)
The PIC16F628T-04E/SS can drive small brushed DC motors or low-power stepper motors via its CCP module, which generates PWM and provides a flexible time base for commutation sequencing. Its 16 I/O pins are sufficient for H-bridge enable lines, direction control, and encoder feedback inputs. The USART allows command input from a host controller, and the analog comparators monitor motor current via shunt resistors for simple stall detection. With extended -40 °C to +125 °C operation and 3.5 KB of flash holding complete motion-control firmware, the device suits small actuators in appliances, vending machines, and HVAC damper controls.
Recommended
Consumer Remote Controls and IR Transmitters
The PIC16F628T-04E/SS fits consumer IR remote controls where its low pin count, integrated EEPROM for pairing codes, and CCP module for 38 kHz carrier generation simplify the design. Its 2.0-5.5 V operation supports both alkaline and coin-cell battery stacks, and SLEEP mode current is low enough for years of standby life. The two comparators can monitor battery voltage for low-battery warning. High-current I/O pins drive IR LEDs directly without external transistors in short-range designs. The 20-pin SSOP keeps the controller PCB under 10x10 mm, and the 3.5 KB flash holds complete protocol stacks for multiple device brands.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F628T-04E/SS — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F628T-04/SS | PIC16F628-04E/SS | PIC16F628-04I/SS | PIC16F628AT-E/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 |
| Maximum Clock Frequency | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz |
| Program Flash Memory | 3.5 KB (2K x 14) | 3.5 KB (2K x 14) | 3.5 KB (2K x 14) | 3.5 KB (2K x 14) | 3.5 KB (2K x 14) |
| Data SRAM | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 224 bytes |
| Data EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes |
| I/O Pins | 16 | 16 | 16 | 16 | 16 |
| Operating Temperature | -40C to +125C (Extended) | -40C to +85C (Standard) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +125C (Extended, 'A' silicon) |
| Supply Voltage Range | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
Key Differentiators
- Extended temperature grade (-40C to +125C) (vs PIC16F628T-04/SS)
- Tape-and-reel packaging for high-volume SMT assembly (vs PIC16F628-04E/SS)
- Lower maximum clock ceiling but same peripheral set (vs PIC16F628AT-E/SS)
Design Notes
Place a 0.1 µF decoupling capacitor as close as possible to the VDD pin (pin 17) and a bulk capacitor (e.g. 10 µF) on the supply rail. According to Microchip mid-range datasheet recommendations, the VDD-VSS pair should be decoupled at the IC and at the board entry point to suppress voltage transients during high-current I/O switching events, which is critical for the PIC16F628T-04E/SS driving LED loads directly.
The MCLR pin (pin 3) on the PIC16F628T-04E/SS is multiplexed with RA5 and VPP; if left floating, the device can experience spurious resets. According to Microchip documentation, MCLR must be tied to VDD through a 10 kΩ resistor (or left as a reset input) and a 100 nF cap to ground for noise filtering. Designers must also configure the MCLR/RA5 function via the configuration word before firmware development.
Route the ICSP clock/data lines (RB6/RB4) away from high-current switching traces to avoid programming-time noise coupling. According to Microchip ICD/in-circuit debugging guidance, the PGD/PGC pair should be kept short and isolated; if the application uses RB4/RB6 for I/O, ensure no load exceeds 25 mA on these pins during in-circuit serial programming sessions to prevent programming failures.
At 4 MHz and 5 V supply, the PIC16F628T-04E/SS typically draws 2-5 mA active and <1 µA in SLEEP mode, so no heatsinking is required. According to the Microchip datasheet, the SSOP-20 package thermal resistance (θJA) is approximately 100 °C/W, giving negligible self-heating at these current levels - making the device ideal for sealed enclosures without ventilation.
When using the analog comparators (pins RA0-RA3) on the PIC16F628T-04E/SS, configure unused analog pins as digital I/O and disable their analog buffers via the CMCON register. According to Microchip guidance, leaving the comparators powered when not in use increases quiescent current by ~100 µA per comparator and can introduce cross-talk on adjacent analog inputs, particularly in low-noise sensor designs.
Compliance Information
RoHS and lead-free compliance per Microchip product page. Not AEC-Q100 qualified - for automotive safety-critical applications consider PIC16F628A-E/SS variants with full automotive qualification.