SendMMCCmdManual Function

Microchip MDD File System Interface

MDDFS Interface Library Help
SendMMCCmdManual Function
C
MMC_RESPONSE SendMMCCmdManual(
    BYTE cmd, 
    DWORD address
);
Description

SendMMCCmd prepares a command packet and sends it out over the SPI interface. Response data of type 'R1' (as indicated by the SD/MMC product manual is returned. This function is intended to be used when the clock speed of a PIC18 device is so high that the maximum SPI divider can't reduce the clock below the maximum SD card initialization sequence speed.

Preconditions

None.

Return Values
Return Values 
Description 
The response from the card
  • Bit 0 - Idle state
  • Bit 1 - Erase Reset
  • Bit 2 - Illegal Command
  • Bit 3 - Command CRC Error
  • Bit 4 - Erase Sequence Error
  • Bit 5 - Address Error
  • Bit 6 - Parameter Error
  • Bit 7 - Unused. Always 0.

 

Side Effects

None.

Remarks

None.

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.