Tool/software:
Hi Experts,
We are using a reference design for our PFC proof-of-concept (POC). However, after removing the EPWM_setPeriodLoadMode function call to enable access from the shadow register, we observed unexpected oscillations in the current waveform. Since we have not modified the actual PWM period, we are trying to understand how this change is affecting the system.
Below is a code snippet from hal.c, specifically the HAL_setupPWMsPFC function, where we made this modification.

Could you provide a detailed explanation of how EPWM_setPeriodLoadMode works and how its removal could lead to oscillations in the current waveform?
Thanks!