Opens in a new tab

Authorized electronic component supplier · 12,000+ part numbers in stock

MENU

Instant Quote

SEARCH PARTS

PIC16F873A-I

8-bit PIC MCU, 7KB Flash, 192B RAM, 128B EEPROM, 5-ch 10-bit ADC, 2 CCP, 2 comparators, SPI/I2C/USART, ICD

Effective inventoryPCS

5440
in stock

SpecificationsTechnical data

Manufacturer part

PIC16F873A-I

Package

28-pin PDIP / SOIC / SSOP / QFN

Brand

MICROCHIP

Category

Integrated Circuits ICs, Microcontrollers (MCU)

Quality Commitment

Shipping & Payment

Service & Packaging

DescriptionProduct overview

Product Overview

The PIC16F873A-I is a 28-pin, 8-bit Flash-based CMOS microcontroller from Microchip Technology, featuring the enhanced Mid-Range PIC architecture with self-programming capability and built-in ICD debug support. This ‘A’ revision of the popular PIC16F873 offers 7KB (4K x 14 words) of Flash program memory, 192 bytes of RAM, and 128 bytes of data EEPROM. Operating at up to 20 MHz with a 200 ns instruction cycle, it integrates a 5-channel 10-bit ADC, two analog comparators, two Capture/Compare/PWM (CCP) modules, a Synchronous Serial Port (SSP) for SPI/I2C, and a Universal Synchronous Asynchronous Receiver Transmitter (USART). With its enhanced Flash (100K erase/write cycles), EEPROM data memory, In-Circuit Debug (ICD), and self-programming capability, the PIC16F873A is a versatile 28-pin MCU ideal for industrial control, automotive, consumer appliances, and sensor applications requiring on-chip debugging and non-volatile data storage.

Key Specifications

Core Architecture 8-bit PIC (Mid-Range Core, ‘A’ revision)
Program Memory 7KB Flash (4K x 14 words), 100K E/W cycles
RAM 192 bytes
Data EEPROM 128 bytes, 1M E/W cycles
Maximum Speed 20 MHz (5 MIPS)
Operating Voltage 2.0V to 5.5V
I/O Pins 22
ADC 10-bit, 5 channels
Comparators 2
Timers 2 x 8-bit (TMR0/TMR2) + 1 x 16-bit (TMR1)
PWM 2 x CCP (Capture/Compare/PWM), 10-bit
Communication SPI, I2C (SSP), USART
Debug In-Circuit Debug (ICD) built-in
Self-Programming Yes (self-write Flash capability)
Stack Levels 8
Interrupt Sources Up to 14
Operating Temperature -40°C to +85°C (Industrial)
Package 28-pin PDIP / SOIC / SSOP / QFN

Features

  • High-performance RISC CPU with only 35 single-word instructions
  • Enhanced Flash: 100,000 erase/write cycles typical
  • Data EEPROM: 128 bytes with 1M erase/write cycles
  • Self-reprogrammable under software control
  • Built-in In-Circuit Debug (ICD) support via two pins
  • 5-channel 10-bit Analog-to-Digital Converter (ADC)
  • Two analog comparators with programmable on-chip voltage reference
  • Two Capture/Compare/PWM (CCP) modules: 16-bit capture, 10-bit PWM
  • Synchronous Serial Port (SSP) with SPI and I2C (Master/Slave)
  • Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI)
  • Timer0: 8-bit timer/counter with 8-bit programmable prescaler
  • Timer1: 16-bit timer/counter with prescaler, can increment during Sleep
  • Timer2: 8-bit timer/counter with period register, prescaler, and postscaler
  • Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST)
  • Programmable Brown-out Reset (BOR)
  • Watchdog Timer (WDT) with on-chip RC oscillator
  • Programmable code protection for program and data memory
  • In-Circuit Serial Programming (ICSP) via two pins
  • Power-saving Sleep mode
  • High sink/source current: 25 mA per I/O pin
  • Pinout compatible with PIC16F873 (non-A version)

