Erase And Write Protect Management; Read Cid/Csd Registers - SanDisk SDSDB-32-201-80 - Industrial Grade Flash Memory Card Product Manual

Secure digital card
Table of Contents

Advertisement

SPI Protocol Definition
In Multiple Block write operation the stop transmission will be done by sending 'Stop Tran' token instead of 'Start
Block' token at the beginning of the next block. In case of Write Error indication (on the data response) the host
shall use SEND_NUM_WR_BLOCKS (ACMD22) in order to get the number of well written write blocks. The data
token's description is given in Section 5.2.4.
From host
From card
to card
DataIn
Command
DataOut
Resetting the CS signal while the card is busy does not terminate the programming process. The card releases the
dataOut line (tristate) and continue to program. If the card is reselected before the programming is done, the dataOut
line will be forced back to low and all commands will be rejected.
Resetting a card (using CMD0) will terminate any pending or active programming operation. This may destroy the
data formats on the card. It is the host's responsibility to prevent it.

5.1.5. Erase and Write Protect Management

The erase and write protect management procedures in the SPI mode are identical to the SD Bus mode. While the
card is erasing or changing the write protection bits of the predefined sector list it will be in a busy state and will
hold the dataOut line low. Figure 5-6 illustrates a "no data" bus transaction with and without busy signaling.
From Host
to Card
DataIn
Command
DataOut

5.1.6. Read CID/CSD Registers

Unlike the SD Bus protocol (where the register contents are sent as a command response), reading the contents of
the CSD and CID registers in SPI mode is a simple read-block transaction. The card will respond with a standard
response token followed by a data block of 16 bytes suffixed with a 16-bit CRC.
5-4
Data from
Start block
host to
token
card
to host
Data
Block
Response
Data_Response Busy
Figure 5-5. Multiple Block Write Operation
From Card
to Host
Response
Figure 5-6. "No Data" Operations
SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
Data
response
and busy
Data from
from card
host to
card
Data
Block
Data_Response Busy
From Host
to Card
Command
Response
Stop tran
token
Busy
From Card
to Host
Busy

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents