将SD/MMC卡置于SPI模式时,CS可以在字节之间变高吗?

发布于 2024-09-08 05:27:13 字数 205 浏览 9 评论 0原文

我有一个微处理器,卡的片选 (CS) 线连接到由 SPI (SSP) 电路自动驱动的“帧”信号。这会导致 CS 在每个字节之间变高。

MMC/SD 规范要求将 CS 保持为低电平才能进入 SPI 模式。是否需要始终保持低电平,或者仅在传输 CMD0 的每个字节时保持低电平?

I have a microprocessor with the card's chip select (CS) line tied to a 'frame' signal automatically driven by the SPI (SSP) circuit. This causes CS to go high between each byte.

The MMC/SD specs require that CS be held low in order to enter SPI mode. Does it need to be held low the entire time, or only when transmitting each byte of CMD0?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灯角 2024-09-15 05:27:13

在 sdcard.org 网站上,我找到了 SDIO 的各种 PDF 规范。这些似乎都没有明确的时间声明来澄清这一点。然而,这种说法确实发生了:

(1) SD 总线模式由 CMD0 选择(在 CMD0 执行期间保持引脚 1 为高电平)。

来自 SD 主机控制器简化规范版本 2.00 第 88 页。 (“Pin 1”是芯片选择 (CS))

鉴于这句话,SD 卡制造商有理由要求您通过整个 D0 断言 CS ..D15 位正在发送。换句话说,我认为您不能使用 SPI 帧信号,并且需要 GPIO 引脚或类似的引脚。

At the sdcard.org site, I found various PDF specifications for SDIO. None of these seem to have an explicit timing statement which clarifies this. However, this statement does occur:

(1) SD Bus mode is selected by CMD0 (Keep Pin 1 to high during CMD0 execution).

from page 88 of SD Host Controller Simplified Specification Version 2.00. ("Pin 1" is Chip Select (CS))

Given that sentence, an SD card manufacturer would be justified in requiring that you assert CS through the entire D0..D15 bits being sent. In other words, I think you cannot use the SPI frame signal and will need a GPIO pin or similar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文