PIC16F627-04I/SO - 4MHz 8-Bit Flash MCU, 1.75KB | Microchip
MPN: PIC16F627-04I/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.81 | $2.81 |
| 10 | $2.5 | $25.00 |
| 100 | $2.13 | $213.00 |
| 500 | $1.82 | $910.00 |
| 1,000 | $1.59 | $1,590.00 |
PIC16F627-04I/SO Overview
What is an 8-bit Flash microcontroller? An 8-bit Flash microcontroller is a single-chip computer built around an 8-bit data path, Harvard architecture, and on-chip Flash program memory that is electrically erasable and reprogrammable in-circuit. The PIC16F627 belongs to the PIC16 mid-range family (8-bit microcontroller -> RISC microcontroller -> Flash microcontroller -> embedded MCU -> semiconductor), giving designers a reprogrammable alternative to OTP and ROM parts while remaining cost-competitive for high-volume consumer and industrial products.
Key features include 35 single-word instructions with 200 ns instruction cycle at 4 MHz, an internal 4 MHz RC oscillator (factory calibrated to within +/- 1%), 2 analog comparators with programmable references, a Capture/Compare/PWM (CCP) module, USART for asynchronous serial communication, and synchronous serial port (SSP) support for SPI/I2C. The PIC16F627 also integrates a 16-bit timer/counter (TMR1) with a separate oscillator, two 8-bit timers, and a watchdog timer with its own on-chip RC oscillator.
The PIC16F627 architecture separates program and data memory through separate buses, enabling simultaneous instruction fetch and data access. The 14-bit instruction word with 8-bit data path keeps code density high while the RISC instruction set keeps cycle counts low. Brown-out reset, power-on reset, and the wide 3.0-5.5 V operating range (note: -04 speed grade specifies 4.5-5.5 V per data sheet table) make the part robust against brown-out events common on industrial 24 V and battery-powered rails after rectification.
Typical applications include remote-control transmitters, small appliance controllers, automotive interior accessories, sensor signal conditioning, simple lighting controllers, and battery chargers. The PIC16F627 is a popular drop-in upgrade for legacy PIC16F84A designs because both share an 18-pin footprint and the PIC16 core instruction set, while adding peripherals, EEPROM, and a USART.
When designing with this MCU, reserve the in-circuit serial programming (ICSP) pins (RB6/RB7) for the programming header and keep traces short. Configure the configuration word to select the internal RC oscillator when cost and board space matter more than absolute frequency accuracy, or use an external crystal for USB-UART bridging or RF applications that need tight timing.
Drop-in alternatives for PIC16F627-04I/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-04I/SO (same form factor and footprint) — differing in Package, Analog Comparators, Operating Temperature, I/O Pins, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F627-04E/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F627-04/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F628-04I/SO
✅ Drop-In✓ In Stock
$2.3 / Unit
View Datasheet →PIC16F627A-I/SO
✅ Drop-In✓ In Stock
$1.74 / Unit
View Datasheet →PIC16LF627-04I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F627-04I/SO Maximum Ratings & Electrical Characteristics
| Core | PIC16 8-bit RISC |
| Program Memory | 1.75 KB Flash (1K x 14 words) |
| RAM | 224 bytes |
| EEPROM | 128 bytes |
| Max CPU Speed | 4 MHz (4 MIPS, 200 ns instruction cycle) |
| Supply Voltage | 4.5 V to 5.5 V (-04 speed grade at 4 MHz) |
| Operating Temperature | -40C to +85C (Industrial, 'I' suffix) |
| I/O Pins | 16 (bidirectional, with weak pull-ups on PORTB) |
| Timers | One 16-bit (TMR1) + two 8-bit (TMR0, TMR2) |
| Analog Comparators | 2 with programmable on-chip reference |
| Communication | USART (SCI), SSP (SPI / I2C) |
| PWM/CCP | 1 Capture/Compare/PWM module |
| Internal Oscillator | 4 MHz factory-calibrated (+/- 1%) |
| Watchdog Timer | Yes, with dedicated on-chip RC oscillator |
| Brown-out Reset | Yes |
| In-Circuit Programming | ICSP via RB6/RB7 |
| Package | 18-pin SOIC (300 mil, 'SO' suffix) |
| Mounting Type | Surface Mount |
| Instruction Set | 35 single-word instructions |
| RoHS Status | Compliant |
PIC16F627-04I/SO Pin Configuration
| Pin 1 | RA2/AN2 — Bidirectional I/O / analog input |
| Pin 2 | RA3/AN3 — Bidirectional I/O / analog input |
| Pin 3 | RA4/AN4/T0CKI — Bidirectional I/O / analog / TMR0 clock input |
| Pin 4 | RA5/MCLR/VPP — Bidirectional I/O / Master Clear reset (active low) / ICSP VPP |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RB0/INT — I/O with weak pull-up / external interrupt |
| Pin 7 | RB1/RX/DT — I/O / USART RX / I2C data |
| Pin 8 | RB2/TX/CK — I/O / USART TX / I2C clock |
| Pin 9 | RB3/CCP1 — I/O / Capture Compare PWM output |
| Pin 10 | RB4/PGM — I/O with interrupt-on-change / LVP programming |
| Pin 11 | RB5 — I/O with interrupt-on-change |
| Pin 12 | RB6/PGC — I/O / ICSP clock (serial programming) |
| Pin 13 | RB7/PGD — I/O / ICSP data (serial programming) |
| Pin 14 | VDD — Positive supply (4.5-5.5 V at -04 grade) |
| Pin 15 | OSC2/CLKOUT — Crystal/oscillator output or CLKOUT |
| Pin 16 | OSC1/CLKIN — Crystal/oscillator input or external clock |
| Pin 17 | RA0/AN0 — Bidirectional I/O / analog input |
| Pin 18 | RA1/AN1 — Bidirectional I/O / analog input |
Typical Applications
PIC16F627-04I/SO is suitable for 6 applications: Remote Control Transmitters, Small Appliance Controllers, Automotive Interior Accessories, Sensor Signal Conditioning, Simple LED Lighting Controllers, Battery Chargers (NiMH/Lead-Acid).
Remote Control Transmitters
The PIC16F627-04I/SO fits IR/RF remote control transmitters because its 4 MIPS throughput handles simple encoding protocols (RC5, NEC, Sony SIRC) while consuming only a few mA active current. The internal 4 MHz oscillator (+/- 1% factory calibrated) eliminates the external crystal for cost-sensitive consumer remotes, and the 16 I/O pins drive keypad matrix scans plus IR LED PWM. Brown-out reset protects against battery droop during IR burst transmission when the load pulls VDD down.
Recommended
Small Appliance Controllers
The PIC16F627-04I/SO is well matched to small appliance controllers (coffee makers, fans, blenders) where 1.75 KB Flash holds the state machine, EEPROM stores user presets, and the on-chip USART enables factory calibration over a service port. The two analog comparators with programmable reference provide direct sensor interface for thermistor or line-voltage zero-cross detection without external op-amps. Industrial -40C to +85C rating handles kitchen and laundry room thermal stress.
Recommended
Automotive Interior Accessories
The PIC16F627-04I/SO drives automotive interior accessories (LED ambient lighting, seat heaters, mirror controllers) where 4 MIPS handles PWM dimming and CAN/LIN is not required. Its 16 I/O pins support multiple LED channels with software PWM, the USART connects to body control modules for diagnostic feedback, and 128 bytes EEPROM retain last-state across battery disconnect events. The industrial -40C to +125C operating range covers cabin and door-module environments.
Recommended
Sensor Signal Conditioning
Sensor signal conditioning modules benefit from the PIC16F627-04I/SO's 2 analog comparators with programmable voltage reference, which can threshold-switch sensor outputs without external op-amp circuitry. The 16-bit TMR1 with dedicated oscillator enables precise pulse-counting for flow meters or optical encoders. The 1.75 KB Flash and 224 bytes RAM comfortably run simple linearization tables for thermistor, RTD, or load-cell signal chains in industrial process instrumentation.
Recommended
Simple LED Lighting Controllers
The PIC16F627-04I/SO drives simple LED lighting controllers (architectural dimmers, decorative strips, signage) where the CCP module produces hardware PWM up to 10-bit resolution while the USART receives DMX-512 or proprietary protocol commands. The internal 4 MHz oscillator and 128-byte EEPROM eliminate external timing components and remember last brightness settings across power cycles. Brown-out reset prevents flicker during brown-out events.
Recommended
Battery Chargers (NiMH/Lead-Acid)
The PIC16F627-04I/SO is well suited to simple NiMH or sealed lead-acid battery chargers where the two analog comparators with programmable reference implement -dV termination or temperature-slope cutoff, and the 16-bit TMR1 measures charge time accurately. The USART reports state-of-charge to a host display, while 128 bytes of EEPROM store charging profiles for different battery chemistries. Industrial -40C to +85C supports garage, marine, and outdoor charger environments.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F627-04I/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F627-04E/SO | PIC16F627-04/SO | PIC16F628-04I/SO | PIC16F627A-I/SO | PIC16LF627-04I/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 18-pin SOIC (300 mil) | 18-pin SOIC (300 mil) - same | 18-pin SOIC (300 mil) - same | 18-pin SOIC (300 mil) - same | 18-pin SOIC (300 mil) - same | 18-pin SOIC (300 mil) - same |
| Program Memory | 1.75 KB Flash | 1.75 KB Flash | 1.75 KB Flash | 3.5 KB Flash (+100%) | 1.75 KB Flash | 1.75 KB Flash |
| RAM | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 224 bytes |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes |
| Max CPU Speed | 4 MHz (-04 grade) | 4 MHz (-04 grade) | 4 MHz (-04 grade) | 4 MHz (-04 grade) | 20 MHz (-20 grade supported) | 4 MHz (-04 grade) |
| Supply Voltage | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 2.0 V to 5.5 V (wider) | 2.0 V to 5.5 V (wider) |
| Operating Temperature | -40C to +85C (Industrial) | -40C to +125C (Extended) | 0C to +70C (Commercial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
| Internal Oscillator | 4 MHz (+/- 1%) | 4 MHz (+/- 1%) | 4 MHz (+/- 1%) | 4 MHz (+/- 1%) | 4 MHz (+/- 1%) | 4 MHz (+/- 1%) |
Key Differentiators
- Industrial -40C to +85C temperature range in 18-pin SOIC (vs PIC16F627-04/SO (commercial 0C to +70C))
- Pin-compatible upgrade path to 3.5 KB Flash (vs PIC16F628-04I/SO)
- Internal 4 MHz oscillator with +/- 1% factory calibration (vs PIC16F84A (requires external crystal/RC))
- Lower VDD option (2.0 V) in LF variant (vs PIC16LF627-04I/SO)
Design Notes
Reserve RB6 (PGC) and RB7 (PGD) for in-circuit serial programming (ICSP). Both pins must reach a 5-pin header with a 10 kohm pull-up on MCLR (pin 4) to VDD for reliable ICSP. Keep traces under 50 mm if possible; long traces increase programming failures at low VDD. Place a 100 nF decoupling capacitor as close as practical to the VDD pin (14) with a short trace to VSS (pin 5); add a 10 uF bulk capacitor near the IC for switching-noise robustness.
MCLR (pin 4) is a shared I/O on the PIC16F627. When used as a digital input RA5, MCLR must be disabled in the configuration word (MCLRE = 0), otherwise pin 4 becomes reset-only. Conversely, if reset is needed, leave MCLRE = 1 and add the 10 kohm pull-up. Forgetting this setting is a top cause of 'dead' PIC16F627 boards that otherwise program successfully.
For USART designs above 57600 baud, use the high-speed (HS) oscillator mode with a 4-20 MHz crystal - the internal 4 MHz oscillator with +/- 1% factory tolerance and +/- 2-5% temperature drift produces UART framing errors at 115200 baud over industrial temperature. Estimated timing error at 115200 baud: 0.5% baud-rate mismatch is the practical limit for stable communication; the internal oscillator can exceed this at temperature extremes.
Brown-out reset (BOR) is configured via the configuration word with selectable trip voltages. Enable BOR for any application where VDD can drop below 4.5 V (battery, automotive cranking). Without BOR, the PIC16F627 may execute instructions from corrupt Flash during a slow voltage decay, potentially locking up in unintended peripheral states. The -04 speed grade drops to 3.0 V operation only when running below 4 MHz.
Compliance Information
RoHS and REACH compliant per Microchip product page; lead-free SOIC package confirmed by part number suffix 'SO'. Not AEC-Q100 qualified - automotive interior use is possible at industrial -40C to +85C only; for AEC-Q100 Grade 0/1 applications select the PIC16F627A-E/SO or PIC16F628A-I/SO automotive variants.