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 am using TMS320F28388D, and i need to generate 3 phase pwm.
So I configured epwm1 as master and epwm 2,3 as slaves.
I need 40 KHz Switching frequency, so i configured TBPRD as 1250.
TBCLK is 100 MHz and counter mode is up down count.
The counter TBCTR will be changing from 0 to 1250 and 1250 to 0 right.
Now at what rate the TBCTR will be changing. Because when i measure epw1regs.TBCTR through CRO it's time period is 30 msec. Why it is 30 msec?
Whatever I measured is the right way for checking TBCTR or any other way is there to check the frequency of up down counter.
Thanks & Regards,
Saikumar.
With 1250 as TBPRD, what is the frequency of the EPWM signal you are outputing?
Everything looks correct:
EPWMCLK = 100MHz
TBPRD = 1250 then 100MHz/1250 = 80kHz
Using up-down mode:
80kHz/2 = 40kHz.
Yes , but i am seeing some spikes in current feedback waveforms at 30 msec interval.
Do I need to change any settings apart from this as frequency is 40 KHz.
in current feedback waveforms at 30 msec interval
I cannot see the rest of the system but for you to create a 40kHz signal, your settings are correct. That is all you set to change the period. Did you look at your EPWM on your scope to see the 40kHz signal?
I'm not sure what the 30msec signal is or where it could be originated from.
Thank you Nima for the confirmation and quick response.
Yes i can see the frequency is 40 KHz.