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.
Hello,
I have a TMS320F2812 DSP witch is programm to send a number [1, 2 , 3 , 4 , 5] to another processor. via a serial link.
the fact is that, the second processor read message in Ascii format and the number I have send to this processor are integer. this is my code source :
int j = 0;
if ( j < 5 )
{ j++}
fonction ( j ) ;
end
the fonction is use to send data via serial link. Please, how can I transform the j integer to an Ascii data like the same thing that the hyperterminal of window do when it send message?
Thanks
Hi,
Check this link:
http://bytes.com/topic/c/answers/458836-how-convert-integer-ascii-character
Regards,
Gautam
Hello,
Thank you for your replay,
do you talk about this code :
int i = 3;
char c = i + '0';
???
but, i don't how it operate? because 3 = 0x 33 in hexa