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.

[参考译文] TMS570LS1224:Hercules™︎安全微控制器论坛

Guru**** 2556920 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/890463/tms570ls1224-hercules-safety-microcontrollers-forum

器件型号:TMS570LS1224

我有数据0x08。

我想通过 SPI 发送函数发送一个字节的数据。

TransmitData (spiBASE-t * SPI、spiDAT1_t *数据通信 fu_t、uint32块大小、 uint16 * srcbuff);

我已将 uint16更改为 uint8。

TransmitData (spiBASE-t * SPI、spiDAT1_t *数据通信 fu_t、uint32块大小、 uint8 * srcbuff);

如果错误,发送方式是否正确,请建议我如何发送?

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

    Gautam、您好!

    是的、正确。  

    CHARLEN[4:0]指定数据字中的位数(2至16)。 CHARLEN[4:0]值指示状态控制逻辑对接收或发送的位数进行计数、以确定何时传输一个完整的字。


    对于主器件和从器件、数据字长度必须编程为相同的长度。