Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
БЭМЗ полищук доки / Склад / Datasheet_LM3S6965.pdf
Скачиваний:
10
Добавлен:
21.12.2020
Размер:
6.13 Mб
Скачать

Analog Comparators

Register 5: Analog Comparator Status 0 (ACSTAT0), offset 0x020

Register 6: Analog Comparator Status 1 (ACSTAT1), offset 0x040

These registers specify the current output value of the comparator.

Analog Comparator Status 0 (ACSTAT0)

Base 0x4003.C000

Offset 0x020

Type RO, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

OVAL

reserved

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:2

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

1

OVAL

RO

0

Comparator Output Value

 

 

 

 

The OVAL bit specifies the current output value of the comparator.

0

reserved

RO

0

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

482

November 16, 2008

Preliminary

LM3S6965 Microcontroller

Register 7: Analog Comparator Control 0 (ACCTL0), offset 0x024

Register 8: Analog Comparator Control 1 (ACCTL1), offset 0x044

These registers configure the comparator’s input and output.

Analog Comparator Control 0 (ACCTL0)

Base 0x4003.C000

Offset 0x024

Type R/W, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

reserved

 

TOEN

ASRCP

reserved

TSLVAL

 

TSEN

ISLVAL

 

ISEN

CINV

reserved

Type

RO

RO

RO

RO

R/W

R/W

R/W

RO

R/W

R/W

R/W

R/W

R/W

R/W

R/W

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:12

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

11

TOEN

R/W

0

Trigger Output Enable

 

 

 

 

The TOEN bit enables the ADC event transmission to the ADC. If 0, the

 

 

 

 

event is suppressed and not sent to the ADC. If 1, the event is

 

 

 

 

transmitted to the ADC.

10:9

ASRCP

R/W

0x00

Analog Source Positive

 

 

 

 

The ASRCP fieldspecifiesthesourceofinputvoltagetotheVIN+terminal

 

 

 

 

of the comparator. The encodings for this field are as follows:

 

 

 

 

Value

Function

 

 

 

 

0x0

Pin value

 

 

 

 

0x1 Pin value of C0+

 

 

 

 

0x2

Internal voltage reference

 

 

 

 

0x3

Reserved

8

reserved

RO

0

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

7

TSLVAL

R/W

0

Trigger Sense Level Value

 

 

 

 

The TSLVAL bit specifies the sense value of the input that generates

an ADC event if in Level Sense mode. If 0, an ADC event is generated if the comparator output is Low. Otherwise, an ADC event is generated if the comparator output is High.

November 16, 2008

483

Preliminary

Analog Comparators

Bit/Field

Name

Type

Reset

Description

6:5

TSEN

R/W

0x0

Trigger Sense

 

 

 

 

The TSEN field specifies the sense of the comparator output that

 

 

 

 

generates an ADC event. The sense conditioning is as follows:

 

 

 

 

Value

Function

 

 

 

 

0x0

Level sense, see TSLVAL

 

 

 

 

0x1

Falling edge

 

 

 

 

0x2

Rising edge

 

 

 

 

0x3

Either edge

4

ISLVAL

R/W

0

Interrupt Sense Level Value

 

 

 

 

The ISLVAL bit specifies the sense value of the input that generates

 

 

 

 

an interrupt if in Level Sense mode. If 0, an interrupt is generated if the

 

 

 

 

comparator output is Low. Otherwise, an interrupt is generated if the

 

 

 

 

comparator output is High.

3:2

ISEN

R/W

0x0

Interrupt Sense

 

 

 

 

The ISEN field specifies the sense of the comparator output that

 

 

 

 

generates an interrupt. The sense conditioning is as follows:

 

 

 

 

Value

Function

 

 

 

 

0x0

Level sense, see ISLVAL

 

 

 

 

0x1

Falling edge

 

 

 

 

0x2

Rising edge

 

 

 

 

0x3

Either edge

1

CINV

R/W

0

Comparator Output Invert

 

 

 

 

The CINV bit conditionally inverts the output of the comparator. If 0, the

 

 

 

 

outputofthecomparatorisunchanged. If1,theoutputofthecomparator

 

 

 

 

is inverted prior to being processed by hardware.

0

reserved

RO

0

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

484

November 16, 2008

Preliminary

Соседние файлы в папке Склад