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.

[参考译文] TMS320F28388D:我希望在无信号时将 SPI 数据线路固定到高位。

Guru**** 2606725 points
Other Parts Discussed in Thread: TMS320F28388D

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1077999/tms320f28388d-i-want-to-fix-the-spi-data-line-to-high-when-there-is-no-signal

部件号:TMS320F28388D

我想在 TMS320F28388D 上使用 SPI_C 来控制 SD 卡的 SPI 模式。

目前,我已按如下方式初始化 SPI,但当 SPI_setConfig 完成时,“spic_SIMO”将固定为“低”。
=========================================
spic_Init( void )

 SPI_disableModule( spic_base );
 // LSPCLK = SYSCLK / 4,最大波特率= LSPCLK / 40000。 最大波特率= 400kHz
 SPI_setConfig( spic_base,device_LSPCLK_FREQ,SPI_PROT_POL0PHA0,// SPI 总线操作模式0
              SPI_MODE_MASTER,400000,8);
 SPI_disableFIFO (spic_base);
 SPI_disableLoopback ( spic_base );
 SPI_setEmulationMode( spic_base,SPI_emonization_stop_after 传输);
 SPI_enableModule( spic_base );
}
=========================================


SD 卡是一种使用与起始位和停止位时钟同步的比特流的设备。
为了接收同步比特流的起始位(低),
没有信号时,我想将数据线固定为“高”。

此致。

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

    您好,

    您可以在 GPIO 配置中启用 SPI 引脚的内部上拉。 这样,即使 SPI 模块不控制 SPI 引脚,也可以将 SPI 引脚拉高。

    此致,

    马诺伊