I'm using the MSP430 Launchpad and I've read most of the forum posts on the RS232 topic. I have the jumpers configured to use the hardware UART on the G2553 IC and having it transmitting at 9600 baud. I plan to update this using off-board hardware in the future to obtain a higher baud rate. My question is, if I want to transmit serial data as fast as possible, is the most appropriate way to do this:
a) Wait until USCI TX interrupts are disabled while ((IE2 & UCA0TXIE)); // assuming USCI TX interrupts are initially disabled.
b) Write to the transmit buffer UCA0TXBUF = number;
c) Enable the USCI TX interrtupt; IE2 |= USC0TXIE;
d) within the USCIAB0TX interrupt routine, disable the USCI TX Interrupt IE2 |= UCA0TXIE;
Originally, I tried to wait/pause on the UXA0XIFG interrupt flag, but it seems easier just to work with the interrupt enable bit.
I just wanted to check if this is the typical way, or if I was missing something.