SLDS222C October 2019 – October 2023 TPS65313-Q1
PRODUCTION DATA
The MCU error signal monitor (ESM) monitors the system MCU-error events signaled over the MCU_ERR input pin. The ESM is configurable for two different operating modes. The first mode is TMS570 mode, in which the ESM detects a low-pulse signal with a programmable low-pulse width duration threshold. The second mode is PWM mode, in which the ESM detects a PWM signal with a programmable minimum and maximum pulse-width threshold for the low pulse and high pulse.
The operating mode of the ESM is controlled through the MCU_ESM_CFG bit in the SAFETY_CFG3 SPI register. The ESM is disabled by default, and can be activated by setting the MCU_ESM_EN bit to 1b in the SAFETY_CHECK_CTRL SPI register.
In TMS570 mode, the SAFETY_ERR_PWM_LMAX register sets the threshold of the low-signal duration. When TMS570 mode is enabled and monitoring signal is high, monitoring starts after the first high to low signal transition. If monitoring signal is low when TMS570 mode is enabled and monitoring signal does not transition high for the duration of the tTMS570_START_TO start-up time-out window, an error is detected, the ESM failure counter (MCU_ESM_FC[3:0]) is incremented, and the tTMS570_START_TO start-up time-out window is restarted again. The duration of the start-up time-out window tTMS570_START_TO is set by the SAFETY_ERR_PWM_LMAX register and SAFETY_ERR_PWM_HMAX register setting (tPWM_LOWMAX + tPWM_HIGHMAX).
In PWM mode, the SAFETY_ERR_PWM_LMIN and SAFETY_ERR_PWM_LMAX registers set the thresholds for the minimum and maximum low-pulse durations. The SAFETY_ERR_PWM_HMIN and SAFETY_ERR_PWM_HMAX registers set the thresholds for the minimum and maximum high-pulse durations.
When the PWM mode is enabled, monitoring starts after the rising or falling edge of the signal. If no edge is detected within the time-out window (tPWM_LOWMAX + tPWM_HIGHMAX), then an error is detected and the ESM failure counter (MCU_ESM_FC[3:0]) increments. If the monitored signal duration is shorter than the tPWM_HIGHMIN or tPWM_LOWMIN time or if the monitored signal duration is longer than the tPWM_HIGHMAX or tPWM_LOWMAX time, the following occurs:
Correct signaling is detected for the low signal when the low-signal duration is from the tPWM_LOWMIN time interval to the tPWM_LOWMAX time interval and is followed by a high-signal width duration from the tPWM_HIGHMIN time interval to the tPWM_HIGHMAX time interval. Correct signaling is detected for the high signal when the high-signal duration is from the tPWM_HIGHMIN time interval to the tPWM_HIGHMAX time interval and is followed by a low signal with a duration from the SAFETY_ERR_PWM_LMIN interval to the SAFETY_ERR_PWM_LMAX interval.
The MCU_ESM_FC[3:0] counter decrements when a correct signal is detected. When monitoring starts, a new monitoring event starts any time after an error is detected or when correct signaling is detected.
The MCU_ESM_FC[3:0] counter increments after an MCU signaling error is detected. If the device is in the ACTIVE state, the MCU_ESM_FC[3:0] counter is greater than the programmed threshold (MCU_ESM_FC_ENDRV_TH) and MCU_ESM_RST_EN configuration bit is set to 0b, the following occurs:
If the device is in the DIAGNOSTIC or ACTIVE state, the MCU_ESM_FC[3:0] counter is greater than the MCU_ESM_FC_RST_TH[3:0] threshold, and the MCU_ESM_RST_EN configuration bit is set to 1b, the device goes into the RESET state. The MCU_ESM_FAIL and MCU_ESM_RST_FAIL status bits are also set in the SAFETY_ERR_STAT3 register.
If the device is in the DIAGNOSTIC or ACTIVE state, the MCU_ESM_FC[3:0] counter is greater than the MCU_ESM_FC_RST_TH[3:0] threshold, and the MCU_ESM_RST_EN configuration bit is set to 0b, the device goes into the SAFE state. The MCU_ESM_FAIL and MCU_ESM_RST_FAIL status bits are also set in the SAFETY_ERR_STAT3 register. If the device is already in the SAFE state and if the MCU_ESM_FC_RST_TH[3:0] threshold is equal to or less than the MCU_ESM_FC_ENDRV_TH[3:0] threshold, no action occurs.
Regardless of the configuration mode of the MCU ESM, a new MCU ESM cycle starts and the MCU_ESM_FC[3:0] and MCU_ESM_FAIL status bits are initialized each time one of the following occurs:
Regardless of the configuration mode of the MCU ESM, the MCU_ESM_FC[3:0] bit is initialized to its default value each time one of the following occurs: