Microchip Technology

PIC16F627-04/P - 4MHz 8-Bit Flash MCU, 1.75KB | Microchip

MPN: PIC16F627-04/P ✓ Active
In Stock Ships in 1-3 business days
4.5 V to 5.5 V Vdss 18-pin PDIP (0.300 in / 7.62 mm) Package 4 MHz Speed 1.75 KB (1K x 14 words) Memory
From $2.05 USD / Unit
MOQ: 1 |
Price updated: 2026-09-20
Volume Pricing
Qty Unit Price Extended
1 $3.42 $3.42
10 $3.05 $30.50
100 $2.69 $269.00
500 $2.34 $1,170.00
1,000 $2.05 $2,050.00
ℹ️ All prices are in USD

PIC16F627-04/P Overview

The Microchip Technology PIC16F627-04/P is a 4 MHz 8-bit Flash-based CMOS microcontroller from the PIC16F62X mid-range family, packaged in a 18-pin PDIP (0.300 in, 7.62 mm) through-hole format. According to the Microchip datasheet (DS40144D-family), the device integrates 1.75 KB of Flash program memory (1K x 14 words), 224 bytes of RAM, 128 bytes of EEPROM, and a Harvard RISC architecture that executes instructions in 200 ns per cycle at 4 MHz.

An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, memory, and I/O peripherals on one die; the 8-bit data path means arithmetic and data movement operate on 8-bit bytes. Mid-range PIC MCUs sit between baseline (10-/12-bit instruction) and enhanced mid-range / 16-bit families in Microchip's portfolio, offering a balance of code density, peripheral richness, and cost for embedded control. PIC16F627-04/P belongs to the PIC16F mid-range family and is widely used as an upgrade path from legacy PIC16C/16F devices.

Key features of the PIC16F627-04/P include: a 4 MHz internal oscillator / external clock option, 16 digital I/O pins with high-current sink/source capability, an internal 4 MHz RC oscillator, two 8-bit timers plus one 16-bit timer (Timer1), a 10-bit PWM module, an analog comparator with absolute voltage reference, a USART module for serial communication, and an internal watchdog timer with its own RC oscillator. The wide 4.5 V to 5.5 V operating range and industrial -40 C to +85 C temperature grade support harsh-environment designs.

Architecturally, the PIC16F627-04/P uses a 14-bit instruction word, separate program and data buses (Harvard), and 35 single-word instructions - making assembly programming compact and C compilation efficient. The on-chip in-circuit serial programming (ICSP) interface enables firmware updates after PCB assembly, while the flash program memory supports 100,000 erase/write cycles, allowing field-reconfigurable designs.

Typical applications include appliance controls, security and alarm panels, automotive body electronics (non-safety), industrial sensor interfaces, low-end remote controls, and general-purpose 8-bit embedded logic replacement. The PDIP-18 footprint simplifies breadboard prototyping and through-hole hobbyist designs, while the wide ecosystem of MPLAB X IDE, XC8 compiler, and PICkit programmers lowers development cost.

When designing with this MCU, ensure the supply decoupling network (100 nF + 10 uF bulk) sits within 50 mm of the VDD/VDD2 pins, and follow Microchip's recommended analog/digital ground partitioning when using the comparator with PWM to avoid switching noise coupling. For battery-powered designs, prefer the PIC16F627-04I/P (industrial -40 to +85 C variant) or the PIC16F628A for additional code space.

This page synthesizes verified distributor stock and pricing, drop-in alternative MPNs, and design considerations not aggregated on the Microchip datasheet PDF - giving procurement engineers and designers a one-stop summary for sourcing and second-source decisions.

Drop-in alternatives for PIC16F627-04/P — 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 PIC16F627-04/P (same form factor and footprint) — differing in Operating Temperature, Package, Timers, Mounting Type, I/O Pins.

