ZHCSH75A September 2017 – December 2017 ADS7142
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 and the output of the alert pin and in other modes, it only controls the output of the alert pin. Figure 47 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 48 shows 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.
DWC_BLOCK_EN bit in ALERT_DWC_EN register enables/disables the complete Digital Window Comparator block (disabled at power-up) and ALERT_EN_CHx bits in ALERT_CHEN register enables Digital Window Comparator for individual channels. Once enabled, whenever a new conversion result is available:
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 the 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 whenever an applicable latched flag gets set or is cleared.
The response time for ALERT pin can be estimated by Equation 6
where