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.
Tool/software: Code Composer Studio
I am driving a circuit with TMS320F28377 under the frequency of 200MHz. I control my circuit with the interrupt frequency of 20K Hz , every 50 u sec. It means that I have 10,000 cycling time to do every thing. I am trying to transmit my data through SCI at each control time. However, it seems that sprintf() takes a lot of time to make my data ready to be transmitted. Is there any way I can use some thing faster? I need to send 5 float data each time.
My code is :
sprintf(msg, "%4.1f ,%4.1f ,%.5f ,%.3f ,%6f , \n \r", P_f, Q_f,Delta, V_abs,t_count);
scia_msg(msg);
Unfortunately, sprintf is the only solution from TI. Consider an internet search on the term float to string in c without sprintf.
Thanks and regards,
-George