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.

TMS320F28379D: Reg: EPWM ( TBPRD)

Part Number: TMS320F28379D

Dear All,

I am using LAUNCHXL_F28379D, and I need to generate a 1 kHz PWM at EPWM1A. As of now, I am using CPU1 alone.

EPWM parameters

i) UP DOWN count.

ii) HSPCLKDIV = 0 and CLKDIV =0.

TBPRD=(1/2)(TBCLK/Fpwm) = (1/2)*(100 MHz/1 kHz) = 50000.

In hardware, I am getting 500 Hz instead of 1 kHz.

Please let me know where I am making a mistake.

Thank you

Prakash S