SAM3S8/SD8 Software Package: SD/MMC Low Level Commands

SAM3S8/SD8 Software Package 1.2

# SD/MMC Low Level Commands

## Purpose

Implementation for SD/MMC low level driver. Supply a set of SD/MMC mode's interface.

## SD/MMC HW property and setup functions

- SdmmcGetProperty()
- SdmmcSetBusWidth()
- SdmmcEnableHsMode()
- SdmmcSetSpeed()

## SD/MMC command functions

- Functions for both SD/MMC
  - SdmmcPowerOn() : Perform SD/MMC power on initialization sequence.
  - SdmmcCmd0() : Resets all cards to idle state
  - SdmmcCmd2() : Asks any card to send the CID numbers on the CMD line
  - SdmmcCmd7() : Command toggles a card between the stand-by and transfer states or between
  - SdmmcCmd9() : Addressed card sends its card-specific data (CSD) on the CMD line
  - SdmmcCmd12() : Forces the card to stop transmission
  - SdmmcCmd13() : Addressed card sends its status register
  - SdmmcCmd16() : Set block length
  - SdmmcCmd17() : Read single block
  - SdmmcCmd18() : Read multiple blocks
  - SdmmcCmd24() : Write single block
  - SdmmcCmd25() : Write multiple blocks
  - SdmmcCmd55() : App command, should be sent before application specific command
  - SdmmcRead() : Write data without any command (usually follow SdmmcCmd18()).
  - SdmmcWrite() : Write data without any command (usually follow SdmmcCmd25()).
- Functions for SD card.
  - SdCmd3() : Ask the card to publish a new relative address
  - SdCmd6() : SD Switch command.
  - SdCmd8() : Sends SD Memory Card interface condition, which includes host supply voltage information and asks the card whether card supports voltage
  - SdAcmd6() : Defines the data bus width
  - SdAcmd41() : Asks to all cards to send their operations conditions.
  - SdAcmd51() : Sends SD Card Configuration Register (SCR).
- Functions for MMC card
  - MmcCmd1() : MMC send operation condition command.
  - MmcCmd3() : Set a new relative address to MMC card.
  - MmcCmd6() : MMC Switch.
  - MmcCmd8() : Sends MMC EXT_CSD.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines