Microchip Technology

PIC16F631-I/SO - 20MHz 8-Bit Flash MCU, 1.75KB | Microchip

MPN: PIC16F631-I/SO ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V (per family datasheet) Vdss 20-pin SOIC (SOIC-20, 300-mil) Package 20 MHz Speed 1.75 KB (1K x 14) Flash Memory
From $1.28 USD / Unit
MOQ: 1 |
Price updated: 2026-09-20
Volume Pricing
Qty Unit Price Extended
1 $2.16 $2.16
10 $1.94 $19.40
100 $1.66 $166.00
500 $1.45 $725.00
1,000 $1.28 $1,280.00
ℹ️ All prices are in USD

PIC16F631-I/SO Overview

The Microchip Technology PIC16F631-I/SO is an 8-bit Flash-based CMOS microcontroller from the PIC® mid-range family with nanoWatt technology, delivering 20 MHz CPU performance, 1.75 KB (1K x 14) of Flash program memory, and 64 bytes of RAM in a 20-pin SOIC package. The "I" suffix indicates the industrial temperature grade (-40C to +85C), while the "/SO" suffix denotes the 300-mil SOIC-20 surface-mount package.

A microcontroller (MCU) is a single-chip computer containing a CPU core, program and data memory, I/O peripherals, and timers on one integrated circuit. The PIC16F631 belongs to the low pin-count (20-pin) subset of Microchip's mid-range x14 architecture, standardizing on 35 instructions, an 8-level hardware stack, and a wide 2.0-5.5 V operating voltage range that makes it well suited to both 3.3 V and 5 V designs.

Key features include 18 I/O pins capable of driving LEDs directly, an internal oscillator selectable from 31 kHz to 8 MHz via OSCCAL calibration, a 10-bit ADC with up to 12 channels depending on package, dual comparators, an enhanced PWM/capture/compare module, and an onboard EEPROM data memory block. The nanoWatt technology provides multiple power-managed modes (RUN, IDLE, SLEEP) that drop quiescent current into the microamp range for battery-powered applications.

Typical applications include small appliance control, sensor signal conditioning, LED driver sequencing, battery chargers, remote-control transmitters, and industrial logic replacement. With its broad operating voltage and on-chip EEPROM for nonvolatile parameter storage, the PIC16F631 is frequently chosen as a cost-optimized glue logic replacement in place of discrete analog components.

A core consideration when designing with this MCU is that it does NOT have a hardware UART; designers needing asynchronous serial must implement a software bit-banged UART, which constrains it versus PIC16F88x or PIC16F1xxx family members. Programming is performed via In-Circuit Serial Programming (ICSP) through the ICSPCLK/ICSPDAT pins, requiring two signal lines plus VPP/MCLR/VSS during programming.

Drop-in alternatives for PIC16F631-I/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 PIC16F631-I/SO (same form factor and footprint) — differing in Operating Temperature, Package, ADC, Timers, I/O Pins.

Microchip Technology
Operating Temperature: -40 °C to +125 °C (Extended -E grade)
Package: 20-pin SOIC (SO), 7.50 mm body width, tube
ADC: 10-bit, up to 11 channels
Microchip Technology
Operating Temperature: -40 C to +85 C (industrial grade, -I suffix)
Package: 20-pin SOIC (SO), 7.50 mm body width
ADC: On-chip (channels vary by package); see datasheet
Microchip Technology
Operating Temperature: -40C to +85C (industrial)
Package: 20-pin SSOP (Shrink Small Outline Package)
ADC: 10-bit, multiple channels
Microchip Technology
Operating Temperature: -40 C to +85 C (industrial -I grade)
Package: 14-TSSOP (4.40 mm body width, ST suffix)
I/O Pins: 12
Microchip Technology
Operating Temperature: -40 C to +125 C
Package: 20-pin SOIC (SO) - SOIC-20
ADC: 10-bit, 5 channels
Microchip Technology
Operating Temperature: -40 C to +85 C (industrial)
Package: 20-pin SOIC (SO)
ADC: 12 channels, 10-bit

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

PIC16F631-E/SO

✅ Drop-In
Microchip Technology
📦 SOIC-20
PIC16F (mid-range 8-bit) · Flash · 1.75 KB (1792 words x 14-bit) · 128 bytes · 64 bytes · 20 MHz · 4.5 V to 5.5 V (PIC16F631 -E operating range) · 11

✓ In Stock

$0.5927 / Unit

View Datasheet →

PIC16F690-I/SO

✅ Drop-In
Microchip Technology
📦 SOIC-20
8-bit PIC16 mid-range (Harvard, 14-bit instruction word) · 7 KB (4K x 14) · 256 bytes · 256 bytes · 20 MHz (5 MIPS) · 2.0 V to 5.5 V · 18 · 12 channels, 10-bit

✓ In Stock

$1.62 / Unit

View Datasheet →
ℹ️ 4 cross-package part(s) hidden — different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

PIC16F631-I/SO Maximum Ratings & Electrical Characteristics

Product Family PIC16F
Core Architecture PIC Mid-Range (8-bit, x14, 35 instructions, 8-level hardware stack)
CPU Speed (max) 20 MHz
Program Memory 1.75 KB (1K x 14) Flash
Data EEPROM 128 bytes
Data RAM 64 bytes
I/O Pins 18
Supply Voltage 2.0 V to 5.5 V (per family datasheet)
Operating Temperature -40C to +85C (industrial, "I" grade)
ADC 10-bit, 12 channels
Comparators 2
PWM / CCP Modules Enhanced CCP (1 channel)
Timers Timer0 (8-bit), Timer1 (16-bit), Timer2 (8-bit)
Internal Oscillator 31 kHz to 8 MHz (OSCCAL, factory calibrated)
UART / USART No hardware UART
Package 20-pin SOIC (SOIC-20, 300-mil)
Mounting Type Surface Mount
MSL Level 1
RoHS Status Compliant
Programming Method ICSP (In-Circuit Serial Programming) via ICSPCLK/ICSPDAT
Technology nanoWatt (RUN/IDLE/SLEEP modes)

PIC16F631-I/SO Pin Configuration

SOIC-20 Package Pinout Diagram SOIC-20W 20-pin, 7.5x12.8mm, P1.27mm, JEDEC MS-013. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 SOIC-20
Pin 1 RA2/AN2/T0CKI — PORTA bit 2 / Analog input 2 / Timer0 clock input
Pin 2 RA3/AN3/C1OUT — PORTA bit 3 / Analog input 3 / Comparator 1 output
Pin 3 RA4/AN4/T1G — PORTA bit 4 / Analog input 4 / Timer1 gate
Pin 4 RA5/MCLR/VPP — PORTA bit 5 / Master Clear (reset) / Programming voltage
Pin 5 VSS — Ground reference
Pin 6 RB4/AN10/SDI/SDA — PORTB bit 4 / Analog input 10 / SPI data in / I2C data
Pin 7 RB5/AN11/RX — PORTB bit 5 / Analog input 11 / software UART RX (no hardware UART)
Pin 8 RB6/ICSPCLK/ADC — PORTB bit 6 / ICSP clock / Analog input
Pin 9 RB7/ICSPDAT/TX — PORTB bit 7 / ICSP data / software UART TX
Pin 10 VSS — Ground reference (second pin)
Pin 11 VDD — Positive supply (2.0 V - 5.5 V)
Pin 12 RA6/OSC2/CLKOUT — PORTA bit 6 / Oscillator output / Clock out
Pin 13 RA7/OSC1/CLKIN — PORTA bit 7 / Oscillator input / Clock in
Pin 14 RC0 — PORTC bit 0
Pin 15 RC1 — PORTC bit 1
Pin 16 RC2/CCP1 — PORTC bit 2 / Enhanced CCP1 PWM output
Pin 17 RC3 — PORTC bit 3
Pin 18 RC4/C2OUT — PORTC bit 4 / Comparator 2 output
Pin 19 RC5 — PORTC bit 5
Pin 20 RC6 — PORTC bit 6

