
Comparator_D Registers
17.3.2 CDCTL1 Register
Comparator_D Control Register 1
Figure 17-9. CDCTL1 Register
15
14
13
12
11
10
9
8
Reserved
CDMRVS
CDMRVL
CDON
Reserved
r-0
r-0
r-0
rw-0
rw-0
rw-0
r-0
r-0
7
6
5
4
3
2
1
0
CDFDLY
CDEX
CDSHORT
CDIES
CDF
CDOUTPOL
CDOUT
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
r-0
Table 17-3. CDCTL1 Register Description
Bit
Field
Type
Reset
Description
15-13
Reserved
R
0h
Reserved. Always reads as 0.
12
CDMRVS
RW
0h
This bit defines if the comparator output selects between VREF0 or VREF1 if
CDRS = 00b, 01b, or 10b.
0b = Comparator output state selects between VREF0 or VREF1.
1b = CDMRVL selects between VREF0 or VREF1.
11
CDMRVL
RW
0h
This bit is valid if CDMRVS is set to 1.
0b = VREF0 is selected if CDRS = 00b, 01b, or 10b.
1b = VREF1 is selected if CDRS = 00b, 01b, or 10b.
10
CDON
RW
0h
On. This bit turns the comparator on. When the comparator is turned off the
Comparator_D consumes no power.
0b = Off
1b = On
9-8
Reserved
R
0h
Reserved. Always reads as 0.
7-6
CDFDLY
RW
0h
Filter delay. The filter delay can be selected in 4 steps. See the device specific
data sheet for details.
00b = Typical filter delay of 0.5 µs
01b = Typical filter delay of 0.9 µs
10b = Typical filter delay of 1.6 µs
11b = Typical filter delay of 3 µs
5
CDEX
RW
0h
Exchange. This bit permutes the comparator 0 inputs and inverts the comparator
0 output.
4
CDSHORT
RW
0h
Input short. This bit shorts the + and – input terminals.
0b = Inputs not shorted
1b = Inputs shorted
3
CDIES
RW
0h
Interrupt edge select for CDIIFG and CDIFG
0b = Rising edge for CDIFG, falling edge for CDIIFG
1b = Falling edge for CDIFG, rising edge for CDIIFG
2
CDF
RW
0h
Output filter
0b = Comparator_D output is not filtered
1b = Comparator_D output is filtered
1
CDOUTPOL
RW
0h
Output polarity. This bit defines the CDOUT polarity.
0b = Noninverted
1b = Inverted
0
CDOUT
R
0h
Output value. This bit reflects the value of the Comparator_D output. Writing this
bit has no effect on the comparator output.
471
SLAU272C – May 2011 – Revised November 2013
Comparator_D
Copyright © 2011–2013, Texas Instruments Incorporated