PIC16F631-E/P - 8-Bit 20MHz 1.75KB Flash MCU | Microchip | DIP-20
料号: PIC16F631-E/P ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $2.05 | $2.05 |
| 10 | $1.84 | $18.40 |
| 100 | $1.62 | $162.00 |
| 500 | $1.45 | $725.00 |
| 1,000 | $1.29 | $1,290.00 |
PIC16F631-E/P 概述
A microcontroller (MCU) is a single-chip computer containing a CPU core, volatile and non-volatile memory, and programmable I/O peripherals. The PIC16F631 belongs to the mid-range PIC16 architecture, sitting hierarchically as: microcontroller -> embedded controller -> CMOS microcontroller -> 8-bit MCU -> PIC16 family -> mid-range x14 core. Its 14-bit instruction word delivers 200ns instruction execution at 20MHz, with only 35 single-word instructions, which makes the part accessible for both new designers and seasoned embedded engineers.
Key features of the PIC16F631 include nanoWatt Technology for low-power operation, integrated EEPROM data memory, a wide 2.0V to 5.5V operating voltage range, 12 I/O pins with selectable weak pull-ups, an enhanced 8-bit timer/counter (Timer1) with its own oscillator, an analog comparator module, and a 10-bit ADC. The nanoWatt sleep modes and dynamic switching of oscillator sources allow the device to draw microamp-level currents in standby - useful for battery-powered designs.
Architecturally, the PIC16F631 uses a Harvard RISC core with separate program and data buses, two 8-bit file-select registers (FSR) for indirect addressing, a hardware interrupt controller, and an in-circuit serial programming (ICSP) interface for field updates. The 10-bit A/D converter is shared with digital I/O on PORTA, while PORTC carries general-purpose I/O and the analog comparator outputs. Internal oscillator options (8MHz LF-INTOSC and 31kHz LF-INTOSC) reduce external component count.
Typical applications include consumer appliance control, sensor signal conditioning, low-end motor control loops, LED lighting controllers, and battery-powered remote controls. Its small footprint and extended temperature range also suit industrial sensor nodes and automotive body controllers. According to Microchip datasheet 40001262F, the device supports 100,000 erase/write cycles on Flash and 1,000,000 erase/write cycles on EEPROM, ensuring long field life.
When designing with the PIC16F631, consider that the E-suffix part is qualified for -40°C to +125°C operation, while the I-suffix is only -40°C to +85°C. Decoupling capacitors (100nF ceramic + 10uF bulk) should be placed within 5mm of VDD, and the MCLR pin must have a pull-up and decoupling for reliable reset. Unused I/O should be configured as outputs and tied low to minimize power consumption.
This page synthesizes distributor pricing, drop-in PIC16F630 alternatives, and practical design notes that go beyond the manufacturer datasheet, helping engineers choose between standard PIC16F631 variants in the same PDIP-20 footprint.
直接替换替代料: PIC16F631-E/P ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC16F631-E/P (相同外形与封装尺寸) ——差异在于 Package, RoHS Status, I/O Pins, Internal Oscillator, Operating Temperature.
快速对比工具——选择替代料号进行并排对比:
PIC16F631-I/P
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16F631-E/SO
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$0.5927 / 个
查看数据手册 →PIC16F630-E/P
✅ 直接替换✓ 有现货
$1.22 / 个
查看数据手册 →PIC16F630-I/P
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16F627A-I/P
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$1.72 / 个
查看数据手册 →PIC16F631-E/P 最大额定值与电气特性
| Architecture | PIC16 mid-range 8-bit |
| Instruction Word Width | 14-bit |
| Program Memory (Flash) | 1.75 KB (1K x 14) |
| Data RAM | 64 bytes |
| Data EEPROM | 128 bytes |
| Maximum CPU Frequency | 20 MHz |
| Instruction Execution Time | 200 ns at 20 MHz |
| Operating Voltage Range | 2.0 V to 5.5 V |
| Operating Temperature Range (E grade) | -40 °C to +125 °C |
| I/O Pins | 12 |
| Timers | Timer0, Timer1 (16-bit, with dedicated oscillator) |
| Internal Oscillator | 8 MHz and 31 kHz LF-INTOSC |
| 封装 | PDIP-20 (300 mil) |
| 安装类型 | Through-Hole |
| MSL 等级 | 1 (unlimited floor life) |
| RoHS 状态 | Compliant (Pb-free per datasheet package code) |
| Flash Endurance | 100,000 erase/write cycles |
| EEPROM Endurance | 1,000,000 erase/write cycles |
| In-Circuit Programming | ICSP supported |
PIC16F631-E/P 引脚配置
| 引脚 1 | RA5/MCLR/VPP — Digital I/O / Master Clear reset (active low) / Programming voltage |
| 引脚 2 | RA0/AN0/ULPWU/C12IN0- — Digital I/O / Analog channel 0 / Ultra-Low-Power Wake-Up / Comparator negative input |
| 引脚 3 | RA1/AN1/C12IN1- — Digital I/O / Analog channel 1 / Comparator negative input |
| 引脚 4 | RA2/AN2/CVREF/C12IN0+ — Digital I/O / Analog channel 2 / Comparator voltage reference / Comparator positive input |
| 引脚 5 | RA3/AN3/C12IN1+/VREF+ — Digital I/O / Analog channel 3 / Comparator positive input / Voltage reference + |
| 引脚 6 | RA4/AN4/T0CKI/C2OUT — Digital I/O / Analog channel 4 / Timer0 clock input / Comparator 2 output |
| 引脚 7 | RC0/C12IN+ — Digital I/O / Comparator positive input |
| 引脚 8 | VSS — Ground reference |
| 引脚 9 | RC1/C12IN- — Digital I/O / Comparator negative input |
| 引脚 10 | RC2/C11IN+ — Digital I/O / Comparator positive input |
| 引脚 11 | VDD — Positive power supply (+2.0V to +5.5V) |
| 引脚 12 | RC3/C11IN-/C12IN- — Digital I/O / Comparator negative inputs |
| 引脚 13 | RC4/C11IN+ — Digital I/O / Comparator positive input |
| 引脚 14 | RC5 — Digital I/O |
| 引脚 15 | RC6 — Digital I/O |
| 引脚 16 | RC7 — Digital I/O |
| 引脚 17 | RB4/AN11 — Digital I/O with weak pull-up / Analog channel 11 (when applicable) |
| 引脚 18 | RB5/AN10/CCP1 — Digital I/O with weak pull-up / Analog channel 10 / Capture-Compare-PWM 1 |
| 引脚 19 | RB6/AN9/PGC — Digital I/O with weak pull-up / Analog channel 9 / ICSP clock (PGC) |
| 引脚 20 | RB7/AN8/PGD — Digital I/O with weak pull-up / Analog channel 8 / ICSP data (PGD) |
典型应用
PIC16F631-E/P 适用于 6 应用s: Consumer Appliance Control, Industrial Sensor Signal Conditioning, Battery-Powered Remote Controls, LED Lighting Controller, Automotive Body Control Module, Low-Cost Hobbyist & Maker Projects.
Consumer Appliance Control
The PIC16F631-E/P is well suited for consumer appliance controllers - washing machines, microwave ovens, dishwashers - because its Extended -40C to +125C temperature grade handles under-cabinet heat. The 20MHz CPU clock executes control loops in under 1us, while 1.75KB Flash is sufficient for state-machine based user interfaces and sensor-driven cycle control. The integrated EEPROM (128B) stores user settings across power cycles. Placed near the appliance keypad with a 100nF ceramic bypass on VDD and a 4MHz external crystal, it replaces legacy 8051 designs with simpler programming and lower BOM cost.
推荐
Industrial Sensor Signal Conditioning
Industrial sensor nodes benefit from the PIC16F631-E/P's integrated analog comparator for threshold detection on thermocouple, strain-gauge, and 4-20mA loops. The Extended -40C to +125C grade survives outdoor and cabinet environments. The 12-bit ADC option (in similar PIC16 family devices) and 20MHz CPU enable 10kHz sampling rates with on-chip averaging. Place the MCU adjacent to the sensor front-end, use the internal LF-INTOSC (31kHz) to wake periodically from nanoWatt sleep, and connect to a wired RS-485 transceiver (e.g. MCP2515) for bus connectivity.
推荐
Battery-Powered Remote Controls
Battery-powered remote controls (TV, ceiling fans, garage openers) leverage the PIC16F631-E/P's nanoWatt sleep modes (down to nanoamp-level standby) and wide 2.0V-5.5V operating voltage to run directly from 2x AA cells. The 20MHz CPU wakes within microseconds to handle IR or RF transmissions. With 1.75KB Flash and 64B RAM, button matrix scanning and rolling-code algorithms fit easily. Connect to a 32.768kHz watch crystal on Timer1 for accurate timing, and use PORTA pins for the button matrix and PORTC for IR LED drive.
推荐
LED Lighting Controller
LED lighting controllers (architectural strips, automotive interior lighting) use the PIC16F631-E/P's PWM capabilities on multiple pins and Extended temperature grade to drive high-current LED strings with thermal foldback. The 12 I/O pins drive RGBW channels, current-sense amplifiers, and a DMX-512 receiver (via external transceiver). At 20MHz, software PWM can dim with 8-bit resolution at 1kHz - adequate for theater-grade dimming. Place bulk capacitance near the MCU and use a separate LDO for the LED driver to keep noise out of the analog comparators.
推荐
Automotive Body Control Module
Automotive body controllers (door modules, seat controllers, mirror adjusters) use the PIC16F631-E/P's Extended -40C to +125C temperature grade and 20-pin PDIP footprint for through-hole automotive PCB assemblies. The 12-bit ADC (in similar PIC16 family devices) reads wiper position and motor current. The integrated LIN-capable USART pairs with external LIN transceivers. For under-hood applications above +125C, designers prefer AEC-Q100 qualified parts like the PIC16F15323 - but for cabin/body use, the PIC16F631-E/P remains a cost-effective workhorse.
推荐
Low-Cost Hobbyist & Maker Projects
Maker, hobbyist, and STEM education projects favor the PIC16F631-E/P because the PDIP-20 package is breadboard-friendly and the PICkit 3/4 programmer connects directly via ICSP (RB6/RB7). With 1.75KB Flash and 64B RAM, learners can implement ADC sampling, UART communication, and PWM motor control in Microchip's free MPLAB X IDE + XC8 compiler. The PIC16F631-E/P is a great teaching part: simple architecture, lots of application notes, and decades of community support. Pair with the Curiosity HPC development board for instant prototyping.
推荐
推荐产品汇总
工程参考数据: PIC16F631-E/P ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | PIC16F631-I/P | PIC16F631-E/SO | PIC16F630-E/P | PIC16F630-I/P | PIC16F627A-I/P |
|---|---|---|---|---|---|---|
| Package | PDIP-20 | PDIP-20 | SOIC-20 | PDIP-20 | PDIP-20 | PDIP-20 |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 1.75 KB | 1.75 KB | 1.75 KB | 512 B (-71%) | 512 B (-71%) | 1.75 KB (different core) |
| RAM | 64 B | 64 B | 64 B | 64 B | 64 B | 224 B |
| EEPROM | 128 B | 128 B | 128 B | 64 B | 64 B | 128 B |
| Temperature Range | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
| Comparator Module | Yes (1 module) | Yes | Yes | No (omitted) | No (omitted) | Yes |
| Architecture / Core | PIC16 mid-range x14 (14-bit) | PIC16 mid-range x14 (14-bit) | PIC16 mid-range x14 (14-bit) | PIC16 mid-range x14 (14-bit) | PIC16 mid-range x14 (14-bit) | PIC16 enhanced mid-range x14 (different core) |
| Maximum CPU Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Pin Compatibility with PIC16F631-E/P | Reference | Yes (drop-in, temp grade only) | Yes (SOIC-20, footprint differs) | Yes (drop-in, reduced memory/peripherals) | Yes (drop-in, reduced memory/peripherals) | Partial - similar footprint, different core requires code rewrite |
关键差异点
- Extended -40C to +125C temperature grade versus I-grade competitors (对比 PIC16F631-I/P)
- Integrated analog comparator module included (对比 PIC16F630-E/P)
- PIC16 mid-range x14 standard core - drop-in code compatibility (对比 PIC16F627A-I/P)
- Through-hole PDIP-20 for breadboard-friendly prototyping (对比 PIC16F631-E/SO)
设计说明
The PIC16F631-E/P nanoWatt Technology supports sleep currents down to the nanoamp range, but this requires careful pin configuration. Disable unused peripherals via the CMCON (comparator) and ANSEL (analog) registers, configure unused I/O as outputs driving low (not high-impedance inputs), and use the LF-INTOSC for low-power sleep timing. Estimated: disabling all peripherals and entering sleep at 3V typically yields < 1uA standby current, compared to ~5uA if modules are left enabled.
A common mistake is leaving analog pins configured as analog after the ADC is disabled - the analog input buffers consume several microamps even when the ADC is off. Always set the corresponding ANSEL bit to 0 (digital) when the analog function is unused. According to Microchip datasheet 40001262F, failing to switch ANSEL bits costs ~ 1-2uA per enabled analog pin in sleep. Also, the MCLR pin (pin 1) requires a 10-50kOhm pull-up to VDD for reliable operation - if you let MCLR float, the part may intermittently reset.
Place a 100nF ceramic decoupling capacitor within 5mm of the VDD pin (pin 11) and a bulk 10uF capacitor within 20mm. Keep analog traces (RA0-RA4, RC1-RC4) away from digital switching signals like PWM outputs to avoid coupling into the comparator module. Per Microchip application note AN2500, ground the ICSP pins (RB6/PGC pin 19, RB7/PGD pin 20) with low-impedance return paths for reliable in-circuit programming. For high-noise environments, place a ferrite bead on VDD and a 100nF cap on the MCU side.
The PIC16F631-E/P Extended (-40C to +125C) grade has the same junction temperature limits as the I-grade but is tested and qualified for sustained operation at +125C. In a sealed enclosure with limited airflow, derate the ambient temperature budget by 10-15C to account for self-heating of surrounding components. Estimated: at 20 MHz, the device dissipates roughly 25 mW at 5V (5mA x 5V), so self-heating is minimal (<2C rise) but adjacent power components (LDOs, drivers) can dominate.
合规信息
RoHS compliant per Microchip packaging code; Pb-free matte-tin plating on PDIP-20 leads. Not AEC-Q100 qualified - for AEC-Q100 automotive applications use PIC16F15323 or similar. REACH SVHC declaration per Microchip product page.