i am unable to get 50hz epwm signal from controller board ...kindly tell me what is the minimum frequency epwm can give
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.
i am unable to get 50hz epwm signal from controller board ...kindly tell me what is the minimum frequency epwm can give
Hello,
Can I please see what your EPWM configuration is? Specifically the value for EPWMCLK, HSPCLKDIV, CLKDIV, TBPRD, Count Mode (Up, Down, UP & Down).
Best Regards,
Marlyn
Hello,
Thank you for providing the configuration.
I do want to point out that our max EPWM frequency on this device is 100MHz (this is noted in the datasheet).
For 50Hz, and if the EPWM frequency is changed to 100MHz (default) the calculations are as follows:
Tpwm = 1/50 = .02
TBCLK = 100MHz/(HSPCLKDIV*CLKDIV) = 100MHz/(4*1) = 25MHz
TTBCLK = 1/25MHz = 40nsec
TBPRD = (Tpwm/TTBCLK) -1 = (.02/40n)-1 = 499999
Therefor, for a 50Hz output I would change EPWMCLK to 100MHz (look at the EPWMCLKDIV bit), CLKDIV to divide by 1, and TBPRD to 499999
Best Regards,
Marlyn