Microchip Technology

PIC16F870-I/SP - 8-bit MCU 20MHz 3.5KB Flash 28-SPDIP | Microchip

MPN: PIC16F870-I/SP βœ“ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss 28-SPDIP (through-hole, 0.3 inch width) Package 20 MHz Speed 3.5KB (2K x 14) Flash Memory
From $3.6 USD / Unit
MOQ: 1 |
Price updated: 2026-08-29
Volume Pricing
Qty Unit Price Extended
1 $5.43 $5.43
10 $4.9 $49.00
25 $4.66 $116.50
100 $4.2 $420.00
1,000 $3.6 $3,600.00
ℹ️ All prices are in USD

Drop-in alternatives for PIC16F870-I/SP β€” same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

PIC16F876-I/SP

βœ… Drop-In ⚠️ 参数待ιͺŒθ―
πŸ“¦ 28-SPDIP
pin-compatible superset: 14KB Flash, 368B RAM, 256B EEPROM, adds MSSP (SPI/I2C)

πŸ“‹ Reference alternative (not in catalog)

PIC16F873-I/SP

βœ… Drop-In ⚠️ 参数待ιͺŒθ―
πŸ“¦ 28-SPDIP
pin-compatible, 4KB Flash, 128B RAM, 128B EEPROM, adds MSSP

πŸ“‹ Reference alternative (not in catalog)

PIC16F872-I/SP

βœ… Drop-In ⚠️ 参数待ιͺŒθ―
πŸ“¦ 28-SPDIP
same memory (3.5KB Flash) but no USART; only for designs not using serial port

πŸ“‹ Reference alternative (not in catalog)

PIC16F88-I/SP

βœ… Drop-In ⚠️ 参数待ιͺŒθ―
πŸ“¦ 28-PDIP
enhanced mid-range core, 7KB Flash, 368B RAM, internal oscillator, mostly pin-compatible (check RA/CCP assignment)

πŸ“‹ Reference alternative (not in catalog)

PIC16F870-E/SP

βœ… Drop-In
πŸ“¦ 28-SPDIP
same die, extended temperature grade -40C to +125C

πŸ“‹ Reference alternative (not in catalog)

ℹ️ 1 cross-package part(s) hidden β€” different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

PIC16F870-I/SP Maximum Ratings & Electrical Characteristics

Core Architecture 8-bit PIC16 RISC (Harvard)
Program Memory Size 3.5KB (2K x 14) Flash
RAM Size 128 bytes
Data EEPROM Size 64 bytes
Maximum Clock Frequency 20 MHz
Instruction Cycle Time 200 ns
Instruction Set 35 single-word instructions
I/O Pins 22
ADC Resolution 10-bit
ADC Channels 5
Communication Interfaces USART
Timers Timer0, Timer1, Timer2 with CCP (Capture/Compare/PWM)
Operating Voltage Range 2.0 V to 5.5 V
Operating Temperature -40C to +85C (I grade)
Package 28-SPDIP (through-hole, 0.3 inch width)
Mounting Type Through Hole
In-Circuit Debug ICD supported
Self Programming Yes
RoHS Status Compliant

PIC16F870-I/SP Pin Configuration

DIP-28 Package Pinout Diagram DIP-28 28-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 28 2 27 3 26 4 25 5 24 6 23 7 22 8 21 9 20 10 19 11 18 12 17 13 16 14 15 DIP-28
Pin 1 MCLR/VPP β€” Master clear reset / programming voltage input
Pin 2 RA0/AN0 β€” Port A bit 0 / ADC channel 0
Pin 3 RA1/AN1 β€” Port A bit 1 / ADC channel 1
Pin 4 RA2/AN2 β€” Port A bit 2 / ADC channel 2
Pin 5 RA3/AN3 β€” Port A bit 3 / ADC channel 3
Pin 6 RA4/T0CKI β€” Port A bit 4 (open drain) / Timer0 clock input
Pin 7 RA5/AN4 β€” Port A bit 5 / ADC channel 4
Pin 8 VSS β€” Ground reference
Pin 9 OSC1/CLKIN β€” Oscillator input / external clock input
Pin 10 OSC2/CLKOUT β€” Oscillator output
Pin 11 RC0/T1OSO β€” Port C bit 0 / Timer1 oscillator output
Pin 12 RC1/T1OSI β€” Port C bit 1 / Timer1 oscillator input
Pin 13 RC2/CCP1 β€” Port C bit 2 / Capture-Compare-PWM output
Pin 14 RC3 β€” Port C bit 3
Pin 15 RC4 β€” Port C bit 4
Pin 16 RC5 β€” Port C bit 5
Pin 17 RC6/TX β€” Port C bit 6 / USART transmit
Pin 18 RC7/RX β€” Port C bit 7 / USART receive
Pin 19 VSS β€” Ground reference
Pin 20 VDD β€” Positive power supply (2.0V to 5.5V)
Pin 21 RB0/INT β€” Port B bit 0 / external interrupt
Pin 22 RB1 β€” Port B bit 1
Pin 23 RB2 β€” Port B bit 2
Pin 24 RB3 β€” Port B bit 3
Pin 25 RB4 β€” Port B bit 4 / interrupt-on-change
Pin 26 RB5 β€” Port B bit 5 / interrupt-on-change
Pin 27 RB6/PGC β€” Port B bit 6 / ICSP clock, interrupt-on-change
Pin 28 RB7/PGD β€” Port B bit 7 / ICSP data, interrupt-on-change

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for PIC16F870-I/SP Drain-to-Source Voltage (Vds) Drain Current (Id)

No official SOA curve available for this digital IC. Always operate within absolute maximum ratings specified in the datasheet. Ensure adequate cooling and derate as needed.

Typical Applications

PIC16F870-I/SP is suitable for 6 applications: Industrial Control Systems, Serial Communication Bridges, Sensor Interfacing and Data Logging, Motor Control and PWM Actuator Drive, Consumer Appliance Control, Education and Prototyping.

🏭

Industrial Control Systems

The PIC16F870-I/SP fits industrial control nodes where a 20 MHz RISC core, 22 I/O pins, and -40C to +85C industrial temperature rating are sufficient. The 10-bit ADC with 5 channels reads analog setpoints from potentiometers and sensors, while the CCP module generates PWM for actuator drive. The 2K x 14 word flash program space accommodates typical ladder-logic-style state machines, and in-system flash programming allows field firmware updates without desoldering, reducing maintenance downtime in control panels.

🌐

Serial Communication Bridges

With its built-in USART on RC6/TX and RC7/RX, the PIC16F870-I/SP acts as a protocol converter or RS-232/RS-485 bridge between a PC or PLC and peripheral devices. The 200 ns instruction cycle at 20 MHz sustains robust bit-banged secondary protocols alongside hardware UART operation. The 64-byte EEPROM stores node addresses and configuration through power cycles, and 5V CMOS I/O levels interface directly with legacy industrial serial transceivers, simplifying integration with existing equipment.

🧩

Sensor Interfacing and Data Logging

The 5-channel 10-bit ADC (AN0-AN4 on port A) digitizes temperature, pressure, and light sensors directly without an external converter, providing 1024-count resolution adequate for monitoring applications. The 64-byte data EEPROM, rated for high erase/write cycles per the DS30569B datasheet, logs calibration constants and threshold events. The device operates from 2.0V, allowing direct battery supply coupling, and sleep mode between samples extends battery life in remote data-loggers.

βš™

Motor Control and PWM Actuator Drive

The CCP (Capture/Compare/PWM) module on RC2/CCP1 generates up to 10-bit PWM output for DC motor speed control, LED dimming, and servo positioning, while Timer1 capture input measures external pulse timing for feedback. Running at 20 MHz, the PWM resolution reaches approximately 10-bit at low carrier frequencies typical of motor drive. The 200 ns instruction cycle supports closed-loop control loops executing PID firmware inside a few hundred microseconds, sufficient for fan and pump applications.

