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.

MSP430F5438串口配置问题?

在调试串口通信时,需将串口设置为:

使用UCA1,串口时钟选择SMCLK为1MHZ,波特率9600,发送1字符:1起始位+8数据位+1偶校验+1停止位

如图示,屏蔽图中红色框那句代码,通信正常。

不屏蔽红色框中那句代码,通信不正常,具体表现在:能进入串口中断,但只能接收1个字节,且那一个字节数据也是错误的。

请问这个是怎么回事?