> this means bytes.
no not bytes, 'int's = TWO bytes!
A byte is 0 to 255 and two bytes are 0 to 65535
and -128 to 127 and -32768 to 32767 for signed.
I usually use PICs, so no guarantee that this is correct, but you can do it LIKE this (you have to change varnames etc. I did not test this code) :
//You have to include stdlib at top of the source file:
unsigned char text;
itoa(data,text,10); // converts an integer into ascii...
// 10 is the radix of the number,
// 2 for binary, 10 for decimal, 16 for hexadecimal etc.