SanDisk SDSDJ-64 Product Manual

SanDisk SDSDJ-64 - SD Industrial Flash Memory Card Manual

SanDisk SDSDJ-64 manual content summary:

  • SanDisk SDSDJ-64 | Product Manual - 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
  • SanDisk SDSDJ-64 | Product Manual - Page 2
    SanDisk Terms and Conditions of Sale, the user of SanDisk products in life support applications assumes all risk of such use and indemnifies SanDisk and front matter. • Revision 1.6 dated 8/2003-added 512- and 1024-Mb capacities; updated "Limited Warranty" appendix; added "Disclaimer of Liability
  • SanDisk SDSDJ-64 | Product Manual - Page 3
    Card 1-10 1.5.9.9. Erase ...1-10 1.5.9.10. Write Protection 1-10 1.5.9.11. Copy Bit...1-10 1.5.9.12. The CSD Register 1-10 1.5.10. SD Card-SPI Mode...1-10 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 iii
  • SanDisk SDSDJ-64 | Product Manual - 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 iv SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 5
    5.2.4. Data Tokens ...5-15 5.2.5. Data Error Token ...5-16 5.2.6. Clearing Status Bits...5-16 5.3. Card Registers ...5-16 5.4. SPI Bus Timing Diagrams...5-16 5.4.1. Control ...A-4 Initialization Algorithm...A-5 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION v
  • SanDisk SDSDJ-64 | Product Manual - Page 6
    of Contents 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 vi SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 7
    host interface supports regular MultiMediaCard SD Card provides up to 1024 million bytes of memory using SanDisk Single Chip Controller Data In/Out Control Flash Modules SanDisk SD Card Figure 1-1. SD Card Block Diagram SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 8
    SDSDJ-64 64 MB SDSDJ-128 128 MB SDSDJ-256 256 MB SDSDJ-512 512 MB SDSDJ-1024 SDSDB = Binary NAND technology. SDSDJ = Multi Level Cell (MLC) NAND technology. 1024 ). • Application specific commands. 1-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 9
    -2248 Email: [email protected] http://www.sdcard.org 1.5. Functional Description SanDisk SD Cards contain a high level, intelligent subsystem as shown in Figure ). • Power management for low power operation. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-3
  • SanDisk SDSDJ-64 | Product Manual - Page 10
    other words, systems that support the SD Card today will be able to access future SanDisk SD Cards built with , defective bits are replaced with spare bits to ensure they do not cause any future problems. These defect SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 11
    functionality of SD using NAND memory. The SD Card's Wear Level command is supported as a NOP operation to maintain backward compatibility with existing software utilities. 1.5.6. to allow for hot insertion. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-5
  • SanDisk SDSDJ-64 | Product Manual - Page 12
    the SD Card host define an operating voltage range, which is not supported by the SD Card it will put itself in an inactive state and bits that relate to BUS_WIDTH, security related bits and future specific applications. 1-6 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 13
    -The minimal unit that may which may have individual write protection. Its size is the number of groups which will be write protected by one bit. The size of a WP-group is fixed for each device. The information about the size is stored in the CSD
  • SanDisk SDSDJ-64 | Product Manual - Page 14
    (Blocks) (Blocks) SDSDJ-1024 512 2,004,224 20,480 SDSDJ-512 512 1,001,104 10,240 SDSDJ-256 512 499,456 5,376 SDSDJ-128 512 248,640 2,624 SDSDJ-64 512 123,232 1,376 not effect this area. 1-8 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 15
    Operations The SD Card supports two read/write modes a pre-specified length. The data block transmission is protected with 16-bit CRC that is generated by the sending unit and checked by the receiving second. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-9
  • SanDisk SDSDJ-64 | Product Manual - Page 16
    can be set using the PROGRAM_CSD command (see below). The permanent write protect bit, once set, cannot be cleared. This feature is implemented in the SD Card lately a few other vendors') microcontrollers. 1-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 17
    only 16 bits (containing the errors relevant to SPI mode) can be read out of the 32-bit SD Card status both single and multiple block data transfer modes are supported. 1.5.10.6. Data Transfer Rate In the SPI SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-11
  • SanDisk SDSDJ-64 | Product Manual - Page 18
    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
  • SanDisk SDSDJ-64 | Product Manual - 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
  • SanDisk SDSDJ-64 | Product Manual - Page 20
    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 2-1
  • SanDisk SDSDJ-64 | Product Manual - Page 21
    Reliability and Maintenance Specifications MTBF > 1,000,000 hours Preventive Maintenance None Data Reliability < 1 non-recoverable error in 1014 bits read Endurance 100,000 write/erase cycles (typical) 2-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 22
    dimensions. Table 2-6. 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 2-3
  • SanDisk SDSDJ-64 | Product Manual - Page 23
    Product Specifications Figure 2-2. SD Card Dimensions 2-4 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 24
    Product Specifications Figure 2-3. SD Card Dimensions SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 2-5
  • SanDisk SDSDJ-64 | Product Manual - Page 25
    Product Specifications This page intentionally left blank. 2-6 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 26
    S Supply voltage ground 7 DAT0 I/O Data Line [Bit 0] 8 DAT1 I/O Data Line [Bit 1] 9 DAT2 I/O Data Line [Bit 2] NOTES: 1) S=power supply; I=input; O=output SET_CLR_CARD_DETECT (ACMD42) command. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-1
  • SanDisk SDSDJ-64 | Product Manual - Page 27
    by the host during initialization. CSD 128 Card specific data: information about the card operation conditions. SCR 64 SD Configuration Register: information about the sending the GO_IDLE (CMD0) command. 3-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 28
    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 3-3
  • SanDisk SDSDJ-64 | Product Manual - Page 29
    , 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. 3-4 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 30
    supply the card. Data transfer operations are protected by CRC codes; therefore, any bit changes induced by card insertion and removal can be detected by the SD bus master . • DataOut-Card to host data signal. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-5
  • SanDisk SDSDJ-64 | Product Manual - Page 31
    Card as well, is byte transfers. All data tokens are multiples of 8-bit bytes and always byte aligned to the CS signal. The SPI standard defines the provide valuable information for the electrical interface. 3-6 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 32
    and is not ready for identification. This bit informs the host that the card is not 64 clocks after what the card should be ready for communication) is provided to eliminate power-up synchronization problems SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-7
  • SanDisk SDSDJ-64 | Product Manual - Page 33
    RDAT3 10 90 kΩ Remark To prevent bus floating fPP ≤ 5 MHz, 21 cards fPP ≤ 20 MHz, 7 cards fPP ≤ 20 MHz May be used for card detection 3-8 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 34
    0.125∗VDD V Input HIGH voltage Input LOW voltage VIH 0.625∗VDD VDD + 0.3 V VIL VSS-0.3 0.25∗VDD V Conditions IOH=-100 µA @VDD (min.) IOL=100 µA @VDD (min.) SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-9
  • SanDisk SDSDJ-64 | Product Manual - Page 35
    ) CL ≤ 100 pF (7 cards) CL ≤ 250 pF (21 cards) CL ≤ 250 pF (21 cards) CL ≤ 250 pF (21 cards) CL ≤ 250 pF (21 cards) 3-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 36
    The 32-bit operation Bit VDD Voltage Window 0-3 Reserved 4 1.6-1.7 5 1.7-1.8 6 1.8-1.9 7 1.9-2.0 8 2.0-2.1 9 2.1-2.2 10 2.2-2.3 11 2.3-2.4 12 2.4-2.5 13 2.5-2.6 14 2.6-2.7 15 2.7-2.8 16 2.8-2.9 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 37
    3.5-3.6 reserved Card power up status bit (busy) • Restricted voltage windows=LOW • Card busy=LOW (bit 31) The least significant 31 bits are constant and will be set as CID register in the MultiMediaCard. 3-12 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 38
    the 3C.* Product Name (PNM) ASCII 40 [103:64] 5 ASCII characters long SD128, SD064, SD032, SD016, SanDisk, and MEI. ** The product revision is composed of two Binary Coded Decimal (BCD) digits, four bits SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-13
  • SanDisk SDSDJ-64 | Product Manual - Page 39
    :56] 80mA 3 R [55:53] 100mA 3 R [52:50] 80mA 3 R [49:47] SD128=64 SD064=32 SD032=32 SD016=32 SD008=16 1 R [46:46] Yes 7 R [45:39] 32blocks - 00b 7 R/W [7:1] - CRC7 1 - [0:0] - 1b 3-14 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 40
    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 SDSDJ-64 | Product Manual - Page 41
    SD Card Interface Description Table 3-14. Supported Card Command Classes CCC Bit 0 1 Supported Card Command Class class 0 class 1 ...... 11 Code Table DSR_IMP DSR Type 0 no DSR implemented 3-16 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 42
    factor MULT is defined as 2C_SIZE_MULT+2. Table 3-19. Multiply Factor For The Device Size C_SIZE_MULT MULT 0 22 = 4 1 23 = 8 2 24 = 16 3 25 = 32 4 26 = 64 5 27 = 128 6 28 = 256 7 29 = 512 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-17
  • SanDisk SDSDJ-64 | Product Manual - Page 43
    means 128 blocks. WP_GRP_SIZE-The size of a write protected group. The contents of this register is a 7-bit binary A Write Block Length of 512 bytes is always supported. Note that in the SD Card, the WRITE_BL_LEN is SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 44
    is 64 bit. supported SD_BUS_WIDTHS 4 R [51:48] 1 & 4 5 Reserved - 16 R [47:32] 0 0 Reserved for manufacturer usage - 32 R [31:0] 0 0 SCR_STRUCTURE-Version number of the related SCR structure in the SD Card Physical Layer Specification. SanDisk Secure Digital (SD) Card Product Manual
  • SanDisk SDSDJ-64 | Product Manual - Page 45
    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 SDSDJ-64 | Product Manual - Page 46
    protocol. • SD_Status-This extended status field of 512 bits supports special features unique to the SD Card and future error '1'= error A general or an unknown error occurred during C the operation. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-21
  • SanDisk SDSDJ-64 | Product Manual - Page 47
    to reverse the copy (set as original) or permanent WP (unprotected) bits was made. '0'= not protected '1'= protected Only partial address space was erased commands Reserved for manufacturer test mode 3-22 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 48
    to define different Spec. Ver. 1.01 variations of an SD Card (each ('x'=don't care). bit will define different SD The following cards are currently defined: '0000'=Regular SD RD/WR Card procedure. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 3-23
  • SanDisk SDSDJ-64 | Product Manual - Page 49
    and 3-31 describe the user and protected areas for all SanDisk SD Cards. Capacity 16 MB 32 MB 64 MB 128 MB 256 MB 512 MB 1024 MB Table 3-30. Parameters for User Area DOS Image Total 936 5,210,112 10,436,608 3-24 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - 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
  • SanDisk SDSDJ-64 | Product Manual - Page 51
    the SD Card are done in blocks. Data blocks are always followed by CRC bits. Single and multiple block operations are defined. Note that the Multiple Block operation long as the card supports this feature). SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-1
  • SanDisk SDSDJ-64 | Product Manual - Page 52
    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. 4-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 53
    . CRC bits are calculated and checked for every 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
  • SanDisk SDSDJ-64 | Product Manual - Page 54
    only DAT0 used): MSB (4095) 0 Block length LSB (0) CRC 1 End bt: always '1' Start bit always '0' MSN DAT3 0 4095 Wide bus (all four DAT2 data lines used): DAT1 0 4094 0 in the following sections. 4-4 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 55
    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 4-5
  • SanDisk SDSDJ-64 | Product Manual - Page 56
    required prior to starting bus communication. 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
  • SanDisk SDSDJ-64 | Product Manual - Page 57
    case the host must repeat ACMD41 until the busy bit is cleared. During the initialization procedure, the host a range which is known to be not supported by this card). 4.3.3. Card Identification Process The SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-7
  • SanDisk SDSDJ-64 | Product Manual - Page 58
    ) 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. 4-8 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 59
    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 4-9
  • SanDisk SDSDJ-64 | Product Manual - Page 60
    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: x16+x12+x5+1 4-10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 61
    to write over a write-protected area. In this case, the card sets the WP_VIOLATION bit in the status register, and while ignoring all further data transfer, waits in the Receive- change any register contents. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-11
  • SanDisk SDSDJ-64 | Product Manual - Page 62
    with its status. The status bit READY_FOR_DATA indicates whether the card preceding CMD25, so that SanDisk's SD Card will be card shall set the ERASE_SEQ_ERROR bit in the status register and the ERASE_RESET status bit in the status erased. The WP_ERASE_SKIP status bit in the status register shall
  • SanDisk SDSDJ-64 | Product Manual - Page 63
    . The SCR register bit DATA_STAT_AFTER_ERASE (bit 55) defines whether it is '0' or '1'. 4.4.4. Write Protect Management Three write protect methods are supported in the SD Card that it appears after APP_CMD. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-13
  • SanDisk SDSDJ-64 | Product Manual - Page 64
    it will be respected by the card as normal SD Card command and the APP_CMD bit in the Card Status stays clear. If a non-valid command is sent ( , poll busy bit by ACMD41 command at less than 50ms intervals. 4-14 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 65
    CSD). The degree n of the polynomial is the number of 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
  • SanDisk SDSDJ-64 | Product Manual - Page 66
    +1 M(x) = (first bit) * xn + (second bit)* xn-1 +...+ (last bit) * x0 CRC[15...0] = Remainder [(M(x) * x16 ) / G(x)] The first bit is the first data bit of the corresponding block. 11. CRC16 Generator/Checker 4-16 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 67
    The SD Card does not change its state, and COM_CRC_ERROR bit is set in the status register. Similarly, if an commands: • Commands belonging to classes not supported by the SD Card (e.g., write commands in SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-17
  • SanDisk SDSDJ-64 | Product Manual - Page 68
    . 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. 1) 7-bit Cyclic Redundancy Check. 4-18 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 69
    Secure Digital (SD) Card Protocol Description Supported Commands 0 Basic Table 4-2. Card Command Classes (CCCs) 1 2 3 4 5 6 7 Reserved + + + + + + + + + + + + + + + + + + + + + SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-19
  • SanDisk SDSDJ-64 | Product Manual - Page 70
    the card to publish a new relative address (RCA). CMD41 Not Supported CMD5 Reserved CMD6 Reserved CMD7 ac [31:16] RCA R1 SELECT/DESELECT_ (as well as the SET_DSR command) is not supported by the SanDisk SD Card. 2) The addressing capability @ 8 bit address resolution is 232 = 4 Gbyte. 3)
  • SanDisk SDSDJ-64 | Product Manual - Page 71
    SEND_WRITE_ PROT This command asks the card to send the status of the write protection bits. CMD31 Reserved 1) The default block length is as specified in the CSD (512 not cross a physical block boundary. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-21
  • SanDisk SDSDJ-64 | Product Manual - Page 72
    supported by SanDisk SD Card. CMD Type INDEX Table 4-9. Application Specific Commands (Class 8) Argument Resp. Abbreviation Command Description CMD55 ac [31:16] RCA [15:0] R1 stuff bits to the card. 4-22 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 73
    all the application specific commands supported/reserved by the SD Card response on the CMD line. ACMD42 ac [31:1] stuff bits R1 [0]set_cd SET_CLR_CARD_ DETECT Connect[1]/Disconnect[0] the 50KOhm pull-up SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-23
  • SanDisk SDSDJ-64 | Product Manual - Page 74
    - - - - rcv - - - - - CMD27 - - - - rcv - - - - - Class 6 CMD28 - - - - prg - - - - - CMD29 - - - - prg - - - - - CMD30 - - - - data - - - - - Class 5 4-24 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 75
    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. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-25
  • SanDisk SDSDJ-64 | Product Manual - Page 76
    48-bit. The bits 45:40 indicate the index of the command to be responded to-in that case it will be '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
  • SanDisk SDSDJ-64 | Product Manual - Page 77
    followed by a period of two Z bits (allowing time for direction switching on the bus) and then by P bits pushed up by the responding card. The card response to the host command starts after NID clock cycles. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 4-27
  • SanDisk SDSDJ-64 | Product Manual - Page 78
    4.11.2. Data Read Note that the DAT line represents the data bus (either 1 or 4 bits). Single Block Read The host selects one card for data read operation by CMD7, and sets the on the CMD line as usual. 4-28 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 79
    the card response was received. The data is suffixed with CRC check bits to allow the card to check it for transmission errors. The card sends 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
  • SanDisk SDSDJ-64 | Product Manual - 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
  • SanDisk SDSDJ-64 | Product Manual - Page 81
    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
  • SanDisk SDSDJ-64 | Product Manual - Page 82
    based Products." Table 4-17. Timing Values Min. Max. Unit NCR 2 64 Clock Cycles NID 5 5 Clock Cycles NAC 2 See note. Clock {(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
  • SanDisk SDSDJ-64 | Product Manual - Page 83
    eight or 16-bit response structure is used. • When the card encounters a data retrieval problem, it will respond is not observed. All the SD Card commands supported in SPI mode are always available. The default SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-1
  • SanDisk SDSDJ-64 | Product Manual - Page 84
    functions. In the non-protected mode the CRC bits of the command, response and data tokens are the SD Bus mode chapter. 5.1.3. Data Read SPI mode supports single block and multiple block read operations (SD Card SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 85
    Block Read operation, every transferred block has a 16-bit CRC suffix. The Stop Transmission command (CMD12) will Data Write In SPI mode, the SD Card supports single block or multiple block write operations. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-3
  • SanDisk SDSDJ-64 | Product Manual - Page 86
    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 of 16 bytes suffixed with a 16-bit CRC. 5-4 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 87
    host to refrain from accessing cards that do not support its voltage range. The use of CMD58 is not (by repeatedly sending CMD1) until the 'in-idle-state' bit in the card response indicates (by being set to 0) SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-5
  • SanDisk SDSDJ-64 | Product Manual - Page 88
    . Eight clocks after the card response end bit. The CS signal can be asserted or de-asserted it is other than Class 0 or 7 commands. • It is not supported (illegal opcode). • CRC check failed. • It contains an illegal SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 89
    SPI Protocol Definition SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-7
  • SanDisk SDSDJ-64 | Product Manual - Page 90
    card parameters define the typical delay between the end bit of the read command and the start bit of the data block. Write The R2W_FACTOR field Command Bytes 2-5 31 0 Command Argument Byte 6 7 0 CRC 1 5-8 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 91
    CRC Calculation: G(x) = x7 + x3 + 1 M(x) = (start bit)∗x39 + (host bit)∗x38 +...+ (last bit before CRC)∗x0 CRC[6...0] = Remainder[(M(x)∗x7)/G(x)] 5.2.2. Command Classes As in SD mode, the SPI commands are divided into several classes (See Table 5-1). Each class supports a set of card functions. An
  • SanDisk SDSDJ-64 | Product Manual - Page 92
    boundary. 3) Data followed by data response plus busy. 4) 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
  • SanDisk SDSDJ-64 | Product Manual - Page 93
    a card. Turns the CRC option on or off. A '1' in the CRC option bit will turn the option on, a '0' will turn it off. 1) These features are not currently supported in the SanDisk SD Card. 2) 32 write protection bits (representing 32 write protect groups starting at the specified address) followed by
  • SanDisk SDSDJ-64 | Product Manual - Page 94
    all the application specific commands supported or reserved by the SD with 32bit+CRC data block. ACMD23 Yes [31:23] stuff bits R1 [22:0]Number of blocks SET_WR_BLK_ ERASE_COUNT Set the number of 5-12 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 95
    commands. It is 1 byte long, the MSB is always set to zero and the other bits are error indications. A '1' signals error. • In idle state-The card is in idle state and the R2 status is shown in Figure 5-8. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-13
  • SanDisk SDSDJ-64 | Product Manual - Page 96
    address space was erased due to existing WP blocks. • Card is locked-Supported by the SanDisk SD Card. 5.2.3.4. Format R3 This response token is sent by the card R1 OCR Figure 5-9. R3 Response Format 5-14 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 97
    76 0 x x x 0 Status 1 The meaning of the status bits is defined as follows: • '010'-Data accepted. • '101'-Data order to get the cause of the write problem. ACMD22 can be used to find the block length): User data. • Last two bytes: 16-bit CRC. For Multiple Block Write operation: • First byte
  • SanDisk SDSDJ-64 | Product Manual - Page 98
    R2 and data error token (the same bits may exist in multiple response types-e.g., Card ECC failed). As in the SD mode, error bits are cleared when read by the host, and abbreviations listed in Table 5-5. 5-16 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 99
    to Host Command CS LL L L L DataIN H H H H H H H H H H DataOut H H H H H 1 or 2 Bytes Response H H H H 6 Bytes Command Figure 5-13. Card Response to Host Command L LHHHH HHHXXXX HHHHZ ZZ SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 5-17
  • SanDisk SDSDJ-64 | Product Manual - Page 100
    -> DataIN X H H H Write Command H H H H H H H Data Block H H H H H H X X X H H H H DataOut Z Z H H H H H H Card Resp H H H H H H H Data Resp Busy L Z Z Z Busy H Figure 5-17. Device Write Timing 5-18 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 101
    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
  • SanDisk SDSDJ-64 | Product Manual - 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
  • SanDisk SDSDJ-64 | Product Manual - Page 103
    SD Card and MultiMediaCard bus timing specifications. If they want to support MultiMediaCards in their design, the clock speed should be controllable by NSAC) * R2W_FACTOR (TAAC) + NSAC) * R2W_FACTOR * 10 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION A-1
  • SanDisk SDSDJ-64 | Product Manual - Page 104
    brand. Interface The MultiMediaCard and SD Card support multiple busses. Both cards support the 1-bit SPI bus that includes bus pins DATin, bit bus mode can have a 4x speed effect on the time spent servicing the SD Card. A-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 105
    Ordering Information and Technical Support 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 A-3
  • SanDisk SDSDJ-64 | Product Manual - Page 106
    20 MHz 204.8 us SPI Bus mode SD 1-bit mode SD 4-bit mode 25 MHz 25 MHz 25 MHz 163.8 that enough system RAM is designed in to support the multiblock capability. The performance gain will always the Timing section, if the design needs to support the MultiMediaCard, the clock should be lowered to
  • SanDisk SDSDJ-64 | Product Manual - Page 107
    the host does not support both cards, it issues an error message instructing the user to insert architecture used by SanDisk and other card vendors currently has Erase Block sizes of (32) or (64) 512 byte blocks SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION A-5
  • SanDisk SDSDJ-64 | Product Manual - Page 108
    To order SanDisk products directly from SanDisk, call 408-542-0595. Secure Digital Card SDSDB-16 SDSDB-32 SDSDJ-64 SDSDJ-128 SDSDJ-256 SDSDJ-512 SDSDJ-1024 16 MB 32 MB 64 MB 128 MB 256 MB 512 MB 1024 MB SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION B-1
  • SanDisk SDSDJ-64 | Product Manual - Page 109
    530-0003 Tel: 81-6-6343-6480 Fax: 81-6-6343-6481 International Industrial/OEM Sales Europe SanDisk GmbH Karlsruher Str. 2C D-30519 Hannover, Germany Tel: 49-511-875-9131 Fax: 49 -2712-0501 Fax: 852-2712-9385 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION C-1
  • SanDisk SDSDJ-64 | Product Manual - Page 110
    SanDisk Worldwide Sales Offices This page intentionally left blank. C-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 111
    PROPERTY DAMAGE, LOST DATA, OR COSTS OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES. IN NO EVENT SHALL THE SELLER BE LIABLE FOR DAMAGES IN EXCESS OF THE meet the original product's specifications. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION D-1
  • SanDisk SDSDJ-64 | Product Manual - Page 112
    product should be returned only with prior authorization from SanDisk Corporation. Please contact SanDisk's Customer Service department at 408-542-0595 with the following rights that vary from state to state. D-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 113
    , in any use of products in life support systems or other applications where failure could cause damage, injury or loss of life, the products should only be incorporated in systems designed with appropriate redundancy, fault tolerant or back-up features. SanDisk shall not be liable for any loss
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113

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