This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIDM-02010: Impact of Removing EPWM_setPeriodLoadMode on PFC Current Loop Behavior

Part Number: TIDM-02010

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!

  • Additional Note: In PFC application, the PWM period remains constant throughout the operation cycle. Therefore, we set the PWM period only once during initialization and retrieve it using the EPWM_getTimeBasePeriod function, which operates independently of the period load mode.

    We would appreciate your help in bridging our understanding gap regarding how the period load mode affects system behavior in this scenario.

  • Hi Ankit,

    I don't see how TBCTL.PRDLD would have any effect if you keep TBPRD static. Do you have PWM and current waveforms you can share to show if any issue can be seen?

    Best,

    Kevin