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.

very slow execution in TMS320F28027

Other Parts Discussed in Thread: CONTROLSUITE

Testing the Solar library lib , specifically, the 1 phase PLL in IQ format, I am getting excesive running times, I measured with the clock utility and have obtained an average of 3000 cycles to execute the calculation function , when according to the document accompanying the library it should be around 300 cycles , does anyone know what could be the reason ?, I also noticed excessive times in the 069 using fpu , thanks in advance .

  • Hi David,

    Unless we've a look at what exactly you're computing, its tough to comment. Are you talking about this file: SPLL_1ph_IQ?
    Also, which function is consuming 3000 cycles... SPLL_1ph_IQ_FUNC?

    Regards,
    Gautam
  • Hi Gautman,

    Yes, you´re right, SPLL_1ph_IQ and the the routine to which I refer is that, SPLL_1ph_IQ_FUNC,.

    Regards
  • David, one exercise I would like you to conduct. Simply toggle a GPIO before and after this function call. Do let us know what you observe and does it match with the clock profiler data.

    Regards,
    Gautam
  • Dear Gautman,

    As you asked me , I made the experiment , the results are consistent with what I stated in the first post ,see attached images, the time of the pin is 50.8 uS , the measured cycles are 3088 , having set the clock to 60MHz , 3088 / 60000000 , which is 51.4 uS near to pin time , I have also found that the refresh time of the associated timer (where the function is called), is correct to the configuration, 10ms .

    Time consumed in function plus 1 pin switch

    Clock cycles

    Code fragment

    Time betwwen calls, Timer 2 refresh time

  • Seems like you're indeed consuming these many cycles. Can you direct me to the document address in controlSuite?

    (Btw my name is 'Gautam' as in Batman's "Gotham" City and not Gautman :) )