Microchip Technology
Operating Temperature: -40 C to +125 C (Extended Industrial)
Mounting Type: Through-Hole
Microchip Technology
Operating Temperature: 0°C to +70°C (commercial)
Package: 20-SSOP (Shrink Small Outline Package)
Mounting Type: Surface Mount
Microchip Technology
Operating Temperature: -40C to +125C (/E industrial extended grade)
Package: 18-pin PDIP (0.300 inch, plastic DIP)
Timers: TMR0 (8-bit), TMR1 (16-bit), TMR2 (8-bit)
Microchip Technology
Operating Temperature: -40C to +85C (industrial)
Package: 18-pin PDIP (0.300 inch)
Timers: 3 (Timer0, Timer1, Timer2)
Microchip Technology
Operating Temperature: 0C to +70C (commercial, no 'I' suffix)
Package: 18-pin PDIP (P)
Timers: Timer0, Timer1, Timer2 (8/16/8-bit)
Microchip Technology
Operating Temperature: -40 C to +125 C (extended, "E" suffix)
Package: 18-pin PDIP ("/P")
Timers: 1 x 8-bit, 1 x 16-bit (CCP/ECCP)
Microchip Technology
Operating Temperature: 0C to +70C (commercial)
Package: 18-pin PDIP (DIP-18)
Timers: Timer0, Timer1 (16-bit), Timer2 (8-bit with PWM)

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

PIC16F628-04/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
PIC16 enhanced mid-range 8-bit RISC · 35 single-word instructions · 3.5 KB Flash (2K x 14 words) · 224 bytes · 128 bytes · 4 MHz · 200 ns at 4 MHz · 3.0 V to 5.5 V (typical 4.5 V to 5.5 V at full speed)

✓ In Stock

$2.35 / Unit

View Datasheet →

PIC16F627-04I/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
8-bit Harvard RISC · 1.75 KB (1K x 14) · 224 bytes · 128 bytes · 4 MHz · 200 ns @ 4 MHz · 16 · 2 with programmable on-chip VREF

✓ In Stock

$2.3 / Unit

View Datasheet →

PIC16F627A-I/P

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 PDIP-18
PIC 8-bit RISC (Harvard) · 1.75 KB (1K x 14) Flash · 128 bytes · 224 bytes · 20 MHz · 200 ns · 35 single-word instructions · 4 MHz

✓ In Stock

$1.72 / Unit

View Datasheet →

PIC16F648A-04/P

✅ Drop-In ⚠️ 参数待验证
📦 PDIP-18
7 KB Flash + 256B RAM, pin-compatible upgrade path

📋 Reference alternative (not in catalog)

PIC16F627-04/P Maximum Ratings & Electrical Characteristics

Device Family PIC16F62X (mid-range 8-bit)
Core Architecture Harvard RISC, 14-bit instruction word
Instruction Set 35 single-word instructions
Maximum Clock Speed 4 MHz
Program Memory (Flash) 1.75 KB (1K x 14 words)
Data RAM 224 bytes
Data EEPROM 128 bytes
I/O Pins 16 digital I/O
Timers 2 x 8-bit (Timer0, Timer2) + 1 x 16-bit (Timer1)
PWM Module 10-bit resolution, 1 channel
Analog Comparator Yes, with absolute voltage reference
USART Yes (1 module)
Supply Voltage 4.5 V to 5.5 V
Operating Temperature 0 C to +70 C (commercial, /P suffix)
Package 18-pin PDIP (0.300 in / 7.62 mm)
Mounting Type Through-Hole (THT)
RoHS Status Compliant (lead-free)

PIC16F627-04/P Pin Configuration

