ZHCSJ06B November 2017 – September 2022 ADS7142-Q1
PRODUCTION DATA
The internal digital window comparator is available in all modes. In autonomous modes with thresholds monitoring and diagnostics, the digital window comparator controls the filling of the data into the FIFO and the output of the ALERT pin. In the remaining modes, the digital window comparator only controls the output of the ALERT pin. Figure 7-9 provides the block diagram for digital window comparator.
The low-side threshold, high-side threshold, and hysteresis parameters are independently programmable for each input channel. Figure 7-10 illustrates the comparison thresholds and hysteresis for the two comparators. A pre-ALERT event counter after each comparator counts the output of the comparator and sets the latched flags. The pre-ALERT event counter settings are common to the two channels.
The DWC_BLOCK_EN bit in the ALERT_DWC_EN register enables and disables the complete digital window comparator block (disabled at power-up) and the ALERT_EN_CHx bits in the ALERT_CHEN register enables the digital window comparator for individual channels. Possible responses when using the digital comparator when a new ADC conversion is completed include:
Therefore, the latched flags (high and low) for the channel are updated only if the respective comparator output remains 1 for the specified number of consecutive conversions (set by PRE_ALT_MAX_EVENT_COUNT).
The latched flags can be read from the ALERT_LOW_FLAGS and ALERT_HIGH_FLAGS registers. To clear a latched flag, write 1 to the applicable bit location. The ALERT pin status is re-evaluated when an applicable latched flag is set or is cleared.
The response time for the ALERT pin can be estimated by Equation 6
where: