English
Language : 

PIC16F87 Datasheet, PDF (3/214 Pages) Microchip Technology – 18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
PIC16F87/88
18/20/28-Pin Enhanced FLASH MCUs with nanoWatt Technology
Low-Power Features:
• Power Managed modes:
- Primary RUN: RC oscillator, 76 µA, 1 MHz, 2V
- RC_RUN: 7 µA, 31.25 kHz, 2V
- SEC_RUN: 9 µA, 32 kHz, 2V
- SLEEP: 0.1 µA, 2V
• Timer1 Oscillator: 1.8 µA, 32 kHz, 2V
• Watchdog Timer: 2.2 µA, 2V
• Two-Speed Oscillator Start-up
Oscillators:
• Three Crystal modes:
- LP, XT, HS: up to 20 MHz
• Two External RC modes
• One External Clock mode:
- ECIO: up to 20 MHz
• Internal oscillator block:
- 8 user selectable frequencies: 31 kHz,
125 kHz, 250 kHz, 500 kHz, 1 MHz, 2 MHz,
4 MHz, 8 MHz
Peripheral Features:
• Capture, Compare, PWM (CCP) module:
- 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
• 10-bit, 7-channel Analog-to-Digital Converter
• Synchronous Serial Port (SSP) with SPI™
(Master/Slave) and I2C™ (Slave)
• Addressable Universal Synchronous
Asynchronous Receiver Transmitter
(USART/SCI) with 9-bit address detection:
- RS-232 operation using internal oscillator
(no external crystal required)
• Dual Analog Comparator module:
- Programmable on-chip voltage reference
- Programmable input multiplexing from device
inputs and internal voltage reference
- Comparator outputs are externally accessible
Pin Diagram
18-Pin DIP, SOIC
RA2/AN2/CVREF/
VREF-
RA3/AN3/VREF+/
C1OUT
RA4/AN4/T0CKI/
C2OUT
RA5/MCLR/VPP
VSS
RB0/INT/CCP1(1)
RB1/SDI/SDA
RB2/SDO/RX/DT
RB3/PGM/CCP1(1)
1
18
2
17
3
16
4
15
5
14
6
13
7
12
8
11
9
10
RA1/AN1
RA0/AN0
RA7/OSC1/CLKI
RA6/OSC2/CLKO
VDD
RB7/AN6/PGD/
T1OSI
RB6/AN5/PGC/
T1OSO/T1CKI
RB5/SS/TX/CK
RB4/SCK/SCL
Note 1: The CCP1 pin is determined by CCPMX in
Configuration Word 1 register.
Special Microcontroller Features:
• 100,000 erase/write cycles Enhanced FLASH
program memory typical
• 1,000,000 typical erase/write cycles EEPROM
data memory typical
• EEPROM Data Retention: > 40 years
• In-Circuit Serial Programming™ (ICSP™) -
via two pins
• Processor read/write access to program memory
• Low-Voltage Programming
• In-Circuit Debugging via two pins
• Extended Watchdog Timer (WDT):
- Programmable period from 1 ms to 268s
• Wide operating voltage range: 2.0V to 5.5V
Device
PIC16F87
PIC16F88
Program Memory
FLASH # Single Word
(bytes) Instructions
Data Memory
I/O
SRAM EEPROM Pins
(bytes) (bytes)
10-bit CCP
A/D (ch) (PWM)
USART
Comparators
7168
4096
368
256
16
n/a
1
Y
2
7168
4096
368
256
16
1
1
Y
2
SSP
Y
Y
Timers
8/16-bit
2/1
2/1
 2003 Microchip Technology Inc.
Preliminary
DS30487B-page 1