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.

[参考译文] TMS570LS3137:SPI4NCS[0]配置为 SPI 模式时、不驱动 CS 引脚

Guru**** 2587365 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1109146/tms570ls3137-cs-pin-is-not-driven-when-spi4ncs-0-is-configured-as-spi-mode

器件型号:TMS570LS3137
主题中讨论的其他器件:HALCOGEN

您好!

我尝试使用 SPI4与 ADC 芯   片连接,但是在使用 Halcogen 生成的函数 spiTransmitAndeData()写入 DAT1寄存器时,我可以看到生成了时钟,但 CS 引脚保持高电平,因为 ADC 没有响应。 我已确保在引脚多路复用设置中启用 SPI4。

如果有任何建议、我们将不胜感激。谢谢

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

    您好!

    1. Pinmux:确保选择 SPICS_0

    2.确保 CS0处于 SPI 功能模式:

     3、片选编号 CSNR:

      dataconfig1_t.CSNR  = 0xFE;