Hi All.
I'm need to send string via RS-232 connected to MSP 430 FG4618.
Because i used printf function to send string but not success, I rewrite writestring function to send follow as :
void writestring(char * str)
{
int i = 0;
for(i = 0; i < strlen(str); i++)
{
while (!(IFG2 & UCA0TXIFG));
UCA0TXBUF = str[i];
}
}
But i didn't get the string not like original. (error some character).
and i want to know how to use function of string in IAR complier .exp:
1) printf ( " Hello Wolrd ") ; // this function can send string Hello Wolrd to RS-232 port.
2) putc (x) ;
i added string.h, stdio.h in my code .
Please help me to solve this problems.
thanks a lot.