DIP-18 Package Pinout Diagram DIP-18 18-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 18 2 17 3 16 4 15 5 14 6 13 7 12 8 11 9 10 DIP-18
Pin 1 RA2/AN2/VREF — Port A bit 2 / analog input / voltage reference
Pin 2 RA3/AN3/CMP1 — Port A bit 3 / analog input / comparator-1 output
Pin 3 RA4/T0CKI — Port A bit 4 / Timer0 clock input
Pin 4 RA5/MCLR/VPP — Port A bit 5 / Master Clear (reset) / programming voltage
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Port B bit 0 / external interrupt
Pin 7 RB1/RX/DT — Port B bit 1 / USART RX / data
Pin 8 RB2/TX/CK — Port B bit 2 / USART TX / clock
Pin 9 RB3/CCP1 — Port B bit 3 / Capture-Compare-PWM 1
Pin 10 RB4/PGM — Port B bit 4 / LVP programming
Pin 11 RB5 — Port B bit 5
Pin 12 RB6/ICSPCLK — Port B bit 6 / ICSP clock
Pin 13 RB7/ICSPDAT — Port B bit 7 / ICSP data
Pin 14 VDD — Positive supply (5 V)
Pin 15 OSC2/CLKOUT — Oscillator output / clock out
Pin 16 OSC1/CLKIN — Oscillator input / clock in
Pin 17 RA6/OSC2 — Port A bit 6 / secondary oscillator output
Pin 18 RA7/OSC1 — Port A bit 7 / secondary oscillator input

Typical Applications

PIC16F627-04/P is suitable for 6 applications: Appliance Control Boards, Security and Alarm Panels, Industrial Sensor Interfaces, Remote Control and Wireless Keyfobs, Hobby and Educational Projects, Automotive Body Electronics (Non-Safety).

🏭

Appliance Control Boards

The PIC16F627-04/P fits appliance control boards such as washing machines, microwaves, and small kitchen appliances. Its 16 high-current I/O pins (25 mA sink/source) directly drive relays, triacs, and LED indicators without external drivers. The on-chip 10-bit PWM module generates motor speed control signals for fans or pumps. With 4.5 V to 5.5 V operation and the 18-pin PDIP footprint simplifying service-friendly through-hole assembly, this MCU is preferred over SMD parts in field-replaceable consumer designs.

🎥

Security and Alarm Panels

The PIC16F627-04/P is well suited for security alarm control panels and PIR sensor interfaces. Its 4 MHz Harvard RISC core executes 5 MIPS, sufficient for debouncing multiple zones and running a keypad scan loop concurrently. The internal EEPROM (128 bytes) stores user codes and event logs without external memory. The USART module links to a central monitoring station or GSM dialer. Operating from 5 V enables direct interface to legacy 12 V-backed alarm sensors with simple resistor dividers.

🏭

Industrial Sensor Interfaces

In industrial sensor signal-conditioning modules, the PIC16F627-04/P reads analog comparators, scales 4-20 mA loops, and formats data for digital buses. The on-chip analog comparator with selectable voltage reference simplifies threshold detection for temperature, pressure, or level switches. The USART supports Modbus RTU over RS-485 with an external transceiver, and the industrial /04I/P variant tolerates -40 C to +85 C factory floors. EEPROM stores calibration constants.

📱

Remote Control and Wireless Keyfobs

The PIC16F627-04/P serves as the brain of handheld remote controls, RF keyfobs, and IR transmitter units. Its 4 MHz operation keeps current draw low, extending battery life on 2x AA or coin-cell supplies. The USART or bit-banged GPIO drives 315/433 MHz SAW transmitters or IR LEDs for line-of-sight control. The 18-pin PDIP package is breadboard-friendly for prototype development before committing to an SMD layout.

🧩

Hobby and Educational Projects

The PIC16F627-04/P is a popular MCU for hobbyist projects, maker tutorials, and university embedded systems courses. The PDIP-18 through-hole form factor inserts easily into breadboards and stripboards, simplifying rapid prototyping without specialized reflow equipment. The 35-instruction RISC architecture makes assembly-language teaching tractable, while the XC8 C compiler and free MPLAB X IDE lower the entry barrier. Many classic textbooks use this PIC family as reference examples.

🚗

Automotive Body Electronics (Non-Safety)

