English 中文(简体)
利用SPI 启动SD卡
原标题:SD card initialization using SPI
问题回答

为什么你们需要CMD1? 你们是否阅读了下文的说明,即“CMD1是弱小(1.4毫米)标准尺寸的SD记忆卡的有效指挥,只有在重新启用一张卡(而不是在重新启用后)之后使用。

大约1张GB卡,人们想到的想法:

  • After every command (send command, get reply), do you send 8 dummy bytes before making CS high?
  • The values returned seem weird (0x05 doesn t have busy bit set, so WTF?), maybe there s a hardware issue?
  • Does the card work otherwise?

http://elm-chan.org/docs/mmc/mmc_e.html” rel=“nofollow”>here。 我使用了相关的。 FAT文档系统图书馆也运行良好。

但是,某些卡片可能无法找到解决办法。 对于这些卡片,你可能必须编辑程序/图书馆。 因此,您的1张GB卡的行为不同——可能是一种不同的卡片。 某些卡片的SPI模式可能不是为商业设备所使用,因此,某些卡片制造商可能更偏离规格。

如果你禁止指挥和制衣,你可能会有更大的控制权和信心,认为这些程序是正确的。 这样做是有用的,因为你需要一些坚实基础,以逐步取得进展。 我发现,“The <”;400 kHz 80 克隆器在一张卡上很关键,但可以在2兆赫以内运行。

在对两张卡都可靠的时刻进行指挥。





相关问题
Steps to read data from ARM microcontroller port

I am having trouble reading serial data from ARM LPC2378 microcontroller. Will I have to use UART or any GPIO port can be used?? is ayone having c code for it??

high speed tracing

I have an embedded board with a 32 Micro-controller, and an custom built OS, Unfortunately, as of now, connection to the PC is only through serial port, Internal memory is limited to 512KB. There are ...

Affordable, programmable device with gprs and simple sensors?

I ve got quite a fun challenge / work assignment. I m to monitor a couple of 5V light bulbs (warning lights) on a machine standing far out in no man s land. I m looking for an affordable device with ...

Alarm history stack or queue?

I m trying to develop an alarm history structure to be stored in non-volatile flash memory. Flash memory has a limited number of write cycles so I need a way to add records to the structure without ...

LD linker: Target address aligning but not address in ROM

I have a program that s resident in flash and will run from flash. Early in the program data segments are copied from flash to ram. I m using a linker script like (simplified): .text : { *(....

clear code for counting from 0 to 255 using 8-bit datatype

I was wondering if there is a clean way of counting from 0 to 255 using an 8 bit datatype, something like: for(uint8_t i(0);i<=255;++i) { .... } This obviously will not work but it makes it ...