herunterladen
2010 Microchip Technology Inc. DS39607C-page 1
PIC16F87/88
1.0 DEVICE OVERVIEW
This document includes programming specifications
for the following devices:
•PIC16F87
•PIC16F88
2.0 PROGRAMMING THE
PIC16F87/88
The PIC16F87/88 is programmed using a serial
method. The Serial mode will allow the PIC16F87/88 to
be programmed while in the user’s system, which
allows for increased design flexibility. This
programming specification applies to PIC16F87/88
devices in all packages.
2.1 Programming Algorithm
Requirements
The programming algorithm used depends on the
operating voltage (V
DD) of the PIC16F87/88 device.
Both algorithms can be used with the two available
programming entry methods. The first method, called
Low-Voltage ICSP
TM
(LVP for short), applies VDD to
MCLR
and uses the I/O pin RB3 to enter Programming
mode. When RB3 is driven to V
DD from ground, the
PIC16F87/88 device enters Programming mode. The
second method follows the normal Microchip
Programming mode entry of holding pins RB6 and RB7
low, while raising the MCLR pin from VIL to VIHH
(13V ± 0.5V).
2.2 Programming Mode
The Programming mode for the PIC16F87/88 allows
programming of user program memory, data memory,
special locations used for ID, and the Configuration
Words.
FIGURE 2-1: PIC16F87 18-PIN DIP, SOIC
Algorithm # VDD Range
12.0V V
DD <5.5V
24.5V VDD 5.5V
RA1/AN1
RA0/AN0
RA7/OSC1/CLKI
RA6/OSC2/CLKO
V
DD
RB7/PGD/T1OSI
RB6/PGC/T1OSO/T1CKI
RB5/SS
/TX/CK
RB4/SCK/SCL
RA2/AN2/CVREF
RA3/AN3/C1OUT
RA4/T0CKI/C2OUT
RA5/MCLR
/VPP
VSS
RB0/INT/CCP1
(1)
RB1/SDI/SDA
RB2/SDO/RX/DT
RB3/PGM/CCP1
(1)
1
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
PIC16F87
Note 1: Location of CCP1 function is determined by CCPMX.
Flash Memory Programming Specification
Verzeichnis