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.

MSP430F5438A: RS485通讯丢失数据

Part Number: MSP430F5438A

急急急,卡了一周了都没测好。

用的是P3.4,P3.5引脚,配置成4800的波特率,按照User Guide 配置:

UCA0BR1 = 0x00;
UCA0BR0 = 0x06;
UCA0MCTL = UCBRF_0 + UCBRS_7;

配置成主机模式: 

问题是用Modbus Slave仿真时是收发正常的。

连接实物表时,发送数据是正常的,但是接收到的数据丢失的,通常接收超过3个字节就出错了。

用USB转TLL接收RS485芯片转换的数据发现和从机的数据是一致的.