For non-safety automotive body electronics such as interior lighting controllers, mirror adjusters, or seat-position memories, the PIC16F627-04/P provides a cost-effective solution. The internal watchdog timer with dedicated RC oscillator handles automotive electrical noise and load-dump events. The 5 V operation aligns with body-control voltage rails (often regulated from 12 V). For under-hood or safety-critical applications, choose the PIC16F627-04E/P extended temperature variant or migrate to AEC-Q100 qualified PIC16F1xxx parts.

Recommended Products Summary

MOC3041 Triac driver for AC load switching Used in: Appliance Control Boards ULN2003A Darlington array for relay driving Used in: Appliance Control Boards PIC16F88 Migration target with ADC + more memory Used in: Security and Alarm Panels MAX232 RS-232 line driver for serial alarm reporting Used in: Security and Alarm Panels MAX485 RS-485 transceiver for Modbus communication Used in: Industrial Sensor Interfaces LM358 Op-amp for 4-20 mA current loop conditioning Used in: Industrial Sensor Interfaces MAX1472 315/433 MHz ASK/FSK transmitter Used in: Remote Control and Wireless Keyfobs TSOP1738 IR receiver for learning remotes Used in: Remote Control and Wireless Keyfobs PICkit 3 In-circuit debugger/programmer Used in: Hobby and Educational Projects MPLAB X IDE Free development environment Used in: Hobby and Educational Projects MC7805 5 V regulator from 12 V battery rail Used in: Automotive Body Electronics (Non-Safety) 1N5408 Flyback/load-dump protection diode Used in: Automotive Body Electronics (Non-Safety)
What is the operating voltage of PIC16F627-04/P?
The PIC16F627-04/P operates from 4.5 V to 5.5 V on VDD. According to the Microchip PIC16F62X datasheet (DS40144D), this range is specified for the standard commercial temperature grade. The /04 speed suffix denotes a 4 MHz maximum clock rate; if your design needs 20 MHz operation, choose the PIC16F627-20/P variant instead.
What is the program memory size of PIC16F627-04/P?
The PIC16F627-04/P provides 1.75 KB of Flash program memory organized as 1K x 14-bit words. According to Microchip's PIC16F62X datasheet, this capacity is shared by the entire family; PIC16F628 doubles it to 3.5 KB, and PIC16F648A reaches 7 KB. For applications needing more code space, PIC16F628-04/P is a drop-in upgrade.
How much RAM and EEPROM does PIC16F627-04/P have?
The PIC16F627-04/P integrates 224 bytes of data RAM and 128 bytes of data EEPROM. According to the Microchip datasheet, the EEPROM supports 1,000,000 erase/write cycles typical - useful for storing user-configurable parameters, calibration constants, and runtime counters without external non-volatile memory.
What package is PIC16F627-04/P and is it through-hole?
The PIC16F627-04/P is housed in an 18-pin PDIP (Plastic Dual In-line Package) with 0.300 inch (7.62 mm) row spacing, making it a through-hole component. According to the Microchip product page, the /P suffix designates PDIP; SMD versions are the /SO (SOIC-18) and /SS (SSOP-20).
What is the difference between PIC16F627-04/P and PIC16F628-04/P?
The PIC16F627-04/P has 1.75 KB of Flash while the PIC16F628-04/P doubles it to 3.5 KB; both share the same 18-pin PDIP footprint and identical peripheral set. According to Microchip, the PIC16F628 is otherwise pin-compatible - making it the natural upgrade choice when code size exceeds 1.75 KB.
Can PIC16F628-04/P replace PIC16F627-04/P directly on the same PCB?
Yes, the PIC16F628-04/P is a drop-in replacement for the PIC16F627-04/P on the same 18-pin PDIP footprint. According to the Microchip PIC16F62X datasheet pin compatibility chart, both share identical pinouts and electrical specifications, so no PCB layout change is required - only firmware recompilation if you use the larger memory.
Where to download PIC16F627-04/P datasheet PDF?
The official PIC16F627-04/P datasheet PDF is available on the Microchip product page at https://www.microchip.com/en-us/product/PIC16F627. According to the search results, third-party mirrors (alldatasheet.com, globalspec.com) also host the same document, but Microchip's site is the authoritative source for the latest revision.
Where to buy PIC16F627-04/P online and what is the price?
The PIC16F627-04/P is in stock at DigiKey (stock 362639) and Mouser as of 2026-09-21, with a single-unit price around $3.42 USD. According to DigiKey listing data, bulk pricing drops to about $2.05 USD at 1,000 pieces. Lead time is typically same-day for small quantities from authorized distributors.
What is the lead time for PIC16F627-04/P?
The PIC16F627-04/P is reported in stock at DigiKey and Mouser as of 2026-09-21, with same-day shipping for small orders. According to Microchip's product page, this part is part of the long-life mid-range PIC16F family and is generally available with 8-12 week lead time from factory for high-volume orders.
Is PIC16F627-04/P suitable for new designs in 2026?
The PIC16F627-04/P remains active per Microchip's product page (2026-09-21) and is widely available. According to Microchip's longevity program, PIC16F family parts have guaranteed availability, making them suitable for new industrial and consumer designs - though for new 5V designs consider PIC16F1xxx enhanced mid-range parts for modern peripherals.
What is the operating temperature range of PIC16F627-04/P?
The PIC16F627-04/P operates from 0 C to +70 C (commercial grade) as indicated by the /P temperature suffix. According to the Microchip datasheet, for industrial -40 C to +85 C operation choose the PIC16F627-04I/P variant; for extended -40 C to +125 C operation use the PIC16F627-04E/P grade.
What tools are needed to program PIC16F627-04/P?
Programming the PIC16F627-04/P requires Microchip's MPLAB X IDE plus a PICkit 3/4 or ICD programmer connected to the ICSP pins (RB6/ICSPCLK, RB7/ICSPDAT). According to Microchip's development tool documentation, ICSP enables in-circuit programming after PCB assembly, and the XC8 C compiler is free for the standard edition.
Hey Google, what can replace PIC16F627-04/P?
The PIC16F627-04/P can be replaced by PIC16F628-04/P (3.5 KB Flash, same 18-pin PDIP) or PIC16F627-04I/P (industrial temperature, same 18-pin PDIP) directly on the same PCB. According to Microchip's pin compatibility chart, these parts are pin-to-pin drop-in equivalents - no layout change is required when migrating.
What is the maximum current per I/O pin on PIC16F627-04/P?
Each PIC16F627-04/P I/O pin can sink up to 25 mA and source up to 25 mA per pin, with a total package budget of 200 mA. According to Microchip's electrical characteristics section, this high-current capability directly drives LEDs, relays, and small solenoids without external driver transistors in many designs.
Does PIC16F627-04/P support PWM output?
Yes, the PIC16F627-04/P includes a 10-bit resolution PWM module with one channel, accessible via the CCP (Capture/Compare/PWM) peripheral. According to the Microchip datasheet, the PWM period is programmable via Timer2 prescale and PR2 register, supporting frequencies from a few Hz up to hundreds of kHz depending on clock and prescale settings.

