Foreword
Free, bored, with reference to several blog, read and write access to the content of the SD card to organize. Graphic part from references.
References in the blog, written in very detailed, it is recommended interested to see later references.
Pin Description
(1) standard SD card:
(2)
It can read and write access to the SD card through SD mode and SPI mode.
SD card command protocol
1, SD card initialization
2, read access SD card
Wherein the content of the specific instruction is CMD17 {8'h51, read_sec_i [31:24], read_sec_i [23:16], read_sec_i [15: 8], read_sec_i [7: 0], 8'hff}; sec_i is a 32bit the data indicates the sector address read SD card.
3, SD card write access
Wherein the content of the specific instruction is CMD24 {8'h58, sec_i [31:24], sec_i [23:16], sec_i [15: 8], sec_i [7: 0], 8'hff}; sec_i is a 32bit the data indicate that the SD card write the address of the sector.
>> << Click here to return to page navigation
references
1, bysg312 : | SD card reader SD card reader realize _Verilog |
2, hit the gas cylinder : | The SD card reader FPGA operation |