Typical Applications

PIC16F631-I/SO is suitable for 6 applications: Small Appliance Control, Sensor Signal Conditioning, LED Driver Sequencing, Battery Charger Controller, Remote Control / IR Transmitter, Industrial Logic Replacement.

🏭

Small Appliance Control

The PIC16F631-I/SO fits small-appliance controllers (coffee makers, blenders, air purifiers) because its 20 MHz core and 18 I/O pins can drive relay drivers, triac optos, and keypad scans while the 1.75 KB Flash is sufficient for state-machine firmware. The 2.0-5.5 V supply range accepts unregulated 5 V or rectified 3.3 V rails without LDOs. With 128 B EEPROM for setpoint memory and nanoWatt SLEEP drawing under 1 uA, the MCU also powers standby-only appliances where battery backup preserves clock time during mains outages.

🌐

Sensor Signal Conditioning

The PIC16F631-I/SO's integrated 10-bit ADC with 12 input channels and two comparators allows direct interface to thermistor, NTC, and voltage-divider sensor networks without external analog front ends. Placed between the sensor bridge and a downstream MCU/display, it pre-digities linearizes, and applies offset calibration using the onboard 128 B EEPROM for stored coefficients. With its 8-level hardware stack and fast interrupt response, the PIC16F631 can run closed-loop sensor control at sub-millisecond rates while consuming under 100 uA/MHz active.

💡

LED Driver Sequencing

The PIC16F631-I/SO drives LED matrix or RGB string lighting through its enhanced CCP module and 18 I/O pins, with each PWM cycle running on Timer2 at 20 MHz. Compared to a discrete 555-timer-based sequencing board, the PIC16F631 lets the designer change patterns, brightness curves, and chases in firmware without re-spinning the PCB. The nanoWatt IDLE mode is invoked between pattern updates to keep average quiescent current under 50 uA, extending battery life in portable decorative lighting.

Battery Charger Controller

The PIC16F631-I/SO operates as a NiMH or single-cell Li-ion charge controller, using its two comparators for voltage and current thresholds while the ADC monitors battery temperature via an external thermistor. Because the device supports 2.0-5.5 V operation, it can be powered directly from the charger input without a separate LDO. The 128-byte EEPROM stores charge profile parameters and the 10-bit ADC provides accurate termination voltage detection within +/-5 mV - sufficient for small-format consumer battery chargers.

📱

Remote Control / IR Transmitter

The PIC16F631-I/SO with its enhanced CCP module generates 38 kHz carrier modulation for IR remote transmitters at sub-mW average draw. Its internal oscillator eliminates the external crystal, saving PCB space and BOM cost - a key differentiator versus 4-bit remote controllers. The 18 I/O lines support a 5x5 keypad matrix or 16 direct command keys with interrupt-on-change wakeup from SLEEP on RB port pins, achieving years of operation from two AAA cells.

🔧

Industrial Logic Replacement

The PIC16F631-I/SO replaces 4-6 discrete CMOS logic ICs (74HC quad gates, latches, and timers) by absorbing glue logic into a single programmable part. Operating at 5 V with industrial -40C to +85C temperature grade, it survives factory floor electrical environments while 18 I/O pins handle fanout for relay coils, optos, and indicator LEDs. The PIC16F631's ICSP interface means factory firmware updates can be pushed through the same 2-pin programming header used at NPI, eliminating separate test fixtures for field rework.

Recommended Products Summary

PIC16F690-I/SO Microchip Technology Used in: Small Appliance Control MOC3021 Triac driver opto-isolator for mains AC loads Used in: Small Appliance Control PIC16F631-I/ML Microchip Technology Used in: Small Appliance Control PIC16F677-I/P Higher-memory cousin for floating-point lookup tables Used in: Sensor Signal Conditioning MCP9700 Linear temperature sensor with ADC-friendly output Used in: Sensor Signal Conditioning PIC16F631-I/SS Microchip Technology Used in: LED Driver Sequencing WS2811 External addressable LED driver fed from PIC16F631 PWM Used in: LED Driver Sequencing PIC16F685-I/SO More-memory alternative when storing multi-stage profiles Used in: Battery Charger Controller MCP73123 Companion Li-ion charge-management IC Used in: Battery Charger Controller TSAL6100 IR LED emitter for 940 nm remote links Used in: Remote Control / IR Transmitter PIC16F630-I/SL Microchip Technology Used in: Remote Control / IR Transmitter PIC16F631-E/SO Microchip Technology Used in: Industrial Logic Replacement ULN2003 Darlington array for high-current relay drive from MCU I/O Used in: Industrial Logic Replacement
What is the operating voltage range of PIC16F631-I/SO?
The PIC16F631-I/SO operates from 2.0 V to 5.5 V across the industrial -40C to +85C temperature range, supporting both 3.3 V and 5 V system designs without external level shifters. According to the Microchip datasheet 41287E, the wide voltage range is one of the defining features of the PIC16F631 low pin-count family, enabling direct lithium-battery operation as well as standard 5 V logic rails.
How much program memory does PIC16F631-I/SO have?
The PIC16F631-I/SO contains 1.75 KB of Flash program memory organized as 1K x 14 words (1024 instructions of 14-bit width) plus 128 bytes of EEPROM for non-volatile data storage and 64 bytes of RAM. This memory configuration is verified by the DigiKey product listing and the Microchip datasheet, and supports typical small embedded applications such as appliance control and sensor conditioning.
What is the CPU clock speed of PIC16F631-I/SO?
The PIC16F631-I/SO executes instructions at a maximum clock rate of 20 MHz, yielding a 200 ns instruction cycle on the mid-range x14 core. The device also includes a factory-calibrated internal oscillator covering 31 kHz to 8 MHz via OSCCAL, allowing designs to omit an external crystal and reduce BOM cost while still meeting the 20 MHz spec with an external source.
Where to buy PIC16F631-I/SO online?
The PIC16F631-I/SO can be purchased in stock today from authorized distributors including DigiKey, Mouser, LCSC, Avnet, and TrustedParts.com, with unit pricing starting around $2.16 at qty 1 (as of 2026-09-21). Volume pricing drops to roughly $1.28 at 1000-piece reels, and LCSC also lists the part at lower price points for the Asian market.
What is the lead time for PIC16F631-I/SO?
DigiKey states the PIC16F631-I/SO ships today (immediate stock) and Mouser maintains factory inventory; lead time is therefore 0-2 weeks from authorized stock. For large reels or franchise distribution, expect 4-8 weeks factory lead time through Microchip direct.
Is PIC16F631-I/SO in stock?
Yes, the PIC16F631-I/SO is in stock at DigiKey, Mouser, LCSC, Avnet, and several other authorized distributors as of 2026-09-21. DigiKey explicitly advertises "ships today" with multiple reel quantities available. The part is in ACTIVE lifecycle status per the Microchip product page.
What is the difference between PIC16F631-I/SO and PIC16F685-I/SO?
The PIC16F631-I/SO has 1.75 KB Flash / 64 B RAM / 128 B EEPROM, while the PIC16F685-I/SO offers 4 KB Flash / 128 B RAM / 256 B EEPROM and adds a hardware USART module, making PIC16F685 a faster, more memory-rich upgrade path. Both share the same 20-pin SOIC package but the PIC16F631 lacks the USART, requiring a software UART for serial comms.
When should I choose PIC16F631-I/SO over PIC16F88x or PIC16F1xxx?
Choose the PIC16F631-I/SO when 1.75 KB Flash, 64 B RAM, and no hardware UART are sufficient, and cost-per-unit is the dominant constraint at high volumes. PIC16F88x and PIC16F1xxx family members add more memory, hardware USART, and Core Independent Peripherals (CIPs), but at higher unit price and sometimes different pin counts.
Can PIC16F685-I/SO replace PIC16F631-I/SO directly?
The PIC16F685-I/SO is a footprint-compatible upgrade in the same 20-pin SOIC package but is NOT a true drop-in because program memory size and the presence of a USART change the firmware signature register (the PIC16F631 will return wrong device ID). If upgrading, recompile against the PIC16F685 header files and re-verify analog pin mappings.
What is the best drop-in replacement for PIC16F631-I/SO?
The best true drop-in replacement for PIC16F631-I/SO is PIC16F631-I/SS (20-pin SSOP package) or PIC16F631-I/P (20-pin PDIP); both share identical silicon and pinout mapping. PIC16F631-E/SO and PIC16F631-E/SS offer extended (-40C to +125C) temperature grade in the same SOIC package for harsher environments.
Where to download PIC16F631-I/SO datasheet PDF?
The official PIC16F631-I/SO datasheet (Microchip document 41287E, 294 pages) is available as a free PDF download from ww1.microchip.com/downloads/en/DeviceDoc/41287E.pdf or via the Microchip product page at microchip.com/en-us/product/PIC16F631. Alldatasheet.net and DigiChip also host cached copies.
Where to find PIC16F631-I/SO pinout diagram?
The PIC16F631-I/SO pinout is published on page 4 of Microchip datasheet 41287E and shows RA0-RA5, RB4-RB7, RC0-RC7, VDD, VSS, MCLR, ICSPCLK, and ICSPDAT pin assignments. For SOIC-20 package mechanical drawings, the same datasheet includes a package outline with 12.8 mm body length and 1.27 mm pitch.
Does PIC16F631-I/SO support UART communication?
No, the PIC16F631-I/SO does NOT contain a hardware UART module; asynchronous serial must be implemented via software bit-banging on a general-purpose I/O pin. According to the Microchip datasheet 41287E, this is one of the trade-offs that keep the device in the low-cost low-pin-count category.
How to program PIC16F631-I/SO in-circuit?
The PIC16F631-I/SO is programmed via In-Circuit Serial Programming (ICSP) using the ICSPCLK/ICSPDAT lines plus MCLR/VPP, VDD, and VSS - no separate programmer socket needed. Microchip's MPLAB X IDE with PICkit 3/4 or ICD tools fully supports this family, and source code can be built with the free XC8 compiler.
Is PIC16F631-I/SO RoHS compliant?
Yes, the PIC16F631-I/SO is fully RoHS compliant per Microchip's product page and distributor listings; lead-free terminal finish (Matte Tin) is used and the part is qualified to MSL-1 floor life. The device is also REACH compliant and is shipping in active production.
What are the key specifications of PIC16F631-I/SO that engineers should know?
Engineers should know the PIC16F631-I/SO offers 20 MHz CPU, 1.75 KB Flash, 64 B RAM, 128 B EEPROM, 18 I/O, 10-bit ADC, 2 comparators, no hardware UART, and 2.0-5.5 V operation in 20-pin SOIC. According to the Microchip datasheet, the nanoWatt technology brings quiescent current under 1 uA in SLEEP mode, enabling battery-backed designs with multi-year standby life.

