PIC16F684-ISL

Manufacturer Part NumberPIC16F684-ISL
ManufacturerMicrochip Technology Inc.
PIC16F684-ISL datasheets
 


Specifications of PIC16F684-ISL

CaseN/ANotesNEW
Date_code11+  
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
Page 24/164

Download datasheet (3Mb)Embed
PrevNext
PIC16F684
3.3.4
EXTERNAL RC MODES
The External Resistor-Capacitor (RC) modes support
the use of an external RC circuit. This allows the
designer maximum flexibility in frequency choice while
keeping costs to a minimum when clock accuracy is not
required. There are two modes, RC and RCIO.
In RC mode, the RC circuit connects to the OSC1 pin.
The OSC2/CLKOUT pin outputs the RC oscillator
frequency divided by 4. This signal may be used to
provide a clock for external circuitry, synchronization,
calibration, test or other application requirements.
Figure 3-5 shows the RC mode connections.
FIGURE 3-5:
RC MODE
V
DD
R
EXT
OSC1
C
EXT
PIC16F684
V
SS
OSC2/CLKOUT
F
/4
OSC
Recommended values: 3 k
R
100 k
EXT
C
> 20 pF
EXT
In RCIO mode, the RC circuit is connected to the OSC1
pin. The OSC2 pin becomes an additional general
purpose I/O pin. The I/O pin becomes bit 4 of PORTA
(RA4). Figure 3-6 shows the RCIO mode connections.
FIGURE 3-6:
RCIO MODE
V
DD
R
EXT
OSC1
C
EXT
PIC16F684
V
SS
RA4
I/O (OSC2)
Recommended values: 3 k
R
100 k
EXT
C
> 20 pF
EXT
The RC oscillator frequency is a function of the supply
voltage, the resistor (R
) and capacitor (C
EXT
values and the operating temperature. Other factors
affecting the oscillator frequency are:
• threshold voltage variation
• component tolerances
• packaging variations in capacitance
The user also needs to take into account variation due
to tolerance of external RC components used.
DS41202C-page 22
3.4
Internal Clock Modes
The PIC16F684 has two independent, internal
oscillators that can be configured or selected as the
system clock source.
1.
The
HFINTOSC
Oscillator) is factory calibrated and operates at
8 MHz. The frequency of the HFINTOSC can be
user adjusted ±12% via software using the
OSCTUNE register (Register 3-1).
2.
The
LFINTOSC
Oscillator) is uncalibrated and operates at
approximately 31 kHz.
The system clock speed can be selected via software
using the Internal Oscillator Frequency Select (IRCF)
bits.
The system clock can be selected between external or
internal clock sources via the System Clock Selection
Internal
Clock
(SCS) bit (see Section 3.5 “Clock Switching”).
3.4.1
INTRC AND INTRCIO MODES
The INTRC and INTRCIO modes configure the internal
oscillators as the system clock source when the device
is programmed using the Oscillator Selection (FOSC)
bits in the Configuration Word register (Register 12-1).
In INTRC mode, the OSC1 pin is available for general
purpose I/O. The OSC2/CLKOUT pin outputs the
selected internal oscillator frequency divided by 4. The
CLKOUT signal may be used to provide a clock for
external circuitry, synchronization, calibration, test or
other application requirements.
In INTRCIO mode, the OSC1 and OSC2 pins are
available for general purpose I/O.
3.4.2
HFINTOSC
Internal
The High-Frequency Internal Oscillator (HFINTOSC) is
Clock
a factory calibrated 8 MHz internal clock source. The
frequency
of
the
approximately ±12% via software using the OSCTUNE
register (Register 3-1).
The output of the HFINTOSC connects to a postscaler
and multiplexer (see Figure 3-1). One of seven
frequencies can be selected via software using the
IRCF bits (see Section 3.4.4 “Frequency Select Bits
(IRCF)”).
)
EXT
The HFINTOSC is enabled by selecting any frequency
between 8 MHz and 125 kHz (IRCF
system clock source (SCS = 1), or when Two-Speed
Start-up is enabled (IESO = 1 and IRCF
The HF Internal Oscillator (HTS) bit (OSCCON<2>)
indicates whether the HFINTOSC is stable or not.
Preliminary
(High-Frequency
Internal
(Low-Frequency
Internal
HFINTOSC
can
be
altered
000) as the
000).
 2004 Microchip Technology Inc.