Opens in a new tab

PIC16F631-I

8-bit Mid-Range PIC MCU, 1.75KB Flash, 64B RAM, 128B EEPROM, 2 comparators, nanoWatt

7832

Effective Inventory

Image for reference only

Manufacturer Part:

PIC16F631-I

Package:

20-pin PDIP / SOIC / SSOP / QFN

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The PIC16F631-I is a 20-pin, 8-bit Flash-based CMOS microcontroller from Microchip Technology, featuring the Mid-Range PIC architecture with 35 instructions and an 8-level deep hardware stack. This cost-effective MCU offers 1.75KB (1024 x 14 words) of Flash program memory, 64 bytes of RAM, and 128 bytes of data EEPROM. Operating at up to 20 MHz with a 200 ns instruction cycle, it integrates a precision 8 MHz internal oscillator factory calibrated to ±1%, along with two analog comparators with programmable on-chip voltage reference. With its nanoWatt Technology for low-power operation, the PIC16F631 is ideal for battery-powered applications, industrial sensors, appliance controls, and cost-sensitive consumer products requiring analog comparison functionality without the overhead of a full ADC.

Key Specifications

Core Architecture 8-bit PIC (Mid-Range Core)
Program Memory 1.75KB Flash (1K x 14 words)
RAM 64 bytes
Data EEPROM 128 bytes
Maximum Speed 20 MHz (5 MIPS)
Operating Voltage 2.0V to 5.5V
I/O Pins 18
ADC None
Comparators 2
Timers 1 x 8-bit (TMR0) + 1 x 16-bit (TMR1)
PWM 1 (via CCP on other family members)
Communication None (simplified variant)
Internal Oscillator 8 MHz (±1% factory calibrated)
Stack Levels 8
Operating Temperature -40°C to +85°C (Industrial)
Package 20-pin PDIP / SOIC / SSOP / QFN

Features

  • Mid-Range PIC architecture with 35 single-cycle instructions and 8-level stack
  • Precision internal oscillator: 8 MHz factory calibrated to ±1%
  • Software selectable frequency range: 8 MHz to 32 kHz
  • Two analog comparators with programmable on-chip voltage reference (CVREF)
  • SR Latch mode for comparator outputs (555 timer emulation)
  • 128 bytes of data EEPROM for non-volatile storage
  • nanoWatt Technology for ultra-low power consumption
  • Ultra Low-Power Wake-up (ULPW) module
  • Enhanced Timer1 with gate sync latch and low-power oscillator option
  • Power-on Reset (POR), Power-up Timer (PWRT), and Oscillator Start-up Timer (OST)
  • Brown-out Reset (BOR) with software selectable trip points
  • Enhanced Watchdog Timer (WDT) with on-chip RC oscillator
  • In-Circuit Serial Programming (ICSP) via two pins
  • Programmable code protection for program and data memory
  • High current I/O pins: 25 mA sink/source per pin

Applications

  • Industrial sensor interfaces and limit detection
  • Battery-powered monitoring devices
  • Appliance control and simple motor control
  • Low-cost consumer electronics
  • Level sensing and threshold detection
  • Portable medical devices
  • Automotive sensor interfaces
Product Introduction: PIC16F631-I Product Introduction

The PIC16F631 is a 20-pin Flash-based 8-bit CMOS microcontroller from Microchip Technology, part of the popular PIC16F6xx family featuring the Mid-Range PIC architecture. This device is the entry-level member of the PIC16F631/677/685/687/689/690 family, offering 1.75KB (1024 x 14 words) of Flash program memory, 64 bytes of RAM, and 128 bytes of data EEPROM. It operates at up to 20 MHz with a 200 ns instruction cycle, delivering 5 MIPS of processing power. A key feature is the integrated precision internal oscillator operating at 8 MHz (factory calibrated to ±1%), which can be software divided down to 32 kHz for low-power operation. The analog comparator module includes two comparators with a programmable on-chip voltage reference, enabling threshold detection, level sensing, and SR latch (555 timer) applications without external components. With nanoWatt Technology providing multiple power-saving modes including Ultra Low-Power Wake-up (ULPW), the PIC16F631 is well-suited for battery-powered applications. The device is available in PDIP, SOIC, SSOP, and QFN packages with industrial temperature range (-40°C to +85°C).

Working Principle: PIC16F631-I Working Principle

The PIC16F631 operates on a Mid-Range PIC RISC core with a 13-bit program counter and an 8-level deep hardware stack. Instructions are fetched from 14-bit wide Flash program memory, with most executing in a single clock cycle. The Harvard architecture provides separate buses for program and data memory, allowing simultaneous access. Data memory consists of 64 bytes of general-purpose SRAM (file registers) and 128 bytes of EEPROM for non-volatile data storage. The internal oscillator module generates a stable 8 MHz clock (factory calibrated to ±1%) with software-selectable division ratios down to 32 kHz, eliminating the need for an external crystal in many applications. The two analog comparators compare voltage levels on their inputs, with results readable from status registers or configurable to directly drive output pins. The Comparator Voltage Reference (CVREF) module provides a programmable reference voltage derived from VDD, eliminating external reference components. Timer0 is an 8-bit timer/counter with prescaler, while Timer1 is a 16-bit timer/counter with gate control and optional low-power 32 kHz oscillator operation. Power management features include Sleep mode, Idle mode, and Doze mode for flexible power/performance trade-offs. The ULPW module allows waking from Sleep on pin change with minimal current consumption.

Pin Description: PIC16F631-I Pin Definition and Functions
Pin (PDIP-20/SOIC-20) Name Type Function
1 VDD P Positive Supply Voltage
2 RA5/T1CKI/OSC1/CLKIN I/O Port A I/O / Timer1 Clock / Oscillator Input
3 RA4/T1G/OSC2/CLKOUT I/O Port A I/O / Timer1 Gate / Oscillator Output
4 RA3/MCLR/VPP I/P Port A Input / Master Clear / Programming Voltage
5 RC5 I/O Port C I/O
6 RC4/C2OUT/SRQ I/O Port C I/O / Comparator2 Output / SR Latch Output
7 RC3/C12IN3- I/O Port C I/O / Comparator Negative Input 3
8 RC6 I/O Port C I/O
9 RC7 I/O Port C I/O
10 RB7 I/O Port B I/O / ICSP Data
11 RB6 I/O Port B I/O / ICSP Clock
12 RB5 I/O Port B I/O
13 RB4 I/O Port B I/O
14 RC2/C12IN2- I/O Port C I/O / Comparator Negative Input 2
15 RC1/C12IN1- I/O Port C I/O / Comparator Negative Input 1
16 RC0/C2IN+/C1IN+ I/O Port C I/O / Comparator Positive Input
17 VSS P Ground Reference
18 RA0/C1IN+/AN0 I/O Port A I/O / Comparator1 Positive Input
19 RA1/C2IN+/AN1 I/O Port A I/O / Comparator2 Positive Input
20 RA2/T0CKI/INT/C1OUT I/O Port A I/O / Timer0 Clock / Ext Interrupt / C1 Output
Application Scenarios: In which products and applications is PIC16F631-I used
  • Industrial threshold detection and limit sensing
  • Battery-powered portable monitors and sensors
  • Appliance control panels and user interfaces
  • Low-cost consumer electronic devices
  • Level sensing and over/under voltage detection
  • Portable medical devices and health monitors
  • Automotive sensor signal conditioning
Alternative Models: What chips are recommended as replacements for PIC16F631-I
Manufacturer Part Number Package Notes
Microchip PIC16F677-I 20-pin Same package, adds 12-ch 10-bit ADC, SPI/I2C
Microchip PIC16F690-I 20-pin 7KB Flash, full peripherals, EUSART
Microchip PIC12F635-I 8-pin Smaller package, 1 comparator
Microchip PIC16F636-I 14-pin 3.5KB Flash, KEELOQ crypto module
Microchip PIC16F685-I 20-pin 7KB Flash, 12-ch ADC, ECCP

Recommend Parts

ISO1176TDWR

Isolated RS-485 transceiver, 40Mbps, integrated transformer driver, SOIC-16

Brand: TI

Package: SOIC-16 (DW, wide-body, 10.3 x 10.3 mm)

IN STOCK: 6874pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFB4020PBF

200V N-Channel HEXFET Power MOSFET, 31A, 68 mΩ RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 14149pcs

Cargo cycle: 3-7 Days

The minimum order is 1

NRF52832-QFAA-T

Nordic BLE SoC, ARM Cortex-M4 @ 64MHz, 64KB Flash, 32KB RAM, QFN-48

Package: See datasheet

IN STOCK: 10958pcs

Cargo cycle: 3-7 Days

The minimum order is 1

UCC28740DR

CVCC Flyback Controller, 700V startup, opto feedback, <10mW no-load, SOIC-7

Brand: TI

Package: SOIC-7 (4.9 x 3.9 x 1.75 mm)

IN STOCK: 4840pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MMUN2211LT1G

NPN digital transistor, R1=10kΩ R2=10kΩ, 50V, 100mA, SOT-23-3, pre-biased BRT switch

Brand: Onsemi

Package: SOT-23-3 (TO-236, SC-59)

IN STOCK: 8500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

PIC32MX795F512L-80I/PF

32-bit PIC32MX MCU with Ethernet/CAN/USB, 80MHz, 512KB Flash, TQFP-100, industrial

Brand: MICROCHIP

Package: TQFP-100 (14 x 14 mm)

IN STOCK: 7912pcs

Cargo cycle: 3-7 Days

The minimum order is 1