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
Page 31
32
Page 32
33
Page 33
34
Page 34
35
Page 35
36
Page 36
37
Page 37
38
Page 38
39
Page 39
40
Page 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
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
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 39/228:

Section Special Features of the CPU

Download datasheet (5Mb)Embed
PrevNext
4.4
RC Oscillator
For timing insensitive applications, the “RC” and
“RCIO” device options offer additional cost savings.
The RC oscillator frequency is a function of the supply
voltage, the resistor (R
) and capacitor (C
EXT
ues and the operating temperature. In addition to this,
the oscillator frequency will vary from unit to unit due to
normal manufacturing variation. Furthermore, the dif-
ference in lead frame capacitance between package
types will also affect the oscillation frequency,
especially for low C
values. The user also needs to
EXT
take into account variation due to tolerance of external
R and C components used. Figure 4-4 shows how the
R/C combination is connected.
In the RC Oscillator mode, the oscillator frequency
divided by 4 is available on the OSC2 pin. This signal may
be used for test purposes or to synchronize other logic.
FIGURE 4-4:
RC OSCILLATOR MODE
V
DD
R
EXT
OSC1
C
EXT
PIC16F87/88
V
SS
OSC2/CLKO
F
/4
OSC
Recommended values: 3 k
R
EXT
C
> 20 pF
EXT
The RCIO Oscillator mode (Figure 4-5) functions like
the RC mode, except that the OSC2 pin becomes an
additional general purpose I/O pin. The I/O pin
becomes bit 6 of PORTA (RA6).
FIGURE 4-5:
RCIO OSCILLATOR MODE
V
DD
R
EXT
OSC1
C
EXT
PIC16F87/88
V
SS
I/O (OSC2)
RA6
Recommended values: 3 k
R
EXT
C
> 20 pF
EXT
 2005 Microchip Technology Inc.
4.5
Internal Oscillator Block
The PIC16F87/88 devices include an internal oscillator
block which generates two different clock signals;
either can be used as the system’s clock source. This
) val-
can eliminate the need for external oscillator circuits on
EXT
the OSC1 and/or OSC2 pins.
The main output (INTOSC) is an 8 MHz clock source
which can be used to directly drive the system clock. It
also drives the INTOSC postscaler which can provide a
range of six clock frequencies from 125 kHz to 4 MHz.
The other clock source is the internal RC oscillator
(INTRC) which provides a 31.25 kHz (32 s nominal
period) output. The INTRC oscillator is enabled by
selecting the INTRC as the system clock source or
when any of the following are enabled:
• Power-up Timer
• Watchdog Timer
• Two-Speed Start-up
• Fail-Safe Clock Monitor
These features are discussed in greater detail in
Section 15.0 “Special Features of the CPU”.
Internal
The clock source frequency (INTOSC direct, INTRC
Clock
direct or INTOSC postscaler) is selected by configuring
the IRCF bits of the OSCCON register (page 40).
Note:
Throughout this data sheet, when referring
specifically to a generic clock source, the
term “INTRC” may also be used to refer to
100 k
the clock modes using the internal oscillator
block. This is regardless of whether the
actual frequency used is INTOSC (8 MHz),
the
(31.25 kHz).
Internal
Clock
100 k
PIC16F87/88
INTOSC
postscaler
or
INTRC
DS30487C-page 37