Part Number: TMS320F28P550SJ
Hi champs,
I am asking this for our customer.
The user wants us to clarify what happens if the user sets TBCLKSYNC while EPWM counters are running and TBCLKSYNC has been already set?
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: TMS320F28P550SJ
Hi champs,
I am asking this for our customer.
The user wants us to clarify what happens if the user sets TBCLKSYNC while EPWM counters are running and TBCLKSYNC has been already set?
Wayne,
Yes disabling or enabling TBCLKSYNC while counter running or during runtime will cause either stop or run counter which may corrupt the ePWM. It should be only done during initialization. For example disable TBCLKSYNC --> configure ePWM --> enable TBCLKSYNC
Regards,
Sumit
Hi Sumit,
In this case, the user meant there is no disabling after enabling once. Only enable and then enable again. What happens to the second enable? Will this code affect anything?
Wayne,
In that case it won't affect anything since clock is already enabled. So, even if there is instruction in ISR for re-enabling, it won't be affect the operation.
Regards,
Sumit