Engineering reference data for PIC16F627-04/P — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC16F627-04/P when you need a 4 MHz mid-range PIC16F MCU in 18-pin PDIP for prototyping, hobby projects, or low-volume commercial products with code under 1.75 KB. Choose PIC16F628-04/P if your C firmware exceeds 1.75 KB but you want to stay on the same PCB - identical pinout, 3.5 KB Flash. Choose PIC16F627-04I/P for industrial -40 C to +85 C applications (outdoor, automotive, factory). Choose PIC16F648A-04/P for higher code density (7 KB). All four parts share the same 18-pin PDIP footprint, enabling PCB layout reuse across memory and temperature variants.

Comparison with Alternatives

Parameter This Product PIC16F628-04/P PIC16F627-04I/P PIC16F627A-I/P PIC16F648A-04/P
Package PDIP-18 (0.300 in) PDIP-18 - same PDIP-18 - same PDIP-18 - same PDIP-18 - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Memory (Flash) 1.75 KB (1K x 14) 3.5 KB (2K x 14) 1.75 KB (1K x 14) 1.75 KB (1K x 14) 7 KB (4K x 14)
RAM 224 bytes 224 bytes 224 bytes 224 bytes 256 bytes
EEPROM 128 bytes 128 bytes 128 bytes 128 bytes 256 bytes
Max Clock Speed 4 MHz 4 MHz 4 MHz 4 MHz 4 MHz
Operating Temperature 0 C to +70 C 0 C to +70 C -40 C to +85 C -40 C to +85 C 0 C to +70 C
PWM Module 10-bit, 1 channel 10-bit, 1 channel 10-bit, 1 channel 10-bit, 1 channel 10-bit, 1 channel

