English
Language : 

LM3S8971 Datasheet, PDF (459/577 Pages) List of Unclassifed Manufacturers – Microcontroller
LM3S8971 Microcontroller
3. Configure the internal voltage reference to 1.65 V by writing the ACREFCTL register with the
value 0x0000.030C.
4. Configure comparator 0 to use the internal voltage reference and to not invert the output on the
C0o pin by writing the ACCTL0 register with the value of 0x0000.040C.
5. Delay for some time.
6. Read the comparator output value by reading the ACSTAT0 register’s OVAL value.
Change the level of the signal input on C0- to see the OVAL value change.
17.4
Register Map
Table 17-3 on page 459 lists the comparator registers. The offset listed is a hexadecimal increment
to the register’s address, relative to the Analog Comparator base address of 0x4003.C000.
Table 17-3. Analog Comparators Register Map
Offset Name
Type
Reset
Description
0x00
0x04
0x08
0x10
0x20
0x24
ACMIS
ACRIS
ACINTEN
ACREFCTL
ACSTAT0
ACCTL0
R/W1C
RO
R/W
R/W
RO
R/W
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
Analog Comparator Masked Interrupt Status
Analog Comparator Raw Interrupt Status
Analog Comparator Interrupt Enable
Analog Comparator Reference Voltage Control
Analog Comparator Status 0
Analog Comparator Control 0
See
page
460
461
462
463
464
465
17.5
Register Descriptions
The remainder of this section lists and describes the Analog Comparator registers, in numerical
order by address offset.
October 01, 2007
459
Preliminary