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
    Specific Commands 4-13 4.5. Clock Control ...4-14 4.6. Cyclic Redundancy Codes (CRC)...4-15 4.7. Error Conditions...4-17 4.7.1. CRC and Illegal Command 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
    11.3. Data Write ...4-29 4.11.4. Timing Values...4-32 5. SPI Protocol Definition ...5-1 5.1. SPI Bus Protocol 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 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • 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
    supports 1024 Code (ECC) algorithms, defect handling and diagnostics, power management and clock control. SD Bus/SPI Bus Interface 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
  • SanDisk SDSDJ-64 | Product Manual - Page 8
    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 SDSDB = Binary NAND technology. SDSDJ = Multi Level Cell (MLC) NAND technology. 1024 . 1-2 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 9
    Bus Comparison SD Card Using SD Bus SD Card Using SPI Bus Six-wire communication channel (clock, command, 4 Three-wire serial data bus (Clock, dataIn, dataOut) code (ECC). • Power management for low power operation. SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK
  • SanDisk SDSDJ-64 | Product Manual - Page 10
    systems that support the SD Card today will be able to access future SanDisk SD Cards built defective bits are replaced with spare bits to ensure they do not cause any future problems. memory area. For any access (any Read, Write or Erase command) from/to the data in the protected area. For
  • SanDisk SDSDJ-64 | Product Manual - Page 11
    For instance, it would take over 10 years to wear out an area on the SD Card on which a file of any size (from The SD Card's Wear Level command is supported as a NOP operation to maintain backward compatibility SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION 1-5
  • SanDisk SDSDJ-64 | Product Manual - Page 12
    supported 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. 1-6 SanDisk Secure Digital (SD) Card Product Manual
  • 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
    Size (Byte) Data Area + Protected size Protected Area size (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 SDSDB-32 512 60,512 736 SDSDB-16 512 29,152
  • 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
    protected with an Error Correction Code (ECC). The ECC is see below). The permanent write protect bit, once set, cannot be cleared. 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
  • SanDisk SDSDJ-64 | Product Manual - Page 17
    mode, only 16 bits (containing the errors relevant to SPI mode) can be read out of the 32-bit SD Card status 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
    : ± 4kV, Human body model according to ANSI EOS/ESD-S5.1-1998 Non Contact Pad Area: ± 8kV (coupling plane discharge) ± 15kV (air discharge) Human body model per IEC61000 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
    approved by the host during initialization. CSD 128 Card specific data: information about the card about the SD Card's special features capabilities. OCR 32 Operation Condition Register NOTE: 1) The RCA register 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
    insertion and removal are allowed. The SanDisk SD Card will not be damaged by bus master using the CRC codes that suffix every bus transaction. are protected by CRC codes; therefore, any bit changes induced by card other SPI device the SD Card SPI channel consists of the following four signals:
  • 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
    -up procedure and is not ready for identification. This bit informs the host that the card is not ready. ) is provided to eliminate power-up synchronization problems. Every bus master shall have the capability 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
    tIH tO DLY (max) tO DLY (min) VIH VIL VIH VIL VOH VOL Shaded areas are not valid. Figure 3-7. Timing Diagram Data Input/Output Referenced to Clock Table 3-7. Bus 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
    voltage windows=LOW • Card busy=LOW (bit 31) The least significant 31 bits are constant and will be set as described in Figure 4-8. If bit 32 (the busy bit) is set, it informs the host that MultiMediaCard. 3-12 SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 38
    coded decimal digits Product Revision (30) Serial Number (PSN) Binary 32 [55:24] 32 Bits unsigned integer Product Serial Number Reserved 4 [23:20] Manufacture Date Code Toshiba, SanDisk, and MEI. ** The product revision is composed of two Binary Coded Decimal (BCD) digits, four bits each,
  • SanDisk SDSDJ-64 | Product Manual - Page 39
    SD064=32 SD032=32 SD016=32 SD008=16 1 R [46:46] Yes 7 R [45:39] 32blocks 7 R [38:32] 128sectors 1 R [31:31] Yes 2 R [30:29] - CSD Code 1001b 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
    Card Interface Description Table 3-14. Supported Card Command Classes CCC Bit 0 1 Supported Card Command Class class 0 class 3-16. DSR Implementation 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
    does not include security protected area). The memory capacity of (Device Size Multiplier)-This parameter is used for coding a factor MULT for computing the total device size 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
  • SanDisk SDSDJ-64 | Product Manual - Page 43
    128 blocks. WP_GRP_SIZE-The size of a write protected group. The contents of this register is a 7-bit binary coded 3 8 4 16 5 32 6, 7 Reserved WRITE_BL_LEN-The of 512 bytes is always supported. Note that in the SanDisk Secure Digital (SD) Card Product Manual, Rev. 1.9 © 2003 SANDISK CORPORATION
  • SanDisk SDSDJ-64 | Product Manual - Page 44
    widths 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
    extended status field of 512 bits supports special features unique to the fields in the table are coded as follows: Type: • E-Error bit. • S-Status bit. • R-Detected and set 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
    visible to the host in the response to the next command. The four bits are interpreted as a binary coded number between 0 and 15. '0'= not ready '1'= ready Corresponds to buffer 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
    -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
  • SanDisk SDSDJ-64 | Product Manual - Page 49
    card. Tables 3-30 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 LBAs No. of Partition Sys. Area Sectors Total Partition Sectors User Data Sectors 28,800 39
  • 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
    , 9, 10 "Operation complete" CMD28, 29, 38 "Operation complete" Transfer state (tran) CMD 16, 32...37 ACMD6, 13, 42 ACMD 22,23 CMD24, 25, 26, 27, 42, 56(w) Receive-data 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
    in the SanDisk SD Card. The write operation will be aborted if the host tries to write over a write-protected area. In this case, the card sets the WP_VIOLATION bit in the not 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
    Cyclic Redundancy Codes (CRC) 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
  • SanDisk SDSDJ-64 | Product Manual - Page 66
    The first bit is the first data bit of the corresponding block. The degree n of the polynomial denotes the number of bits of the data block decreased by one. For example, n = 4,095 for a block length of 512 bytes. The generator polynomial G(x) is a standard CCITT polynomial. The code has a minimal
  • 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
    This command sets the write protection bit of the addressed group. The properties of write protection are coded in the card specific data (WP_GRP_SIZE transferred must 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
    Table 4-14. Response R3 46 [45:40] [39:8] 1 6 32 '0' '111111' x transmission bit reserved OCR register [7:1] 7 '1111111' reserved 0 1 '1' end bit R4 and R5: responses are not supported. R6 (Published RCA response): code length 48-bit. The bits 45:40 indicate the index of the command
  • 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
    . Clock Cycles NRC 8 - Clock Cycles NCC 8 - Clock Cycles NWR 2 - 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
  • 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
    25 27 28 29 30 32 33 38 42 55 56 58 59 class 0 Basic ++++++ ++ class 1 Not supported in SPI class 2 Block read +++ class 3 Not supported in SPI class 4 reserved commands are reserved in SD Card mode as well. The binary code of a command is defined by the mnemonic symbol. As an example,
  • 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
    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 16 CRC
  • 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
    the MSB is always set to zero and the other bits are error indications. A '1' signals error. • In idle was received. • Illegal command-An illegal command code was detected. • Communication CRC error-The CRC 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
    not support both cards, it issues an error message instructing used by SanDisk and other card vendors currently has Erase Block sizes of (32) or actual file is written to the data area. Third, the FAT table is 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