Hello Ankit,
The function TPMS_WIRE_AND_ADC_CHECK performs different tests depending on the passed argument:
- The ADC test consists of taking two reference measurements, one to Vdd and one to GND. The test fails when the converted value does not correspond to Vdd and GND, indicating an issue in the ADC block (in the ASIC).
- The Gcell and Pcell tests check the connection between the sensor (Gcell/Pcell) and the ASIC. The sensor and ASIC are connected via bondwires, and the test check the bondwire connection. The test fails when an issue is found in the bondwire connection.
In the application, if one of the tests fails, it is recommended to perform a delay and then at least one retry. If the test fails multiple times consistently then the application can conclude of a failure in the ASIC (for the ADC block) or with the bondwires (Gcell/Pcell). When such error occurs, it is not possible to make the NTM88 recover as it means some permanent failure has occurred.
Note that such failure is not expected to occur during runtime. The main purpose of this function is to be run after assembly to check that the TPMS module is fully functional and that no damage has occurred during the assembly process.
The conditions to raise the errors flags cannot be re-created on purpose, they require to physically have an ASIC or bondwire failure.
BRs, Tomas