主题中讨论的其他器件:SysConfig
您好,TE 团队:
您能告诉我如何配置半双工 SPI 吗?
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.
您好、Aman:
MCSPI 不支持半双工的发送和接收模式。 在半双工模式下、该模式为仅发送模式或仅接收模式。
如果主器件要接收数据、 则必须将数据写入 TX 缓冲区以生成 SPI 时钟、以便从器件发送数据。 您可以在3引脚模式下尝试以下方法来处理 TX 和 RX 数据:
1.对于 TX 数据:将 McSPI 配置为3引脚 TX 模式, D0用于 TX。 可以发送 TX 数据和命令、以指示从器件准备要发送的数据
2.对于 RX 数据:将 McSPI 配置为3引脚 RX 模式或4引脚模式、D1用于 RX、但禁用 D0和 D1的输出。 您可以将数据写入 TX 缓冲区以生成 SPI 时钟(我尚未进行测试)。
