SPI on Atmega328

Hi,

i have a little problem: I have an SD Card Breakout from ITeadStudio and i'm using the SimpleSDAudio (http://hackerspace-ffm.de/wiki/index.php?title=SimpleSDAudio) to play some Audio. When i'm using the Uno everything works fine but when i switch to my Breadboard Arduino (Atmega328P with 16Crystal) which normally works perfect, it has problems to read from SD-Card. My Breadboard looks excactly like this (without the Arduino): http://arduino.cc/en/uploads/Tutorial/BreadboardAVR.png and the SD Card ist connected to MISO MOSI, CS and CLK directly (pins 12,11,10,13), I'm pretty sure that I wire it correctly but the sd card makes problems. Have I forgotten something to use SPI on standalone Atmega?

Regards, Bauerbyter

P.S Sorry for my bad english :-)

:* http://hackerspace-ffm.de/wiki/index.php?title=Datei:SD_Card_Connection.png

Cs pin is 4 by default, have you uncomment the line to costumize the Cs pin to pin 10? ;)

Frédéric_Plante: :* http://hackerspace-ffm.de/wiki/index.php?title=Datei:SD_Card_Connection.png

Cs pin is 4 by default, have you uncomment the line to costumize the Cs pin to pin 10? ;)

yes i did, thanks! But I found the Problem: i dont know why but i changed the crystal and now everything works fine...strange :-)