Hello All, We are developing a project using PIC Microcontroller to communicate wit SD card using SPI interface. We are using 3M card slot for connecting th microcontroller to the SD card.
In the initialization of SD card we are doing the following steps. SPI is initialized to 62.5 KHz The SD card is provided with some dummy clocks by sending some dat through the SPI The SD card is selected by lowering its CS pin The Following sequence is given through SPI for setting the SD card t IDLE state
0x40 0x00 0x00 0x00 0x00 0x95 Then few dummy clock signals are provided through SPI send The response from the SD card is noted by reading the SPI buffer. With reference to the Sandisk Product manual it is given that the respons should be of r1 format (ie, a 1 byte data with 0 at the MSB)But we are getting the response as 0xFF for any number of clock pulses The response is similar for both the Card is in the slot or not.
While analyzing the waveforms of the SPI lines it is observed that th respective signals are flowing correctly.
We couldn?t diagnose the problem as the pull-up resistors used for th
3M slot are working fine.Please advice on how to rectify this problem.
Your early reply is very much appriciated Hari