10.07.2015 Views

SanDisk SD Card

SanDisk SD Card

SanDisk SD Card

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Revision 2.2Chapter 4 – <strong>SD</strong> <strong>Card</strong> Protocol Description<strong>SanDisk</strong> <strong>SD</strong> <strong>Card</strong> Product ManualCMD Index Type Argument Resp. Abbreviation DescriptionC<strong>SD</strong>.CMD17 adtc [31:0] dataaddressCMD18 adtc [31:0] dataaddressCMD19 …CMD23ReservedBlock Write Commands (Class 4)CMD16 ac [31:0] blocklengthCMD24 adtc [31:0] dataaddressCMD25 adtc [31:0] dataaddressCMD26Reserved for manufacturerCMD27 adtc [31:0] stuffbitsWrite Protection Commands (Class 6)R1 READ_SINGLE_BLOCK Reads a block of thesize selected by theSET_BLOCKLENcommand. 24R1 READ_MULTIPLE_BLOCK Sends blocks of datacontinuously untilinterrupted by a stoptransmission command.R1 SET_BLOCKLEN Sets the block length (inbytes) for all followingblock commands (read,write, lock). Defaultblock length is specifiedin the C<strong>SD</strong>. Supportedonly if Partial blockRD/WR operation areallowed in C<strong>SD</strong>.R1 WRITE_BLOCK Writes a block of thesize selected by theSET_BLOCKLENcommand 25R1 WRITE_MULTIPLE_BLOCK Writes blocks of datacontinuously until aSTOP_TRANSMISSIONcommand is received.R1 PROGRAM_C<strong>SD</strong> Programs theprogrammable bits of theC<strong>SD</strong>.CMD28 ac [31:0] dataaddressCMD29 ac [31:0] dataaddressCMD30 adtc [31:0]writeprotectdataaddressR1b SET_WRITE_PROT If card supports thisfeature, it sets the writeprotection bit of theaddressed group. Theproperties of writeprotection are coded inthe card-specific data(WP_GRP_SIZE).R1b CLR_WRITE_PROT If card supports thisfeature, it clears thewrite protection bit of theaddressed.R1 SEND_WRITE_PROT If card supports thisfeature, it asks the cardto send the status of thewrite protection.32 write-protection bits24 The data transferred must not cross a physical block boundary unless READ_BLK_MISALIGN is set in theC<strong>SD</strong> Register.25 The data transferred must not cross a physical block boundary unless WRITE_BLK_MISALIGN is set in theC<strong>SD</strong>. In case that write partial blocks is not supported then the block length=default block length (given in C<strong>SD</strong>).© 2004 <strong>SanDisk</strong> Corporation 4-34 12/08/04

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!