SanDisk SDSDH-1024 Product Manual - Page 78

CMD Index, Argument, Resp., Abbreviation, Description, Block Write Commands Class 4, Write

Page 78 highlights

Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual CMD Index Type Argument Resp. Abbreviation CMD17 adtc [31:0] data address R1 READ_SINGLE_BLOCK CMD18 adtc [31:0] data address R1 READ_MULTIPLE_BLOCK CMD19 ... CMD23 Reserved Block Write Commands (Class 4) CMD16 ac [31:0] block R1 SET_BLOCKLEN length CMD24 adtc [31:0] data address R1 WRITE_BLOCK CMD25 adtc [31:0] data address R1 WRITE_MULTIPLE_BLOCK CMD26 CMD27 Reserved for manufacturer adtc [31:0] stuff R1 bits PROGRAM_CSD Write Protection Commands (Class 6) CMD28 ac [31:0] data address R1b SET_WRITE_PROT CMD29 CMD30 ac [31:0] data address R1b CLR_WRITE_PROT adtc [31:0] writeprotect data address R1 SEND_WRITE_PROT Description CSD. Reads a block of the size selected by the SET_BLOCKLEN command.24 Sends blocks of data continuously until interrupted by a stop transmission command. Sets the block length (in bytes) for all following block commands (read, write, lock). Default block length is specified in the CSD. Supported only if Partial block RD/WR operation are allowed in CSD. Writes a block of the size selected by the SET_BLOCKLEN command25 Writes blocks of data continuously until a STOP_TRANSMISSION command is received. Programs the programmable bits of the CSD. If card supports this feature, it sets the write protection bit of the addressed group. The properties of write protection are coded in the card-specific data (WP_GRP_SIZE). If card supports this feature, it clears the write protection bit of the addressed. If card supports this feature, it asks the card to send the status of the write protection. 32 write-protection bits 24 The data transferred must not cross a physical block boundary unless READ_BLK_MISALIGN is set in the CSD Register. 25 The data transferred must not cross a physical block boundary unless WRITE_BLK_MISALIGN is set in the CSD. In case that write partial blocks is not supported then the block length=default block length (given in CSD). © 2004 SanDisk Corporation 4-34 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 4 – SD Card Protocol Description
Revision 2.2
SanDisk SD Card Product Manual
© 2004 SanDisk Corporation
4-34
12/08/04
CMD Index
Type
Argument
Resp.
Abbreviation
Description
CSD.
CMD17
adtc
[31:0] data
address
R1
READ_SINGLE_BLOCK
Reads a block of the
size selected by the
SET_BLOCKLEN
command.
24
CMD18
adtc
[31:0] data
address
R1
READ_MULTIPLE_BLOCK
Sends blocks of data
continuously until
interrupted by a stop
transmission command.
CMD19 …
CMD23
Reserved
Block Write Commands (Class 4)
CMD16
ac
[31:0] block
length
R1
SET_BLOCKLEN
Sets the block length (in
bytes) for all following
block commands (read,
write, lock). Default
block length is specified
in the CSD. Supported
only if Partial block
RD/WR operation are
allowed in CSD.
CMD24
adtc
[31:0] data
address
R1
WRITE_BLOCK
Writes a block of the
size selected by the
SET_BLOCKLEN
command
25
CMD25
adtc
[31:0] data
address
R1
WRITE_MULTIPLE_BLOCK
Writes blocks of data
continuously until a
STOP_TRANSMISSION
command is received.
CMD26
Reserved for manufacturer
CMD27
adtc
[31:0] stuff
bits
R1
PROGRAM_CSD
Programs the
programmable bits of the
CSD.
Write Protection Commands (Class 6)
CMD28
ac
[31:0] data
address
R1b
SET_WRITE_PROT
If card supports this
feature, it sets the write
protection bit of the
addressed group. The
properties of write
protection are coded in
the card-specific data
(WP_GRP_SIZE).
CMD29
ac
[31:0] data
address
R1b
CLR_WRITE_PROT
If card supports this
feature, it clears the
write protection bit of the
addressed.
CMD30
adtc
[31:0]
write-
protect
data
address
R1
SEND_WRITE_PROT
If card supports this
feature, it asks the card
to send the status of the
write protection.
32 write-protection bits
24
The data transferred must not cross a physical block boundary unless READ_BLK_MISALIGN is set in the
CSD Register.
25
The data transferred must not cross a physical block boundary unless WRITE_BLK_MISALIGN is set in the
CSD. In case that write partial blocks is not supported then the block length=default block length (given in CSD).