SBASB22 December 2025 ADS9324
PRODUCTION DATA
The ADS93x4 has an 8-bit digital window comparator (DWC) for each input channel. Figure 7-24 shows the block diagram of the digital comparator. The low-side threshold, high-side threshold, and hysteresis parameters are independently programmable for each input channel. By default, hysteresis is 0, the high threshold is 127 (0x7F), and the low threshold is -128 (0x80). The DWC sets the DWC output to HIGH when the ADC output exceeds the high threshold or goes below the low threshold. The hysteresis field is an 8-bit field, and users can set the field to be from 0 to 255. The DWC also includes a glitch reject filter inside each DWC. The glitch reject filter is a 4-bit counter that counts if the ADC data exceeds the high or low thresholds for a consecutive number of ADC conversion clocks before asserting HIGH at the low and high comparator output. The glitch reject filter and user DWC reset bit are common for AIN1 to AIN8, and AIN9 to AIN16 channel groups. A rising edge transition on the DWC_RSTx user bit resets the digital window comparator flags.
To enable the digital window comparator, set the DWC_EN bit in the DWC_CFG registers in AIN1 - AIN8 Channel and AIN9 - AIN16 Channel regbank. High and low flag status of each window comparator can be read using DWC_FLAG_AIN1_8 and DWC_FLAG_AIN8_16 registers. By default, the glitch reject counter is set to 0000'b. In case of an event, the glitch reject filter counts the number of high or low threshold violations before setting HIGH and LOW flags. The DWC also provides interrupt output, DWC_ALERT_INT, which is OR'ed output of high and low comparators. DWC_ALERT_INT signal goes to ALARM pin, and can be provided as output on the DRDY/ALARM pin by configuring the ALARM pin (see the Section 7.3.13). The DWC_ALERT_INT can be programmed as a level based (ALRM_TYP = 0b) or a pulse output (ALRM_TYP = 1b). High or low alert interrupt signals can be selected by setting high or low thresholds to maximum or minimum values. The behavior of the digital comparator is illustrated in Figure 7-25 .