Chapter 5 – SPI Protocol
Revision 2.2 SD Card Product Manual
© 2004 SanDisk Corporation 5-10 12/08/04
CMD
Index
SPI
Mode
Argument Resp Abbreviation Description
SION stop transmission
during a multiple
block read operation.
CMD13 Yes None R2 SEND_STATUS Asks the selected
card to send its Status
Register.
CMD14 Reserved.
CMD15 No --- --- --- ---
CMD16 Yes [31:0] block length R1 SET_BLOCKLEN Selects a block length
(in bytes) for all
following block
commands (read &
write).
1
CMD17 Yes [31:0] data address R1 READ_SINGLE_
BLOCK
Reads a block of the
size selected by the
SET_BLOCKLEN
command.
2
CMD18 Yes [31:0] data address R1 READ_MULTIPLE_
BLOCK
Continuously
transfers data blocks
from card to host until
interrupted by a
STOP_TRANSMISSI
ON command.
CMD19 Reserved.
CMD20 No --- --- --- ---
CMD21
…
CMD23
Reserved.
CMD24 Yes [31:0] data address R1 WRITE_BLOCK Writes a block of the
size selected by the
SET_BLOCKLEN
command.
3
CMD25 Yes [31:0] data address R1 WRITE_MULTIPLE
_BLOCK
Continuously writes
blocks of data until a
stop transmission
token is sent (instead
of ‘start block’).
CMD26 No --- --- --- ---
CMD27 Yes None R1 PROGRAM_CSD Programming of the
programmable bits of
the CSD.
CMD28 Yes [31:0] data address R1b SET_WRITE_
PROT
If the card has write
protection features,
this command sets
the write protection bit
of the addressed
group. The properties
of write protection are
coded in the card
s
ecific data
1
The default block length is as specified in the CSD Register.
2
The data transferred must not cross a physical block boundary unless READ_BLK_MISALIGN is set in the
CSD Register.
3
The data transferred must not cross a physical block boundary unless WRITE_BLK_MISALIGN is set in the
CSD Register.