Engineering reference data for PIC16F631-I/SO — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC16F631-I/SO when you need a sub-$2 industrial-grade 8-bit MCU for cost-sensitive designs where 1.75 KB Flash and 64 B RAM are sufficient and you can implement serial communication via software bit-banging. Pick PIC16F631-E/SO for harsher -40C to +125C environments with identical silicon. If your design later requires a hardware UART or more memory, step up to PIC16F685-I/SO or PIC16F690-I/SO - both share the SOIC-20 footprint, so the same PCB supports the entire upgrade path. For height-constrained boards, choose PIC16F631-I/SS (SSOP-20) instead.

Comparison with Alternatives

Parameter This Product PIC16F631-E/SO PIC16F631-E/SS PIC16F690-I/SO PIC16F677-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package SOIC-20 (300-mil) SOIC-20 (same) SSOP-20 (different) SOIC-20 (same) PDIP-20 (different)
Flash Memory 1.75 KB (1K x 14) 1.75 KB 1.75 KB 8 KB 8 KB
Data RAM 64 bytes 64 bytes 64 bytes 256 bytes 256 bytes
EEPROM 128 bytes 128 bytes 128 bytes 256 bytes 256 bytes
Max CPU Speed 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
Operating Voltage 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V
Temperature Grade Industrial (-40C to +85C) Extended (-40C to +125C) Extended (-40C to +125C) Industrial (-40C to +85C) Industrial (-40C to +85C)
Hardware UART No (software bit-bang) No (software bit-bang) No (software bit-bang) Yes (EUSART) Yes (EUSART)
Approx Unit Price (qty 1) $2.16 ~$2.40 ~$2.50 ~$3.10 ~$3.00

