ZHCSGP5C August 2017 – February 2022 TIC12400-Q1
PRODUCTION DATA
When the TIC12400-Q1 is used to monitor resistor-coded switches, the VS supply voltage level becomes critical. If VS is not sufficiently high, the device might not have enough headroom to produce accurate wetting currents. This could impact the accuracy of the switch status monitoring. It is imperative for the microcontroller to have knowledge of the VS voltage on a constant basis in such a case.
Measurement of VS voltage is a feature in TIC12400-Q1 that can be enabled by setting the VS_MEAS_EN bit in register CONFIG to logic 1. If enabled, at the end of every detection and polling cycle, the voltage on the VS pin is sampled and converted by the ADC to a digital value. The conversion takes one extra tADC, and the converted value is recorded in the ANA_STAT12 register.
The VS measurement supports two different VS voltage ranges that can be configured by the VS_RATIO bit in the CONFIG register. By default (VS_RATIO= logic 0), the supported VS voltage range is from 4.5 V to 9 V, and VS voltage in excess of 9 V results in a saturated ADC raw code of 1023. This setting provides better measurement resolution at lower VS voltages. When VS_RATIO bit is set to logic 1, the supported VS voltage range is widened to 4.5 V to 30 V, and VS voltage in excess of 30 V results in a saturated ADC raw code of 1023. This setting allows wider measurement range but more coarse measurement resolution. It is important to adjust the detection thresholds accordingly depending on the VS voltage range configured.
Four different measurement thresholds can be programmed by the TIC12400-Q1: VS0_THRES2A/B and VS1_THRES2A/B. The value of these thresholds can be programmed by configuring registers THRES_CFG0 to THRES_CFG3 and the mapping can be programmed by configuring registers THRESMAP_VS0_THRES2A/B and THRESMAP_VS1_THRES2A/B bits in the register THRESMAP_CFG2. When setting the thresholds follow the rules in Table 8-9 below.
VS THRESHOLD | PROPER THRESHOLD CONFIGURATION |
---|---|
VS0 | VS0_THRES2B ≥ VS0_THRES2A |
VS1 | VS1_THRES2B ≥ VS1_THRES2A |
After the VS measurement is enabled for the first time, the VS measurement interrupt is always generated ( INT pin is asserted low, and the VS0 or VS1 bit in the INT_STAT register is flagged to logic 1) at the end of the first polling cycle to notify the microcontroller the initial VS measurement result is ready to be retrieved. The VS0_STAT and VS1_STAT bits from register IN_STAT_MISC indicate the status of the VS voltage with respect to the thresholds, and the ANA_STAT12 register stores the converted digital value of the VS voltage. The SPI status flag VS_TH is also asserted to logic 1 during SPI communications. Note the status detected in the first polling cycle becomes the baseline value of comparison for subsequent VS measurements and the interrupt will be generated only if threshold crossing is detected.
Similar to regular inputs, the interrupt generation conditions can be programmed by setting the VS_TH0_EN and VS_TH1_EN bits in the INT_EN_CFG4 register to the following settings:
Interrupt generation can also be disabled by setting VS_TH0_EN or VS_TH1_EN to logic 0 in register INT_EN_CFG4. Once disabled, VS voltage crossing does not flag the VS0 or VS1 bit in INT_STAT register and does not assert INT pin low. To only mask the INT pin from assertion (while keeping INT_STAT register updated), configure the VS1_EN and VS0_EN bits in register INT_EN_CFG0 to logic 0.
Note the VS measurement is only intended to be used as part of switch detection sequence to determine the validity of the switch detection states that are reported by the TIC12400-Q1. It is not intended to be used for standalone supply monitoring, such as monitoring cranking voltages, due to the potentially delayed response being part of the polling sequence. The VS measurement result is accurate for VS above 4.5 V.
By default, the VS voltage measurement is disabled upon device reset.