Applications

  • Industrial control and sensor interfaces
  • Automotive sensor modules and body electronics
  • Consumer electronics and smart appliances
  • Motor control and power management
  • Battery-powered data loggers
  • Medical devices and instrumentation
  • Home automation and smart home devices
01PIC16F873A-I · Product Introduction
The PIC16F873A is the enhanced ‘A’ revision of the popular PIC16F873 28-pin Flash-based 8-bit CMOS microcontroller from Microchip Technology. Part of the PIC16F87XA family, it features the Mid-Range PIC architecture with significant improvements over the original version. It offers 7KB (4K x 14 words) of enhanced Flash program memory (100K erase/write cycles), 192 bytes of RAM, and 128 bytes of data EEPROM (1M erase/write cycles with >40 year retention). A key enhancement is self-programming capability, allowing the MCU to update its own Flash memory under software control. Built-in In-Circuit Debug (ICD) support enables real-time debugging without an external debug header. The peripheral set includes a 5-channel 10-bit ADC, two analog comparators with programmable voltage reference, two CCP modules for capture/compare/PWM, an SSP module for SPI/I2C communication, and a USART for serial communication. Three timers (TMR0, TMR1, TMR2) provide flexible timing functions. The device operates at up to 20 MHz (5 MIPS) across a wide voltage range of 2.0V to 5.5V. With 22 I/O pins, Brown-out Reset, Watchdog Timer, programmable code protection, and industrial temperature range, the PIC16F873A is a robust and feature-rich solution for diverse embedded applications. Available in PDIP, SOIC, SSOP, and QFN packages.
02PIC16F873A-I · Working Principle
The PIC16F873A operates on the Mid-Range PIC RISC architecture with Harvard design, featuring separate 14-bit program memory and 8-bit data memory buses for concurrent access. Most of the 35 instructions execute in a single clock cycle, with an 8-level deep hardware stack. The ‘A’ revision introduces enhanced Flash technology with higher endurance (100K cycles vs. 1K for the original) and self-programming capability via special control registers, enabling bootloader and firmware update applications. The 10-bit ADC uses successive approximation register (SAR) architecture with 5 input channels, providing higher resolution than the 8-bit ADC of the PIC16F7x series. Two analog comparators with a Comparator Voltage Reference (CVREF) module enable threshold detection and window comparison applications. Two CCP modules provide 16-bit capture, 16-bit compare, and 10-bit PWM functions. The SSP module handles SPI and I2C (both Master and Slave modes with address masking) in hardware, while the USART provides asynchronous and synchronous serial communication. The built-in ICD module allows real-time debugging, single-stepping, and breakpoint setting via the same two pins used for ICSP programming, reducing development costs. Three timers (TMR0 8-bit, TMR1 16-bit, TMR2 8-bit) provide timing, counting, and PWM time base functions. Power management includes Sleep mode, programmable Brown-out Reset, and Watchdog Timer with independent RC oscillator.
03PIC16F873A-I · Pin Description
Pin (PDIP-28/SOIC-28) Name Type Function
1 MCLR/VPP/RA5 I/P Master Clear / Programming Voltage / Port A I/O
2 RA0/AN0 I/O Port A I/O / ADC Channel 0
3 RA1/AN1 I/O Port A I/O / ADC Channel 1
4 RA2/AN2/VREF-/CVREF I/O Port A I/O / ADC Ch2 / Vref Neg / Comp Vref
5 RA3/AN3/VREF+ I/O Port A I/O / ADC Ch3 / Vref Positive
6 RA4/T0CKI I/O Port A I/O / Timer0 Clock Input
7 RA5/SS/AN4 I/O Port A I/O / SPI Slave Select / ADC Ch4
8 VSS P Ground Reference
9 RA7/OSC1/CLKIN I Port A I/O / Oscillator Input / Clock Input
10 RA6/OSC2/CLKOUT O Port A I/O / Oscillator Output / Clock Output
11 RC0/T1OSO/T1CKI I/O Port C I/O / T1OSO / Timer1 Clock
12 RC1/T1OSI/CCP2 I/O Port C I/O / T1OSI / CCP2
13 RC2/CCP1 I/O Port C I/O / CCP1
14 RC3/SCK/SCL I/O Port C I/O / SPI Clock / I2C Clock
15 RC4/SDI/SDA I/O Port C I/O / SPI Data In / I2C Data
16 RC5/SDO I/O Port C I/O / SPI Data Out
17 RC6/TX/CK I/O Port C I/O / USART TX/Clock
18 RC7/RX/DT I/O Port C I/O / USART RX/Data
19 VSS P Ground Reference
20 VDD P Positive Supply Voltage
21 RB0/INT I/O Port B I/O / External Interrupt
22 RB1/C12IN0- I/O Port B I/O / Comparator Negative Input 0
23 RB2/C12IN1- I/O Port B I/O / Comparator Negative Input 1
24 RB3/PGM/C2OUT I/O Port B I/O / LVP / Comparator2 Output
25 RB4/C1OUT I/O Port B I/O / Comparator1 Output
26 RB5 I/O Port B I/O
27 RB6/ICSPCLK I/O Port B I/O / ICSP Clock
28 RB7/ICSPDAT I/O Port B I/O / ICSP Data
04PIC16F873A-I · Application Scenarios
  • Industrial sensor interfaces and process control
  • Automotive sensor modules and body control
  • Smart home appliances and consumer electronics
  • DC motor speed control and LED dimming
  • Battery-powered data loggers with EEPROM storage
  • Medical instrumentation and portable devices
  • Home automation controllers and IoT endpoints
