Cactl1, comparator_a control register 1 – Texas Instruments MSP430x4xx User Manual

Page 330

Advertising
background image

Comparator_A Registers

17-10

Comparator_A

CACTL1, Comparator_A Control Register 1

7

6

5

4

3

2

1

0

CAEX

CARSEL

CAREFx

CAON

CAIES

CAIE

CAIFG

rw−(0)

rw−(0)

rw−(0)

rw−(0)

rw−(0)

rw−(0)

rw−(0)

rw−(0)

CAEX

Bit 7

Comparator_A exchange. This bit exchanges the comparator inputs and
inverts the comparator output.

CARSEL

Bit 6

Comparator_A reference select. This bit selects which terminal the V

CAREF

is applied to.
When CAEX = 0:
0

V

CAREF

is applied to the + terminal

1

V

CAREF

is applied to the – terminal

When CAEX = 1:
0

V

CAREF

is applied to the – terminal

1

V

CAREF

is applied to the + terminal

CAREF

Bits
5-4

Comparator_A reference. These bits select the reference voltage V

CAREF.

00

Internal reference off. An external reference can be applied.

01

0.25*V

CC

10

0.50*V

CC

11

Diode reference is selected

CAON

Bit 3

Comparator_A on. This bit turns on the comparator. When the comparator
is off it consumes no current. The reference circuitry is enabled or disabled
independently.
0

Off

1

On

CAIES

Bit 2

Comparator_A interrupt edge select
0

Rising edge

1

Falling edge

CAIE

Bit 1

Comparator_A interrupt enable
0

Disabled

1

Enabled

CAIFG

Bit 0

The Comparator_A interrupt flag
0

No interrupt pending

1

Interrupt pending

Advertising