PIC16F689-I/P - 8-bit MCU, 7KB Flash, 20MHz, 20-DIP | Microchip
MPN: PIC16F689-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.2 | $3.20 |
| 10 | $2.96 | $29.60 |
| 100 | $2.42 | $242.00 |
| 500 | $2.1 | $1,050.00 |
| 1,000 | $1.82 | $1,820.00 |
PIC16F689-I/P Overview
What is an 8-bit PIC microcontroller? An 8-bit PIC microcontroller is a single-chip computer built around a RISC CPU core with 8-bit wide data paths, on-chip flash program memory, RAM, EEPROM, and a rich set of integrated peripherals. In the broader taxonomy, a PIC16F part belongs to the mid-range 8-bit microcontroller family, which sits under the umbrella of microcontrollers (MCU), and in turn under embedded controllers, microcomputer ICs, and ultimately semiconductors. The PIC16F689 specifically targets low-pin-count (20-pin) cost-sensitive embedded designs.
Key features of this device include 18 digital I/O pins, a 12-bit A/D converter with 12 channels, an enhanced USART, an MSSP module supporting SPI and I2C (both Master and Slave), two 8-bit timers and one 16-bit timer, an 8-bit parallel slave port, and an internal voltage reference. A wide 2.0V to 5.5V operating range lets a single design power from a 3.3V or 5V rail. nanoWatt Technology brings idle, sleep, and watchdog-timer based power-saving modes that draw microamp-level currents.
Architecturally, the PIC16F689 uses a 14-bit instruction word with a single accumulator (W) and up to 80 instructions, plus hardware stack and interrupt controller. The on-board ICD (In-Circuit Debugger) and ICSP (In-Circuit Serial Programming) interfaces speed firmware development and field firmware upgrades. The 12-bit ADC and internal comparator make mixed-signal interfacing straightforward for sensor-front-end designs.
Typical applications include consumer appliance controls, low-end remote controls, sensor interfaces, simple motor controllers, battery chargers, lighting ballasts, and educational / hobbyist projects where the 20-DIP form factor supports breadboarding. Designers often pair it with Microchip's free MPLAB X IDE, XC8 compiler, and MPLAB ICD 3 / PICkit 4 debug tools.
When designing with this part, plan the I/O budget carefully: although the chip exposes 18 I/O pins, several are multiplexed with the ICSP, ICD, oscillator, and MCLR functions. Choose an external oscillator or set the INTOSC configuration carefully to free up the OSC1/OSC2 pins for general I/O. Use the built-in EEPROM endurance spec to estimate write-cycle life in data-logging applications.
This page synthesizes distributor pricing, drop-in PIC16F family alternatives, and practical design notes that complement - but do not replace - the manufacturer datasheet.
Drop-in alternatives for PIC16F689-I/P — 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 PIC16F689-I/P (same form factor and footprint) — differing in Package, Timers, Operating Temperature, Mounting Type, RoHS Status.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F690-I/P
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.89 / Unit
View Datasheet →PIC16F685-I/P
✅ Drop-In✓ In Stock
$1.32 / Unit
View Datasheet →PIC16F688-I/SL
✅ Drop-In✓ In Stock
$1.12 / Unit
View Datasheet →PIC16F684-E/P
✅ Drop-In✓ In Stock
$1.74 / Unit
View Datasheet →PIC16F59-I/P
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.71 / Unit
View Datasheet →PIC16F628A-I/P
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.62 / Unit
View Datasheet →PIC16F689-I/P Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC16 (mid-range x14) |
| Program Memory Type | Flash |
| Program Memory Size | 7 KB (4K x 14 words) |
| Data RAM | 256 bytes |
| Data EEPROM | 256 bytes |
| Max CPU Frequency | 20 MHz |
| Operating Voltage Range | 2.0 V to 5.5 V |
| Number of I/O Pins | 18 |
| A/D Converter | 12-bit, 12 channels |
| Communication Peripherals | Enhanced USART, MSSP (SPI / I2C Master & Slave) |
| Timers | 2 x 8-bit, 1 x 16-bit |
| Package | 20-pin PDIP (300 mil) |
| Mounting Type | Through-Hole |
| Operating Temperature Range | -40 C to +85 C (industrial, 'I' suffix) |
| Low-Power Feature | nanoWatt Technology |
| Programming / Debug | ICSP, ICD |
| RoHS Status | Compliant |
PIC16F689-I/P Pin Configuration
| Pin 1 | VDD — Positive supply voltage (2.0 V to 5.5 V) |
| Pin 2 | RA5/T1CKI/OSC1/CLKIN — RA5 I/O / Timer1 clock / OSC1 / external clock in |
| Pin 3 | RA4/T1G/OSC2/CLKOUT — RA4 I/O / Timer1 gate / OSC2 / CLKOUT |
| Pin 4 | MCLR/VPP/RA3 — Master clear reset (active low) / programming voltage / RA3 I/O |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RC0 — PORTC I/O bit 0 |
| Pin 7 | RC1 — PORTC I/O bit 1 |
| Pin 8 | RC2 — PORTC I/O bit 2 |
| Pin 9 | RC3 — PORTC I/O bit 3 |
| Pin 10 | RC4 — PORTC I/O bit 4 |
| Pin 11 | RC5 — PORTC I/O bit 5 |
| Pin 12 | RC6/TX/CK — PORTC I/O bit 6 / USART TX / I2C clock |
| Pin 13 | RC7/RX/DT — PORTC I/O bit 7 / USART RX / I2C data |
| Pin 14 | RB7/ICSPDAT — PORTB I/O bit 7 / ICSP data |
| Pin 15 | RB6/ICSPCLK — PORTB I/O bit 6 / ICSP clock |
| Pin 16 | RB5 — PORTB I/O bit 5 |
| Pin 17 | RB4 — PORTB I/O bit 4 |
| Pin 18 | RB3/PGM — PORTB I/O bit 3 / LVP programming |
| Pin 19 | RB2 — PORTB I/O bit 2 |
| Pin 20 | RB1 — PORTB I/O bit 1 |
Typical Applications
PIC16F689-I/P is suitable for 6 applications: Consumer Appliance Control, Sensor Interface Module, Lighting Ballast and LED Driver Control, Battery Charger and Power Bank Controller, Hobbyist and Educational Boards, Low-End Remote Control Transmitter.
Consumer Appliance Control
Why the PIC16F689-I/P fits consumer appliance control: 18 I/O pins, 7 KB flash, and a wide 2.0-5.5 V operating range cover washing-machine user-interface boards, microwave key panels, and HVAC thermostat logic where the 20-pin PDIP is still preferred for hand-prototyping and quick rework. The 12-bit ADC with 12 channels reads NTC thermistors, humidity sensors, and rotary encoder wiper voltages to within 1 mV resolution. Compared to migrating to a 32-bit ARM MCU for simple on/off relays and triac drive, this part keeps BOM cost near $2 in 1k volumes and powers directly from a 3.3 V LDO. Use the enhanced USART to talk to a Bluetooth or Wi-Fi module when the appliance needs app connectivity.
Recommended
Sensor Interface Module
Why the PIC16F689-I/P fits sensor interface modules: the 12-bit ADC with 12 channels and dual comparators let one chip read four 4-20 mA analog sensors, two digital switches, and a SPI temperature sensor. The 256-byte EEPROM with 1M-cycle endurance is well-suited to logging calibration constants, sensor IDs, and runtime hours. The MSSP supports both I2C and SPI, so a digital pressure sensor over SPI plus an I2C OLED display share the same MCU. nanoWatt sleep modes hold total current below 5 microamps for solar/battery installations, which is critical for remote sensor pods. PCB designers can lay out the 20-pin PDIP on a 0.1-inch pitch breadboard during early prototyping.
Recommended
Lighting Ballast and LED Driver Control
Why the PIC16F689-I/P fits lighting ballast and LED control: the 20 MHz CPU and enhanced PWM-driven timers provide the resolution needed for dimming fluorescent ballasts, RGB LED strings, and 0-10 V analog dimming. The 2.0-5.5 V supply range lets the MCU run directly from an AC/DC cap-dropper stage, eliminating a dedicated LDO and shrinking BOM count. Up to 18 I/O drive MOSFET gate drivers, key matrix scanning, and the USART for DMX512 or DALI bridges. Compared with higher-pin-count PICs, the F689 saves PCB area while keeping nanoWatt low-power idle for emergency-lighting standby modes.
Recommended
Battery Charger and Power Bank Controller
Why the PIC16F689-I/P fits battery charger / power-bank controllers: the 12-bit ADC monitors battery voltage, charge current, and NTC temperature with 1 mV resolution, while the dual analog comparators detect over-current and over-voltage conditions without CPU intervention. 256 bytes of EEPROM persist charge-cycle counters, capacity calibration, and fault logs through power cycles. The nanoWatt Technology idle mode draws under 1 microamp, extending standby time on lithium-ion power banks between uses. The 20-pin PDIP remains a service-friendly form factor for replacement electronics and warranty repair shops.
Recommended
Hobbyist and Educational Boards
Why the PIC16F689-I/P fits hobbyist and educational boards: the 20-pin PDIP through-hole footprint works in breadboards and solder-less kits without SMD rework. ICSP via PGD/PGC allows in-circuit programming using a $25 PICkit 4 without desoldering the chip. The 7 KB flash holds substantial demo projects, from PWM motor drives to I2C sensor readers, supported by MPLAB X IDE and the free XC8 compiler. The 20 MHz instruction budget exercises all four arithmetic flags plus the 14-bit instruction set, making it a canonical teaching vehicle for the PIC16F mid-range family.
Recommended
Low-End Remote Control Transmitter
Why the PIC16F689-I/P fits low-end remote-control transmitters: nanoWatt Technology reduces sleep current below 1 microamp, so a coin cell can power a key-fob or wall-mount remote for several years. The 18 I/O lines scan a 4x4 key matrix with interrupt-on-change wake-up, while the USART or MSSP drives an RF transceiver IC over SPI at low duty cycle. The 2.0-5.5 V supply range works directly from a CR2032 cell without boost or buck conversion. Compared to a smaller PIC10F, the F689 has enough flash and RAM to host structured rolling-code firmware for entry-level secure RF links.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F689-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F690-I/P | PIC16F685-I/P | PIC16F688-I/SL | PIC16F684-E/P |
|---|---|---|---|---|---|
| Package | 20-pin PDIP (300 mil) | 20-pin PDIP | 20-pin PDIP | 20-pin SOIC | 20-pin PDIP |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 7 KB | 8 KB | 7 KB | 7 KB | 4 KB |
| Data RAM | 256 B | 384 B | 256 B | 256 B | 128 B |
| Data EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B |
| Max CPU Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| ADC Channels (12-bit) | 12 | 12 | 8 | 7 | 8 |
| I/O Pins | 18 | 19 | 17 | 18 | 17 |
| 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 |
Key Differentiators
- Highest ADC channel count in this 20-pin PDIP family (vs PIC16F685-I/P)
- Larger flash than the cost-down PIC16F684 (vs PIC16F684-E/P)
- Through-hole PDIP form factor for service-friendly builds (vs PIC16F688-I/SL)
- Industrial -40 C to +85 C grade (vs Generic PIC16F family)
Design Notes
Estimated: At 20 MHz and VDD=5 V the PIC16F689-I/P typically draws 5-8 mA active and under 1 microamp in nanoWatt sleep. Bulk-decouple VDD with a 100 nF ceramic placed within 5 mm of pin 1 and an additional 10 uF tantalum at the regulator output to suppress switching transients. For battery operation, use Sleep + Watchdog Timer wake-up rather than idle loops; this typically cuts average current by 10-100x.
Place a 100 nF decoupling capacitor directly across pins 1 (VDD) and 5 (VSS), plus a second 100 nF across pins 20 (RB1, internally tied to VDD via digital core) and 19 (RB2, near VSS) if the layout places RB1/RB2 far from VDD/VSS. Reserve a footprint for an MCLR pull-up to VDD (typically 10 kohm) on pin 4. Route the ICSP connector (PGD on RB7, PGC on RB6) away from switching nodes to avoid programming glitches.
Three common pitfalls: (1) Forgetting that the 'I' suffix means -40 C to +85 C industrial range, not extended -40 C to +125 C - use 'E' suffix for that. (2) Enabling low-voltage ICSP (LVP) on RB3/PGM but then forgetting that the pin is no longer available as a general I/O - either route the LVP line to a dedicated header or disable LVP in configuration bits. (3) Configuring MCLR as a regular input instead of reset - MCLR must be tied high through a 10 kohm resistor for normal operation.
For analog-accurate ADC readings, route the analog signals (AN0-AN11, typically shared with PORTA and PORTE pins) on a separate analog ground island connected to the main ground at a single point near the VDD decoupling capacitor. Add a ferrite bead or small resistor in series with AVDD if available. Keep the analog traces away from digital switching lines and clock signals to preserve the 12-bit ADC's signal-to-noise ratio.
Compliance Information
RoHS compliant per Microchip product page. Industrial -40 C to +85 C temperature range with 'I' suffix. Lead-free matte-tin finish. Not AEC-Q100 qualified - choose PIC16F690-I/P automotive variants if needed.