PIC16F627-04/SO - 8-bit 4MHz 1.75KB Flash MCU 18-SOIC | Microchip
MPN: PIC16F627-04/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.16 | $3.16 |
| 10 | $2.85 | $28.50 |
| 100 | $2.4 | $240.00 |
| 500 | $2.1 | $1,050.00 |
| 1,000 | $1.85 | $1,850.00 |
PIC16F627-04/SO Overview
An 8-bit microcontroller (MCU) is a small, self-contained computer-on-a-chip that combines a CPU, RAM, Flash/ROM program memory, and peripherals such as timers, ADC, and I/O ports on a single die. MCUs sit at the top of the embedded computing hierarchy: microcontroller -> embedded processor -> semiconductor IC. The PIC16F62X family's mid-range 14-bit instruction word places it between PIC10/12/14 baseline (12-bit) and PIC18 enhanced (16-bit) cores, balancing code density, peripheral richness, and ease of programming.
Key features include 224 bytes of RAM, 128 bytes of EEPROM data memory, 16 digital I/O pins, two 8-bit timers plus one 16-bit timer, a 10-bit ADC (multiplexed with comparator inputs), a USART module, an internal 4 MHz oscillator, and a comparator with voltage reference. The 4 MHz speed grade is indicated by the "-04" suffix; an "-20" suffix part runs up to 20 MHz. Brown-out reset (BOR), power-on reset (POR), and watchdog timer (WDT) provide robust field deployment.
Architecturally, the PIC16F627 implements a Harvard bus with separate program and data paths, allowing instruction fetch and data access to overlap, which is why one cycle per instruction is achievable. The 14-bit instruction width is wider than baseline PIC cores, giving more addressing modes and richer peripheral control in a single opcode. The 18-SOIC package offers 0.295 inch (7.50 mm) body width with gull-wing leads for surface-mount assembly.
Typical applications include consumer appliances, low-end remote controls, sensor signal conditioning, LED driving, battery chargers, automotive body controllers, and industrial control. The on-chip peripherals make it well suited to standalone "sense, decide, act" tasks that do not need higher-end 32-bit MCUs.
When designing with this part, place decoupling capacitors (100 nF plus 10 uF) within a few millimeters of VDD/VSS, route the MCLR pin through a 10 kohm pull-up if not used as a reset, and verify the configuration word matches the chosen oscillator mode. Industrial and automotive designs should consider the PIC16F627-04I/SO (extended temperature) or PIC16F628A variant for 20 MHz operation.
This page synthesizes distributor stock levels, drop-in same-package alternatives, pricing tiers, and practical design notes for the PIC16F627-04/SO - data not consolidated on a single manufacturer or distributor page.
Drop-in alternatives for PIC16F627-04/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 PIC16F627-04/SO (same form factor and footprint) — differing in Package, Internal Oscillator, Operating Temperature, Timers, Mounting Type.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F628-04/SO
✅ Drop-In✓ In Stock
$1.05 / Unit
View Datasheet →PIC16F627-04I/SO
✅ Drop-In✓ In Stock
$1.59 / Unit
View Datasheet →PIC16F627-04/P
✅ Drop-In✓ In Stock
$2.05 / Unit
View Datasheet →PIC16F627-20/SO
✅ Drop-In✓ In Stock
$1.83 / Unit
View Datasheet →PIC16F628A-I/SO
✅ Drop-In✓ In Stock
$2.32 / Unit
View Datasheet →PIC16F627-04/SO Maximum Ratings & Electrical Characteristics
| Product Family | PIC16F62X (mid-range, 14-bit instruction) |
| Core | 8-bit PIC RISC (Harvard architecture) |
| Instruction Set | 35 single-word instructions |
| Instruction Execution Time | 200 ns at 4 MHz |
| Program Memory (Flash) | 1.75 KB (1K x 14) |
| Data RAM | 224 bytes |
| Data EEPROM | 128 bytes |
| Maximum Clock Speed | 4 MHz (speed grade -04) |
| Supply Voltage (VDD) | 3.0 V to 5.5 V |
| I/O Pins | 16 digital I/O |
| Timers | 2x 8-bit + 1x 16-bit |
| ADC | 10-bit (multiplexed with comparator) |
| USART | Yes (1 module) |
| Internal Oscillator | 4 MHz |
| Watchdog Timer | Yes (WDT) |
| Brown-out Reset / POR | Yes (BOR + POR) |
| Package | 18-pin SOIC (SOIC-18, 0.295 inch / 7.50 mm body) |
| Mounting Type | Surface Mount (gull-wing leads) |
| RoHS Status | ROHS3 Compliant |
PIC16F627-04/SO Pin Configuration
| Pin 1 | RA2/AN2/CVREF — GPIO RA2 / ADC ch2 / comparator voltage reference output |
| Pin 2 | RA3/AN3/CMP1 — GPIO RA3 / ADC ch3 / comparator 1 output |
| Pin 3 | RA4/AN4/T0CKI — GPIO RA4 / ADC ch4 / Timer0 clock input |
| Pin 4 | RA5/MCLR/VPP — Master Clear reset (active low) / programming voltage input |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RB0/INT — GPIO RB0 / external interrupt input |
| Pin 7 | RB1/RX/DT — GPIO RB1 / USART RX (asynchronous) / data (synchronous) |
| Pin 8 | RB2/TX/CK — GPIO RB2 / USART TX / clock (synchronous) |
| Pin 9 | RB3/CCP1 — GPIO RB3 / Capture/Compare/PWM 1 output |
| Pin 10 | RB4/PGM — GPIO RB4 / LVP programming entry |
| Pin 11 | RB5 — GPIO RB5 |
| Pin 12 | RB6/T1OSO/PGC — GPIO RB6 / Timer1 oscillator output / ICD clock |
| Pin 13 | RB7/T1OSI/PGD — GPIO RB7 / Timer1 oscillator input / ICD data |
| Pin 14 | VDD — Positive supply voltage (3.0 V to 5.5 V) |
| Pin 15 | OSC2/CLKOUT/RA6 — Crystal output / Fosc/4 clock output / GPIO RA6 |
| Pin 16 | OSC1/CLKIN/RA7 — Crystal input / external clock input / GPIO RA7 |
| Pin 17 | RA0/AN0 — GPIO RA0 / ADC channel 0 |
| Pin 18 | RA1/AN1 — GPIO RA1 / ADC channel 1 |
Typical Applications
PIC16F627-04/SO is suitable for 6 applications: Consumer Appliance Control, Remote Control and IR Transmitter, Battery Charger Controller, Sensor Signal Conditioning Node, Automotive Body Controller, LED Driver and Lighting Controller.
Consumer Appliance Control
The PIC16F627-04/SO fits consumer appliance control (coffee makers, microwave user interfaces, washing-machine keypads) because of its 4 MHz RISC core, 16 digital I/O lines, and 1.75 KB Flash that comfortably holds small state-machine firmware. The internal 4 MHz oscillator eliminates external crystal cost, while the 224-byte RAM supports simple menu state tables. The 18-SOIC surface-mount package simplifies high-volume automated assembly. With 5 V tolerance on most pins and a 10-bit ADC available, the same MCU reads front-panel buttons, drives LED indicators, and triacs the heater relay without external glue logic.
Recommended
Remote Control and IR Transmitter
Low-cost IR remote controls pair naturally with the PIC16F627-04/SO because the 4 MHz core easily generates 38 kHz carrier PWM for RC5/ NEC protocols while leaving headroom for button-scanning firmware. The 224-byte RAM fits up to ~30-key matrix state and transmit buffers; the on-chip USART is unused but the timer/capture modules produce precise carrier timing. The 18-SOIC footprint is small enough for slim remote PCBs, and the 3.0-5.5 V supply matches single CR2032 or 2xAA battery rails. Power-down sleep currents (low microamps typical) preserve battery life across years of standby.
Recommended
Battery Charger Controller
Small sealed lead-acid (SLA) and NiMH chargers use the PIC16F627-04/SO as a charge-state supervisor, taking advantage of the 10-bit ADC to measure battery voltage and current. The on-chip comparator with programmable voltage reference provides a hardware-based end-of-charge detect independent of the firmware, increasing robustness. The 35-instruction RISC core runs the CC-CV algorithm easily within 1.75 KB Flash; the 128-byte EEPROM stores calibration constants and last-state memory across power cycles. The wide 3.0-5.5 V supply allows direct connection to a 4-cell NiMH pack without an extra LDO.
Recommended
Sensor Signal Conditioning Node
Industrial sensor nodes use the PIC16F627-04/SO to read thermocouples, RTDs, or analog transducers, perform linearization in firmware, and forward results via the on-chip USART to a host PLC or gateway. The 16-bit timer delivers precise ADC-trigger intervals for 50/60 Hz line-noise rejection via oversampling. The 18-SOIC industrial-rated /04I variant extends operating range to -40 C to +85 C, suitable for factory-floor enclosures. Compared with bare op-amp signal chains, this MCU-based node is cheaper, more flexible, and self-calibrating.
Recommended
Automotive Body Controller
Automotive interior-body modules (window lift switches, mirror controls, simple LED tail-lamps) historically rely on the PIC16F627-04/SO because of its small 18-SOIC footprint and 16 I/O lines. The MCU reads mechanical switches, drives MOSFET gates via PWM, and runs LIN-stack firmware on the USART for sub-bus communication. Automotive-grade cousins (PIC16F627-04I/SO and the Q-grade PIC16F627 variants) extend temperature to -40 C to +125 C and add AEC-Q100 qualification where required. The 1.75 KB Flash fits LIN 1.3 slave firmware comfortably.
Recommended
LED Driver and Lighting Controller
RGB LED controllers, decorative lighting strips, and signage dimmers use the PIC16F627-04/SO to generate multiple PWM channels for color mixing. The two 8-bit plus one 16-bit timers provide up to three independent PWM outputs, sufficient for RGB mixing or warm-white dimming. The 10-bit ADC reads ambient-light sensors for closed-loop brightness control. The 3.0-5.5 V supply works directly from a single Li-ion cell or a 5 V USB rail, simplifying the BOM.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F627-04/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F628-04/SO | PIC16F627-04I/SO | PIC16F627-04/P | PIC16F627-20/SO | PIC16F628A-I/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | SOIC-18 (0.295 inch) | SOIC-18 - same | SOIC-18 - same | DIP-18 (through-hole, same pinout) | SOIC-18 - same | SOIC-18 - same |
| 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) | 1.75 KB (1K x 14) | 3.5 KB (2K x 14) |
| Maximum Clock | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 20 MHz | 20 MHz |
| Operating 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 | 3.0 V to 5.5 V | 3.0 V to 5.5 V |
| Data RAM | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 224 bytes |
| Temperature Grade | Commercial | Commercial | Industrial (-40C to +85C) | Commercial | Commercial | Industrial (-40C to +85C) |
| RoHS Compliance | ROHS3 Compliant | ROHS3 Compliant | ROHS3 Compliant | ROHS3 Compliant | ROHS3 Compliant | ROHS3 Compliant |
Key Differentiators
- Compact 18-SOIC surface-mount footprint with 16 digital I/O (vs PIC16F627-04/P (DIP-18))
- Internal 4 MHz oscillator eliminates external crystal (vs PIC16F627-04I/SO (industrial temp))
- Wide 3.0-5.5 V supply for direct battery and 5 V rail use (vs PIC16F628-04/SO (double Flash))
- 10-bit ADC with internal voltage reference (vs PIC16F627-20/SO (20 MHz speed grade))
Design Notes
Place a 100 nF decoupling capacitor within 5 mm of the VDD pin (pin 14) and a bulk 10 uF tantalum or aluminum capacitor on the same VDD rail. The PIC16F627-04/SO has low peak supply current during Flash programming (in-circuit serial programming) - the bulk capacitor prevents VDD droop during ICSP writes. For battery applications, the internal 4 MHz oscillator plus sleep mode (current drops to a few microamps typical) provides the lowest BOM cost without sacrificing CPU wakeup latency.
Keep the MCLR pin (pin 5) tied to VDD through a 10 kohm pull-up resistor unless external reset is desired; never leave MCLR floating. For ICSP, MCLR must be accessible and a 10 kohm (not 1 kohm) pull-up allows the ICD tool to override the line. Route the crystal traces (OSC1/OSC2, pins 16/15) short and symmetric with a ground guard ring if using an external crystal; for the internal 4 MHz oscillator these pins become RA7/RA6 GPIO. SOIC-18 land pattern follows JEDEC SO-18 standard.
Configuration-word bits must be set BEFORE code execution: oscillator mode (HS vs XT vs internal RC), watchdog enable, brown-out voltage threshold, and code-protect bits. Forgetting to set FOSC = INTRC leaves the device waiting for an external clock that never arrives. The /04 (4 MHz) speed grade must match the configuration-word oscillator setting - the -04 part does not reliably drive a 20 MHz crystal. Use MPLAB X IDE configuration-bit macros in source to keep settings visible and reviewable.
Estimated: SOIC-18 thermal resistance theta_JA is approximately 100 C/W on a 1-oz 2-layer FR-4 board with no thermal via array. At VDD = 5 V, FOSC = 4 MHz, the typical supply current is 3-5 mA, dissipating 15-25 mW. Junction temperature rise is therefore negligible (delta_T under 3 C), but industrial and automotive designs should still validate the -40 C to +125 C range for the /04I and Q-grade variants. Solder-joint reliability improves with conformal coating in humid environments.
Compliance Information
ROHS3 Compliant per distributor listing; lead-free with Pb-free matte-tin plating. Standard -04 grade is commercial temperature only; choose PIC16F627-04I/SO for industrial, or Q-grade variants for AEC-Q100 automotive.