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.

TMDXIDDK379D: fcl_f2837x_tmdxiddk pwm update confusion

Part Number: TMDXIDDK379D

Tool/software:

Hello Experts,

Could you kindly give us clarity on the below:

Looking at the tmdxiddk FOC project located at :

there is a function "configurePWM()" which configures the 3 PWM channels.

In this function the PWM channels are configured in shadow load mode using the EPWM_setCounterCompareShadowLoadMode() function(CMPCTL [SHDWAMODE] = 0)

Later down the main function, the FCL library function "FCL_initPWM()" sets the PWM channels to immediade load mode(CMPCTL [SHDWAMODE] = 1), Could you please explain why is this done ?

Isnt shadow loading prefered over immediate loading as the PWM CMPA/B is loaded as perticular events only?