Key Differentiators

  • Higher program memory in same package (vs PIC16F627-04/P vs PIC16F628-04/P)
  • Industrial temperature option (vs PIC16F627-04/P vs PIC16F627-04I/P)
  • Largest Flash within PIC16F62X PDIP-18 (vs PIC16F627-04/P vs PIC16F648A-04/P)

Design Notes

Place a 100 nF ceramic decoupling capacitor within 5 mm of the VDD pin (14) and a 10 uF bulk electrolytic/tantalum at the PCB power entry. For designs using the analog comparator, add a separate 100 nF decoupling near the AVREF pin and use a star-ground topology to prevent digital switching noise from coupling into the comparator reference.

Route the ICSP lines RB6/ICSPCLK and RB7/ICSPDAT with traces shorter than 100 mm and away from switching nodes. According to Microchip's ICSP specification, a 10 kohm pull-up on MCLR (pin 4) is recommended when using high-voltage programming; for low-voltage programming (LVP), leave RB4 floating or pulled low to enter programming mode accidentally.

Do not exceed the absolute maximum VDD of 7.5 V or current per pin of 25 mA. According to the Microchip datasheet, the configuration word FOSC bits must be set before enabling the oscillator or the device may lock up; in particular, choosing an oscillator mode that does not match the actual XTAL/RC network will prevent startup. Always verify oscillator configuration in code and on hardware.

When using the internal 4 MHz RC oscillator, the OSC2/CLKOUT pin can output the system clock as a reference; if unused, leave it floating. For designs sensitive to clock jitter (USART communication), prefer an external crystal with 15-33 pF load capacitors on OSC1/OSC2, since the internal RC oscillator typically has 1-2% accuracy and may exceed the USART baud-rate error budget at 115200 bps.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant per Microchip product page. Lead-free (Pb-free) PDIP package. Not AEC-Q100 qualified - choose PIC16F627-04I/P or PIC16F1xxx with AEC-Q100 for automotive.

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

Related Searches

PIC16F627-04/P PIC16F627-04/P datasheet Microchip PIC16F627 PIC16F627 PDIP 18 pin PIC16F627 8-bit 4MHz microcontroller PIC16F627 vs PIC16F628 PIC16F627 drop-in replacement buy PIC16F627-04/P online PIC16F627-04/P price 1000 pieces PIC16F627 pinout diagram 18-pin PDIP what is the program memory of PIC16F627 PIC16F627 for appliance control board

Related Components & Terms

Microchip Technology PIC16F627-04/P PIC16F628-04/P PIC16F627-04I/P PIC16F627A-I/P PIC16F648A-04/P 8-bit microcontroller PIC16F mid-range family Harvard RISC architecture 14-bit instruction word Flash memory EEPROM PDIP-18 Through-hole package PWM USART analog comparator RoHS ICSP PICkit programmer MPLAB X IDE XC8 compiler
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