ZHCSQC6 May 2022 DAC53202 , DAC63202
PRODUCTION DATA
Window comparator mode is enabled by setting the CMP-X-MODE bit to 10b (see also Table 7-2). Figure 7-8 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) can be latched by writing 1 to the WIN-LATCH-EN bit in the COMMON-CONFIG register. After being latched, the comparator output can be 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.
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 Section 6.7). 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 Table 7-19).