> this means bytes.
no not bytes, 'int's = TWO bytes!
A byte is 0 to 255 and two bytes are 0 to 65535
for unsigned
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) :
Code:
//You have to include stdlib at top of the source file:
#include <stdlib.h>
//[...]
unsigned char text[5];
itoa(data[0],text,10); // converts an integer into ascii...
// 10 is the radix of the number,
// 2 for binary, 10 for decimal, 16 for hexadecimal etc.
//...
SerWrite(text,5);