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.

关于msp430fr5739 开发板 调试版串口模块校验位问题

Other Parts Discussed in Thread: MSP430FR5739, MSP430F1612

我使用的是msp430fr5739 开发板。在调试 uart0时,当我不设置校验位设置时,电脑端串口软件不管是设置无校验位,还是奇校验 发送 430 均可正常接收,但是当我在430程序中设置打开 奇校验时 ,我在电脑端用串口助手发出带校验位的数据,430收不到 。这里 我猜测 是不是 这个application uart 会自动把我收到的数据 去掉校验位 这样处理的?而他不是一个正常的串口?我无法使用校验了?

程序如下

UCA0CTLW0 |= UCSWRST;

UCA0CTLW0|=UCPEN;
UCA0CTLW0 |= UCSSEL_1;  // choose  ACLK aclk= 1mhz 


UCA0BR0 = 52; // 1200 baud
UCA0BR1 = 0;

UCA0MCTLW |= 0X4911;

UCA0CTLW0 &= ~UCSWRST; // release from reset

  • 你好,

    我怀疑一个问题点,因为USB转为串口之后,数据是丢给MSP430F1612仿真器,仿真器再转换为UART信号了,所以我怀疑是1612没有设置CRC。

    建议你不用5739的仿真器调试串口。

    自己外接一个USB转串口模块来调试UART的CRC功能。