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
Page 21
22
Page 22
23
Page 23
24
Page 24
25
Page 25
26
Page 26
27
Page 27
28
Page 28
29
Page 29
30
Page 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
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 23/202

Download datasheet (4Mb)Embed
PrevNext
3.0
OSCILLATOR MODULE (WITH
FAIL-SAFE CLOCK MONITOR)
3.1
Overview
The Oscillator module has a wide variety of clock
sources and selection features that allow it to be used
in a wide range of applications while maximizing perfor-
mance and minimizing power consumption. Figure 3-1
illustrates a block diagram of the Oscillator module.
Clock sources can be configured from external
oscillators, quartz crystal resonators, ceramic resonators
and Resistor-Capacitor (RC) circuits. In addition, the
system clock source can be configured from one of two
internal oscillators, with a choice of speeds selectable via
software. Additional clock features include:
• Selectable system clock source between external
or internal via software.
• Two-Speed Start-Up mode, which minimizes
latency between external oscillator start-up and
code execution.
• Fail-Safe Clock Monitor (FSCM) designed to
detect a failure of the external clock source (LP,
XT, HS, EC or RC modes) and switch
automatically to the internal oscillator.
®
FIGURE 3-1:
PIC
MCU CLOCK SOURCE BLOCK DIAGRAM
External Oscillator
OSC2
Sleep
OSC1
Internal Oscillator
HFINTOSC
8 MHz
LFINTOSC
31 kHz
© 2007 Microchip Technology Inc.
The Oscillator module can be configured in one of eight
clock modes.
1.
EC – External clock with I/O on OSC2/CLKOUT.
2.
LP – 32 kHz Low-Power Crystal mode.
3.
XT – Medium Gain Crystal or Ceramic
Resonator Oscillator mode.
4.
HS – High Gain Crystal or Ceramic Resonator
mode.
5.
RC – External Resistor-Capacitor (RC) with
F
/4 output on OSC2/CLKOUT.
OSC
6.
RCIO – External Resistor-Capacitor (RC) with
I/O on OSC2/CLKOUT.
7.
INTOSC – Internal oscillator with F
on OSC2 and I/O on OSC1/CLKIN.
8.
INTOSCIO – Internal oscillator with I/O on
OSC1/CLKIN and OSC2/CLKOUT.
Clock Source modes are configured by the FOSC<2:0>
bits in the Configuration Word register (CONFIG). The
internal clock can be generated from two internal
oscillators. The HFINTOSC is a calibrated high-
frequency oscillator. The LFINTOSC is an uncalibrated
low-frequency oscillator.
(Configuration Word Register)
(OSCCON Register)
LP, XT, HS, RC, RCIO, EC
IRCF<2:0>
(OSCCON Register)
8 MHz
111
INTOSC
4 MHz
110
2 MHz
101
1 MHz
100
500 kHz
011
250 kHz
010
125 kHz
001
31 kHz
000
Power-up Timer (PWRT)
Watchdog Timer (WDT)
Fail-Safe Clock Monitor (FSCM)
PIC16F688
/4 output
OSC
FOSC<2:0>
SCS<0>
System Clock
(CPU and Peripherals)
DS41203D-page 21