Myslim, ze u XC by mohlo fungovat **printf() **; ,tam je to myslim taky na UART1.
Jinak samozrejme pres pointer:
void sendString (consta char *str, unsigned int size)
{
while(size --)
{
UxTXREG = (unsigned char) *str;
str++;
while (UxSTAbits.UTXEN) // ceka na odelani
continue;
}
return;
}
kod jsem nezkousel … nebudou sedet asi nazvy registru …