Chapter 5 – SPI Protocol
Revision 2.2
SD Card Product Manual
© 2004 SanDisk Corporation
5-11
12/08/04
CMD
Index
SPI
Mode
Argument Resp
Abbreviation Description
(WP_GRP_SIZE).
CMD29
Yes
[31:0] data address
R1b
CLR_WRITE_
PROT
If the card has write
protection features,
this command clears
the write protection bit
of the addressed
group.
CMD30
Yes
[31:0] write protect data
address
R1 SEND_WRITE_
PROT
If the card has write
protection features,
this command asks
the card to send the
status of the write
protection bits.
CMD31 Reserved
CMD32
Yes
[31:0] data address
R1
ERASE_WR_BLK_
START_ADDR
Sets the address of
the first write block to
be erased.
CMD33
Yes
[31:0] data address
R1
ERASE_WR_BLK_
END_ADDR
Sets the address of
the last write block in
a continuous range to
be erased.
CMD34
…
CMD37
Reserved for each command system set by switch function command (CMD6). Detailed
definition can be referenced in each command system specification.
CMD38
Yes
[31:0] stuff bits
R1b
ERASE
Erases all previously
selected write blocks.
CMD39 No ---
---
---
---
CMD40 No ---
---
---
---
CMD41 Reserved
CMD42
Yes
[31:0] stuff bits
R1
LOCK_UNLOCK
Used to set/re-set the
password or
lock/unlock the card.
A transferred data
block includes all the
command details. The
size of the data block
is defined with
SET_BLOCK_LEN
command.
CMD43-
CMD49
CMD51
Reserved.
CMD50
Reserved for each command system set by switch function command (CMD6). Detailed
definition can be referenced in each command system specification.
CMD52
…
CMD54
Reserved for I/O mode (refer to SDIO Card Specification).
CMD55
Yes
[31:0] stuff bits
R1
APP_CMD
Notifies the card that
the next command is
an application-specific
command rather than
a standard command.