πŸ“±

Consumer Appliance Control

Home appliances such as coffee makers, fans, and small heaters benefit from the PIC16F870-I/SP's combination of low cost, 5V operation, through-hole 28-SPDIP package for repairable boards, and robust flash endurance. Port B weak pull-ups simplify capacitive or mechanical key interfaces with interrupt-on-change on RB4-RB7, and the 10-bit ADC reads NTC thermistors for temperature regulation. The USART also enables connectivity to display modules or smart-home bridges in upgraded appliance designs.

πŸ”§

Education and Prototyping

The PIC16F870-I/SP is a classic teaching device: its 35-instruction RISC set, 28-pin through-hole SPDIP package, and breadboard-friendly 0.3-inch width make it ideal for embedded systems coursework and rapid prototyping. The In-Circuit Debugger (ICD) support allows step-by-step debugging with low-cost PICkit tools using just five pins (MCLR, VDD, VSS, PGD, PGC). Abundant legacy documentation, application notes, and community code reduce the learning curve compared with modern ARM-based parts.

What are the key specifications of the PIC16F870-I/SP?
The PIC16F870-I/SP is an 8-bit PIC16 flash MCU with 3.5KB (2K x 14) Flash, 128 bytes RAM, 64 bytes EEPROM, and a 20 MHz maximum clock giving 200 ns instruction cycles. It provides 22 I/O pins, a 5-channel 10-bit ADC, a CCP module, and a USART in a 28-pin SPDIP package rated -40C to +85C. Source: Microchip PIC16F870/871 datasheet DS30569B.
What is the operating voltage range of the PIC16F870-I/SP?
The PIC16F870-I/SP operates from 2.0V to 5.5V per Microchip product documentation, supporting both 3.3V-class and 5V systems. The industrial temperature grade (I suffix) guarantees operation from -40C to +85C, making the device suitable for industrial and battery-powered embedded designs.
What is the difference between PIC16F870 and PIC16F871?
Both devices share the same core, memory, and peripherals, but the PIC16F870 comes in a 28-pin package while the PIC16F871 comes in a 40-pin package. According to the PIC16F870/871 datasheet DS30569B, the 28-pin PIC16F870 does not implement the Parallel Slave Port, while the 40-pin PIC16F871 offers 33 I/O pins and PSP for parallel bus interfacing.
What is the difference between PIC16F870 and PIC16F876?
The PIC16F876-I/SP is a pin-compatible superset in the same 28-SPDIP package with 14KB Flash versus 3.5KB, 368 bytes RAM versus 128 bytes, 256 bytes EEPROM versus 64 bytes, and adds an SPI/I2C MSSP module. Firmware written for the PIC16F870 generally runs on the PIC16F876 with recompilation, making it a strong drop-in upgrade.
What is the best drop-in replacement for PIC16F870-I/SP?
The best drop-in replacement is the Microchip PIC16F876-I/SP, which shares the identical 28-SPDIP footprint and pinout with more memory (14KB Flash). The PIC16F873-I/SP is another same-package option with 4KB Flash. For designs not using the USART, the PIC16F872-I/SP fits the same socket. Verify peripheral register compatibility after recompilation.
Is there an STM32 or AVR equivalent for the PIC16F870?
There is no true cross-brand drop-in replacement because Microchip's 28-pin SPDIP pinout is proprietary. The ATMEGA328P-PU (28-DIP) offers comparable function - 32KB Flash, 10-bit ADC, USART - but requires PCB rework due to a different pinout. ATtiny-class parts like the ATTINY2313V-10PU serve smaller footprints but are not pin-compatible either.
Where can I download the PIC16F870-I/SP datasheet PDF?
The official PIC16F870/871 datasheet is available from Microchip at https://ww1.microchip.com/downloads/en/DeviceDoc/30569b.pdf (document DS30569B, 156 pages). It covers pin diagrams, electrical specifications, memory organization, oscillator configuration, and the full instruction set. XAIPART also links this datasheet on the product page.
Where can I find the PIC16F870-I/SP pinout?
The 28-SPDIP pinout is documented in the Microchip datasheet DS30569B: pin 1 is MCLR/VPP, pins 2-7 are port A (RA0-RA5 with AN0-AN4), pin 8 VSS, pins 9-10 OSC1/OSC2, pins 11-18 port C (RC6/TX and RC7/RX for USART), pins 19-20 VSS/VDD, and pins 21-28 port B (RB0/INT through RB7). See the pinout table on this page.
How much does the PIC16F870-I/SP cost?
As of 2026-08-29, the PIC16F870-I/SP is priced around $5.43 at single-unit quantity, dropping to approximately $4.66 at 25 pieces and about $3.60 at 1000 pieces, based on distributor data (DigiKey, LCSC). Prices vary by distributor and stock position; check XAIPART for a live quote.
Where can I buy PIC16F870-I/SP online?
The PIC16F870-I/SP is available from authorized distributors including DigiKey (stock ships same day), Mouser, and LCSC (listed from $4.656, in stock). XAIPART aggregates pricing from 11 distributors via Octopart-indexed data so buyers can compare availability and bulk discounts in one place.
Is the PIC16F870-I/SP in stock and what is the lead time?
Yes, the PIC16F870-I/SP is in stock at multiple distributors as of 2026-08-29, with DigiKey showing same-day shipping and LCSC listing in-stock inventory. Because this is a mature, widely stocked part, typical lead time from stock is 1-3 days; production quantities may require standard distributor replenishment of several weeks.
Which programmer do I need for the PIC16F870-I/SP?
The PIC16F870 requires a Microchip-compatible programmer such as the PICkit 3, PICkit 4, or ICD 2/3 connected via the MCLR/VPP, VDD, VSS, PGD (RB7), and PGC (RB6) pins. The device supports In-Circuit Debugger (ICD) operation, so the same five pins enable in-circuit debugging during firmware development.
Is the PIC16F870-I/SP suitable for battery-powered applications?
Yes, the 2.0V to 5.5V operating range and CMOS flash technology make the PIC16F870 suitable for battery-powered designs. The PIC16 family provides power-managed sleep mode operation; consult the DS30569B datasheet for standby current figures at specific voltages. Flash and EEPROM retain data without power for long shelf life.
Is the PIC16F870 still recommended for new designs?
The PIC16F870-I/SP is listed as active, but Microchip's newer enhanced mid-range parts such as the PIC16F88 or PIC16F1xxx family offer more memory and peripherals at lower cost. For new designs, evaluate the PIC16F88-I/SP (same 28-pin footprint, 7KB Flash); for legacy board maintenance, the PIC16F870 remains a reliable, in-stock choice.

