Pavendhan Yadav

SD Card Interface with MCF51JM128

Discussion created by Pavendhan Yadav on Oct 3, 2009
Latest reply on Oct 8, 2009 by Paolo Alcantara Cadillo
Hi, I am working on a project which requires SD-Card Interface. I use SPI1 of the MCF51JM128 for communicating with the SD Card. I couldnt able to initialize the SD-Card, when I send the CMD0 and waiting for the response 0x01, I am always getting the response as 0xFF instead of 0x01. I changed the baud rates, clock polarites(CPHA,CPOL) all in vain. Then, I tried the SPI communication with another board(SLAVE). I can able to achieve the communication between these boards. I dont know where I am wrong, I followed the same code of "SD_Reader_V2.mcp". The only difference is I am using SPI1 insted of SPI2. I need some help to solve this problem. Kindly waiting for positive reply. Thanks, Pavendhan Yadav

Outcomes