Microchip Technology

PIC16F628T-20E/SO - 8-Bit 20MHz 3.5KB Flash MCU | Microchip | 18-SOIC

MPN: PIC16F628T-20E/SO ✓ Active
In Stock Ships in 1-3 business days
4.5 V to 5.5 V (F-version) Vdss 18-SOIC (0.295 in / 7.50 mm width) Package 20 MHz Speed 3.5 KB (2K x 14) Flash Memory
From $2.19 USD / Unit
MOQ: 1 |
Price updated: 2026-09-20
Volume Pricing
Qty Unit Price Extended
1 $3.42 $3.42
10 $3.08 $30.80
100 $2.74 $274.00
500 $2.46 $1,230.00
1,000 $2.19 $2,190.00
ℹ️ All prices are in USD

PIC16F628T-20E/SO Overview

The Microchip Technology PIC16F628T-20E/SO is an 8-bit PIC microcontroller running at 20 MHz, integrating 3.5 KB (2K x 14) of Flash program memory, 224 bytes of RAM and 128 bytes of EEPROM in an 18-pin SOIC package. It features 16 I/O pins, two analog comparators with a programmable on-chip voltage reference, a Capture/Compare/PWM module, a USART, and a 16-level deep hardware stack.

A microcontroller (MCU) is a single-chip computer containing a CPU core, program memory, RAM, and peripheral interfaces such as timers, communications, and analog blocks. Within the broader power-management and embedded hierarchy, an MCU sits below microprocessors and provides deterministic real-time control for embedded systems. The PIC16F family specifically belongs to the mid-range 8-bit PIC architecture, balancing code density and peripheral integration for cost-sensitive applications.

Key features include an enhanced Flash program memory rated for 100,000 erase/write cycles, internal 4 MHz and 37 kHz RC oscillators, an analog comparator with programmable hysteresis, and power-managed modes such as Sleep, Idle, and a low-power Timer1 oscillator. The device operates from 3.0V to 5.5V across the -40C to +125C industrial temperature range, making it suitable for harsh environments. It supports in-circuit serial programming (ICSP) via the RB6/RB7 pins and the MCLR reset pin.

Architecturally, the PIC16F628T-20E/SO uses a 14-bit instruction word with an 8-level hardware stack and 35 single-word instructions, allowing compact code generation. The integrated peripherals - including the USART, CCP module, comparators and 16 I/O pins - remove the need for external logic in typical control designs.

Typical applications include industrial automation controllers, consumer appliances, sensor signal conditioning, automotive body electronics, LED lighting controllers, and hobby/educational embedded projects. The PIC16F628 is one of the most widely documented and supported mid-range PIC microcontrollers for entry-level through intermediate designs.

A key design consideration: at 20 MHz the device draws approximately 10 mA active current, so always include decoupling capacitors (100 nF + 10 uF) close to VDD/VSS, and reserve the MCLR pin for proper in-circuit serial programming access.

This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC16F628T-20E/SO — 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-20E/SO (same form factor and footprint) — differing in Operating Temperature, Package, Core Architecture, Internal Oscillator, Instruction Set.

