使用SPI接口的MSP430F5438 SD卡 [英] MSP430F5438 SD card using an SPI interface

查看:310
本文介绍了使用SPI接口的MSP430F5438 SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 MSP430F5438 的SPI接口连接SD卡.硬件部分在我的设计中是正确的,但是我无法将任何数据发送到SD卡.我使用的源代码来自 针对MSP430 .

I want to connect an SD card using the SPI interface of MSP430F5438. The hardware part is correct in my design, however I could not send any data to the SD card. The source code I use is from Secure Digital Card Interface for the MSP430.

要进行调试,如何将数据发送到SD卡?数据应从ADC12MEM寄存器接收,只需要写入SD卡即可.根据上面的源代码,当我调试并且无法将任何用户输入发送到SD卡时,没有任何过程.

For debugging, how could I send data to the SD card? The data should be received from the ADC12MEM registers and just need to be written in the SD card. From this source code above, there is no process, when I debug and I could not send any user input to the SD card.

推荐答案

链接的PDF中的代码仅适用于< = 2 GB的SD卡,不适用于SDHC卡(4 GB或更大).如果找不到像全尺寸SD这样的小卡,只需使用带有适配器的microSD-它们在电气上是相同的.

The code in the linked PDF works only for SD cards <= 2 GB and not for SDHC cards (4 GB and bigger). If you can not find such a small card as full size SD, just use a microSD with an adapter - they are electrically the same.

这篇关于使用SPI接口的MSP430F5438 SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