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.

TMS320F280025: HRPWM configuration

Part Number: TMS320F280025


Hi

I am using a demo code "hrpwm_ex2_prdupdown_sfo_v8" and tried to generate a PWM @ 585.XXHz. I used a function HRPWM_Config(10667) and change below parameter from

        (*ePWM[j]).TBCTL.bit.HSPCLKDIV = TB_DIV1;
        (*ePWM[j]).TBCTL.bit.CLKDIV = TB_DIV1;          // TBCLK = SYSCLKOUT

to

        (*ePWM[j]).TBCTL.bit.HSPCLKDIV = TB_DIV4;
        (*ePWM[j]).TBCTL.bit.CLKDIV = TB_DIV4;          // TBCLK = SYSCLKOUT

However, EPWM1A is always 100% duty. I have tried different parameters. Only using original parameter can generate PWM @ 4.96KHz. Please advise do I miss something.

BR

HK Woo