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.

TMS320F280049: HRPWM Duty calculation and register setting

Part Number: TMS320F280049

Hi Champs,

Please let me clarify the HRPWM Duty configuration.

For example, System 100MHz, Fs = 20KHz , Period = 5000:

EPwm1Reg.CMPA.all = ( Period * 256 * Duty ) * 256;
Is this setting correct?

Thank you for your kind check.
Best regards,
Hitoshi