After the MCU has set the start bit of the ESM_MCU (bit ESM_MCU_START
), there are two possible
scenarios:
- The deglitched signal of the
monitored input pin has a low level at the moment the MCU sets the start
bit. In this scenario, the ESM_MCU starts the
following procedure:
- Start a timer with a
time-length according the value configured in ESM_MCU_LMAX[7:0]
.
- Wait for a first
rising edge on its deglitched input signal.
- If the rising edge
comes before the configured time-length elapses, the ESM_MCU
skips the next step and starts to monitor the high-pulse duration
time. Hereafter, the ESM_MCU
detects good-events or bad-events as described in Section 8.15.3.1. Figure 8-58 shows an example this scenario as Case Number 1.
- If the configured
time-length (configured in ESM_MCU_LMAX[7:0] ) elapses,
the ESM_MCU detects a bad-event and increments the error-counter with +2.
Hereafter, the ESM detects good-events or bad-events as described in
Section 8.15.3.1. Figure 8-60 shows an example this scenario as Case Number 3.
- If the ESM_MCU
error-counter value is above its configured threshold, the ESM_MCU has
detected a so-called ESM-error and starts the Error-Handling
Procedure as described in Section 8.15.3.1.
- During this
Error-Handling Procedure, the ESM_MCU
continues to monitor its
input pin, and updates the error-counter accordingly when it detects
good-events or bad-events, until the Error-Handling Procedure
reaches the step in which the ESM_MCU
sends an ESM_MCU_RST
trigger to the PFSM, which, depending on the PFSM configuration,
resets the MCU . Figure 8-61 shows a scenario in which the device resets the MCU as Case Number 4.
- If the ESM_MCU
error-counter reaches a value equal or less its configured threshold
before the elapse of the configured delay-1 or delay-2
time-intervals and the MCU software clears all ESM_MCU
related interrupt bits, the ESM-error is no longer present and the
ESM_MCU stops the Error-Handling Procedure as described in
Section 8.15.3.1.
- The deglitched signal
monitored input pin has a high level at the moment the MCU sets the start
bit. In this scenario, the ESM_MCU starts the
following procedure:
- Start a timer with a
time-length according the value configured in ESM_MCU_HMAX[7:0]
.
- Wait for a first
falling edge on its deglitched input signal.
- If the falling edge
comes before the configured time-length elapses, the ESM_MCU
skips the next step and starts to monitor the low-pulse duration
time. Hereafter, the ESM_MCU
detects good-events or bad-events as described in Section 8.15.3.1. Figure 8-59 shows an example this scenario as Case Number 2.
- If the configured
time-length (configured in ESM_MCU_HMAX[7:0] ) elapses,
the ESM_MCU detects a bad-event and increments the error-counter with +2.
Hereafter, the ESM_MCU
detects good-events or bad-events as described in Section 8.15.3.1.
- If the ESM_MCU
error-counter value is above its configured threshold, the ESM_MCU has
detected a so-called ESM-error and starts the Error-Handling
Procedure as described in Section 8.15.3.1.
- During this
Error-Handling Procedure, the ESM continues to monitor its input pin, and updates
the error-counter accordingly when it detects good-events or
bad-events, until the Error-Handling Procedure reaches the step in
which the ESM_MCU sends an ESM_MCU_RST
trigger to the PFSM, which, depending on the PFSM configuration,
resets the MCU , as Case
Number 4.
- If the ESM_MCU
error-counter reaches a value equal or less its configured threshold
before the elapse of the configured delay-1 or delay-2
time-intervals and the MCU software clears all ESM_MCU
related interrupt bits, the ESM-error is no longer present and the
ESM_MCU stops the Error-Handling Procedure as described in
Section 8.15.3.1.