After the MCU has set the start bit of ESM (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 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
skips the next step and starts to monitor the high-pulse duration
time. Hereafter, the ESM
detects good-events or bad-events as described in Section 7.3.9.3.1. Figure 7-31 shows an example this scenario as Case Number 1.
- If the configured
time-length (configured in ESM_MCU_LMAX[7:0] ) elapses,
the ESM detects a bad-event and increments the error-counter with +2.
Hereafter, the ESM detects good-events or bad-events as described in
Section 7.3.9.3.1. Figure 7-33 shows an example this scenario as Case Number 3.
- If the ESM
error-counter value is above its configured threshold, the ESM has
detected a so-called ESM-error and starts the Error-Handling
Procedure as described in Section 7.3.9.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
sends an ESM_RST
trigger to the PFSM, which, depending on the PFSM configuration,
resets the MCU . Figure 7-34 shows a scenario in which the device resets the MCU as Case Number 4.
- If the ESM
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
related interrupt bits, the ESM-error is no longer present and the
ESM stops the Error-Handling Procedure as described in
Section 7.3.9.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 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
skips the next step and starts to monitor the low-pulse duration
time. Hereafter, the ESM
detects good-events or bad-events as described in Section 7.3.9.3.1. Figure 7-32 shows an example this scenario as Case Number 2.
- If the configured
time-length (configured in ESM_MCU_HMAX[7:0] ) elapses,
the ESM detects a bad-event and increments the error-counter with +2.
Hereafter, the ESM
detects good-events or bad-events as described in Section 7.3.9.3.1.
- If the ESM
error-counter value is above its configured threshold, the ESM has
detected a so-called ESM-error and starts the Error-Handling
Procedure as described in Section 7.3.9.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 sends an ESM_RST
trigger to the PFSM, which, depending on the PFSM configuration,
resets the MCU , as Case
Number 4.
- If the ESM
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
related interrupt bits, the ESM-error is no longer present and the
ESM stops the Error-Handling Procedure as described in
Section 7.3.9.3.1.