The INA740x includes a multipurpose, open-drain ALERT output pin that can be used to report multiple diagnostics, or to indicate that the ADC conversion is complete. The diagnostics listed in Table 6-1 are constantly monitored and can be reported through the ALERT pin whenever the monitored output value crosses the associated out-of-range threshold.
Table 6-1 ALERT Diagnostics DescriptionINA740x DIAGNOSTIC | STATUS BIT IN DIAG_ALRT REGISTER (RO) | OUT-OF-RANGE THRESHOLD REGISTER (R/W) | REGISTER DEFAULT VALUE |
---|
Current Under-Limit | CURRENTUL | CUL | 0x8000 h (2's complement) |
Current Over-Limit | CURRENTOL | COL | 0x7FFF h (2's complement) |
Bus Voltage Over-Limit | BUSOL | BOVL | 0x7FFF h (2's complement, positive values only) |
Bus Voltage Under-Limit | BUSUL | BUVL | 0x0000 h (2's complement, positive values only) |
Temperature Over-Limit | TMPOL | TEMP_LIMIT | 0xFFFF h (2's complement, positive values only) |
Power Over-Limit | POL | PWR_LIMIT | 0x7FFF h (2's complement) |
A read of the DIAG_ALRT register is used to determine which diagnostic has triggered the ALERT pin. This register, shown in Table 7-15, is also used to monitor other associated diagnostics as well as configure some ALERT pin functions.
- Alert latch enable — In case the ALERT pin is triggered, this function will hold the value of the pin even after all diagnostic conditions have cleared. A read of the DIAG_ALRT register will reset the status of the ALERT pin. This function is enabled by setting the ALATCH bit.
- Conversion ready enable — Enables the ALERT pin to assert when an ADC conversion has completed and output values are ready to be read through the digital interface. This function is enabled by setting the CNVR bit. The conversion completed events can also be read through the CNVRF bit regardless of the CNVR bit setting.
- Alert comparison on averaged output — Allows the out-of-range threshold value to be compared to the averaged data values produced by the ADC. This helps to additionally remove noise from the output data when compared to the out-of-range threshold to avoid false alerts due to noise. However, the diagnostic will be delayed due to the time needed for averaging. This function is enabled by setting the SLOWALERT bit.
- Alert polarity — Allows the device to invert the active state of the ALERT pin. Note that the ALERT pin is an open-drain output that must be pulled up by a resistor. The ALERT pin is active-low by default and can be configured for active high function using the APOL control bit.
Other diagnostic functions that are not reported by the ALERT pin but are available by reading the DIAG_ALRT register:
- Math overflow — Indicated by the MATHOF bit, reports when an arithmetic operation has caused an internal register overflow.
- Memory status — Indicated by the MEMSTAT bit, monitors the health of the device non-volatile trim memory. This bit will always read '1' when the device is operating properly.
- Energy overflow — Indicated by the ENERGYOF bit, reports when the ENERGY register has reached an overflow state due to data accumulation.
- Charge overflow — Indicated by the CHARGEOF bit, reports when the CHARGE register has reached an overflow state due to data accumulation.
When the ALERT pin is configured to report the ADC conversion complete event, the ALERT pin becomes a multipurpose reporting output. Figure 6-11 shows an example where the device reports ADC conversion complete events while the INA740x device is subject to an overcurrent event, bus undervoltage event, overtemperature event and over power-limit event.