SD card socket with MMC and Atmel

atmegaatmelmicrocontrollersd

I'm trying to include an SD card slot in one of my designs. The whole SD format seems confused at best, and I can't seem to find a definitive answer to what I need to wire up.

Apparently the easiest way to do it is with MMC (SPI) on my microcontroller. There are already prebuilt libraries for this use.

In hardware, I'm planning on using a socket from Yamaichi Electronics , FPS009-3202-BL, along with a TXB0104 level shifter to handle 5 V to 3.3 V signal conversion. The microcontroller is an ATtiny4313, which has MOSI on pin 17, MISO on pin 18, and SCK on pin 19. I'm not sure what to do with SS or even if I've wired it correctly. Here's a screenshot of what I have so far:

Enter image description here

How can I proceed from here?

Best Answer

So if anyone finds this later, I eventually found the answer on this page. http://www.ladyada.net/make/logshield/design.html

I hope it helps someone.