PIC16F88

Manufacturer Part NumberPIC16F88
ManufacturerMicrochip Technology Inc.
PIC16F88 datasheet
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Page 141
142
Page 142
143
Page 143
144
Page 144
145
Page 145
146
Page 146
147
Page 147
148
Page 148
149
Page 149
150
Page 150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
Page 149/228:

In-Circuit Debugger

Download datasheet (5Mb)Embed
PrevNext
15.14 In-Circuit Debugger
When the DEBUG bit in the Configuration Word is
programmed to a ‘0’, the In-Circuit Debugger function-
ality is enabled. This function allows simple debugging
®
functions when used with MPLAB
microcontroller has this feature enabled, some of the
resources are not available for general use. Table 15-7
shows which features are consumed by the background
debugger.
TABLE 15-7:
DEBUGGER RESOURCES
I/O pins
RB6, RB7
Stack
1 level
Program Memory
Address 0000h must be NOP
Last 100h words
Data Memory
0x070 (0x0F0, 0x170, 0x1F0)
0x1EB-0x1EF
To use the In-Circuit Debugger function of the micro-
controller, the design must implement In-Circuit Serial
Programming connections to RA5/MCLR/V
GND, RB7 and RB6. This will interface to the In-Circuit
Debugger module available from Microchip, or one of
the third party development tool companies.
15.15 Program Verification/Code
Protection
If
the
code
protection
bit(s)
have
programmed, the on-chip program memory can be
read out for verification purposes.
15.16 ID Locations
Four memory locations (2000h-2003h) are designated
as ID locations, where the user can store checksum or
other code identification numbers. These locations are
not accessible during normal execution but are
readable and writable during program/verify. It is
recommended that only the four Least Significant bits
of the ID location are used.
15.17 In-Circuit Serial Programming
PIC16F87/88 microcontrollers can be serially pro-
grammed while in the end application circuit. This is
simply done with two lines for clock and data and three
other lines for power, ground and the programming
voltage (see Figure 15-13 for an example). This allows
customers to manufacture boards with unprogrammed
devices and then program the microcontroller just
before shipping the product. This also allows the most
recent firmware or a custom firmware to be
programmed.
 2005 Microchip Technology Inc.
For more information on serial programming, please
refer to the “PIC16F87/88 Flash Memory Programming
Specification” (DS39607).
Note:
The Timer1 oscillator shares the T1OSI
and T1OSO pins with the PGD and PGC
ICD. When the
pins
debugging.
When using the Timer1 oscillator, In-
Circuit Serial Programming™ (ICSP™)
may not function correctly (high voltage or
low voltage), or the In-Circuit Debugger
(ICD) may not communicate with the
controller. As a result of using either ICSP
or ICD, the Timer1 crystal may be
damaged.
If ICSP or ICD operations are required, the
crystal should be disconnected from the
circuit (disconnect either lead), or installed
after programming. The oscillator loading
capacitors may remain in-circuit during
ICSP or ICD operation.
, V
,
PP
DD
FIGURE 15-13:
External
not
been
Connector
Signals
+5V
0V
V
PP
CLK
Data I/O
RB3/PGM
* Isolation devices (as required).
RB3 only used in LVP mode.
PIC16F87/88
used
for
programming
and
TYPICAL IN-CIRCUIT
SERIAL PROGRAMMING
CONNECTION
To Normal
Connections
*
PIC16F87/88
V
DD
V
SS
RA5/MCLR/V
PP
RB6
RB7
RB3
*
*
*
V
DD
To Normal
Connections
DS30487C-page 147