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.

[参考译文] CCS/TMS570LS3137:如何在 TMS570Ls3137中设置芯片选择?

Guru**** 2478765 points
Other Parts Discussed in Thread: EM1402EVM, HALCOGEN, TMS570LS3137

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/691942/ccs-tms570ls3137-how-to-set-chip-select-in-tms570ls3137

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

工具/软件:Code Composer Studio

您好、先生、

对于芯片选择、我已将 CS0和 CS1作为 GIO、并将其作为输出、在 halcogen 中将 DOUT 分配为1。 我将 EM1402EVM 的 CS_STORE 和 CS_ENABLE 连接到 TMS570Ls3137板的 GIOA4和 GIOA7端口。

在代码中、它们设置为 CS3唤醒高电平和低电平、如下所示:

空 SetCS3forWake ()

spiREG2->GCR0 = 1;//使 SPI 3退出复位状态
spiREG2->PCDIR = 1< }

空 SetWakeHigh()

spiREG2->PCSET = 1< }

空 SetWakeLow()

spiREG2->PCCLR = 1< }

现在、我很困惑我必须在代码中为芯片选择引脚执行哪些设置?

请提供一些解决方案、

谢谢你

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

    LS3137器件上的 SPI2没有 CS3。