Comparator Block
904
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
Analog Subsystem
10.4.7 Comparator Registers
These devices have six comparators.
lists the registers for these modules.
Name
Address Range
Size(x16)
Description
COMP1
6400h – 641Fh
1
Comparator 1
COMP2
6420h – 643Fh
1
Comparator 2
COMP3
6440h - 645Fh
1
Comparator 3
COMP4
6460h - 647Fh
1
Comparator 4
COMP5
6480h - 649Fh
1
Comparator 5
COMP6
64A0h - 64BFh
1
Comparator 6
(1)
This register is EALLOW protected.
(2)
The DACTEST register is only available for COMP3/DAC3 and COMP6/DAC6.
Table 10-36. Comparator Module Registers
Name
Address Range(base)
Size(x16)
Description
COMPCTL
0x0000 0000
1
Comparator Control
(1)
Reserved
0x0000 0001
1
Reserved
COMPSTS
0x0000 0002
1
Comparator Output Status
Reserved
0x0000 0003
1
Reserved
Reserved
0x0000 0004
1
Reserved
Reserved
0x0000 0005
1
Reserved
DACVAL
0x0000 0006
1
10-bit DAC Value
Reserved
0x0000 0007
0x0000 0010
10
Reserved
DACTEST
0x0000 0011
1
DAC Test Register
(2)
Reserved
0x0000 0012
0x0000 001F
14
Reserved
10.4.7.1 Comparator Control (COMPCTL) Register
Figure 10-55. Comparator Control (COMPCTL) Register
15
9
8
Reserved
SYNCSEL
R-0
R/W-0
7
3
2
1
0
QUALSEL
CMPINV
COMPSOURCE
COMPDACEN
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 10-37. COMPCTL Register Field Descriptions
Bit
Field
Value
Description
15-9
Reserved
Reserved
8
SYNCSEL
Synchronization select for output of the comparator before being passed to ETPWM/GPIO blocks
0
Asynchronous version of Comparator output is passed
1
Synchronous version of comparator output is passed