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.

Long execution time using dsp 28335

I am running a motor through an inverter. 

My main code which is inside taking 130 us, which is too much for a small piece of code.

My switching frequency is currently 5kHz (T=200 us). If I use 10kHz, then I am getting erroneous results.

Epwm settings related to switching frequency are:

 

Regards