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.

[参考译文] MSP432E401Y:使用 Timer32 或 Timer_A 并采用 MSP432 的 Modbus T3.5 计时器指南

Guru**** 2835775 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1602154/msp432e401y-guidance-on-modbus-t3-5-timer-with-msp432-using-timer32-or-timer_a

器件型号: MSP432E401Y

您好、

我将 FreeModbus (RTU Slave) 移植到 MSP432P401R 并对 T3.5 字符间超时使用 Timer32。 我观察到,从 PC 发送完整帧时,只有第一个和最后一个字节可靠地触发 pxMBFrameCBByteReceived()—中间字节缺失。

请告知:
为确保可靠的字节接收、用于 T3.5 的计时器是否有特定要求?
有关为配置 FreeModbus 计时器的任何指导 MSP432P401R 还是 TimerA?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我可以谈谈 MSP432P401R、但我不是很熟悉 FreeModbus。  

    根据您的描述(只看到第一个字节和最后一个字节)、我的第一个猜测是您的 pxMBFrameCBByteReceived 花费的时间过长、并且其他 Rx 字节丢失而不会溢出。 您的回调看起来是什么样子的?   [xMBASCIIReceiveFSM?]