In PWM mode, the ESM_MCU monitors the
high-pulse and low-pulse duration times its PWM input signal as follows:
- After a falling edge, the ESM_MCU starts
monitoring the low-pulse time-duration. If the input signal remains low
after exceeding the maximum low-pulse time-threshold
(tLOW_MAX_TH), the ESM_MCU detects a
bad event and the low-pulse duration counter reinitializes. Each time the
signal further exceeds the maximum threshold, the ESM_MCU detects a
bad event. On the next rising edge on the input signal, the ESM starts the
high-pulse time-duration monitoring
- After a rising edge, the ESM_MCU starts
monitoring the high-pulse time-duration. If the input signal remains high
after exceeding the maximum high-pulse time-threshold
(tHIGH_MAX_TH), the ESM_MCU detects a
bad event and the high-pulse duration counter reinitializes. Each time the
signal further exceeds the maximum threshold, the ESM_MCU detects a
bad event. On the next falling edge on the input signal, the ESM_MCU starts the
low-pulse time-duration monitoring.
In addition, the ESM_MCU detects a bad-event
in PWM mode if one of the events that follow occurs on the deglitched signal of the
input pin nERR_MCU:
- A high-pulse time-duration
that is longer than the maximum high-pulse time-threshold
(tHIGH_MAX_TH) that is configured in register bits
ESM_MCU_HMAX[7:0].
- A high-pulse time-duration
that is shorter than the minimum high-pulse time-threshold
(tHIGH_MIN_TH) that is configured in register bits
ESM_MCU_HMIN[7:0].
- A low-pulse time-duration
that is longer than the maximum low-pulse time-threshold
(tLOW_MAX_TH) that is configured in register bits
ESM_MCU_LMAX[7:0].
- A low-pulse time-duration
that is less than the minimum low-pulse time-threshold
(tLOW_MIN_TH) that is configured in register bits
ESM_MCU_LMIN[7:0].
The ESM_MCU detects a good-event
in PWM mode if one of the events that follow occurs on the deglitched signal of the
input pin nERR_MCU:
- A low-pulse time-duration
within the minimum and maximum low-pulse time-thresholds is followed by a
high-pulse time-duration within the minimum and maximum high-pulse
time-thresholds, or
- A high-pulse duration within
the minimum and maximum high-pulse time-thresholds is followed by a
low-pulse duration within the minimum and maximum low-pulse
time-thresholds
Register bits ESM_MCU_HMAX[7:0] set the maximum high-pulse
time-threshold (tHIGH_MAX_TH) for the ESM_MCU.
Use Equation 15 and Equation 16 to calculate the worst-case values for the tHIGH_MAX_TH:
Equation 15. Min. tHIGH_MAX_TH = (15 µs +ESM_MCU_HMAX[7:0] × 15 µs) ×
0.95
Equation 16. Max. tHIGH_MAX_TH = (15 µs +ESM_MCU_HMAX[7:0] × 15 µs) ×
1.05
ESM_MCU_HMIN[7:0] set the minimum high-pulse time-threshold
(tHIGH_MIN_TH) for the
ESM. Use Equation 17 and Equation 18 to calculate the worst-case values for the tHIGH_MIN_TH:
Equation 17. Min. tHIGH_MIN_TH = (15 µs +ESM_MCU_HMIN[7:0] × 15 µs) ×
0.95
Equation 18. Max. tHIGH_MIN_TH = (15 µs +ESM_MCU_HMIN[7:0] × 15 µs) ×
1.05
ESM_MCU_LMAX[7:0] set the maximum low-pulse time-threshold
(tLOW_MAX_TH) for the
ESM_MCU. Use Equation 19 and Equation 20 to calculate the worst-case values for the tLOW_MAX_TH:
Equation 19. Min. tLOW_MAX_TH = (15 µs +ESM_MCU_LMAX[7:0] × 15 µs) ×
0.95
Equation 20. Max. tLOW_MAX_TH = (15 µs +ESM_MCU_LMAX[7:0] × 15 µs) ×
1.05
ESM_MCU_LMIN[7:0] set the minimum low-pulse time-threshold
(tLOW_MIN_TH) for the ESM.
Use Equation 21 and Equation 22 to calculate the worst-case values for the tLOW_MIN_TH:
Equation 21. Min. tLOW_MIN_TH = (15 µs +ESM_MCU_LMIN[7:0] × 15 µs) ×
0.95
Equation 22. Max. tLOW_MIN_TH = (15 µs +ESM_MCU_LMIN[7:0] × 15 µs) ×
1.05
Please note that when setting up the minimum and
the maximum low-pulse or high-pulse time-thresholds need to be configured such that
clock tolerances from the LP876242-Q1 and from the processor
are incorporated. Equation 23, Equation 24, Equation 25, and Equation 26 are a guideline on how to incorporate these
clock-tolerances:
Equation 23. ESM_MCU_HMIN[7:0] < 0.5 ×
(ESM_MCU_HMAX[7:0] + ESM_MCU_HMIN[7:0]) × 0.95 ×
(1 - MCUclock tolerance)
Equation 24. ESM_MCU_HMAX[7:0] > 0.5 ×
(ESM_MCU_HMAX[7:0] + ESM_MCU_HMIN[7:0]) × 1.05 ×
(1 + MCU clock tolerance)
Equation 25. ESM_MCU_LMIN[7:0] < 0.5 ×
(ESM_MCU_LMAX[7:0] + ESM_MCU_LMIN[7:0]) × 0.95 ×
(1 - MCUclock tolerance)
Equation 26. ESM_MCU_LMAX[7:0] > 0.5 ×
(ESM_MCU_LMAX[7:0] + ESM_MCU_LMIN[7:0]) × 1.05 ×
(1 + MCU clock tolerance)