Comparator_A Registers
16-10
Comparator_A
CACTL1, Comparator_A Control Register 1
76543210
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:
0V
CAREF
is applied to the + terminal
1V
CAREF
is applied to the – terminal
When CAEX = 1:
0V
CAREF
is applied to the – terminal
1V
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.
0Off
1On
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