This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

sd card interfacing with msp430



sir,

This is shubhendra.

I am working on a project to transfer data from one SD card to other SD card.

Can anyone help me out how to interface sd card with msp430 and how to read and to write data in sd card through host.

And what msp430 would be better choice?

Thankyou.

  • Most SD cards (all standard and many SDHC cards) support a serial interface which can be connected to the MSPs hardware SPI ports (or a software SPI). It's even possible to have multiple cards attached to the same SPI bus at the same time (each one will get its own chip select signal thrugh a normal I/O pin then). However, copying is faster if you use two separate SPI interfaces,s o you can write to one card while reading from the other instead of interleaving access.

    There have been many threads about SD card access. Please use the board search.

    Note that standard SD cards and SDHC cards require a different initialization procedure (command sequence) and use different data addressing (byte address on standard SD, sector address on SDHC) in the read and write commands.

    So far for the raw data access. If the cards carry a file system, you'll also need a file system driver on top of it. There are free solutions available. Again, the board search sould list you several threads with relevant information.

  • sorry, what do you mean by board search?

    and thanks for your rpl it is helping me to understand it.

    can you share some link or file for example to understand more about interfacing and cding part?

    Thanks.

  • shubhendra jain said:
    sorry, what do you mean by board search?

    Top right corner of this page, 'search community' field. ('board' and 'forum' are more or less synonyms)

  • Hi..

     can you suggest me how to start with SD card coding part as i am new to SD card. I tried to search on board also. but could not get understood properly.

  • You'll probably want to handle the SD card as if it were an MMC card, as teh serieal interface of MMC is compatible wiht the SPI interface the MSP offers. This way, you'll be faster with serial transfer than with a 4-bit parallel transfer that you'd have to handle in plain software.

    There's an appnote about MMC programming. It was the base for my own MMC/SD functions. However, the code presented there is limited to MMC or SD cards with <2GB size. For larger cards up to 4GB, the minimum page size is 1k or even 2k isntead of 512 bytes, and for larger HC cards, the device descriptor and the command parameters are different, as well as a slightly different init procedure. Also, some (noname) manufacturers have remove the serial interface support.

  • ok if i want to go with only 2GB size sd card then what appnote is available there. can you please give me that link of code? Thanks

  • Jens-Michael Gross said:

    sorry, what do you mean by board search?

    Top right corner of this page, 'search community' field. ('board' and 'forum' are more or less synonyms)[/quote]

    As well as just searching this board/forum/site, remember that tools are available to search the entire interweb: possibly the best-known of these is called "Google" - you may have heard of it...?

    Try it:  http://www.google.com?q=SD+Card+microcontroller

    See also: http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/p/239924/839827.aspx#839827

  • Thank You very much. Hope, U dint get bothered

    .:)

**Attention** This is a public forum