PIC16F627-20/P - 8-Bit 20MHz 1.75KB Flash MCU | Microchip
MPN: PIC16F627-20/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.85 | $2.85 |
| 10 | $2.52 | $25.20 |
| 100 | $2.18 | $218.00 |
| 500 | $1.95 | $975.00 |
| 1,000 | $1.74 | $1,740.00 |
PIC16F627-20/P Overview
A flash-based 8-bit CMOS microcontroller (MCU) is a self-contained computing device that integrates a RISC CPU, non-volatile flash program memory, volatile SRAM, peripheral modules, and I/O on a single silicon die. The PIC16F627-20/P sits in the broader product hierarchy: 8-bit microcontroller -> microcontroller unit (MCU) -> embedded processor -> semiconductor. Its Harvard architecture separates program and data buses, and the RISC instruction set enables deterministic single-cycle execution for most instructions, making this device a classic workhorse for low-cost embedded control.
Key specifications include 20 MHz maximum clock, 4.5 V to 5.5 V supply, 16 GPIO, 2 analog comparators, a USART, a Capture/Compare/PWM module, and a programmable voltage reference. The device integrates brown-out detect, power-on reset, power-up timer, oscillator start-up timer, and a watchdog timer with its own on-chip RC oscillator. With 200 ns instruction cycle time at 20 MHz and DC to 20 MHz operation, it supports real-time control loops in cost-sensitive applications.
The PIC16F627-20/P's architecture combines a 14-bit instruction word, two 8-bit I/O ports (PORTB and PORTA), and 11 interrupt sources. Peripherals include two comparators with programmable reference, USART for serial communications, and a CCP module. Internal 4 MHz and 37 kHz oscillators are also available, eliminating external crystal cost in non-precision timing applications. The 35 single-word instructions reduce code complexity and accelerate time to market.
Typical applications include industrial control, automotive body electronics, consumer appliances, security and alarm systems, motor control, and battery chargers. The 16 GPIO and analog comparators make it well-suited for sensor interfacing, while the USART and CCP peripherals support communication and PWM-driven actuator control in industrial and embedded designs.
When designing with this part, note that '20' in the part number denotes the 20 MHz speed grade. Choose '04' for 4 MHz / extended-voltage variants and '20I' for the industrial temperature range. Decoupling 100 nF close to VDD and using the internal oscillator option can reduce BOM cost.
This page synthesizes distributor pricing, drop-in alternatives within the PIC16F6XX family, and practical design notes not found in the manufacturer datasheet alone, helping engineers evaluate the PIC16F627-20/P for new designs and legacy board replacement.
Drop-in alternatives for PIC16F627-20/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-20/P (same form factor and footprint) — differing in Package, Operating Temperature, Program Memory (Flash), Mounting Type, I/O Pins.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F628-20/P
✅ Drop-In✓ In Stock
$1.96 / Unit
View Datasheet →PIC16F627-20I/P
✅ Drop-In✓ In Stock
$2.18 / Unit
View Datasheet →PIC16F627-04/P
✅ Drop-In✓ In Stock
$2.05 / Unit
View Datasheet →PIC16F627A-I/P
✅ Drop-In✓ In Stock
$1.72 / Unit
View Datasheet →PIC16F88-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F627-04I/P
✅ Drop-In✓ In Stock
$2.3 / Unit
View Datasheet →PIC16F627-20/P Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit RISC PIC16 (Harvard) |
| Instruction Word Width | 14-bit |
| Program Memory (Flash) | 1.75 KB (1024 x 14 words) |
| Data Memory (SRAM) | 224 bytes |
| EEPROM | 128 bytes |
| Maximum Clock Frequency | 20 MHz |
| Instruction Cycle Time | 200 ns at 20 MHz |
| Supply Voltage (VDD) | 4.5 V to 5.5 V |
| I/O Pins | 16 (PORTA + PORTB) |
| Analog Comparators | 2 with programmable voltage reference |
| USART | 1 (Enhanced USART/SCI) |
| CCP Module | 1 (Capture/Compare/PWM) |
| Timers | Timer0, Timer1, Timer2 (8/16/8-bit) |
| Interrupt Sources | 11 |
| Watchdog Timer | Yes, dedicated on-chip RC oscillator |
| Brown-out Reset (BOR) | Yes |
| Power-on Reset (POR) | Yes |
| Internal Oscillator | 4 MHz / 37 kHz selectable |
| Package | 18-pin PDIP (P) |
| Operating Temperature | 0C to +70C (commercial, no 'I' suffix) |
| Instruction Set Size | 35 single-word instructions |
| Mounting Type | Through-Hole (DIP) |
| RoHS Status | Compliant (lead-free) |
| Country of Origin | Thailand (per Microchip Direct) |
PIC16F627-20/P Pin Configuration
| Pin 1 | RA2/AN2/CVREF/VREF — PORTA bit 2 / analog input / comparator V reference output / voltage reference |
| Pin 2 | RA3/AN3/C1OUT — PORTA bit 3 / analog input / comparator 1 output |
| Pin 3 | RA4/AN4/T0CKI — PORTA bit 4 / analog input / Timer0 clock input (open-drain) |
| Pin 4 | RA5/MCLR/VPP — PORTA bit 5 / Master Clear (reset, active low) / programming voltage |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RB0/INT — PORTB bit 0 / external interrupt |
| Pin 7 | RB1/RX/DT — PORTB bit 1 / USART RX / synchronous data |
| Pin 8 | RB2/TX/CK — PORTB bit 2 / USART TX / synchronous clock |
| Pin 9 | RB3/CCP1 — PORTB bit 3 / Capture/Compare/PWM channel 1 |
| Pin 10 | RB4/PGM — PORTB bit 4 / Low-voltage ICSP programming input |
| Pin 11 | RB5 — PORTB bit 5 |
| Pin 12 | RB6/PGC — PORTB bit 6 / ICSP clock (serial programming) |
| Pin 13 | RB7/PGD — PORTB bit 7 / ICSP data (serial programming) |
| Pin 14 | VDD — Positive supply voltage (+5 V) |
| Pin 15 | OSC2/CLKOUT — Oscillator crystal output / Fosc/4 clock output |
| Pin 16 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| Pin 17 | RA6/OSC2/CLKOUT — PORTA bit 6 / oscillator output (alternate) |
| Pin 18 | RA7/OSC1/CLKIN — PORTA bit 7 / oscillator input (alternate) |
Typical Applications
PIC16F627-20/P is suitable for 6 applications: Industrial Control & Sensor Interfacing, Automotive Body Electronics & Aftermarket Modules, Consumer Appliance Control, Security & Alarm Systems, Battery Chargers & Power Management, Educational & Hobbyist Development.
Industrial Control & Sensor Interfacing
The PIC16F627-20/P fits industrial control because its 2 analog comparators with programmable voltage reference enable direct sensor threshold detection (e.g., thermistor or photodiode bridges) without external op-amps. Its 20 MHz clock and 200 ns instruction cycle allow real-time sampling of slow process signals, while the 4.5-5.5 V supply matches industrial 5 V rails. The Watchdog Timer with dedicated RC oscillator prevents lockup in unattended machinery. Compared with newer PIC16F1xxx parts, this MCU remains attractive for cost-sensitive PLC I/O modules where 1.75 KB of flash is sufficient for ladder-logic-equivalent firmware.
Recommended
Automotive Body Electronics & Aftermarket Modules
The PIC16F627-20/P suits automotive body modules because its USART enables LIN bus master implementation (with an external LIN transceiver) for door modules, mirror controls, and seat controllers. The 16 GPIO can drive relays and LEDs directly via 25 mA sink capability on PORTB, eliminating driver transistors. The CCP module provides PWM for lamp dimming and small motor speed control. Industrial-grade PIC16F627-20I/P variants tolerate -40C to +85C under-hood environments. Note: this MCU is NOT AEC-Q100 qualified - for OEM automotive, the PIC16F1xxx K-line family is preferred.
Recommended
Consumer Appliance Control
The PIC16F627-20/P drives appliance control because its 35-instruction RISC core plus integrated peripherals keep code density high - typical 1.75 KB programs fit full state-machine logic for washing machines, microwave ovens, and small kitchen appliances. Brown-out detect prevents corruption during power glitches common in inductive loads, and the CCP module generates PWM for heater or motor speed regulation. The 18-pin PDIP package is friendly to hand-soldered prototypes and through-hole manufacturing. A 5 V supply is typical in mains-rectified consumer designs, making this part a natural fit for low-cost appliance replacement cycles.
Recommended
Security & Alarm Systems
The PIC16F627-20/P is well suited to security alarm panels because its 11 interrupt sources support immediate response to sensor events (PIR motion, door contacts, glass-break detectors). The 224-byte SRAM accommodates buffer storage for event logging, and the USART enables communication with a central monitoring unit or keypad. Brown-out detection ensures alarm state survives power glitches. The 5 V supply aligns with traditional alarm-system rails. Compared with newer PIC16F1xxx parts, this MCU remains popular in legacy alarm panels where the through-hole PDIP simplifies field replacement and repair.
Recommended
Battery Chargers & Power Management
The PIC16F627-20/P drives lead-acid and NiMH chargers because its 2 analog comparators with programmable voltage reference implement precise charge termination without an external ADC. The CCP module provides PWM switching at frequencies up to 20 MHz / 256 = 78 kHz, suitable for buck or boost converter control. Brown-out detect prevents deep discharge of battery cells. The internal 4 MHz oscillator eliminates crystal cost in cost-sensitive chargers. Compared with newer PIC16F1xxx parts, this MCU remains preferred for cost-sensitive NiMH/Li-ion charger designs where 1.75 KB of flash is sufficient.
Recommended
Educational & Hobbyist Development
The PIC16F627-20/P is a classic teaching platform because its 35-instruction RISC set introduces students to bare-metal embedded programming without overwhelming complexity. The 18-pin PDIP package is breadboard-friendly, the USART provides a serial console for debugging, and the CCP module introduces PWM concepts. MPLAB X IDE and XC8 compiler are free, supporting the full PIC16F62X family. Compared with modern 32-bit MCUs, the PIC16F627-20/P remains a preferred starting point for students learning assembly language fundamentals and interrupt-driven firmware on real hardware.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F627-20/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F628-20/P | PIC16F627-20I/P | PIC16F627-04/P | PIC16F627A-I/P | PIC16F88-I/P | PIC16F627-04I/P |
|---|---|---|---|---|---|---|---|
| Package | PDIP-18 (P) | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 1.75 KB (1024 x 14) | 3.5 KB (2048 x 14) | 1.75 KB (1024 x 14) | 1.75 KB (1024 x 14) | 1.75 KB (1024 x 14) | 4 KB (4096 x 14) | 1.75 KB (1024 x 14) |
| Data Memory (SRAM) | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 224 bytes | 368 bytes | 224 bytes |
| Maximum Clock Speed | 20 MHz | 20 MHz | 20 MHz | 4 MHz | 20 MHz | 20 MHz | 4 MHz |
| Supply Voltage | 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 (extended) | 2.0 V to 5.5 V (extended) | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
| Operating Temperature | 0C to +70C (commercial) | 0C to +70C | -40C to +85C (industrial) | 0C to +70C | -40C to +85C (industrial) | -40C to +85C | -40C to +85C |
| Internal Oscillator | 4 MHz / 37 kHz selectable | 4 MHz / 37 kHz | 4 MHz / 37 kHz | 4 MHz / 37 kHz | 4 MHz internal (confirmed) | 8 MHz internal | 4 MHz / 37 kHz |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 256 bytes | 128 bytes |
Key Differentiators
- 20 MHz speed grade (vs 4 MHz PIC16F627-04/P) (vs PIC16F627-04/P)
- Drop-in flash upgrade path via PIC16F628-20/P (vs PIC16F628-20/P)
- Commercial 0C to +70C operating range (vs industrial -40C to +85C) (vs PIC16F627-20I/P)
Design Notes
Decouple VDD (pin 14) with a 100 nF ceramic capacitor placed within 5 mm of the pin, plus a bulk 10 uF electrolytic or tantalum capacitor on the 5 V rail. The PIC16F627-20/P draws up to approximately 30 mA active at 20 MHz with all I/O toggling. Brown-out detect (BOD) must be enabled in the configuration word to prevent code corruption during VDD brown-out events below 4.0 V.
Pin 4 is the MCLR/VPP reset input and must be pulled high through a 10 kohm resistor; do NOT leave it floating. PORTB weak pull-ups (RBPU bit clear = enabled) should be enabled for any input pin without an external pull-up. The configuration word bit FOSC must match the oscillator mode (LP, XT, HS, RC) selected at the OSC1/OSC2 pins; mismatching HS mode with a low-frequency crystal will not start the oscillator.
For through-hole PDIP-18 layouts, place a ground plane beneath the MCU, route VDD as a star from a single decoupling node, and keep the ICSP header (RB6/RB7, MCLR/VPP, VDD, VSS) accessible for in-circuit programming and debug. The internal 4 MHz oscillator eliminates the need for an external crystal in non-precision timing applications, saving two pins and BOM cost; however, accuracy is only +/-1% typical at 5 V / 25C, worse than +/-0.005% with an external crystal.
Compliance Information
RoHS compliant and lead-free per Microchip Direct product page. Not AEC-Q100 qualified - automotive OEM applications should use PIC16F1xxx K-line family. Country of origin: Thailand.