1 / 6

INTERFACING SD CARD WITH MSP430F5435.

INTERFACING SD CARD WITH MSP430F5435. FEW COMMANDS IN SPI MODE. CMD0 :- Resets the sd card & used in initialization process. CMD17 :- used to read a specified block length of sd card. CMD24 :- used to write a specified block length in sd card .(generally kept 512 bytes).

acton-buck
Download Presentation

INTERFACING SD CARD WITH MSP430F5435.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INTERFACING SD CARD WITH MSP430F5435.

  2. FEW COMMANDS IN SPI MODE • CMD0 :- Resets the sd card & used in initialization process. • CMD17 :- used to read a specified block length of sd card. • CMD24 :- used to write a specified block length in sd card .(generally kept 512 bytes). • CMD9:- asks the card to send card specific data register.The card specific data register has all the information about the access for sd card like write protect,max current in read /write,blockmis-management,erase options etc. • CMD58:- reads the ocr register of card .the register gives operating voltage conditions for sandisksd card.

  3. READING & WRITING IN TO SD CARD • READING: • ---------------[COMMAND ]----------------------------------------------------- • ----------------------------------------[Command RESPONSE]----[DATA BLOCK][CRC]----- • *Command use d for reading CMD17 • *Command Response obtained is R1=0x00(obtained) defined as follows:- R1=0x0()()()()()()() If ()=1 in any case there is error somewhere may be parameter,or address or idle state etc If ()=0 then read is perfectly good. The data block is itself has data token received ,the start byte is FD,then the data depending on what is to be read ,the last 2 bytes are crc bytes. Note :-all the Data transmission is MSB first

  4. READING & WRITING IN TO SD CARD • Writing:- • -----[command]---[start token]-[data block] • ----------[Command Response]----------------------------[Data response] • *Command used for reading CMD17 • *Command Response obtained is R1=0x00(obtained) defined as follows:- R1=0x0()()()()()()() If ()=1 in any case there is error somewhere may be parameter,or address or idle state etc. The start token is same as the token given in read. The data response signifies whether card accepted data or not.it is given as shown:- [x][x][x][o][status][1] 010-data accepted. 101-data rejected due to a crc error. 110-data rejected due to a write error.

  5. THANK YOU

More Related