Microchip Technology
Package: 18-pin SOIC (wide body), tape and reel
Core Architecture: PIC16F62X Mid-Range 8-bit Harvard RISC
Internal Oscillator: 4 MHz and 37 kHz selectable
Microchip Technology
Operating Temperature: -40C to +125C (Extended, 'E' suffix)
Package: 18-pin SOIC (SO), 300-mil body, tube
Instruction Set: PIC16 mid-range (14-bit instruction word)
Microchip Technology
Operating Temperature: -40 °C to +85 °C (Industrial, 'I' suffix)
Package: 18-SOIC (0.295", 7.50 mm)
Internal Oscillator: 4 MHz (calibrated)
Microchip Technology
Operating Temperature: -40 C to +125 C (E grade)
Package: 18-pin SOIC (SO) - Tape & Reel
Core Architecture: PIC16 enhanced mid-range 8-bit RISC
Microchip Technology
Operating Temperature: -40°C to +85°C (Industrial)
Package: 18-SOIC (7.50 mm) wide-body
Core Architecture: PIC 8-bit RISC (Harvard)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC16F628A-I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC16F · 8-bit · 20 MHz · 3.5 KB (2K x 14) Flash · 224 bytes · 128 x 8 bytes · 16 · 4.5 V to 5.5 V

✓ In Stock

$2.32 / Unit

View Datasheet →

PIC16F628AT-I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC 8-bit RISC (Harvard) · 20 MHz (200 ns instruction cycle) · Flash · 3.5 KB (2K x 14) · 224 bytes · 128 bytes · 16 · 3.0 V to 5.5 V

✓ In Stock

$1.92 / Unit

View Datasheet →

PIC16F628AT-E/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC16 enhanced mid-range 8-bit RISC · 35 single-word instructions · 200 ns at 20 MHz · 20 MHz · 3.5 KB (2K x 14 words) · 224 bytes · 128 bytes · 16 (11 dedicated I/O + 5 multiplexed)

✓ In Stock

$1.92 / Unit

View Datasheet →

PIC16F628-20/SO

✅ Drop-In
📦 18-SOIC
Tube packaging variant (no 'T'), same silicon die, identical 18-SOIC footprint

📋 Reference alternative (not in catalog)

PIC16F628-20E/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
Microcontroller (MCU) · PIC16 8-bit RISC · PIC16 mid-range (14-bit instruction word) · 3.5 KB Flash (2K x 14) · 224 bytes · 128 bytes · 20 MHz · 3.0 V to 5.5 V

✓ In Stock

$2.55 / Unit

View Datasheet →

PIC16F627T-20E/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC16F62X Mid-Range 8-bit Harvard RISC · 14 bits · 20 MHz · 1.75 KB (1K x 14) · 224 bytes · 128 bytes · 4.5 V to 5.5 V (PIC16F62X -20E/-20 spec) · 16 bidirectional (PORTA[5] + PORTB[8] + 3 RA alt)

✓ In Stock

$2.55 / Unit

View Datasheet →

PIC16F628T-20E/SO Maximum Ratings & Electrical Characteristics

Core Architecture PIC 8-bit mid-range
Core Size 8-bit
Maximum Clock Frequency 20 MHz
Program Memory Size 3.5 KB (2K x 14) Flash
RAM Size 224 bytes
EEPROM Size 128 bytes
I/O Pins 16
Supply Voltage 4.5 V to 5.5 V (F-version)
Operating Temperature -40 C to +125 C
Package Type 18-SOIC (0.295 in / 7.50 mm width)
Mounting Type Surface Mount
Connectivity USART
Peripherals Brown-out Detect, POR, PWM, WDT, Comparators (x2), CCP
Data Converters 10-bit ADC not present (comparator-based)
Oscillator Type Internal RC (4 MHz, 37 kHz) + external
Program Memory Type Flash (ICSP)
Instruction Set 35 instructions, 14-bit word
RoHS Status Compliant
MSL Level 1 (unlimited)

PIC16F628T-20E/SO Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 RA2/AN2/VREF — Bidirectional I/O / analog input / voltage reference
Pin 2 RA3/AN3/CMP1 — Bidirectional I/O / analog input / comparator 1 output
Pin 3 RA4/T0CKI/CMP2 — Bidirectional I/O / Timer0 clock input / comparator 2 output
Pin 4 MCLR/VPP/RA5 — Master clear reset (active low) / programming voltage / I/O
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Bidirectional I/O / external interrupt
Pin 7 RB1/RX/DT — Bidirectional I/O / USART RX / synchronous data
Pin 8 RB2/TX/CK — Bidirectional I/O / USART TX / synchronous clock
Pin 9 RB3/CCP1 — Bidirectional I/O / Capture/Compare/PWM output
Pin 10 RB4/PGM — Bidirectional I/O / LVP programming
Pin 11 RB5/ENMCLR — Bidirectional I/O
Pin 12 RB6/PGC — Bidirectional I/O / ICSP clock
Pin 13 RB7/PGD — Bidirectional I/O / ICSP data
Pin 14 VDD — Positive supply voltage
Pin 15 OSC2/CLKOUT — Oscillator output / clock out
Pin 16 OSC1/CLKIN — Oscillator input / clock in
Pin 17 RA0/AN0 — Bidirectional I/O / analog input 0
Pin 18 RA1/AN1 — Bidirectional I/O / analog input 1

Typical Applications

PIC16F628T-20E/SO is suitable for 6 applications: Industrial Automation Controllers, Consumer Appliance Control, Automotive Body Electronics, LED Lighting Controllers, Sensor Signal Conditioning, Hobbyist and Educational Projects.

🏭

Industrial Automation Controllers

The PIC16F628T-20E/SO suits industrial control loops where deterministic 8-bit execution and 16 I/O pins are sufficient. Its 20 MHz clock, 224 bytes RAM, and 35-instruction PIC16 mid-range core allow state-machine implementations for relay drivers, solenoid sequencers, and conveyor control. The internal 4 MHz RC oscillator eliminates external crystal cost, while the analog comparators with programmable VREF enable threshold detection on sensor inputs. Extended -40C to +125C temperature operation supports factory-floor environments. The 128-byte EEPROM provides non-volatile parameter storage for calibration constants and fault logs without external memory. Programmable weak pull-ups on PORTB reduce BOM cost by eliminating external resistor packs for switch inputs.

🏭

Consumer Appliance Control

In washing machines, microwave ovens, and HVAC control boards, the PIC16F628T-20E/SO provides sufficient Flash and RAM for user-interface scanning, motor timing, and safety interlocks. The 16 I/O pins drive seven-segment displays and keypads directly via high-current sink/source capability, eliminating driver transistors. The Capture/Compare/PWM module generates precise timing for triac control of AC loads. Integrated brown-out detect and watchdog timer protect against supply glitches and software lock-ups. The 3.5 KB Flash stores lookup tables for appliance cycle profiles. Low-power Sleep mode with Timer1 oscillator wake-up supports battery-backed real-time clock functions in price-sensitive consumer products.

🚗

Automotive Body Electronics

Automotive interior lighting, door modules, and seat controllers benefit from the PIC16F628T-20E/SO's 16 I/O count and analog comparators. The extended -40C to +125C temperature range handles under-dash thermal stress, while brown-out detect and watchdog timer satisfy OEM reliability requirements for body control. The USART enables LIN-bus slave communication for cost-sensitive nodes that do not require full CAN. The CCP module drives PWM outputs for LED dimming with 10-bit resolution at reasonable update rates. Note: for AEC-Q100 qualified automotive designs, the PIC16F628AT-E/SO (enhanced 'A' revision) is the preferred variant with qualified automotive screening.

💡

LED Lighting Controllers

RGB LED strip controllers, architectural dimmers, and signage drivers use the PIC16F628T-20E/SO to generate multi-channel PWM at audio-modulation-capable rates. The 20 MHz clock supports multiple PWM channels at 8 kHz update rate, sufficient for LED dimming without visible flicker. The 3.5 KB Flash stores color presets, fade patterns, and DMX-512 protocol stacks. The two analog comparators enable 0-10V analog dimming input and over-temperature shutdown without an external ADC. Internal RC oscillator at 4 MHz reduces BOM for cost-sensitive LED bulb retrofit designs. The 128-byte EEPROM retains last-set brightness across power cycles for residential dimmer applications.

🧩

Sensor Signal Conditioning

Thermistor bridges, photodiode amplifiers, and capacitive touch interfaces leverage the PIC16F628T-20E/SO's two analog comparators with programmable on-chip VREF. The comparators eliminate external op-amps for threshold detection, reducing BOM and PCB area. The internal 37 kHz LF oscillator supports ultra-low-power Sleep-mode wake cycling on battery-powered sensor transmitters. The 224-byte RAM holds moving-average buffers for noise filtering before comparator-driven interrupts wake the CPU. The USART transmits serialized sensor data at standard baud rates to upstream controllers. In-circuit serial programming via RB6/RB7 enables field firmware updates without removing the sensor module.

🎧

Hobbyist and Educational Projects

The PIC16F628T-20E/SO is one of the most widely documented PIC microcontrollers, making it ideal for university embedded systems courses and DIY maker projects. Free Microchip MPLAB X IDE with XC8 compiler supports C development, while the original MPASM assembler targets the 35-instruction PIC16 mid-range set for learning. The internal 4 MHz oscillator allows simple breadboard prototypes without external crystals. ICD debugging via RB6/RB7 and MCLR pins is supported by PICkit 3/4/5 programmers. The 18-SOIC package fits standard 18-pin DIP breakout boards for educational labs. Extensive community code libraries exist for UART, I2C master, and PWM peripherals.

What is the program memory size of the PIC16F628T-20E/SO?
The PIC16F628T-20E/SO contains 3.5 KB of Flash program memory organized as 2K x 14-bit words. According to the Microchip PIC16F627/628 datasheet, this capacity supports roughly 2,000 single-word instructions - sufficient for most mid-range embedded designs including state machines, sensor interfaces, and consumer appliance controllers.
What is the maximum clock speed of the PIC16F628T-20E/SO?
The PIC16F628T-20E/SO runs at a maximum 20 MHz instruction clock. At this rate the device executes approximately 5 MIPS, since each instruction (except branches) completes in one cycle. Higher speeds require the -20 speed grade; the -04 grade parts only reach 4 MHz / 1 MIPS.
Is the PIC16F628T-20E/SO still in production?
Yes. According to the distributor data retrieved on 2026-09-21, the PIC16F628T-20E/SO is listed with life-cycle stage ACTIVE at DigiKey and multiple authorized distributors. The 'T' suffix denotes tape-and-reel packaging, and the 'E' suffix indicates the industrial -40C to +125C temperature grade.
What package does the PIC16F628T-20E/SO use?
The PIC16F628T-20E/SO uses an 18-pin Small Outline IC (SOIC) package measuring 0.295 in / 7.50 mm in body width. This is the wide-body SOIC variant (not the narrow 3.90 mm SO-18), so PCB layouts and footprints must be checked against the Microchip package drawing code documentation.
What is the difference between PIC16F628 and PIC16F628A?
The PIC16F628A is the enhanced successor with 4 MHz internal oscillator improvements and faster Flash programming, while the original PIC16F628 has 224 bytes RAM and 128 bytes EEPROM. Both share the same 3.5 KB Flash, 18-pin pinout, and peripherals; PIC16F628A is the recommended part for new designs per Microchip product family documentation.
What is the difference between PIC16F628 and PIC16F627?
The PIC16F627 has half the Flash (1.75 KB / 1K x 14) and half the RAM (128 bytes) compared to PIC16F628 (3.5 KB / 224 bytes). Both share the same 18-pin pinout, peripherals, and instruction set, making PIC16F627 a drop-in lower-memory alternative when code density permits.
Where can I buy the PIC16F628T-20E/SO online?
The PIC16F628T-20E/SO is in stock at authorized distributors including DigiKey, Mouser, Heisener, and Microchip Direct as of 2026-09-21. Pricing starts around USD 3.42 per unit at qty 1 and decreases to USD 2.19 at qty 1000 - DigiKey lists same-day shipping for in-stock reels.
What is the lead time for PIC16F628T-20E/SO?
As of 2026-09-21, distributor-listed lead time for the PIC16F628T-20E/SO is generally 2-4 weeks from authorized stock, with DigiKey shipping the same day from on-hand reel inventory. Bulk production orders through Microchip Direct typically quote 6-10 weeks; check current stock at the time of order.
What is the price of the PIC16F628T-20E/SO?
Pricing as of 2026-09-21 starts at approximately USD 3.42 at qty 1, falling to USD 2.74 at qty 100 and USD 2.19 at qty 1000. The 'T' suffix indicates tape-and-reel packaging; the tube-packaged variant PIC16F628-20E/SO carries a small premium per unit. Volume OEM pricing is available through Microchip Direct.
PIC16F628T-20E/SO vs PIC16F88 - which is better for new designs?
The PIC16F88 includes a 10-bit ADC and twice the RAM (368 bytes) compared to PIC16F628, but uses a different pinout. For new designs requiring ADC, PIC16F88 is the better choice; for pin-compatible upgrade of existing PIC16F628 designs, the PIC16F628A-I/SO is the drop-in successor recommended by Microchip product family documentation.
When should I choose PIC16F628 over PIC16F628A?
Choose PIC16F628A-I/SO for new designs - the 'A' revision improves Flash endurance and programming speed while keeping the same 18-pin pinout, instruction set, and peripherals. Choose PIC16F628 only when matching an existing qualified BOM line or for replacement of legacy designs where revalidation cost outweighs the upgrade benefit.
What is the best drop-in replacement for PIC16F628T-20E/SO?
The best drop-in replacement is PIC16F628A-I/SO from Microchip, which shares the same 18-SOIC package, 16 I/O pinout, 3.5 KB Flash, and 20 MHz clock. Per Microchip documentation the 'A' revision is fully backward-compatible at the instruction set level, allowing code reuse without PCB rework.
Is PIC16F628T-20E/SO compatible with PIC16F628AT-I/SO?
Yes, the PIC16F628AT-I/SO is the enhanced 'A' revision in the same 18-SOIC package with identical pinout and peripheral set. The 'AT' suffix indicates tape-and-reel packaging of the 'A' silicon; the 'I' suffix indicates industrial -40C to +85C temperature range, versus the 'E' -40C to +125C range of the original.
Where can I download the PIC16F628T-20E/SO datasheet PDF?
The official Microchip datasheet is available at https://ww1.microchip.com/downloads/en/DeviceDoc/41144F.pdf (document 41144F, PIC16F627/628 family datasheet). The datasheet covers electrical characteristics, instruction set, peripheral architecture, and programming specifications for both -04 and -20 speed grades.
Where can I find the PIC16F628T-20E/SO pinout?
The 18-SOIC pinout is documented in the Microchip PIC16F627/628 datasheet section on Package Pinouts and the device-specific pin description table. Pin 1 is the top-left position with the SOIC marker dot; pins include VDD (pin 14), VSS (pin 5), MCLR (pin 4), OSC1/CLKIN (pin 16), OSC2/CLKOUT (pin 15), and 16 I/O pins distributed across PORTA and PORTB.

Engineering reference data for PIC16F628T-20E/SO — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC16F628T-20E/SO when you need an industrial-temperature 8-bit PIC MCU in tape-and-reel packaging for high-volume surface-mount assembly. The 'E' suffix (-40C to +125C) makes it suitable for industrial and automotive body electronics; for consumer-grade products where 0-70C or -40 to +85C is sufficient, the lower-cost PIC16F628A-I/SO is preferable. For new designs the PIC16F628A enhanced revision is generally recommended over the original silicon for better Flash endurance and faster programming. If your application fits in 1.75 KB Flash and 128 bytes RAM, the PIC16F627T-20E/SO provides a cost-reduced drop-in alternative.

Comparison with Alternatives

Parameter This Product PIC16F628A-I/SO PIC16F628AT-I/SO PIC16F628AT-E/SO PIC16F628-20/SO PIC16F628-20E/SO PIC16F627T-20E/SO
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 18-SOIC 18-SOIC 18-SOIC 18-SOIC 18-SOIC 18-SOIC 18-SOIC
Program Memory (Flash) 3.5 KB 3.5 KB 3.5 KB 3.5 KB 3.5 KB 3.5 KB 1.75 KB
RAM 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes 128 bytes
Max Clock Frequency 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
Silicon Revision Original 'A' enhanced 'A' enhanced 'A' enhanced Original Original Original
Temperature Range -40C to +125C (E) -40C to +85C (I) -40C to +85C (I) -40C to +125C (E) 0C to +70C -40C to +125C (E) -40C to +125C (E)
Packaging Tape & Reel (T) Tube Tape & Reel (T) Tape & Reel (T) Tube Tube Tape & Reel (T)

Key Differentiators

  • Wider temperature range than the 'I' grade alternatives (vs PIC16F628A-I/SO)
  • Twice the program memory and RAM versus PIC16F627 family (vs PIC16F627T-20E/SO)
  • Drop-in compatibility with enhanced 'A' revision (vs PIC16F628AT-I/SO)

Design Notes

Place a 100 nF ceramic decoupling capacitor within 5 mm of the VDD pin (pin 14) and a 10 uF bulk capacitor near the IC. The PIC16F628 core draws approximately 10 mA active at 20 MHz and 1-2 uA in Sleep mode with the watchdog disabled. For battery-backed designs, route VDD through a Schottky diode so the Sleep-mode RTC timer can run from a backup coin cell without powering the full board.

Keep the MCLR pin (pin 4) accessible for in-circuit serial programming. Per Microchip ICSP guidelines, place a 10 kohm pull-up resistor on MCLR and route the RB6/PGC and RB7/PGD traces to a 6-pin ICSP header with no series resistors in-line. If using Low-Voltage Programming (LVP) via the RB4/PGM pin, tie RB4 to ground through a 10 kohm resistor to disable LVP and use high-voltage programming instead.

Do not load the PIC16F628 with more than 50 pF on OSC1/OSC2 unless using a crystal oscillator mode; high-capacitance loads shift the oscillator off-frequency. Configuration word settings (oscillator, watchdog, brown-out, code protect, LVP) must be set explicitly in source code - the PIC16F628 does NOT have a default valid configuration and unprogrammed parts can exhibit erratic behavior. Brown-out detect should always be enabled for production firmware to recover gracefully from supply dips.

Estimated: at 20 MHz active operation drawing 10 mA from 5 V, power dissipation is approximately 50 mW - well within the 18-SOIC thermal envelope (theta_JA around 70 C/W) and not a concern for junction temperature. Even at extended -40C to +125C ambient, junction rise is below 5C. Thermal management is therefore not a design constraint for this MCU in typical 18-SOIC applications.

Data verified on: 2026-09-21 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC16F628T-20E/SO datasheet PIC16F628T-20E/SO price Microchip PIC16F628 20MHz 8-bit MCU PIC16F628 18-SOIC microcontroller PIC16F628 vs PIC16F628A difference PIC16F628 drop-in replacement PIC16F628 industrial 125C extended temperature PIC16F628 automotive body electronics PIC16F628 industrial automation controller what is the program memory of PIC16F628T-20E/SO buy PIC16F628T-20E/SO in stock PIC16F628T-20E/SO pinout 18-SOIC

Related Components & Terms

Microchip Technology PIC16F628T-20E/SO PIC16F628 PIC16F628A PIC16F627 PIC16F88 PIC microcontroller 8-bit MCU PIC16 mid-range architecture Flash memory EEPROM 18-SOIC SOIC package USART Capture/Compare/PWM Brown-out detect Watchdog timer In-circuit serial programming ICSP MCLR Analog comparator Voltage reference Internal RC oscillator RoHS Industrial temperature range
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details