PIC16F87XA
28/40/44-Pin Enhanced Flash Microcontrollers
Devices Included in this Data Sheet:
Analog Features:
• 10-bit, up to 8-channel Analog-to-Digital
Converter (A/D)
• PIC16F873A
• PIC16F874A
• PIC16F876A
• PIC16F877A
• Brown-out Reset (BOR)
• Analog Comparator module with:
- Two analog comparators
High-Performance RISC CPU:
• Only 35 single-word instructions to learn
- Programmable on-chip voltage reference
(VREF) module
• All single-cycle instructions except for program
branches, which are two-cycle
- Programmable input multiplexing from device
inputs and internal voltage reference
• Operating speed: DC – 20 MHz clock input
DC – 200 ns instruction cycle
- Comparator outputs are externally accessible
• Up to 8K x 14 words of Flash Program Memory,
Up to 368 x 8 bytes of Data Memory (RAM),
Up to 256 x 8 bytes of EEPROM Data Memory
Special Microcontroller Features:
• 100,000 erase/write cycle Enhanced Flash
program memory typical
• Pinout compatible to other 28-pin or 40/44-pin
PIC16CXXX and PIC16FXXX microcontrollers
• 1,000,000 erase/write cycle Data EEPROM
memory typical
Peripheral Features:
• Data EEPROM Retention > 40 years
• Timer0: 8-bit timer/counter with 8-bit prescaler
• Self-reprogrammable under software control
• Timer1: 16-bit timer/counter with prescaler,
can be incremented during Sleep via external
crystal/clock
• In-Circuit Serial Programming™ (ICSP™)
via two pins
• Single-supply 5V In-Circuit Serial Programming
• Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Two Capture, Compare, PWM modules
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit
• Programmable code protection
• Power saving Sleep mode
• Selectable oscillator options
• In-Circuit Debug (ICD) via two pins
• Synchronous Serial Port (SSP) with SPI
(Master mode) and I2C™(Master/Slave)
CMOS Technology:
• Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI) with 9-bit address
detection
• Low-power, high-speed Flash/EEPROM
technology
• Parallel Slave Port (PSP) – 8 bits wide with
external RD, WR and CS controls (40/44-pin only)
• Fully static design
• Wide operating voltage range (2.0V to 5.5V)
• Commercial and Industrial temperature ranges
• Low-power consumption
• Brown-out detection circuitry for
Brown-out Reset (BOR)
Program Memory
Data
MSSP
EEPROM
(Bytes)
10-bit
A/D (ch) (PWM)
CCP
Timers
8/16-bit
Device
SRAM
I/O
USART
Comparators
# Single Word
Instructions
Master
Bytes
SPI
(Bytes)
2
I C
PIC16F873A 7.2K
PIC16F874A 7.2K
PIC16F876A 14.3K
PIC16F877A 14.3K
4096
4096
8192
8192
192
192
368
368
128
128
256
256
22
33
22
33
5
8
5
8
2
2
2
2
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
2/1
2/1
2/1
2/1
2
2
2
2
2001-2013 Microchip Technology Inc.
DS39582C-page 1