SLAAED9 November 2023 TAA5412-Q1 , TAC5311-Q1 , TAC5312-Q1 , TAC5411-Q1 , TAC5412-Q1
This register is configuration register 5 for input fault diagnostics setting.
Bit | Field | Type(1) | Reset | Description |
---|---|---|---|---|
7-6 | DIAG_MOV_AVG_CFG[1:0] | R/W | 00b | Moving average configuration 0d = Moving average disabled 1d = Moving average enabled with 0.5 weightage for new and old data 2d = Moving average enabled with 0.75 weightage for old data and 0.25 weightage for new data 3d = Reserved |
5 | MOV_AVG_DIS_MBIAS_LOAD | R/W | 0b | Moving average configuration for MICBIAS Load channel 0b = Moving average is enabled for MICBIAS Load channel 1b = Moving average is disabled for MICBIAS Load channel |
4 | MOV_AVG_DIS_TEMP_SENS | R/W | 0b | Moving average configuration for Temp Sense channel 0b = Moving average is enabled for Temp Sense channel 1b = Moving average is disabled for Temp Sense channel |
3 | MOV_AVG_DIS_GPA | R/W | 0b | Moving average configuration for GPA channel 0b = Moving average is enabled for GPA channel 1b = Moving average is disabled for GPA channel |
2-0 | RESERVED | R | 000b | Reserved bits; Write only reset values |
If the moving average feature is not used, the fault response time can be calculated as the scan rate multiplied by the debounce setting. For example, a debounce of 8 and scan rate of 4 ms requires a fault to be present for 32 ms before latching the corresponding fault register. This behavior is useful for filtering out transient behaviors, such as the start-up response of a microphone. If the moving average feature is used, then the exact response time depends on the nature of the fault and the amplitude of the input signal causing the fault. This setting can be useful in particularly noisy applications in which the microphone is prone to saturate for a portion of the time. Setting the scan rate to continuous provides the fastest response. The exact response time depends on many factors. To simplify calculation, the following equation shows how to calculate the effective response time in back-to-back scan mode.
Where
The diagnostic clock period depends on whether valid clocks are present and the sample rate. The diagnostic clock frequency is 6.144 MHz for all ASI sample rate multiples and sub-multiples of 48 kHz. Similarly, the frequency is 5.644 MHz for all ASI sample rate multiples and sub-multiples of 44.1 kHz. If no clocks are present or there is an error in the clocks, then the diagnostic clock defaults to the 5-MHz (typical) clock generated using the internal on-chip oscillator.
Live registers always report the most recent reading and are not influenced by the debounce or moving average settings. The faults in INT_LTCH0 are also not affected by these filter settings.