MATLAB: Is there a delay in triggering ISR when HRPWM-period is enabled in ePWM block

Embedded Coder

Why the Interrupt Service Routine (ISR) invoking is delayed when the "HRPWM Period enable* *(HRPWM-period)" is enabled in the ePWM Block?

Best Answer

The reason for the delay is the Scale Factor Optimizing (SFO) library used. When the option "HRPWM Period enable* *(HRPWM-period)" is enabled, the Micro Edge Positioner (MEP) values are recalculated at each step causing the delay. This information can be found at the following page.
<http://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/c280xc2802xc2803xc2805xc2806xc28x3xc2834xf28m3xepwm.html http://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/c280xc2802xc2803xc2805xc2806xc28x3xc2834xf28m3xepwm.html
>
In order to overcome this issue please follow the below mentioned steps.
1. Disable "HRPWM Period enable (HRPWM-period)"
2. Enable "HRPWM Period enable (HRPWM-duty)"
3. Disable "Use scale factor optimizer (SFO) software"
4. Disable "Enable auto convert"