LM3S102-IRN20 Luminary Micro, Inc., LM3S102-IRN20 Datasheet - Page 298
![no-image](/images/no-image-200.jpg)
LM3S102-IRN20
Manufacturer Part Number
LM3S102-IRN20
Description
Microcontroller
Manufacturer
Luminary Micro, Inc.
Datasheet
1.LM3S102-IRN20.pdf
(335 pages)
- Current page: 298 of 335
- Download datasheet (2Mb)
Analog Comparator
14.3
298
Figure 14-3. Comparator Internal Reference Structure
Table 14-2. Internal Reference Voltage and ACREFCTL Field Values
Initialization and Configuration
The following example shows how to configure analog comparator to read back its output value
from an internal register.
1.
2.
3.
4.
EN Bit Value
Enable the analog comparator 0 clock by writing a value of 0x00100000 to the RCGC1 register
in the System Control module.
In the GPIO module, enable the GPIO port/pin associated with C0- as a GPIO input.
Configure the internal voltage reference to 1.65 V by writing the ACREFCTL register with the
value 0x0000030C.
Configure comparator 0 to use the internal voltage reference and to not output a value on the
C0O pin by writing the ACCTL0 register with the value of 0x0000040C.
EN=0
EN=1
ACREFCTL Register
VREF
RNG
EN
RNG Bit Value
RNG=X
RNG=0
RNG=1
AVDD
8R
Preliminary
0 V (GND) for any value of VREF; however, it is recommended that
RNG=1 and VREF=0 for the least noisy ground reference.
Total resistance in ladder is 32 R.
The range of internal reference in this mode is 0.825–2.37 V.
Total resistance in ladder is 24 R.
The range of internal reference for this mode is 0.0–2.0625 V.
R
Output Reference Voltage Based on VREF Field Value
15
R
14
•••
Decoder
•••
V
V
R
REF
REF
V
V
V
V
REF
REF
REF
REF
=
1
=
R
=
0.825
AV
=
=
=
AV
AV
AV
0.1375 VREF
DD
0
DD
+
DD
DD
0.103 VREF
8R
-----------------------------
VREF
------------------- -
R
--------------- -
R
--------------- -
VREF
VREF
VREF
R
R
32
24
T
T
+
8
internal
reference
October 6, 2006
Related parts for LM3S102-IRN20
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![LM3S102-IRN20(T)](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S101](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S101-CRN20-XNPT](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S1150-IQC50-A1](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S1150-IQC50](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S1911-IRN20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S2110-IQN20-A0](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S2965-IQC20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S316](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S315](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S316-IQN25](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S317-IQN20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S328](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S328-IRN20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S328-IQN25(T)](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet: