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.

[参考译文] MSP430F5529:UART 通信

Guru**** 2399305 points
Other Parts Discussed in Thread: ADS1220

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1113132/msp430f5529-uart-communication

器件型号:MSP430F5529
主题中讨论的其他器件:ADS1220

您好、团队正在寻求帮助。

1.我从3个 ADS1220通道获取数据。
此通信在 SPI 上的 ADS1220和 MSP4305529之间完成。
3.我将采样的24位值保存到32位长整型变量中。
我将每个32位移位到 UART (8位)、分为四个部分。
5.我想查看并改进 maltab 中的处理结果(我在 Python 中很成功)
6.我在 MATLAB 中接收数据,但不知道如何对数据进行排序。


此外
在 UART 中移动所有三个通道数据(仅限单个采样)后、我将"/a/"作为分隔符发送到单独的数据。以12字节的块(每个通道4字节的数据)为单位。
我在 MATLAB 中使用了 Fread 命令、但精度为 uint8、我在其中看到数据进入、但当我尝试使用 uint32时、数据不是我所期望的。

-Mark

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

    数据有什么问题? 顺序错误? 由于 SPI 只是逐字节发送数据、因此您需要更改传输逻辑以进行修复。