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.

[参考译文] AM263P4:MCSPI 在字之间切换 CS

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1452927/am263p4-mcspi-toggle-cs-between-words

器件型号:AM263P4

工具与软件:

我使用的是 AM263P4 Launchpad。 我的 SPI 外设需要在每个16位字之间进行 CS 线路切换。

目前、我使用 DMA 阻塞模式、并设置1字事务、以便 CS 线路在每个事务之间切换。

有没有更有效的方法可以做到这一点? 理想情况下、我希望对多个16位字进行1个事务、并在每个字之间自动切换 CS。

感谢您的帮助!

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

    尊敬的 Huang:

    请参阅 mcspi_loopback_dma/中断示例。 在 上述任意示例中、请将 dataSize 配置为16。 并观察逻辑分析仪上的 CS 线路、 CS 在每个字之间自动切换。

    有关更多详细信息、请查看随附的图像。