05PIC16F873A-I · Alternative Models
Manufacturer Part Number Package Notes
Microchip PIC16F876A-I 28-pin 14KB Flash, 368B RAM, same peripherals
Microchip PIC16F877A-I 40-pin 14KB Flash, 8-ch ADC, PSP, larger package
Microchip PIC16F883-I 28-pin 7KB Flash, internal osc, ECCP, enhanced
Microchip PIC16F873-I 28-pin Original non-A version, no ICD/self-program
Microchip PIC16F1827-I 18-pin Newer gen, 7KB Flash, enhanced peripherals

Request a quoteWithin 24h

Tell us the quantity you need. We confirm price and availability within one business day.

DatasheetPDF

Specifications subject to change by the manufacturer.

IC-Vendor · Sourcing

Verified stock, quoted fast.

AuthenticityOriginal parts
Lead time1 business day
ShippingDHL / FedEx / UPS

Recommended

Related parts you may need

PIC16F677-I

8-bit PIC MCU, 3.5KB Flash, 128B RAM, 256B EEPROM, 12-ch 10-bit ADC, SPI/I2C, nanoWatt

Brand: MICROCHIPPackage: 20-pin PDIP / SOIC / SSOP / QFN

IN STOCK: 6485pcs

Cargo cycle: 3~7 Days

The minimum order is 1

TMS320F2810PBKA

C2000 Delfino DSP controller, 150MHz, 128KB Flash, BGA-179

Brand: TIPackage: BGA-179 (16 x 16 mm, PBK package)

IN STOCK: 3124pcs

Cargo cycle: 3~7 Days

The minimum order is 1

AT89S51

8-bit 8051 MCU, 4KB ISP Flash, 128B RAM, 32 I/O, 2 timers, UART, watchdog timer, dual DPTR, 33MHz, ISP programming, PDIP-40, Atmel AT89S51.

Brand: Atmel (Microchip)Package: PDIP-40 / TQFP-44 / PLCC-44

IN STOCK: 15000pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC12F1840-I/SN

8-bit PIC12F MCU, 7KB Flash, 512B RAM, 8-SOIC, industrial

Brand: MICROCHIPPackage: SOIC-8 (4.9 x 3.9 mm, SN package)

IN STOCK: 6835pcs

Cargo cycle: 3~7 Days

The minimum order is 1

DSPIC33EP128MC204-I/PT

16-bit digital signal controller, 128KB Flash, 16KB RAM, TQFP-44, industrial

Brand: MICROCHIPPackage: TQFP-44 (10 x 10 mm)

IN STOCK: 13189pcs

Cargo cycle: 3~7 Days

