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.
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 .
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 :) )