+ while ((IFG2 & UCA0TXIFG) == 0); //loop until buffer is free
+ UCA0TXBUF = x; /* send the character */
+ while(!(IFG2 & UCA0TXIFG));
+}
+//! Transmit a byte.
+void serial_tx_old(unsigned char x){
+ while ((IFG2 & UCA0TXIFG) == 0); //loop until buffer is free