PIC16F688

Manufacturer Part NumberPIC16F688
ManufacturerMicrochip Technology Inc.
PIC16F688 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
Page 121
122
Page 122
123
Page 123
124
Page 124
125
Page 125
126
Page 126
127
Page 127
128
Page 128
129
Page 129
130
Page 130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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
Page 129/202:

TYPICAL IN-CIRCUIT

Download datasheet (4Mb)Embed
PrevNext
11.9
In-Circuit Serial Programming
This allows customers to manufacture boards with
unprogrammed devices and then program the micro-
controller just before shipping the product. This also
allows the most recent firmware or a custom firmware
to be programmed.
The device is placed into a Program/Verify mode by
holding the RA0 and RA1 pins low, while raising the
MCLR (V
) pin from V
to V
PP
IL
“PIC12F6XX/16F6XX
Memory
Specification” (DS41204) for more information. RA0
becomes the programming data and RA1 becomes the
programming clock. Both RA0 and RA1 are Schmitt
Trigger inputs in Program/Verify mode.
A typical In-Circuit Serial Programming connection is
shown in Figure 11-11.
FIGURE 11-11:

TYPICAL IN-CIRCUIT

SERIAL PROGRAMMING
CONNECTION
To Normal
Connections
External
Connector
*
Signals
+5V
V
DD
V
0V
SS
V
MCLR/V
PP
RA1
CLK
Data I/O
RA0
*
*
*
To Normal
Connections
* Isolation devices (as required)
© 2007 Microchip Technology Inc.
11.10 In-Circuit Debugger
Since in-circuit debugging requires access to the data
and MCLR pins, MPLAB
14-pin device is not practical. A special 20-pin
PIC16F688 ICD device is used with MPLAB ICD 2 to
provide separate clock, data and MCLR pins and frees
all normally available pins to the user.
A special debugging adapter allows the ICD device to
. See the
be used in place of a PIC16F688 device. The
IHH
Programming
debugging adapter is the only source of the ICD device.
When the ICD pin on the PIC16F688 ICD device is held
low, the In-Circuit Debugger functionality is enabled.
This function allows simple debugging functions when
used with MPLAB ICD 2. When the microcontroller has
this feature enabled, some of the resources are not
available for general use. Table 11-9 shows which
features are consumed by the background debugger:
TABLE 11-9:
Resource
I/O pins
Stack
Program Memory
PIC16F688
For more information, see “MPLAB® ICD 2 In-Circuit
Debugger User’s Guide” (DS51331), available on
Microchip’s web site (www.microchip.com).
/RA3
PP
FIGURE 11-12:
20-Pin PDIP
ICDMCLR/V
PIC16F688
®
ICD 2 development with an
DEBUGGER RESOURCES
Description
ICDCLK, ICDDATA
1 level
Address 0h must be NOP
700h-7FFh
20-PIN ICD PINOUT
In-Circuit Debug Device
NC
1
20
ICDCLK
ICDDATA
2
PP
19
V
3
Vss
DD
18
RA0
RA5
4
17
RA1
RA4
5
16
RA2
6
RA3
15
RC5
7
RC0
14
RC4
RC1
8
13
RC2
RC3
9
12
NC
ICD
10
11
DS41203D-page 127