User Manual
Secure Digital (SD) Bus Protocol Description
4-22 TriFlash with SD Interface Product Manual (Preliminary), Rev. 1.2 © 2002/2003 SANDISK CORPORATION
Table 4-8. Commands (Class 5)
Cmd
Index
Type Argument Resp Abbreviation Command Description
CMD32 ac [31:0] data
address
R1 ERASE_WR_BLK_START Sets the address of the first write block to be
erased.
CMD33 ac [31:0] data
address
R1 ERASE_WR_BLK_END Sets the address of the last write block of the
continuous range to be erased.
CMD34
…
CMD37
Reserved
CMD38 ac [31:0] Stuff Bits =‘0’ R1b ERASE Erases all previously selected write blocks.
CMD39
…
CMD41
Reserved
Table 4-9. Lock Card Commands (Class 7)
Cmd
Index
Type Argument Resp Abbreviation Command Description
CMD16 ac [31:0] block length R1 SET_BLOCKLEN Selects a block length (in bytes) for all following block
commands (read and write).
7
CMD42 adtc [31:0] Stuff Bits =‘0’ R1b LOCK_UNLOCK Used to set/reset the password or lock/unlock the
card. The size of the data block is set by the
SET_BLOCK_LEN command.
CMD43
….
CMD54
Reserved
Table 4-10. Application Specific Commands (Class 8)
CMD
INDEX
Type Argument Resp. Abbreviation Command Description
CMD55 ac [31:16] RCA [15:0]
Stuff Bits =‘0’
R1 APP_CMD Indicates to the device that the next command is
an application specific command rather than a
standard command
CMD56 adtc [31:1] Stuff Bits
=‘0’.
[0]: RD/ WR
8
R1 GEN_CMD Used either to transfer a data block to the device
or to get a data block from the device for general
purpose/application specific commands. The size
of the data block shall be set by the
SET_BLOCK_LEN command.
CMD57 ...
CMD59
Reserved
CMD60 -63 Reserved for Manufacturer
7
The default block length is as specified in the CSD (512 bytes). A set block length of less than 512 bytes will cause a write
error. The only valid write set block length is 512 bytes. CMD16 is not mandatory if the default is accepted.
8
RD/WR: “1” = the host gets a block of data from the device. “0” = the host sends a block of data to the device.