Key Differentiators

  • Lowest-cost 20-pin PIC mid-range with industrial temperature grade (vs PIC16F690-I/SO)
  • Family supports extended temperature variant without silicon change (vs PIC16F631-E/SO)
  • Same SOIC-20 footprint as larger-memory siblings (vs PIC16F685-I/SO)

Design Notes

Decouple VDD (pin 11) and VSS (pin 5/10) with a 100 nF X7R ceramic placed within 5 mm of the package and a 10 uF bulk tantalum or aluminum-polymer cap on the supply rail. The PIC16F631-I/SO draws under 1 uA in SLEEP mode but its active current is roughly 100-200 uA/MHz, so the bulk cap prevents supply droop when PWM-driven loads switch near the MCU. If powering from a switching regulator, place an LC pi-filter ahead of the MCU to block ripple injection into the ADC reference.

Keep the ICSP header (ICSPCLK on pin 8 and ICSPDAT on pin 9) accessible on the PCB - they are also general PORTB I/O so do not route them deep inside the board. For SOIC-20 hand assembly, leave 0.3 inch clearance around the part; for production, JEDEC J-STD-020 MSL-1 reflow at peak 250C is acceptable since this part is moisture-insensitive.

Because the PIC16F631 lacks a hardware UART, attempting to use the EUSART library registers will silently fail - designers must implement the software UART on RB7/RB5 (or any free PORTB pin) and accept that one timer is consumed for baud-rate generation. Also note that internal oscillator calibration is per-die and the OSCCAL register must be loaded at startup with the factory value stored in Flash location 0x3FF - skipping this drops accuracy from +/-1% to roughly +/-5% across temperature.

Route the MCLR/VPP pin (pin 5) through a 10 kOhm pull-up to VDD and place a 100 nF cap to VSS for noise immunity - this prevents spurious resets from EMI on long cable harnesses. Keep analog inputs (RA2/RA3/RA4) physically separated on the PCB from digital PORTB switching lines by at least one ground trace or guard ring to preserve ADC accuracy.

Compliance Information

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

RoHS and REACH compliant per Microchip product page; lead-free Matte Tin finish; MSL-1 rated. Not AEC-Q100 qualified - for automotive choose PIC16F631-E/SO (extended grade) or PIC16F631-I/SS plus a separate Q100-compatible variant.

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

Related Searches

PIC16F631-I/SO PIC16F631 datasheet Microchip PIC16F631 PIC16F631 price stock 20-pin SOIC 8-bit flash microcontroller 1.75KB PIC16F631 vs PIC16F690 PIC16F631 drop-in replacement PIC16F631 small appliance controller PIC16F631 battery charger MCU what is the flash memory of PIC16F631 PIC16F631 SOIC-20 pinout diagram low cost 8-bit MCU nanoWatt 2.0-5.5V

Related Components & Terms

Microchip Technology PIC16F631 PIC16F631-I/SO PIC16F631-E/SO PIC16F631-E/SS PIC16F631-I/ML PIC16F630-I/SL PIC16F685-I/SO PIC16F690-I/SO PIC16F677-I/P 8-bit microcontroller PIC mid-range core Flash memory EEPROM ADC nanoWatt technology SOIC-20 ICSP ICSP programming MPLAB X IDE XC8 compiler PICkit RoHS REACH AEC-Q100
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