JAJSRM3 November 2023 DAC530A2W , DAC532A3W
PRODUCTION DATA
Window comparator mode on channel 1 is enabled by setting the CMP-1-MODE bit to 10b (see also Table 6-2). Figure 6-7 shows that the window bounds are set by the DAC-1-MARGIN-HIGH and the DAC-1-MARGIN-LOW registers. The output of the window comparator is indicated by the WIN-CMP-1 bit in the CMP-STATUS register. The comparator output (WIN-CMP-1) 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 RESET-CMP-FLAG-1 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 Electrical Characteristics: Comparator Mode section). The static behavior of the WIN-CMP-1 bit is not reflected at the output pins. Set the CMP-1-OUT-EN bit to 0. The WIN-CMP-1 bit must be read digitally using the communication interface. This bit can also be mapped to the GPIO/SDO pin (see also Table 6-9).