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.

MSP430F2418串口接收异常

Other Parts Discussed in Thread: MSP430F2418

你好

在进行MSP430F2418串口接收时,接收300字节。会随机出现中间少一个字节,

下面是串口初始化:

UCA0CTL1 |= UCSWRST;
UCA0CTL1 |= UCSSEL_2; ////SMCLK

UCA0BR0= 0X22;
UCA0BR1 = 0x00; 
UCA0MCTL = 0x00;

UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0ABCTL |= UCABDEN;
P3SEL |= 0X30;
UC0IE |= UCA0RXIE;