Product manual

Secure Digital (SD) Card Protocol Description
4-20 SanDisk Industrial Grade SD Product Manual, Rev. 1.0 © 2003 SANDISK CORPORATION
4.8.4. Detailed Command Description
Tables 4-3 through 4-9 define in detail the Industrial Grade SD Card bus commands.
Table 4-3. Basic Commands (Class 0 And Class 1)
Cmd
Index
Type Argument Resp Abbreviation Command Description
CMD0 bc [31:0] don’t care* - GO_IDLE_STATE Resets all cards to Idle State.
CMD1 Reserved
CMD2 bcr [31:0] don’t care* R2 ALL_SEND_CID Asks any card to send their CID numbers on the
CMD line. (Any card that is connected to the host
will respond.)
CMD3 bcr [31:0] don’t care* R6 SEND_RELATIVE_
ADDR
Asks the card to publish a new relative address
(RCA).
CMD4
1
Not Supported
CMD5 Reserved
CMD6 Reserved
CMD7 ac [31:16] RCA
[15:0] don’t care*
R1
(only
from the
selected
card)
SELECT/DESELECT_
CARD
Command toggles a card between the Stand-by
and Transfer states or between the Programming
and Disconnect state.
In both cases the card is selected by its own
relative address and deselected by any other
address; address 0 deselects all. When the RCA
equals 0, the host may do one of the following:
—use other RCA number to perform card de-
selection or
—re-send CMD3 to change its RCA number to
other then 0 and then use CMD7 with RCA=0 for
card de-selection.
CMD8 Reserved
CMD9 ac [31:16] RCA
[15:0] don’t care*
R2 SEND_CSD Addressed card sends its card-specific data (CSD)
on the CMD line.
CMD10 ac [31:16] RCA
[15:0] don’t care*
R2 SEND_CID Addressed card sends its card identification (CID)
on the CMD line.
CMD11 adtc [31:0] data address
2
R1 READ_DAT_UNTIL_
STOP
Reads data stream from the card, starting at the
given address, until a STOP_TRANSMISSION
follows.
CMD12 ac [31:0] don’t care* R1b
3
STOP_
TRANSMISSION
Terminates a multiple block read/write operation.
CMD13 ac [31:16] RCA
[15:0] don’t care*
R1 SEND_STATUS Addressed card sends its status register.
CMD14 Reserved
CMD15 ac [31:16] RCA
[15:0] don’t care*
- GO_INACTIVE_
STATE
Sets the card to inactive state.
* The bit places must be filled but the value is irrelevant.
1) The DSR option (as well as the SET_DSR command) is not supported by the SanDisk SD Card.
2) The addressing capability @ 8 bit address resolution is 232 = 4 Gbyte.
3) The card may become busy after this command. Refer to Figure 5-25 for more details.