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.

UART data receiving issue

Other Parts Discussed in Thread: MSP430FR6989

I try to receive some data through UART module under MSP430FR6989

the baud rate is 19200 and the clock source from SMCLK 4Mhz

the issue is that I am missing data during the transfer process when using interrupt methods

the data I was trying to send

the actual data I am getting, 1st time its correct

2nd time there is a missmatch

3rd time 

any reason could cause this issue?  I double checked my baud rate setting and it seems correct.

UCA0CTL1 = UCSWRST;
UCA0CTL1 |= UCSSEL__SMCLK; // Set CLK = 4Mhz as UCBRCLK
UCA0CTL0 &= ~UCPEN; //None parity
UCA0CTL0 &= ~UC7BIT; //8 bit data
UCA0CTL0 &= ~UCSPB; //one stop bit
UCA0BR0 = 208; // 4000000/19200 = 208.3333
UCA0MCTLW |= 0x4900; // 4000000/19200 - INT(4000000/19200)=0.3333
// UCBRSx value = 0x49 (See UG)
UCA0BR1 = 0;
UCA0CTL1 &= ~UCSWRST; // release from reset
UCA0IE |= UCRXIE; // Enable USCI_A0 RX interrupt

Thanks for the help!

**Attention** This is a public forum