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

char mmcInit (void);

Initialize the port, SPI, and the MMC card. You might need to adjust this routing if the library to adapt it to another type of MSP430 MCU or to another USART module. Also, some of the control signals can be set to a different port, if necessary.

Parameter: None
Return: Status Error or success code