English
Language : 

LM3S6G11 Datasheet, PDF (720/827 Pages) Texas Instruments – Stellaris® LM3S6G11 Microcontroller
OBSOLETE: TI has discontinued production of this device.
Analog Comparators
In the high-range mode, the VIREF threshold voltages start at the ideal high-range starting voltage
of VDDA/3.875 and increase in ideal constant voltage steps of VDDA/31.
In the low-range mode, the VIREF threshold voltages start at:0V and increase in ideal constant voltage
steps of VDDA/23. The ideal VIREF step voltages for each mode and their dependence on the RNG
and VREF fields are summarized in Table 16-3 on page 720.
Table 16-3. Internal Reference Voltage and ACREFCTL Field Values
ACREFCTL Register
EN Bit
Value
RNG Bit Value Output Reference Voltage Based on VREF Field Value
EN=0
RNG=X
0 V (GND) for any value of VREF. It is recommended that RNG=1 and VREF=0 to minimize noise
on the reference ground.
RNG=0 Total resistance in ladder is 31 R.
VIREF = VDDA × RVREF
EN=1
RNG=1
TTohteVVVVVVVVVVVVVVVVVVVVVVVVVVValrIIIIIIIIIIIIIIIIIIIIIIIIIIIarRRRRRRRRRRRRRRRRRRRRRRRRRRRenEEEEEEEEEEEEsEEEEEEEEEEEEEEEgiFFFFFFFFFFFFFFFFFFFFFFFFFFFsetaonf===========================cineteVVVVVVVVVVVVVVVVVVVVVV000000000inrnDDDDDDDDDDDDDDDDDDDDDD.........laaDDDDDDDDDDDDDDDDDDDDDD888888111ldAAAAAAAAAAAAAAAAAAAAAArd444555555eef××××××××××××××××××××××e333r r++++++iseVVVVVRRRRRRRRRRR((((((×××n2VVVVVVc000000RRRRR3VVVVVVVVVVVRRRRRRRRRR2222eRRRRRRVVVRRRRRRRRRRR......REEEEETTTTTTTTTTTT3333iEEEEEEEEEEEEEEEEEnRRR.111111FFFFFFFFFFFFFFFF333333FFFFFFtEEEh000000111111iFFFs666666++++++mo××××××888888deVVVVVV))))))isRRRRRR0EEEEEE.8FFFFFF5-2.448 V.
VIREF = V0D.D1A4×3 V×R2VE3RFEF
VIREF = 0.143 ×2V3REF
VIREF = 0.143 × VREF
16.4
The range of internal reference for this mode is 0-2.152 V.
Initialization and Configuration
The following example shows how to configure an analog comparator to read back its output value
from an internal register.
1. Enable the analog comparator clock by writing a value of 0x0010.0000 to the RCGC1 register
in the System Control module (see page 239).
720
July 24, 2012
Texas Instruments-Production Data