PIC16F87X
28/40-Pin 8-Bit CMOS FLASH Microcontrollers
Devices Included in this Data Sheet:
Pin Diagram
PDIP
• PIC16F873
• PIC16F874
• PIC16F876
• PIC16F877
MCLR/VPP
RA0/AN0
1
40
39
38
37
36
35
34
33
32
31
30
29
28
RB7/PGD
RB6/PGC
2
Microcontroller Core Features:
RA1/AN1
RA2/AN2/VREF-
3
RB5
4
RB4
• High performance RISC CPU
RA3/AN3/VREF+
RA4/T0CKI
RB3/PGM
RB2
5
6
• Only 35 single word instructions to learn
RA5/AN4/SS
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
VDD
7
RB1
• All single cycle instructions except for program
branches which are two cycle
8
RB0/INT
VDD
9
10
11
12
13
14
15
16
17
18
19
20
VSS
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
RD7/PSP7
RD6/PSP6
RD5/PSP5
VSS
• 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
OSC1/CLKIN
OSC2/CLKOUT
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
27
26
25
24
23
22
21
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
• Pinout compatible to the PIC16C73B/74B/76/77
• Interrupt capability (up to 14 sources)
• Eight level deep hardware stack
RC3/SCK/SCL
RD0/PSP0
RC4/SDI/SDA
RD3/PSP3
RD1/PSP1
RD2/PSP2
• Direct, indirect and relative addressing modes
• Power-on Reset (POR)
• Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST)
Peripheral Features:
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Timer0: 8-bit timer/counter with 8-bit prescaler
• Timer1: 16-bit timer/counter with prescaler,
can be incremented during SLEEP via external
crystal/clock
• Programmable code protection
• Power saving SLEEP mode
• Selectable oscillator options
• Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
• Low power, high speed CMOS FLASH/EEPROM
technology
• 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
• Fully static design
• In-Circuit Serial Programming(ICSP)via two
pins
• Single 5V In-Circuit Serial Programming capability
• In-Circuit Debugging via two pins
• 10-bit multi-channel Analog-to-Digital converter
• Synchronous Serial Port (SSP) with SPI (Master
mode) and I2C(Master/Slave)
• Processor read/write access to program memory
• Wide operating voltage range: 2.0V to 5.5V
• High Sink/Source Current: 25 mA
• Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI) with 9-bit address
detection
• Commercial, Industrial and Extended temperature
ranges
• Parallel Slave Port (PSP) 8-bits wide, with
external RD, WR and CS controls (40/44-pin only)
• Low-power consumption:
• Brown-out detection circuitry for
Brown-out Reset (BOR)
- < 0.6 mA typical @ 3V, 4 MHz
- 20 A typical @ 3V, 32 kHz
- < 1 A typical standby current
1998-2013 Microchip Technology Inc.
DS30292D-page 1