PIC16F687-I/SO - 8-Bit 20MHz Flash PIC MCU, 20-SOIC | Microchip Technology
MPN: PIC16F687-I/SO ✓ چالاکPIC16F687-I/SO گشتی
What is an 8-bit microcontroller? A microcontroller is a single integrated circuit that bundles a CPU core, program memory, data memory, and peripherals onto one die, forming the heart of an embedded control system. An 8-bit MCU means its ALU and data path process 8 bits per instruction cycle. Within the Microchip portfolio, the PIC16F687 sits in the mid-range PIC16 family, which uses the well-established 14-bit "x14" RISC-like instruction set and is positioned above the baseline 8-bit PIC parts in both memory and peripheral capability.
Key features of the PIC16F687-I/SO include a 20 MHz maximum instruction clock, a wide 2.0 V to 5.5 V operating supply range, 128 x 8 general purpose registers, on-board EEPROM for non-volatile parameter storage, and nanoWatt technology that adds software-controlled peripheral shutdown to cut supply current in idle states. Because the device is Flash-based, the firmware can be re-programmed in circuit, and because it is EEPROM-equipped, calibration and configuration data survive power cycles without external memory.
Technically, the PIC16F687 belongs to the PIC16F631/677/685/687/689/690 family documented in Microchip datasheet 40001262F, where the register file is organized as 128 x 8 in the PIC16F687. The core executes 35 single-word instructions with 200 ns instruction execution time, while on-board oscillators, timers, comparators, and serial peripherals reduce the external component count in cost-sensitive control designs.
Typical applications include small motor and relay control panels, appliance user interfaces, battery-backed industrial sensors, HVAC and thermostat controllers, LED lighting sequencers, and simple standalone data loggers where a full 32-bit MCU would add unnecessary cost and board area.
A key design consideration is decoupling and brownout behavior: place the supply bypass capacitor close to the VDD pin, respect the 2.0 V to 5.5 V limit, and confirm that brown-out reset settings in the configuration words match the minimum rail your board sees during brownout events.
This page combines the Microchip family datasheet, verified distributor listings, drop-in replacement analysis, and hands-on design notes so you can qualify the PIC16F687-I/SO for a new design without rebuilding the information from scratch.
جێگرەوەکانی جێگۆڕکێ بۆ PIC16F687-I/SO — هەمان پاکەت، پین بە پین گونجاو. ئەو بەشانەی پاکەتی جیاوازیان هەیە و پێویستیان بە چاککردنەوەی PCB هەیە لابراون.
جۆرەکان لەم زنجیرەیەدا
مۆدێلەکانی هەمان زنجیرە کە بە شێوەی ڕاستەوخۆ گونجاون لەگەڵ PIC16F687-I/SO (هەمان شێوە و پێکهاتەی شوێن) — جیاوازە لە Package, ADC, Timers, Core Architecture, Internal Oscillator.
PIC16F687-E/SO
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F689-I/SO
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F685-I/SO
✅ جێگرەوەی ڕاستەوخۆ ⚠️ تایبەتمەندییەکان پشتڕاست نەکراونەتەوەپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F690-I/SO
✅ جێگرەوەی ڕاستەوخۆ ⚠️ تایبەتمەندییەکان پشتڕاست نەکراونەتەوەپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F677-I/SO
✅ جێگرەوەی ڕاستەوخۆ ⚠️ تایبەتمەندییەکان پشتڕاست نەکراونەتەوەپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F631-I/SO
✅ جێگرەوەی ڕاستەوخۆ ⚠️ تایبەتمەندییەکان پشتڕاست نەکراونەتەوەپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F687-I/SO زۆرترین ڕێژە و تایبەتمەندییە کارەباییەکان
| Product Type | 8-bit Flash-based CMOS Microcontroller |
| Architecture | PIC mid-range, x14 14-bit RISC-like core |
| Maximum CPU Frequency | 20 MHz |
| Program Memory (Flash) | 3.5 KB (2K x 14 words) |
| General Purpose Register File | 128 x 8 |
| Data EEPROM | 128 bytes on-board |
| I/O Lines | 18 |
| Operating Supply Voltage Range | 2.0 V to 5.5 V |
| جۆری بیرگە | Flash |
| پاکێج | 20-pin SOIC (SOIC-20) |
| ژمارەی پین | 20 |
| جۆری دامەزراندن | Surface Mount |
| Process Technology | CMOS |
| Low-Power Feature | nanoWatt technology |
| Instruction Set | 35 single-word instructions |
| Instruction Execution Time | 200 ns |
| دۆخی چرخەی ژیان | Active |
| دۆخی RoHS | Compliant |
ڕێکخستنی پینی PIC16F687-I/SO
| پین 1 | RA0 — Port A bit 0, general purpose I/O |
| پین 2 | RA1 — Port A bit 1, general purpose I/O |
| پین 3 | RA2 — Port A bit 2, general purpose I/O |
| پین 4 | RA3 — Port A bit 3, general purpose I/O |
| پین 5 | RA4/OSC1 — Port A bit 4 / oscillator input |
| پین 6 | RA5/OSC2 — Port A bit 5 / oscillator output |
| پین 7 | VSS — Ground reference |
| پین 8 | RB0 — Port B bit 0, general purpose I/O |
| پین 9 | RB1 — Port B bit 1, general purpose I/O |
| پین 10 | RB2 — Port B bit 2, general purpose I/O |
| پین 11 | RB3 — Port B bit 3, general purpose I/O |
| پین 12 | VDD — Positive supply input, 2.0 V to 5.5 V |
| پین 13 | RB4 — Port B bit 4, general purpose I/O |
| پین 14 | RB5 — Port B bit 5, general purpose I/O |
| پین 15 | RC0 — Port C bit 0, general purpose I/O |
| پین 16 | RC1 — Port C bit 1, general purpose I/O |
| پین 17 | RC2 — Port C bit 2, general purpose I/O |
| پین 18 | RC3 — Port C bit 3, general purpose I/O |
| پین 19 | RC4 — Port C bit 4, general purpose I/O |
| پین 20 | RC5 — Port C bit 5, general purpose I/O |
بەکارهێنانە باوەکان
PIC16F687-I/SO گونجاوە بۆ 6 بەکارھێنانs: Appliance and HVAC Control Panel, Small Motor and Relay Control, Battery-Powered Industrial Sensor Node, LED Lighting Sequencer and Dimming, Simple Standalone Data Logger, Security, Access and Alarm Peripheral.
Appliance and HVAC Control Panel
The PIC16F687-I/SO fits appliance and thermostat control panels because 3.5 KB of Flash holds a display routine, keypad scanning and a state machine without an external memory, while the 2.0 V to 5.5 V supply range covers both 5 V mains-derived rails and low-voltage battery backup. Its 18 I/O lines drive relay outputs, triac gates and sensor inputs from a single 20-pin SOIC, and the 128 bytes of on-board EEPROM retain user setpoints, calibration offsets and runtime counters across power cycles. With a 200 ns instruction cycle at 20 MHz, the control loop stays responsive while the nanoWatt feature shuts down unused peripherals between scans, which matters for energy-metered domestic appliances. Layout-wise, the SOIC footprint keeps the board serviceable and the wide voltage range allows the same board to cover several product variants.
پێشنیارکراو
Small Motor and Relay Control
For small motor, solenoid and relay control nodes, the PIC16F687-I/SO provides 18 I/O lines and multiple timer resources in a 20-pin SOIC, enough to sequence a stepper indexer or drive a latching relay without an external logic IC. The 128 x 8 register file keeps the scheduler, motion counters and fault flags in fast RAM, avoiding slow access to Flash during time-critical stepping. Because the core executes 35 single-word instructions in 200 ns, position updates remain deterministic even when a comms task shares the bus. The 2.0 V minimum supply lets the controller run from a 3 V battery or a 5 V logic rail, while the on-board EEPROM stores motor calibration and direction settings so the same unit ships to different markets. Its active lifecycle status also reduces the obsolescence risk typical of motor-control redesign cycles.
پێشنیارکراو
Battery-Powered Industrial Sensor Node
The PIC16F687-I/SO is a natural fit for battery-powered sensor nodes because its 2.0 V to 5.5 V operating range spans single-cell Li-ion and two-cell alkaline systems, and the nanoWatt technology lets firmware disable unused peripherals between measurement bursts to cut average supply current. On-board EEPROM of 128 bytes stores calibration data and a node identity, so a field unit can be re-tagged without a programmer. The 20-pin SOIC package leaves board area for a radio or sensor front end, and the 18 I/O lines cover a switched sensor, a status LED and a wake-up input. With 3.5 KB of Flash and a 200 ns instruction cycle, the node can sample, filter and frame a compact packet locally, avoiding radio airtime and therefore battery drain.
پێشنیارکراو
LED Lighting Sequencer and Dimming
In LED signage, decorative lighting and dimming controllers, the PIC16F687-I/SO handles pulse-width modulation timing for multiple channels with deterministic 200 ns instruction execution at 20 MHz, which keeps flicker artifacts out of camera and eye exposure. The 18 available I/O lines drive channel enables and sense driver feedback, and the 128 x 8 register file holds per-channel intensity tables without resorting to external storage. Because the program memory is Flash, lighting profiles and fade tables can be updated in the field over the same interface used for control, and the 128 bytes of EEPROM hold scene presets, installation identifiers and timer settings. The 2.0 V to 5.5 V range also allows direct operation from a 5 V constant-current driver output without a separate level shifter.
پێشنیارکراو
Simple Standalone Data Logger
A compact data logger built around the PIC16F687-I/SO benefits from 3.5 KB of Flash for buffering and formatting routines, 128 bytes of on-board EEPROM for a rolling parameter window, and 18 I/O lines for a sensor bus, a record-start input and a status indicator. The 200 ns instruction cycle at 20 MHz lets the firmware timestamp samples and manage a card or serial write cycle without dropping records. The wide 2.0 V to 5.5 V supply tolerance allows use with both a 3 V primary cell and a 5 V industrial rail, and the 20-pin SOIC footprint keeps the assembly compact and easy to hand-solder for low-volume builds. The active lifecycle status of the PIC16F687 family supports long-life industrial and building-services programs where an obsolete MCU would force a full requalification.
پێشنیارکراو
Security, Access and Alarm Peripheral
Access panels, alarm modules and intercom stations use the PIC16F687-I/SO as a peripheral controller because 18 I/O lines handle keypad scanning, LED status indication, door-strike drive and reed or tamper inputs within one 20-pin SOIC. The 128 bytes of on-board EEPROM is well suited to storing badge or configuration records locally, and the 3.5 KB of Flash holds the protocol stack and logging code. A 2.0 V minimum supply supports running the logic side of a lock from a single-cell backup pack, while the wide upper limit of 5.5 V accepts a 5 V access-control bus. Because the core is deterministic, door timing and relay pulse widths remain repeatable, and the family's active status supports the long qualification cycles common in security hardware.
پێشنیارکراو
کورتەی بەرهەمە پێشنیارکراوەکان
داتای سەرچاوەی ئەندازیاری بۆ PIC16F687-I/SO — بەراوردکردن، ڕێنمایی دیزاین و زانیاری پابەندبوون.
ڕێنمایی هەڵبژاردن
بەراوردکردن لەگەڵ جێگرەوەکان
| پارامەتر | ئەم بەرهەمە | PIC16F687-E/SO | PIC16F689-I/SO | PIC16F685-I/SO | PIC16F690-I/SO | PIC16F677-I/SO | PIC16F631-I/SO |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | SOIC-20 | SOIC-20 - same | SOIC-20 - same | SOIC-20 - same | SOIC-20 - same | SOIC-20 - same | SOIC-20 - same |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Temperature Grade | Industrial (-I suffix) | Extended (-E suffix) | Industrial (-I suffix) | Industrial (-I suffix) | Industrial (-I suffix) | Industrial (-I suffix) | Industrial (-I suffix) |
| Low-Power Feature | nanoWatt technology | nanoWatt technology | nanoWatt technology | nanoWatt technology | nanoWatt technology | nanoWatt technology | nanoWatt technology |
جیاکەرەوە سەرەکییەکان
- Smallest register file in the same 20-pin SOIC family gives the lowest-cost footprint match for simple control tasks (بەراورد بەPIC16F685-I/SO)
- Temperature-grade flexibility within the same drop-in footprint (بەراورد بەPIC16F687-E/SO)
- Wide supply range suits both cell-powered and 5 V systems (بەراورد بەPIC16F631-I/SO)
- Deterministic 200 ns instruction execution at 20 MHz for time-critical control (بەراورد بەPIC16F689-I/SO)
تێبینییەکانی دیزاین
Place the VDD bypass capacitor directly between pin 12 (VDD) and pin 7 (VSS), with a short, low-inductance return path and the capacitor placed on the same side of the board as the IC. Because the PIC16F687-I/SO works down to 2.0 V, supply decoupling margin is tighter than on a 5 V-only part, so a 100 nF ceramic plus a bulk capacitor near the source of the rail is the conservative starting point. Keep oscillator routing (RA4/OSC1 and RA5/OSC2 on pins 5 and 6) away from switching nodes and from the high-current relay or motor drive traces.
The 2.0 V to 5.5 V operating range means brown-out behavior must be checked against your rail. Configure the brown-out reset thresholds in the configuration words so the device resets cleanly before the supply falls below the level at which the Flash program memory or EEPROM read becomes unreliable, and verify that a motor or relay coil collapse does not drag the rail below the configured trip point. For battery nodes, use the nanoWatt peripheral-shutdown capability in firmware to keep average current low between measurement bursts.
Do not treat the 18 I/O lines as uniformly bidirectional: on this family several Port C pins are input-only, so driving them is a silent no-op rather than a fault. Confirm the pin-direction table in the family datasheet before assigning an LED or relay output to a Port C bit. Also note that the register file in the PIC16F687 is 128 x 8 while the PIC16F685, PIC16F689 and PIC16F690 in the same 20-pin SOIC footprint use 256 x 8, so code written against banked-register assumptions must be re-checked when swapping models on the same board.
The 20-pin SOIC footprint is small enough that pin escapes get tight when I/O runs to an edge connector. Reserve escape channels for the Port B lines (pins 8 to 11 and 13 to 14), which are commonly used for keypad and LED matrix functions, and keep the ground-connected VSS pin 7 route short. For designs using the internal oscillator, leave the RA5/OSC2 pin available for an external oscillator or a test point so the same PCB can be programmed at different clock speeds during production.
زانیاری پابەندبوون
RoHS compliance is stated in the part listing for PIC16F687-I/SO. The part is an active industrial-grade device in a 20-pin SOIC package; automotive-grade (AEC-Q100) variants are not indicated for this MPN. REACH, halogen-free and conflict-minerals status are not stated for this part number.