SLAAED9 November 2023 TAA5412-Q1 , TAC5311-Q1 , TAC5312-Q1 , TAC5411-Q1 , TAC5412-Q1
For more robust detection, the fault monitoring can be based on the moving average of the diagnostic signal. With this setting enabled, each new sample is averaged with the previous set of samples and if a fault occurs, the latched registers does not latch until the average of the samples crosses the programmed threshold. This setup acts as a simple FIR filter and avoids triggering faults from transient events in the system. If debounce and moving average are used together, then the latched register does not latch until the moving average of consecutive samples crosses the programmed threshold and remains there for the programmed debounce count. The moving average can be set to weigh new and old data equally, or skewed to give old data 0.75 weight and new data a 0.25 weight to further improve transient immunity. The moving average setting is common to all input channels, but can be enabled or disabled independently for the MICBIAS load current and overtemperature faults to achieve faster response times for these faults. Moving average settings are contained in the DIAG_CFG5 register (Page 1, address 0x4B).