The minimum order is 1

2N7002

N-ch MOSFET, 60V, 115mA, 7.5Ω, SOT-23-3, logic-level gate, general-purpose small-signal switch

Brand: OnsemiPackage: SOT-23-3 (TO-236, SC-59)

IN STOCK: 15000pcs

Cargo cycle: 3~7 Days

The minimum order is 1

QUALITY COMMITMENT

Quality Commitment

Every order is sourced, inspected and documented so your production line receives parts that meet specification.

Authenticity & traceability

We supply original manufacturer parts or material from authorized distribution channels. Unless a listing states otherwise, parts are new and unused — not refurbished, re-marked or pulled from used equipment. Each shipment is traceable to its purchase lot, date code and supplier record.

Incoming inspection

  • Visual inspection of labels, packaging, marking and date codes.
  • Lot and quantity verification against the purchase order.
  • Moisture-sensitivity and ESD packaging checks.
  • Electrical and functional testing, curve tracing, X-ray or decapsulation available on request.

Documentation

Commercial invoice and packing list are included with every shipment. A Certificate of Conformance (CoC) showing part number, quantity, lot/date code and inspection result is available on request. RoHS/REACH declarations and conflict-minerals statements can be supplied for compliance programs.

Warranty & returns

Parts are warranted against manufacturer defects for 12 months from shipment unless otherwise agreed in writing. Quality claims should be raised within 30 days of receipt with photos, the quantity affected and lot/date-code information. Special-order and non-cancellable/non-returnable (NCNR) items are handled case by case.

Counterfeit prevention

Suspect material is quarantined, documented and never resold. Suppliers are screened and monitored, and we support customer audits and third-party verification when required.

SHIPPING & PAYMENT

Shipping & Payment

From same-day dispatch on stock lines to consolidated production shipments, we keep logistics and payment predictable.

Lead time

In-stock lines usually ship the same or next business day. For backorder and factory-order items, lead time is confirmed in the quotation before you commit.

Carriers & tracking

We ship worldwide with DHL, FedEx, UPS and SF Express. Tracking details are sent as soon as the shipment is handed to the carrier. Customer carrier accounts can be used on request.

Freight & insurance

Freight is quoted prepaid-and-added, collect, or included depending on the agreed Incoterm (EXW, FOB, CIF or DDP). Shipment insurance is available on request; risk passes according to the agreed Incoterm.

Payment methods

  • Bank transfer (T/T) in USD, EUR or CNY.
  • PayPal for smaller or sample orders.
  • Alipay / RMB transfer for domestic settlement.

A proforma invoice is issued for every order. New customers are normally prepaid; repeat customers may apply for net terms.

Order changes & cancellation

Please confirm changes before dispatch. Once material is allocated, cut tape/reel or shipped, cancellation may not be possible. Non-standard items are subject to NCNR terms.

Customs & duties

We provide commercial invoices and origin documentation. Import duties, taxes and customs clearance are the buyer’s responsibility unless DDP terms are agreed.

SERVICE & PACKAGING

Service & Packaging

Beyond supplying the part, we support BOM sourcing, value-added processing and packaging that fits your line.

BOM sourcing & kitting

Send your BOM and we will cross-reference alternatives, consolidate lines and quote shortages. Kitting and kit-level labeling are available for production and repair centers.

Value-added services

  • Programming and firmware loading.
  • Tape-and-reel, re-reeling and tray packing.
  • Baking and dry-pack for moisture-sensitive parts.
  • Barcode, QR and custom label generation.

Packaging options

Parts are packed in ESD-safe bags, moisture-barrier bags with desiccant and humidity indicator, tape-and-reel, trays, tubes or bulk cartons. Custom labels, mixed kits and drop-ship to your contract manufacturer can be arranged.

Documentation & traceability

Each package carries the part number, quantity, lot/date code and country of origin. Packing lists and CoCs can be formatted to match your receiving process.

After-sales support

For returns, please contact us with the invoice number, part number and reason. We will issue an RMA and instructions before material is returned. Technical and order-status questions are answered within one business day.