SLAA281C November   2005  – August 2018 MSP430F1610 , MSP430F1610 , MSP430F1611 , MSP430F1611 , MSP430F1612 , MSP430F1612 , MSP430G2001 , MSP430G2001 , MSP430G2101 , MSP430G2101 , MSP430G2111 , MSP430G2111 , MSP430G2121 , MSP430G2121 , MSP430G2131 , MSP430G2131 , MSP430G2201 , MSP430G2201 , MSP430G2201-Q1 , MSP430G2201-Q1 , MSP430G2211 , MSP430G2211 , MSP430G2221 , MSP430G2221 , MSP430G2231 , MSP430G2231 , MSP430G2231-Q1 , MSP430G2231-Q1

 

  1.   Interfacing MSP430™ MCUs With MMC or SD Flash Memory Cards
    1.     Trademarks
    2. 1 Hardware Description
    3. 2 Software Description
    4. 3 Function Description
      1. 3.1 char mmcInit (void);
      2. 3.2 char mmcping(void);
      3. 3.3 void mmcSendCmd (const char cmd, unsigned long data, const char crc);
      4. 3.4 char mmcGoIdle();
      5. 3.5 char mmcSetBlockLength (const unsigned long);
      6. 3.6 char mmcReadBlock(const unsigned long address, const unsigned long count, unsigned char *pBuffer);
      7. 3.7 char mmcWriteBlock (const unsigned long address, const unsigned long count, unsigned char *pBuffer);
      8. 3.8 char mmcReadRegister (const char cmd_register, const unsigned char length, unsigned char *pBuffer);
      9. 3.9 unsigned long mmcReadCardSize(void);
    5. 4 References
  2.   Revision History

Interfacing MSP430™ MCUs With MMC or SD Flash Memory Cards

This application report and the associated source code files demonstrate a serial peripheral interface (SPI) between the MSP430F1612 microcontroller (MCU) and an MMC or SD flash memory card that used in SPI mode. The provided information can be used with any MSP430™ MCU with a hardware SPI interface.

The sample software described in this application report can be downloaded from http://www.ti.com/lit/zip/slaa281.