Engineering reference data for PIC16F870-I/SP β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F870-I/SP when your firmware fits in 2K words, you need a hardware USART, and the through-hole 28-SPDIP package suits prototyping or repairable industrial boards. Step up to the pin-compatible PIC16F873-I/SP if code growth risks exceeding 2K words (4KB Flash, plus MSSP SPI/I2C), or to the PIC16F876-I/SP for maximum headroom (14KB Flash, 368B RAM, 256B EEPROM) - all share the identical socket footprint, so migration needs no PCB change. Pick the PIC16F872-I/SP only if serial communication is not required. Choose the PIC16F88-I/SP for newer designs needing an internal oscillator and enhanced peripherals, noting minor pin-function differences. For extreme temperatures, use the PIC16F870-E/SP (-40C to +125C). There is no cross-brand pin-compatible drop-in; AVR or STM32 alternatives require PCB rework.

Comparison with Alternatives

Parameter This Product PIC16F876-I/SP PIC16F873-I/SP PIC16F872-I/SP PIC16F88-I/SP
Package 28-SPDIP 28-SPDIP - same 28-SPDIP - same 28-SPDIP - same 28-PDIP - same footprint
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash Program Memory 3.5KB (2K x 14) 14KB (8K x 14) 4KB (4K x 14) 3.5KB (2K x 14) 7KB (4K x 14)
RAM 128 bytes 368 bytes 128 bytes 128 bytes 368 bytes
Data EEPROM 64 bytes 256 bytes 128 bytes 64 bytes 256 bytes
USART Yes Yes Yes No Yes
MSSP (SPI/I2C) No Yes Yes Yes Yes
Max Clock Frequency 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz (+ internal osc)
Operating Temperature -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C
Unit Price (1 pc, as of 2026-08-29) ~$5.43 [DATA_NEEDED] [DATA_NEEDED] [DATA_NEEDED] [DATA_NEEDED]

Key Differentiators

  • Lowest-cost entry point of the flash PIC16 28-pin family (vs PIC16F876-I/SP)
  • USART retained at minimal memory size (vs PIC16F872-I/SP)
  • Extended temperature variant available (vs PIC16F870-E/SP)
  • Through-hole SPDIP simplifies prototyping vs SMD MCUs (vs PIC16F88-I/SP (same family))

Design Notes

Place a 0.1uF ceramic decoupling capacitor directly across VDD (pin 20) and VSS (pins 8/19), as close to the pins as possible; for through-hole prototyping, use a socket with short traces. Keep the oscillator crystals (XT/HS mode) within 1 cm of OSC1/OSC2 with ground guard traces. The PIC16F870/871 datasheet DS30569B recommends this layout for oscillator stability at 20 MHz.

Tie MCLR (pin 1) to VDD through a 10k resistor to prevent spurious resets; never leave it floating. For ICSP, use the standard 5-wire header (MCLR, VDD, VSS, RB6/PGC, RB7/PGD) and ensure series resistors isolate programming from in-circuit loads on RB6/RB7. RA4 is open-drain only - it needs an external pull-up resistor and cannot source current.

The device operates from 2.0V to 5.5V, but flash write and EEPROM write operations have voltage-dependent timing per DS30569B - the on-chip timer controls write duration which varies with voltage and temperature. At 5V, allow the specified EEPROM write time before issuing the next write; poll the WR bit rather than using fixed delays in firmware for reliability.

Keep the analog ADC channel traces (RA0-RA5) away from the oscillator and USART lines to minimize crosstalk into the 10-bit converter. Place a 0.1uF capacitor on VREF/AVDD-related analog routing if using external reference, and connect all VSS pins solidly to the ground plane to reduce ground bounce during port switching.

Compliance Information

RoHS
Compliant
REACH
Unknown
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Unknown

RoHS compliant and lead-free per distributor listings (DigiKey, LCSC). Not automotive qualified. REACH and halogen-free status not stated in provided data.

Data verified on: 2026-08-29 β€” data verified and curated by XAIPART's component engineering team

Related Searches

PIC16F870-I/SP PIC16F870 datasheet Microchip PIC16F870-I/SP price PIC16F870 28-pin 3.5KB flash microcontroller PIC16F870 SPDIP package pinout PIC16F870 USART serial application PIC16F870 vs PIC16F876 difference PIC16F870 drop-in replacement buy PIC16F870-I/SP in stock what is the equivalent of PIC16F870 PIC16F870 10-bit ADC 5 channel sensor program PIC16F870 with PICkit

Related Components & Terms

Microchip Technology PIC16F870-I/SP PIC16F870 PIC16F871 PIC16F876 PIC16F873 PIC16F88 PIC16 family 8-bit microcontroller MCU RISC Harvard architecture USART CCP (Capture/Compare/PWM) 10-bit ADC 28-SPDIP DIP package ICD (In-Circuit Debugger) PICkit ICSP RoHS Flash memory EEPROM industrial control through-hole mounting
Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details