7.4.3.1 Programmable Hysteresis Comparator
shows that comparator mode provides hysteresis when the CMP-X-MODE bit is set to 01b.
shows that the hysteresis is provided by the DAC-X-MARGIN-HIGH and DAC-X-MARGIN-LOW registers.
When the DAC-X-MARGIN-HIGH is set to full-code or the DAC-X-MARGIN-LOW is set to zero-code, the
comparator works as a latching comparator that is, the output is latched after the threshold is crossed. The
latched output can be reset by writing to the corresponding RST-CMP-FLAG-X bit in the COMMON-DAC-TRIG
register.
shows the behavior of a latching comparator with active low output, and
the behavior of a latching comparator with active high output.
Note
The value of the DAC-X-MARGIN-HIGH register must be greater than the value of the DAC-X-
MARGIN-LOW register. The comparator output in the hysteresis mode can only be noninverting;
that is, the CMP-X-INV-EN bit in the DAC-X-VOUT-CMP-CONFIG register must be set to 0. For the
reset to take effect in latching mode, the input voltage must be within DAC-X-MARGIN-HIGH and
DAC-X-MARGIN-LOW.
DAC-X-MARGIN-HIGH
DAC-X-MARGIN-LOW
OUT-X
FBx/AINx
CMP-X-INV-EN = 0
Hysteresis
Figure 7-5. Programmable Hysteresis Without Latching Output
DAC-X-MARGIN-HIGH
DAC-X-MARGIN-LOW
(ZERO-CODE)
OUT-X
FBx/AINx
CMP-X-INV-EN = 0
RST-CMP-FLAG-X
Figure 7-6. Latching Comparator With Active Low Output
DAC-X-MARGIN-HIGH
(FULL-CODE)
DAC-X-MARGIN-LOW
OUT-X
FBx/AINx
CMP-X-INV-EN = 0
RST-CMP-FLAG-X
Figure 7-7. Latching Comparator With Active High Output
SLASF47 – MAY 2022
Copyright © 2022 Texas Instruments Incorporated
31
Product Folder Links: