SanDisk SDSDB-32-201-80 - Industrial Grade Flash Memory Card Product Manual

SanDisk SDSDB-32-201-80 - Industrial Grade Flash Memory Card Product Manual

Secure digital card
Table of Contents

Advertisement

SanDisk Secure Digital Card
Product Manual
Version 1.9
Document No. 80-13-00169
December 2003
SanDisk Corporation
Corporate Headquarters • 140 Caspian Court • Sunnyvale, CA 94089
Phone (408) 542-0500 • Fax (408) 542-0503
www.sandisk.com

Advertisement

Table of Contents
loading

Summary of Contents for SanDisk SDSDB-32-201-80 - Industrial Grade Flash Memory Card

  • Page 1 SanDisk Secure Digital Card Product Manual Version 1.9 Document No. 80-13-00169 December 2003 SanDisk Corporation Corporate Headquarters • 140 Caspian Court • Sunnyvale, CA 94089 Phone (408) 542-0500 • Fax (408) 542-0503 www.sandisk.com...
  • Page 2 Corporation general policy does not recommend the use of its products in life support applications where in a failure or malfunction of the product may directly threaten life or injury. Per SanDisk Terms and Conditions of Sale, the user of SanDisk products in life support applications assumes all risk of such use and indemnifies SanDisk against all damages.
  • Page 3: Table Of Contents

    2.6. Physical Specifications........................2-3 3. SD Card Interface Description ........................... 3-1 3.1. General Description of Pins and Registers..................3-1 3.1.1. Pin Assignments in SD Card Mode ..................3-1 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 4 4.8.4. Detailed Command Description ....................4-20 4.9. Card State Transition Table....................... 4-24 4.10. Responses............................4-25 4.11. Timings ............................4-27 4.11.1. Command and Response ....................... 4-27 4.11.2. Data Read..........................4-28 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 5 Timing ..............................A-1 Timing specifications ..........................A-1 Read access and program times........................ A-1 Interface..............................A-2 Read/Write Mode Selection ........................A-4 Power and Clock Control ......................... A-4 Initialization Algorithm..........................A-5 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 6 File System Support ..........................A-5 Appendix B. Ordering Information ........................B-1 Appendix C. SanDisk Worldwide Sales Offices ....................C-1 Appendix D. Limited Warranty..........................D-1 Appendix E. Disclaimer of Liability ........................E-1 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 7: Introduction To The Sd Card

    MultiMediaCard is the initialization process. The SD Card specifications were originally defined by MEI (Matsushita Electric Company), Toshiba Corporation and SanDisk Corporation. Currently, the specifications are controlled by the Secure Digital Association (SDA). The SanDisk SD Card was designed to be compatible with the SD Card Physical Specification.
  • Page 8: Scope

    Password Protected of Cards (not on all models). Write Protect feature using mechanical switch. Built-in write protection features (permanent and temporary). Card Detection (Insertion/Removal). Application specific commands. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 9: Sd Card Standard

    Email: rcreech@sdcard.org http://www.sdcard.org 1.5. Functional Description SanDisk SD Cards contain a high level, intelligent subsystem as shown in Figure 1-1. This intelligent (microprocessor) subsystem provides many capabilities not found in other types of memory cards. These capabilities include: Host independence from details of erasing and programming flash memory.
  • Page 10: Flash Technology Independence

    In other words, systems that support the SD Card today will be able to access future SanDisk SD Cards built with new flash technology without having to update or change host software.
  • Page 11: Endurance

    1.5.7. Automatic Sleep Mode A unique feature of the SanDisk SD Card (and other SanDisk products) is automatic entrance and exit from sleep mode. Upon completion of an operation, the SD Card will enter the sleep mode to conserve power if no further commands are received within 5msec.
  • Page 12: Sd Card-Sd Bus Mode

    SD_Status is stored in 512 bits that are sent as a single data block after it was requested by the host using the SD_STATUS (ACMD13) command. SD_STATUS contains extended status bits that relate to BUS_WIDTH, security related bits and future specific applications. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 13: Memory Array Partitioning

    The size of a WP-group is fixed for each device. The information about the size is stored in the CSD. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 14 Protected Area—The part of the Card that relates to the secured copyright management and has separate DOS partitioning including sectors and blocks. The card write protection mechanism does not effect this area. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 15: Read And Write Operations

    The maximum data transfer rate for a single data line is 25 Mbit per second and for four data lines it is 100 Mbit (12 MB) per second. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 16: Data Protection In The Flash Card

    The SPI mode is a secondary communication protocol for SD Cards. This mode is a subset of the SD Card protocol, designed to communicate with an SPI channel, commonly found in Motorola’s (and lately a few other vendors’) microcontrollers. 1-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 17: Negotiating Operating Conditions

    Bus mode data transfer rate when using one data line only (up to 25 Kbits per second). 1.5.10.7. Data Protection in the SD Card Same as for the SD Card mode. 1.5.10.8. Erase Same as in SD Card mode. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-11...
  • Page 18: Write Protection

    Introduction to the SD Card 1.5.10.9. Write Protection Same as in SD Card mode. 1.5.10.10. Copyright Protection Same as in SD Card mode. 1-12 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 19 Introduction to the SD Card This page intentionally left blank. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-13...
  • Page 20: Product Specifications

    40 gf (ensures that the WP switch will not slide while it is inserted in the connector). WP Switch Cycles Minimum 1,000 Cycles @ slide force 0.4N to 5N SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 21: Typical Card Power Requirements

    Table 2-5. System Reliability and Maintenance Specifications MTBF > 1,000,000 hours Preventive Maintenance None Data Reliability < 1 non-recoverable error in 10 bits read Endurance 100,000 write/erase cycles (typical) SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 22: Physical Specifications

    Weight 2.0 g. maximum Length: 32mm ± 0.1mm Width: 24mm ± 0.1mm Thickness: 2.1mm ± 0.15mm (in substrate area only, 2.25mm maximum) Figure 2-1. SD Card Dimensions SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 23 Product Specifications Figure 2-2. SD Card Dimensions SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 24 Product Specifications Figure 2-3. SD Card Dimensions SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 25 Product Specifications This page intentionally left blank. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 26: Sd Card Interface Description

    3) After power up, this line is input with 50Kohm(+/-20Kohm) pull-up (can be used for card detection or SPI mode selection). The pull-up may be disconnected by the user, during regular data transfer, with SET_CLR_CARD_DETECT (ACMD42) command. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 27: Pin Assignments In Spi Mode

    The host may reset the cards by switching the power supply off and on again. The card has its own power-on detection circuitry which puts the card into an idle state after the power-on. The card can also be reset by sending the GO_IDLE (CMD0) command. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 28: Sd Bus Topology

    CLK—Clock is a host to cards signal. (CLK operates in push pull mode.) VDD—VDD is the power supply line for all cards. VSS[1:2]—VSS are two ground lines. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 29 DAT0 for data transfer. After initialization, the host can change the bus width (number of active data lines). This feature allows and easy trade off between hardware cost and system performance. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 30: Power Protection

    Section 5.4.2 for the component values and conditions. Hot Insertion/Removal Hot insertion and removal are allowed. The SanDisk SD Card will not be damaged by inserting or removing it into the SD bus even when the power is up: The inserted card will be properly reset also when CLK carries a clock frequency f Data transfer failures induced by removal/insertion should be detected by the bus master using the CRC codes that suffix every bus transaction.
  • Page 31: Power Protection

    Figure 3-4. SD Card Bus System 3.3.1. Power Protection Same as for SD Card mode. 3.4. Electrical Interface The following sections provide valuable information for the electrical interface. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 32: Power-Up

    MultiMediaCards to send their Operation Conditions. In any case the ACMD41 or the CMD1 shall be send separately to each card accessing it through its own CMD line. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 33: Bus Operating Conditions

    ≤ 20 MHz, 7 cards Single card capacitance CARD Maximum signal line inductance ≤ 20 MHz Pull-up resistance inside card (pin 1) May be used for card detection DAT3 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 34: Bus Signal Levels

    0.75 VDD IOH=-100 A (min.) Output LOW voltage 0.125 VDD IOL=100 A (min.) Input HIGH voltage VDD + 0.3 0.625 VDD Input LOW voltage VSS-0.3 0.25 VDD SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 35: Bus Timing

    (21 cards) Clock High Time ≤ 250 pF (21 cards) Clock Rise Time ≤ 250 pF (21 cards) Clock Fall Time ≤ 250 pF (21 cards) 3-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 36: Sd Card Registers

    The structure of the OCR register is described in Table 3-8. Table 3-8. OCR Register Definition OCR Bit VDD Voltage Window Reserved 1.6-1.7 1.7-1.8 1.8-1.9 1.9-2.0 2.0-2.1 2.1-2.2 2.2-2.3 2.3-2.4 2.4-2.5 2.5-2.6 2.6-2.7 2.7-2.8 2.8-2.9 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-11...
  • Page 37: Card Identification (Cid) Register

    SD Card hosts. Note that the CID register in the SD Card has a different structure than the CID register in the MultiMediaCard. 3-12 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 38: Csd Register

    CLK cycles NSAC [111:104] 00000000b (NSAC*100) max. data transfer rate TRAN_SPEED [103:96] 25MHz 00110010b card command classes [95:84] All (incl. WP, 1F5h Lock/unlock) SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-13...
  • Page 39 R/W(1) [13:13] Not Protected temporary write protection TMP_WRITE_PROTECT [12:12] Not Protected File format FILE_FORMAT R/W(1) [11:10] HD w/partition Reserved [9:8] [7:1] CRC7 not used, always’1’ [0:0] 3-14 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 40 CCC defines which command classes are supported by this card. A value of ‘1’ in a CCC bit means that the corresponding command class is supported. Table 3-14 lists the supported card command classes; refer to Table 4-2 for command class definitions. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-15...
  • Page 41 DSR_IMP—Defines if the configurable driver stage is integrated on the card. If set, a driver stage register (DSR) must be implemented also. Table 3-16. DSR Implementation Code Table DSR_IMP DSR Type no DSR implemented 3-16 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 42 (see ‘C_SIZE’). The factor MULT is defined as 2 Table 3-19. Multiply Factor For The Device Size C_SIZE_MULT MULT = 16 = 32 = 64 = 128 = 256 = 512 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-17...
  • Page 43 WRITE_BL_PARTIAL=‘1’ means that smaller blocks can be used as well. The minimum block size is one byte. FILE_FORMAT_GROUP—Indicates the selected group of file formats. This field is read-only for ROM. The usage of this field is shown in Table 3-22. 3-18 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 44: Scr Register

    SD_BUS_WIDTHS [51:48] 1 & 4 Reserved [47:32] Reserved for manufacturer usage [31:0] SCR_STRUCTURE—Version number of the related SCR structure in the SD Card Physical Layer Specification. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-19...
  • Page 45: Status Register

    Since SD Card shall support at least the two bus modes 1bit or 4bit width then any SD Card shall set at least bits 0 and 2 (SD_BUS_WIDTH=0101). 3.5.5. Status Register The SD Card supports the following two card status fields: 3-20 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 46 ’0’= no error ’1’= error Internal card controller error ERROR E R X ’0’= no error A general or an unknown error occurred during ’1’= error the operation. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-21...
  • Page 47 Error in the sequence of authentication process. (SD Card Security spec.) ‘1’ = error Reserved for application specific commands 1, 0 Reserved for manufacturer test mode 3-22 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 48: Sd Status

    The 16-bit relative card address register carries the card address that is published by the card during the card identification. This address is used for the addressed host-card communication after the card identification procedure. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-23...
  • Page 49: Sd Card Registers In Spi Mode

    In general, SD Card data is structured by means of a file system. The SD Card File System Specification, published by the SD Association, describes the file format system that is implemented in the SanDisk SD Card. In general, each SD Card is divided into two separate DOS-formatted partitions as follows: The User Area—used for secured and non-secured data storage and can be accessed by the user with...
  • Page 50 SD Card Interface Description This page intentionally left blank. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-25...
  • Page 51: Secure Digital (Sd) Card Protocol Description

    A multiple block transmission is terminated when a stop command follows on the CMD line. Data transfer can be configured by the host to use single or multiple data lines (as long as the card supports this feature). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 52 Each command token is preceded by a start bit (‘0’) and succeeded by an end bit (‘1’). The total length is 48 bits. Each token is protected by CRC bits so that transmission errors can be detected and the operation may be repeated. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 53 DAT line individually. The CRC status response and Busy indication will be sent by the card to the host on DAT0 only (DAT1-DAT3 during that period are “don’t care”). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 54: Protocol's Functional Description

    All SD Card commands together with the corresponding responses, state transitions, error conditions and timings are presented in the following sections. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 55: Card Identification Mode

    Relative Card Address (RCA). This operation is done to each card separately on its own CMD line. All the data communication in the Card Identification Mode uses only the command line (CMD). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 56: Reset

    After power-on or CMD0, all SD Cards’ CMD lines are in input mode, waiting for the start bit of the next command. The cards are initialized with a default relative card address (RCA=0x0000) and with a default driver stage register setting (lowest speed, highest driving current capability). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 57: Operating Voltage Range Validation

    The host starts the card identification process with the identification clock rate f (see Section 3.4.4). In SD Card the CMD line output drives are push-pull drivers. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 58: Data Transfer Mode

    The host issues SEND_CSD (CMD9) to obtain the Card Specific Data (CSD register), e.g., block length, card storage capacity, maximum clock rate. Figure 4-8 shows a block diagram of the Data Transfer Mode. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 59 (using addressed commands). All addressed commands are acknowledged with a response on the CMD line. The relationship between the various data transfer modes is summarized in Figure 4-8, and in the following paragraphs: SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 60: Wide Bus Selection/Deselection

    ECC is used). The data stream ends with an end bit (HIGH). The data transmission is synchronous to the clock signal. The payload for block-oriented data transfer is preserved by a CRC check sum. The generator polynomial is a standard CCITT polynomial: 4-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 61: Data Write Format

    ), one or more blocks of data are transferred from the host to the card, with CRC appended to the end of each block by the host. The SanDisk SD Card is able to accept a block of data defined by WRITE_BL_LEN of 512 bytes. If the CRC fails, the card shall indicate the failure on the DAT line (see below);...
  • Page 62 (=1) value after Multiple Blocks Write operation. It is recommended to use this command preceding CMD25, so that SanDisk’s SD Card will be faster for Multiple Write Blocks operation. Note that the host must send ACMD23 just before the WRITE command if the host wants to use the pre-erase feature.
  • Page 63: Write Protect Management

    (ACMD). The ACMD has the same structure as regular MultiMediaCard standard commands and it may have the same CMD number. The card will recognize it as ACMD by the fact that it appears after APP_CMD. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-13...
  • Page 64: Clock Control

    (‘tran_state’) before sending CMD56. The data block size is the BLOCK_LEN that was defined with CMD16. The response to CMD56 will be R1. Currently, there are no defined commands or usage for CMD56 in SanDisk’s SD Card, but new commands may be easily defined and tailored for OEM application specific requirements (upon request to SanDisk).
  • Page 65: Cyclic Redundancy Codes (Crc)

    CRC protected bits decreased by one. The number of bits to be protected is 40 for commands and responses (n = 39), and 120 for the CSD and CID (n = 119). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-15...
  • Page 66 2,048 bytes (n ≤ 16,383). The same CRC16 method is used in single DAT line mode and in wide bus mode. In wide bus mode, the CRC16 is done on each line separately. Figure 4-11. CRC16 Generator/Checker 4-16 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 67: Error Conditions

    The duration of an erase command will be (order of magnitude) the number of write blocks (WRITE_BL) to be erased multiplied by the block write delay. 4.8. Commands The following sections provide valuable information on commands. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-17...
  • Page 68: Command Types

    The supported Card Command Classes (CCC) are coded as a parameter in the card specific data (CSD) register of each card, providing the host with information on how to access the card. 7-bit Cyclic Redundancy Check. 4-18 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 69 CMD10 CMD12 CMD13 CMD15 CMD16 CMD17 CMD18 CMD24 CMD25 CMD27 CMD28 CMD29 CMD30 CMD32 CMD33 CMD38 CMD42 CMD55 CMD56 ACMD6 ACMD13 ACMD22 ACMD23 ACMD41 ACMD42 ACMD51 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-19...
  • Page 70: Detailed Command Description

    * The bit places must be filled but the value is irrelevant. The DSR option (as well as the SET_DSR command) is not supported by the SanDisk SD Card. The addressing capability @ 8 bit address resolution is 232 = 4 Gbyte.
  • Page 71 All data blocks are responded to with a data response token followed by a busy signal. The data transferred must not cross a physical block boundary. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-21...
  • Page 72 Reserved for Manufacturer RD/WR: “1” = the host gets a block of data from the card. “0” = the host sends a block of data to the card. 4-22 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 73 NOTES: 1) Refer to SD Card Security Specification for detailed explanation about the SD Security Features 2) Command STOP_TRAN (CMD12) shall be used to stop the transmission in Write Multiple Block whether the pre- erase (ACMD23) feature is used or not. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-23...
  • Page 74: Card State Transition Table

    CMD15 Class 2 CMD16 tran CMD17 data CMD18 data Class 4 CMD16 See Class 2 CMD24 CMD25 CMD27 Class 6 CMD28 CMD29 CMD30 data Class 5 4-24 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 75: Responses

    R3 (see below) are protected by a CRC. Every response is terminated by the end bit (always ‘1’). There are four types of responses that are supported in the SanDisk SD Card. Their formats are defined as follows: R1 (standard response): response length 48 bit.
  • Page 76 ‘000011’ (together with bit 5 in the status bits it means = CMD3). The 16 MSB bits of the argument field are used for the published RCA number. 4-26 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 77: Timings

    P bits pushed up by the responding card. The card response to the host command starts after N clock cycles. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-27...
  • Page 78: Data Read

    CMD16. The basic bus timing for a read operation is given in Figure 5-17. The sequence starts with a single block read command (CMD17) which specifies the start address in the argument field. The response is sent on the CMD line as usual. 4-28 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 79: Data Write

    In this case no CRC response will be sent to the host and, therefore, there will not be CRC start bit on the bus and the three CRC status bits will read (‘111‘). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-29...
  • Page 80 The end bit of the host command is followed, on the data line, with one more data bit, end bit and two Z clock for switching the bus direction. The received data block, in this case is considered incomplete and will not be programmed. 4-30 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 81 When a busy card, which is currently in the dis state, is reselected it will reinstate its busy signaling on the data line. The timing diagram for this command/response/busy transaction is the same as given for stop tran command in Figure 4-24. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-31...
  • Page 82: Timing Values

    Clock Cycles Clock Cycles Clock Cycles NOTE: min [{(TAAC f ) + (NSAC 100)}, {(100ms f)}] where units = (clocks) and “f” is the clock frequency. 4-32 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 83: Spi Protocol Definition

    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. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 84: Bus Transfer Protection

    In case of data retrieval error, the card will not transmit any data. Instead, a special data error token will be sent to the host. Figure 5-2 shows a data read operation, which terminated with an error token rather than a data block. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 85: Data Write

    The only validation check performed on the data block and communicated to the host via the data-response token is CRC and general Write Error indication. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 86: Erase And Write Protect Management

    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. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 87: Reset Sequence

    The SPI bus clock signal can be used by the SPI host to set the cards to energy-saving mode or to control the data flow (to avoid under-run or over-run conditions) on the bus. The host is allowed to change the clock frequency or shut it down. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 88: Error Conditions

    For more information, refer to Table 4-17 in Section 4.0, Table 5-5 in Section 5.0 and the applications note in Appendix A, “Host Design Considerations: NAND MMC and SD-based Products.” SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 89 SPI Protocol Definition SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 90: Memory Array Partitioning

    The following sections provide valuable information on the SPI Command Set. 5.2.1. Command Format All the SD Card commands are 6 bytes long and transmitted MSB first. Byte 1 Bytes 2—5 Byte 6 Command Command Argument SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 91: Command Classes

    The binary code of a command is defined by the mnemonic symbol. As an example, the content of the Command field for CMD0 is (binary) ‘000000’ and for CMD39 is (binary) ‘100111.’ SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 92 The start address and block length must be set so that the data transferred will not cross a physical block boundary. Data followed by data response plus busy. The start address must be aligned on a sector boundary. The block length is always 512 bytes. 5-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 93 CRC bits are transferred in a payload format via the data line. RD/WR_: “1”=the host will get a block of data from the card. “0”=the host sends a block of data to the card. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-11...
  • Page 94: Responses

    (ACMD23) feature is used or not. 5.2.3. Responses There are several types of response tokens. As in the SD Card mode, all are transmitted MSB first. 5-12 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 95: Format R1

    This 2-bytes long response token is sent by the card as a response to the SEND_STATUS command. The format of the R2 status is shown in Figure 5-8. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-13...
  • Page 96: Format R3

    The structure of the first (MSB) byte is identical to response type R1. The other four bytes contain the OCR register. 3231 Figure 5-9. R3 Response Format 5-14 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 97: Data Response

    First byte of each block. If data is to be transferred then—Start Block 1 1 1 1 1 1 0 0 If Stop transmission is requested—Stop Tran SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-15...
  • Page 98: Data Error Token

    SD Card mode. However, a few fields are irrelevant in SPI mode. 5.4. SPI Bus Timing Diagrams All timing diagrams use the schematics and abbreviations listed in Table 5-5. 5-16 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 99: Command/Response

    * * * * * * * * * * * * * * * * * H H H H Z Z Z Figure 5-13. Card Response to Host Command SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-17...
  • Page 100: Data Read

    Z Z H H H * * * * * * * * H H H Card Resp H H H H H H H Data Resp Busy L Z Z Busy Figure 5-17. Device Write Timing 5-18 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 101: Timing Values

    Identical to SD Card mode. 5.7. Bus Timing Identical to SD Card mode. The timing of the CS signal is the same as any other card input. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-19...
  • Page 102 SPI Protocol Definition This page intentionally left blank. 5-20 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 103: Appendix A. Application Note

    Host Design Considerations: NAND MMC and SD-based Products Introduction SanDisk’s MultiMediaCard (MMC) and Secure Digital (SD) Card have been designed into a wide variety of consumer electronic products: MP3 players, cell phones, PDAs, digital still and video cameras, data loggers, and more.
  • Page 104: Interface

    Flash RAM to the card’s buffer. Since most designs use this write and read busy time to complete other processes, choosing a 1- or 4-bit bus mode can have a 4x speed effect on the time spent servicing the SD Card. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 105 The example in Table 3 shows the difference between moving 512 bytes of data to and from a MultiMediaCard or SD Card internal buffer using different bus modes. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 106: Read/Write Mode Selection

    Timing section, if the design needs to support the MultiMediaCard, the clock should be lowered to 400 kHz or less during initialization. When the initialization process is complete, the host can raise the clock speed to the card’s maximum. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 107: Initialization Algorithm

    File System Support If a design needs to support a file system, such as SanDisk’s Host Developers Tool Kit (HDTK), additional considerations are necessary. Reading and writing to an SD Card and MultiMediaCard is generally done in 512 byte blocks, however, erasing often occurs in much larger blocks.
  • Page 108: Appendix B. Ordering Information

    To order SanDisk products directly from SanDisk, call 408-542-0595. Secure Digital Card SDSDB-16 16 MB SDSDB-32 32 MB SDSDJ-64 64 MB SDSDJ-128 128 MB SDSDJ-256 256 MB SDSDJ-512 512 MB SDSDJ-1024 1024 MB SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 109: Appendix C. Sandisk Worldwide Sales Offices

    Umeda-Shinmichi Bldg. 10F Fax: 703-437-9215 89 Queensway, Lippo Center 1-1-5 Dojima, Kita-ku Tower I, Suite 3402 Osaka 530-0003 Admiralty, Hong Kong Tel: 81-6-6343-6480 Tel: 852-2712-0501 Fax: 81-6-6343-6481 Fax: 852-2712-9385 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 110 SanDisk Worldwide Sales Offices This page intentionally left blank. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION...
  • Page 111: Appendix D. Limited Warranty

    SanDisk reserves the right to repair or replace, at its discretion, any product returned by its customers, even if such product is not covered under warranty, but is under no obligation to do so.
  • Page 112 Corporation. Please contact SanDisk’s Customer Service department at 408-542-0595 with the following information: product model number and description, nature of defect, conditions of use, proof of purchase and purchase date. If approved, SanDisk will issue a Return Material Authorization or Product Repair Authorization number. Ship the defective product to:...
  • Page 113: Appendix E. Disclaimer Of Liability

    SanDisk shall not be liable for any loss, injury or damage caused by use of the Products in any of the following applications:...

Table of Contents