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.
Tool/software:
Hi champs,
Customer feedback some question when using syscfg to set MEP when HRPWM is enabled and set as phase control mode. According to the datasheet, the edge mode should be configured for both rising and falling edges. However, the edge mode attribute disappears when the HRPWM mode is configured as phase mode.
HRPWM_setMEPEdgeSelect(); This function also did not be generated by syscfg.
The workaround to resolve this issue is to first configure the HRPWM control mode to Duty or Period mode. In this mode, you can set the edge mode to MEP controls for both rising and falling edges. After configuring the edge mode, compile the code then change the control mode to phase mode. Then code can be generated correctly.
This workaround is quite tricky and inconvenient. Customer want to know if we can solve it?
Regards
Andre
Hi AndreTseng,
I see that Edge control mode input is not present in the HRPWM Phase control mode.
But it automatically sets and generates function the MEP Edge select to rising and falling edge in the EPWM_iniit() function in board.c file as soon as you select HR Phase control mode.
Thanks.