SanDisk SDSDH-1024 Product Manual - Page 99

Table 5-2, SPI Bus Command Description

Page 99 highlights

Revision 2.2 Chapter 5 - SPI Protocol SD Card Product Manual 5.17.3 Command Description The following table provides a detailed description of the SPI bus commands. The responses are defined in Section 5.16. Table 5-2 lists all SD Card commands. A "yes" in the SPI mode column indicates that the command is supported in SPI mode. With these restrictions, the command class description in the CSD is still valid. If a command does not require an argument, the value of this field should be set to zero. The reserved commands are reserved in SD Memory Card mode as well. The binary code of a command is defined by the mnemonic symbol. As an example, the content of the Command field for CMD0 is (binary) '000000' and for CMD39 is (binary) '100111.' Table 5-2 SPI Bus Command Description CMD Index CMD0 CMD1 CMD2 CMD3 CMD4 CMD5 CMD6 CMD7 CMD8 CMD9 CMD10 CMD11 CMD12 SPI Mode Argument Yes None Yes None Resp Abbreviation R1 GO_IDLE_STATE R1 SEND_OP_COND No --- --- --- No --- --- --- No --- --- --- Reserved for I/O mode (refer to SDIO Card Specification). Yes [31] Mode 0 R1 0:Check function 1:Switch function [30:24] Reserved (all 0) [23:20] Reserved for function group 6 (all 0 or 0xF) [19:16] Reserved for function group 5 (all 0 or 0xF) [15:12] Reserved for function group 4 (all 0 or 0xF) [11:8] Reserved for function group 3 (all 0 or 0xF) [7:4] Function group 2 for command system [3:0] Function group 1 for access mode. SWITCH_FUNC No --- --- --- Reserved. Yes None R1 SEND_CSD Yes None R1 SEND_CID No --- Yes None --- --- R1b STOP_TRANSMIS SION Description Resets the SD Card. Activates the card's initialization process. ------- Checks switchable function (mode 0) and switches card function (mode 1). --- Asks the selected card to send its cardspecific data (CSD). Asks the selected card to send its card identification (CID). --- Forces the card to tt ii © 2004 SanDisk Corporation 5-9 12/08/04

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123

Chapter 5 – SPI Protocol
Revision 2.2
SD Card Product Manual
© 2004 SanDisk Corporation
5-9
12/08/04
5.17.3
Command Description
The following table provides a detailed description of the SPI bus commands. The
responses are defined in Section 5.16.
Table 5-2 lists all SD Card commands. A “yes” in the SPI mode column indicates that the
command is supported in SPI mode. With these restrictions, the command class description
in the CSD is still valid. If a command does not require an argument, the value of this field
should be set to zero. The reserved commands are reserved in SD Memory Card mode as
well.
The binary code of a command is defined by the mnemonic symbol. As an example, the
content of the Command field for CMD0 is (binary) ‘000000’ and for CMD39 is (binary)
‘100111.’
Table 5-2
SPI Bus Command Description
CMD
Index
SPI
Mode
Argument
Resp
Abbreviation
Description
CMD0
Yes
None
R1
GO_IDLE_STATE
Resets the SD Card.
CMD1
Yes
None
R1
SEND_OP_COND
Activates the card’s
initialization process.
CMD2
No
---
---
---
---
CMD3
No
---
---
---
---
CMD4
No
---
---
---
---
CMD5
Reserved for I/O mode (refer to SDIO Card Specification).
CMD6
Yes
[31] Mode 0
0:Check function
1:Switch function
[30:24] Reserved (all 0)
[23:20] Reserved for
function group 6 (all 0 or
0xF)
[19:16] Reserved for
function group 5 (all 0 or
0xF)
[15:12] Reserved for
function group 4 (all 0 or
0xF)
[11:8] Reserved for
function group 3 (all 0 or
0xF)
[7:4] Function group 2
for command system
[3:0] Function group 1
for access mode.
R1
SWITCH_FUNC
Checks switchable
function (mode 0) and
switches card function
(mode 1).
CMD7
No
---
---
---
---
CMD8
Reserved.
CMD9
Yes
None
R1
SEND_CSD
Asks the selected
card to send its card-
specific data (CSD).
CMD10
Yes
None
R1
SEND_CID
Asks the selected
card to send its card
identification (CID).
CMD11
No
---
---
---
---
CMD12
Yes
None
R1b
STOP_TRANSMIS
SION
Forces the card to
t
t
i
i