Part Number: TMS320F28377D
i set the ePWM module in syscfg as following, but the ePWMxA stuck at low and the ePWMxB stuck at high, what is wrong with the configuration. how can i adapt it. DC, ET, chopper are not used here





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.
Part Number: TMS320F28377D
i set the ePWM module in syscfg as following, but the ePWMxA stuck at low and the ePWMxB stuck at high, what is wrong with the configuration. how can i adapt it. DC, ET, chopper are not used here





when enable DB module in AHC mode and RED/FED input sources are both ePWMxA, the ePWMxA output low level and the ePWMxB output high level, it seems that ePWMxA stucks at low level, no matter how i set the AQ module, i just cannot change ePWMxA, why? and i read the tbctr and cmpA/B register, tbctr is counting up, cmpA and cmpB have non zero value, but in the process it seems that the cmpA/B events do not occur once.
i can only change the ePWMxA/B using ctr_prd/zro event, cmpA/B events seem not work, no matter what i set


both epwmA and epwmB aqctl register using direct mode, but in the actual value of aqctl, these registers setting is shadow mode!! what is wrong
when i totally use the syscfg for ePWM modules, the AQCTLA/B shadowmode is not set as the syscfg, AQCTL vaulue is 0x0050. so i manually change the shadow mode of ePWMxA/B action qualifier, by "EPwM_disableActionQualifierShadowLOadMOde(myEPWM INU2 U BASE, EPWM ACTION QUALIFIER A),
EPWM_disableActionQualifierShadowLOadMOde(myEPWM INU2 U BASE, EPWM ACTION QUALIFIER B)," this change the AQCTL value but AQCTLA and AQCTLB turn into 0x0000, so i manually set the AQCTLA/B again. finally this setting works. Are there any bugs in the syscfg tools, it seems it does not work well.
Please use the ePWM developer guide to configure the ePWM: https://www.ti.com/lit/an/sprad12a/sprad12a.pdf
The guide above provides step by step guide to setup the ePWM.
I see number of issue in your config:
1. Your counter is freeze mode. you need to put it in either up mode, down mode or up-down mode.
2. You need to provide finite CMPA value to have comparison. Calculation is shown in the guide.
3. Shadow mode need to be selected when loading CMPA.
Also you can install C2000Ware and refer the example directly to compare your code with reference code.
Regards,
Sumit