EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

SD card interface using FPGA

Started by k7ar...@gmail.com April 22, 2008
hai all , i am arun . i am working on interfacing SD card using FPGA. i am using SPI mode of communication to SD card .
1. i wrote the code in verilog for the identification mode , i generated clock frequency of 100 khz to SD clk then i kept the SD card clock cycle to run for 74 cycles with CS high
2. after lowered the CS to 0 and gave the command 0 i.e 40_00_00_00_00_95 (hex) to the card , i should get the respoce as 1 byte 00x but i am getting 1(high) throughout for any no. of clock cycles. what could be the problem for this. . the power supply given to the card is 3.3 v.

i also tried using SD bus mode , since the respose is always high.. i am following sandisk SD card product manual for reference. kindly tell me how to initialise the card to get the proper response



To post a message, send it to: f...
To unsubscribe, send a blank message to: f...
Is it CS or CS_N ?

k...@gmail.com wrote:
> hai all , i am arun . i am working on interfacing SD card using FPGA. i am using SPI mode of communication to SD card .
> 1. i wrote the code in verilog for the identification mode , i generated clock frequency of 100 khz to SD clk then i kept the SD card clock cycle to run for 74 cycles with CS high
> 2. after lowered the CS to 0 and gave the command 0 i.e 40_00_00_00_00_95 (hex) to the card , i should get the respoce as 1 byte 00x but i am getting 1(high) throughout for any no. of clock cycles. what could be the problem for this. . the power supply given to the card is 3.3 v.
>
> i also tried using SD bus mode , since the respose is always high.. i am following sandisk SD card product manual for reference. kindly tell me how to initialise the card to get the proper response
>

--
http://www.johnkent.com.au
http://members.optushome.com.au/jekent


To post a message, send it to: f...
To unsubscribe, send a blank message to: f...
This C program though written for a 8051 may come in handy

http://www.cs.ucr.edu/~amitra/sdcard/sdcard_driver.c

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


To post a message, send it to: f...
To unsubscribe, send a blank message to: f...
--- In f..., Abhishek Mitra wrote:
>
> This C program though written for a 8051 may come in handy
>
> http://www.cs.ucr.edu/~amitra/sdcard/sdcard_driver.c
>
> hai thanks you for the code. i follwed the code and got mine
working .
thanks a lot
>
______________________________________________________________________
______________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>



To post a message, send it to: f...
To unsubscribe, send a blank message to: f...

The 2024 Embedded Online Conference