7.4.3.2 Programmable Window Comparator
Window comparator mode is enabled by setting the CMP-X-MODE bit to 10b (see also
).
shows that the window bounds are set by the DAC-X-MARGIN-HIGH and the DAC-X-MARGIN-LOW registers.
The output of the window comparator for a given channel is indicated by the respective WIN-CMP-X bit in the
CMP-STATUS register. The comparator output (WIN-CMP-X) is latched by writing 1 to the WIN-LATCH-EN bit
in the COMMON-CONFIG register. After being latched, the comparator output is reset using the corresponding
RST-CMP-FLAG-X bit in the COMMON-DAC-TRIG register. For the reset to take effect, the input must be within
the window bounds.
DAC-X-MARGIN-HIGH
DAC-X-MARGIN-LOW
WIN-CMP-X
WIN-CMP-X
FBx/AINx
RST-CMP-FLAG-X
WIN-LATCH-EN = 0
WIN-LATCH-EN = 1
Figure 7-8. Window Comparator Operation
A single comparator is used per channel to check both the
margin-high
and
margin-low
limits of the window.
Therefore, the window comparator function has a finite response time (see also
). The static behavior
of the WIN-CMP-X bit is not reflected at the output pins. Set the CMP-X-OUT-EN bit to 0. The WIN-CMP-X bit
must be read digitally using the communication interface. This bit can also be mapped to the GPIO pin (see also
).
Note
• The value of the DAC-X-MARGIN-HIGH register must be greater than that of the DAC-X-MARGIN-
LOW register.
• Set the SLEW-RATE-X bit to 0000b (no-slew) and LOG-SLEW-EN-X bit to 0b in the DAC-X-FUNC-
CONFIG register to get the best response time from the window comparator.
• The CMP-X-OUT-EN bit in the DAC-X-VOUT-CMP-CONFIG register can be set to 0b to eliminate
undesired toggling of the OUT pin.
DAC53001, DAC53002, DAC63001, DAC63002
SLASF48 – MAY 2022
34
Copyright © 2022 Texas Instruments Incorporated
Product Folder Links: