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
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
Page 61
62
Page 62
63
Page 63
64
Page 64
65
Page 65
66
Page 66
67
Page 67
68
Page 68
69
Page 69
70
Page 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 65/164

Download datasheet (3Mb)Embed
PrevNext
9.0
ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
The Analog-to-Digital converter (A/D) allows conver-
sion of an analog input signal to a 10-bit binary repre-
sentation of that signal. The PIC16F684 has eight
analog inputs, multiplexed into one sample and hold
FIGURE 9-1:
A/D BLOCK DIAGRAM
RA0/AN0
RA1/AN1/V
REF
RA2/AN2
RA4/AN3
RC0/AN4
RC1/AN5
RC2/AN6
RC3/AN7
CHS<2:0>
9.1
A/D Configuration and Operation
There are three registers available to control the
functionality of the A/D module:
1.
ANSEL (Register 9-1)
2.
ADCON0 (Register 9-2)
3.
ADCON1 (Register 9-3)
9.1.1
ANALOG PORT PINS
The ANS<7:0> bits (ANSEL<7:0>) and the TRIS bits
control the operation of the A/D port pins. Set the
corresponding TRIS bits to set the pin output driver to
its high-impedance state. Likewise, set the correspond-
ing ANSEL bit to disable the digital input buffer.
Note:
Analog voltages on any pin that is defined
as a digital input may cause the input
buffer to conduct excess current.
9.1.2
CHANNEL SELECTION
There are eight analog channels on the PIC16F684,
AN0
through
AN7.
The
CHS<2:0>
(ADCON0<4:2>) control which channel is connected to
the sample and hold circuit.
 2004 Microchip Technology Inc.
circuit. The output of the sample and hold is connected
to the input of the converter. The converter generates a
binary result via successive approximation and stores
the result in a 10-bit register. The voltage reference
used in the conversion is software selectable to either
V
or a voltage applied by the V
DD
shows the block diagram of the A/D on the PIC16F684.
V
DD
VCFG = 0
V
REF
VCFG = 1
A/D
GO/DONE
ADFM
ADON
V
SS
9.1.3
VOLTAGE REFERENCE
There are two options for the voltage reference to the
A/D converter: either V
applied to V
REF
controls the voltage reference selection. If VCFG is set,
then the voltage on the V
otherwise, V
DD
bits
Preliminary
PIC16F684
pin. Figure 9-1
REF
10
10
ADRESH ADRESL
is used, or an analog voltage
DD
is used. The VCFG bit (ADCON0<6>)
pin is the reference;
REF
is the reference.
DS41202C-page 63