sd card interface

Sep 14, 2010 3 Replies

Hi



I'm trying to interface SD card (Transcend 1GB and 2GB) through SPI to Infineon controller.



It is not initializing, infact i'm not getting response from SD card for CMD0 (0x40).



when i'm going through some web site, it is given that not all SD cards support SPI communication.



I wanted to know whether these SD cards what i'm using will support SPI? and also the initialization sequence will differ from card to card? if so how can resolve this issue.


awaiting for u'r reply.



thank you, madhu


--------------------------------------- Posted through

formatting link


I never met a (fullsize) SD card that didn't support SPI mode. Get the datasheet for your actual card and read it. 99.99999% likely your code is buggy.

larwe expounded in news:01ea491d-350c-495b-9307-da818d83e0a2 @g18g2000vbn.googlegroups.com:

cards

Are you using an SPI peripheral controller, or bit-banging it?

Even if using the SPI peripheral, there are several configuration options that need careful selection. For starters, drop the speed down to some low level to make sure that the basics work. Check the clock polarity and phase also.

Warren

As was mentioned in another post, you can't talk to the card any faster than about 100 - 400K before it is fully initialized.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required