270 / 342 page

Analog Comparators
270
October 6, 2006
Preliminary
13.2.1
Internal Reference Programming
The structure of the internal reference is shown in Figure 13-3. This is controlled by a single
configuration register (ACREFCTL). Table 13-4 shows the programming options to develop
specific internal reference values, to compare an external voltage against a particular voltage
generated internally.
Figure 13-3.
Comparator Internal Reference Structure
Table 13-2.
Comparator 1 Operating Modes
ACCNTL1
Comparator 1
ASRCP
VIN-
VIN+
Output
Interrupt
00
C1-
C1o/C1+a
C1o/C1+
yes
01
C1-
C0+
C1o/C1+
yes
10
C1-
Vref
C1o/C1+
yes
11
C1-
reserved
C1o/C1+
yes
a.
C1o and C1+ signals share a single pin and may only be used as one or the other.
Table 13-3.
Comparator 2 Operating Modes
ACCNTL2
Comparator 2
ASRCP
VIN-
VIN+
Output
Interrupt
00
C2-
C2o/C2+a
C2o/C2+
yes
01
C2-
C0+
C2o/C2+
yes
10
C2-
Vref
C2o/C2+
yes
11
C2-
reserved
C2o/C2+
yes
a.
C2o and C2+ signals share a single pin and may only be used as one or the other.
Table 13-4.
Internal Reference Voltage and ACREFCTL Field Values
ACREFCTL Register
Output Reference Voltage Based on VREF Field Value
EN Bit Value
RNG Bit Value
EN=0
RNG=X
0 V (GND) for any value of VREF; however, it is recommended that
RNG=1 and VREF=0 for the least noisy ground reference.
8R
R
R
8R
R
R
•••
•••
0
Decoder
1
15
14
AVDD
EN
internal
reference
VREF
RNG