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.
Dear team:
The description of TBCLKSYNC in TRM is as below:
But when my customer configures according to the TRM, the PWM module can't work.
Referring to the ControlSUITE and C2000WARE, TBCLKSYNC is set 1 in the InitPeripheralClocks(). That is to say, the routine does not configure the TBCLKSYNC bit in the order stated in the TRM.
May I ask why configure like this? And why does the PWM module not work if configure according to the TRM?
Best regards
Green,
I am not an expert on this device and ControlSuite was a long time. I know in the latest version of C2000Ware, we still enable TBCLKSYNC in the device_init function. That is so if a user configures epwm to just run, it would do so. You disable clock sync, configure multiple EPWMs that are related as in their timebase need to be synchronized, then enable the clocks all at once.
Nima