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.
Hi,
I believe it would be TIMERxPRD = (TBPRD+1)/2 -1
PWM_freq = 10K
CPU_freq = 150M
TBPRD = CPU_freq / PWM_freq - 1 = 14999
TIMERxPRD = 7499
===
The CPUTimer method you described is viable.
If you wanted, you could instead use another ePWM or an eCAP peripheral to generate your TBPRD/2 interrupts. If done this way, hardware synchronization features could be used to force alignment, if desired.
Thank you,
Brett
Hi,
"Is another "ePWM" meaning HRPWM?"
Not necessarily. For example, if ePWM1 is the PWM output to your FETs, then ePWM2 could be configured to be ePWM1_PRD / 2.
ePWM2 would then be responsible for generating the interrupts you need.
ePWM1 would generate a synch pulse every ePWM1_PRD. ePWM2's timer would synchronize with ePWM1 when it receives the synch pulse.
Good luck in your application!
Thank you,
Brett