English
Language : 

PIC16F87X_02 Datasheet, PDF (1/22 Pages) Microchip Technology – EEPROM Memory Programming Specification
M
PIC16F87X
EEPROM Memory Programming Specification
This document includes the programming
specifications for the following devices:
• PIC16F870
• PIC16F871
• PIC16F872
• PIC16F873
• PIC16F874
• PIC16F876
• PIC16F877
1.0 PROGRAMMING THE
PIC16F87X
The PIC16F87X is programmed using a serial method.
The Serial mode will allow the PIC16F87X to be pro-
grammed while in the user’s system. This allows for
increased design flexibility. This programming specifi-
cation applies to PIC16F87X devices in all packages.
1.1 Programming Algorithm
Requirements
The programming algorithm used depends on the
operating voltage (VDD) of the PIC16F87X device.
Algorithm 1 is designed for a VDD range of
2.2V ≤ VDD < 5.5V. Algorithm 2 is for a range of
4.5V ≤ VDD ≤ 5.5V. Either algorithm can be used with
the two available programming entry methods. The first
method follows the normal Microchip Programming
mode entry of applying a VPP voltage of 13V ± .5V. The
second method, called Low Voltage ICSPTM or LVP for
short, applies VDD to MCLR and uses the I/O pin RB3
to enter Programming mode. When RB3 is driven to
VDD from ground, the PIC16F87X device enters
Programming mode.
1.2 Programming Mode
The Programming mode for the PIC16F87X allows pro-
gramming of user program memory, data memory, spe-
cial locations used for ID, and the configuration word.
Pin Diagram
PDIP, SOIC
MCLR/VPP
1
RA0/AN0
2
RA1/AN1
3
RA2/AN2/VREF
4
RA3/AN3/VREF
5
RA4/T0CKI
6
RA5/AN4/SS
7
VSS
8
OSC1/CLKIN
9
OSC2/CLKOUT
10
RC0/T1OSO/T1CKI
11
RC1/T1OSI/CCP2
12
RC2/CCP1
13
RC3/SCK/SCL
14
MCLR/VPP
1
RA0/AN0
2
RA1/AN1
3
RA2/AN2/VREF
4
RA3/AN3/VREF
5
RA4/T0CKI
6
RA5/AN4/SS
7
RE0/RD/AN5
8
RE1/WR/AN6
9
RE2/CS/AN7
10
VDD
11
VSS
12
OSC1/CLKIN
13
OSC2/CLKOUT
14
RC0/T1OSO/T1CKI
15
RC1/T1OSI/CCP2
16
RC2/CCP1
17
RC3/SCK/SCL
18
RD0/PSP0
19
RD1/PSP1
20
28
RB7
27
RB6
26
RB5
25
RB4
24
RB3
23
RB2
22
RB1
21
RB0/INT
20
VDD
19
VSS
18
RC7/RX/DT
17
RC6/TX/CK
16
RC5/SDO
15
RC4/SDI/SDA
40
RB7
39
RB6
38
RB5
37
RB4
36
RB3
35
RB2
34
RB1
33
RB0/INT
32
VDD
31
VSS
30
RD7/PSP7
29
RD6/PSP6
28
RD5/PSP5
27
RD4/PSP4
26
RC7/RX/DT
25
RC6/TX/CK
24
RC5/SDO
23
RC4/SDI/SDA
22
RD3/PSP3
21
RD2/PSP2
 2002 Microchip Technology Inc.
DS39025F-page 1