PIC16F631-I/SO - 20MHz 8-Bit Flash MCU, 1.75KB | Microchip
料号: PIC16F631-I/SO ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 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 |
PIC16F631-I/SO 概述
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.
直接替换替代料: PIC16F631-I/SO ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC16F631-I/SO (相同外形与封装尺寸) ——差异在于 Package, Operating Temperature, ADC, Timers, I/O Pins.
快速对比工具——选择替代料号进行并排对比:
PIC16F631-E/SO
✅ 直接替换✓ 有现货
$0.5927 / 个
查看数据手册 →PIC16F690-I/SO
✅ 直接替换✓ 有现货
$1.62 / 个
查看数据手册 →PIC16F631-I/SO 最大额定值与电气特性
| 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 |
| 电源电压 | 2.0 V to 5.5 V (per family datasheet) |
| 工作温度 | -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 |
| 封装 | 20-pin SOIC (SOIC-20, 300-mil) |
| 安装类型 | Surface Mount |
| MSL 等级 | 1 |
| RoHS 状态 | Compliant |
| Programming Method | ICSP (In-Circuit Serial Programming) via ICSPCLK/ICSPDAT |
| Technology | nanoWatt (RUN/IDLE/SLEEP modes) |
PIC16F631-I/SO 引脚配置
| 引脚 1 | RA2/AN2/T0CKI — PORTA bit 2 / Analog input 2 / Timer0 clock input |
| 引脚 2 | RA3/AN3/C1OUT — PORTA bit 3 / Analog input 3 / Comparator 1 output |
| 引脚 3 | RA4/AN4/T1G — PORTA bit 4 / Analog input 4 / Timer1 gate |
| 引脚 4 | RA5/MCLR/VPP — PORTA bit 5 / Master Clear (reset) / Programming voltage |
| 引脚 5 | VSS — Ground reference |
| 引脚 6 | RB4/AN10/SDI/SDA — PORTB bit 4 / Analog input 10 / SPI data in / I2C data |
| 引脚 7 | RB5/AN11/RX — PORTB bit 5 / Analog input 11 / software UART RX (no hardware UART) |
| 引脚 8 | RB6/ICSPCLK/ADC — PORTB bit 6 / ICSP clock / Analog input |
| 引脚 9 | RB7/ICSPDAT/TX — PORTB bit 7 / ICSP data / software UART TX |
| 引脚 10 | VSS — Ground reference (second pin) |
| 引脚 11 | VDD — Positive supply (2.0 V - 5.5 V) |
| 引脚 12 | RA6/OSC2/CLKOUT — PORTA bit 6 / Oscillator output / Clock out |
| 引脚 13 | RA7/OSC1/CLKIN — PORTA bit 7 / Oscillator input / Clock in |
| 引脚 14 | RC0 — PORTC bit 0 |
| 引脚 15 | RC1 — PORTC bit 1 |
| 引脚 16 | RC2/CCP1 — PORTC bit 2 / Enhanced CCP1 PWM output |
| 引脚 17 | RC3 — PORTC bit 3 |
| 引脚 18 | RC4/C2OUT — PORTC bit 4 / Comparator 2 output |
| 引脚 19 | RC5 — PORTC bit 5 |
| 引脚 20 | RC6 — PORTC bit 6 |
典型应用
PIC16F631-I/SO 适用于 6 应用s: 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.
推荐
推荐产品汇总
工程参考数据: PIC16F631-I/SO ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | 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 |
关键差异点
- Lowest-cost 20-pin PIC mid-range with industrial temperature grade (对比 PIC16F690-I/SO)
- Family supports extended temperature variant without silicon change (对比 PIC16F631-E/SO)
- Same SOIC-20 footprint as larger-memory siblings (对比 PIC16F685-I/SO)
设计说明
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.
合规信息
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.