This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5419A: How to implement interrupt driven UART transmit?

Part Number: MSP430F5419A

Hello,

   I have a product where we need to send a string to a slow serial peripheral (9600 baud) and the messages can be about 100 bytes at a time. I currently have this working tx function:

unsigned int i, len;
len = strlen(_ptr);
for(i=0 ; i<len ; i++)
{
while(!(UCA2IFG&UCTXIFG));
UCA2TXBUF = (unsigned char) _ptr[i];
}
while(UCA2STAT&UCBUSY); 

However, since the baud rate is slow, this causes the CPU to spend a lot of time waiting. What is the best way to change this to an interrupt driven routine, or something to unburden the CPU? 

Thanks,

Derek

**Attention** This is a public forum