void UARTPutChar(unsigned int cTX)
{
UCA0TXBUF=cTX;
while (!(IFG2&UCA0TXIFG)); //waiting UCA0TXBUF is empty
IFG2&=~UCA0TXIFG; //clear TX interrupt flag
}
void UARTPutstring(char *str)
{
do
{
UARTPutChar(*str);
}
while(*++str!='\0');
UARTPutChar('\n');