Product Manual
Page 3
... 2-1 2.4 Typical Card Power Requirements 2-2 2.5 System Performance 2-2 2.6 System Reliability and Maintenance 2-2 2.7 Physical Specifications 2-3 2.8 Capacity Specifications 2-5 3. SPI Protocol 5-1 5.1 SPI Bus Protocol 5-1 5.2 Mode Selection 5-1 5.3 Bus Transfer Protection 5-2 5.4 Data Read 5-2 © 2004 SanDisk Corporation ii SD Card Protocol Description 4-1 4.1 SD Bus Protocol 4-1 4.2 Functional Description 4-4 4.3 Card Identification Mode 4-4 4.4 Data Transfer Mode 4-7 4.5 Clock Control 4-26 4.6 Cyclic Redundancy Codes 4-27 4.7 Error...
... 2-1 2.4 Typical Card Power Requirements 2-2 2.5 System Performance 2-2 2.6 System Reliability and Maintenance 2-2 2.7 Physical Specifications 2-3 2.8 Capacity Specifications 2-5 3. SPI Protocol 5-1 5.1 SPI Bus Protocol 5-1 5.2 Mode Selection 5-1 5.3 Bus Transfer Protection 5-2 5.4 Data Read 5-2 © 2004 SanDisk Corporation ii SD Card Protocol Description 4-1 4.1 SD Bus Protocol 4-1 4.2 Functional Description 4-4 4.3 Card Identification Mode 4-4 4.4 Data Transfer Mode 4-7 4.5 Clock Control 4-26 4.6 Cyclic Redundancy Codes 4-27 4.7 Error...
Product Manual
Page 4
Revision 2.2 SanDisk SD Card Product Manual 5.5 Data Write 5-3 5.6 Erase and Write Protect Management 5-4 5.7 Read CID/CSD Registers 5-5 5.8 Reset Sequence 5-5 5.9 Clock Control 5-5 5.10 Error Conditions ...Token 5-15 5.21 Clearing Status Bits 5-15 5.22 Card Registers 5-17 5.23 SPI Bus Timing Diagrams 5-17 5.24 Timing Values 5-19 5.25 SPI Electrical Interface 5-20 5.26 SPI Bus Operating Conditions 5-20 5.27 Bus Timing 5-20 Appendix A Ordering Information A-1 Appendix B SanDisk Worldwide Sales Offices B-1 Appendix C Limited Warranty C-1 Appendix D Disclaimer of Liability D-1 ...
Revision 2.2 SanDisk SD Card Product Manual 5.5 Data Write 5-3 5.6 Erase and Write Protect Management 5-4 5.7 Read CID/CSD Registers 5-5 5.8 Reset Sequence 5-5 5.9 Clock Control 5-5 5.10 Error Conditions ...Token 5-15 5.21 Clearing Status Bits 5-15 5.22 Card Registers 5-17 5.23 SPI Bus Timing Diagrams 5-17 5.24 Timing Values 5-19 5.25 SPI Electrical Interface 5-20 5.26 SPI Bus Operating Conditions 5-20 5.27 Bus Timing 5-20 Appendix A Ordering Information A-1 Appendix B SanDisk Worldwide Sales Offices B-1 Appendix C Limited Warranty C-1 Appendix D Disclaimer of Liability D-1 ...
Product Manual
Page 5
... to meet the security, capacity, performance and environmental requirements inherent in mass storage applications. Figure 1-1 SanDisk SD Card Block Diagram SD Bus/SPI Bus Interface SanDisk Single Chip Controller Data In/Out Control Flash Modules © 2004 SanDisk Corporation SanDisk SD Card 1-1 12/08/04 The SD Card host interface supports regular MultiMediaCard operation as Error...
... to meet the security, capacity, performance and environmental requirements inherent in mass storage applications. Figure 1-1 SanDisk SD Card Block Diagram SD Bus/SPI Bus Interface SanDisk Single Chip Controller Data In/Out Control Flash Modules © 2004 SanDisk Corporation SanDisk SD Card 1-1 12/08/04 The SD Card host interface supports regular MultiMediaCard operation as Error...
Product Manual
Page 9
...(using the READ_CID command. An internal pull-up again. The resistor can read the card's CID Register using ACMD42). Introduction SanDisk SD Card Product Manual 1.11 Hot Insertion Support for card detection (insertion/removal). The Status Register provides information about the card's... is separated into the following sections provide valuable information on the bus. Should the SD Card host define an operating voltage range, which is pre-programmed with the SEND_STATUS command. © 2004 SanDisk Corporation 1-5 12/08/04 During the identification process, the host...
...(using the READ_CID command. An internal pull-up again. The resistor can read the card's CID Register using ACMD42). Introduction SanDisk SD Card Product Manual 1.11 Hot Insertion Support for card detection (insertion/removal). The Status Register provides information about the card's... is separated into the following sections provide valuable information on the bus. Should the SD Card host define an operating voltage range, which is pre-programmed with the SEND_STATUS command. © 2004 SanDisk Corporation 1-5 12/08/04 During the identification process, the host...
Product Manual
Page 13
... the internal Permanent or Temporary WP bits in SD Physical Specification's Application Notes given by using the READ_OCR (CMD58) command. Introduction SanDisk SD Card Product Manual 1.12.8 Data Protection in the Flash Card Every sector is stored in Motorola and other vendors' microcontrollers. ... are written and validated when the data is a secondary communication protocol for card detection (insertion/removal). The copy bit of the SD Card bus is a subset of cards currently connected on the card. Revision 2.2 Chapter 1 - The permanent write-protect bit, once set or cleared....
... the internal Permanent or Temporary WP bits in SD Physical Specification's Application Notes given by using the READ_OCR (CMD58) command. Introduction SanDisk SD Card Product Manual 1.12.8 Data Protection in the Flash Card Every sector is stored in Motorola and other vendors' microcontrollers. ... are written and validated when the data is a secondary communication protocol for card detection (insertion/removal). The copy bit of the SD Card bus is a subset of cards currently connected on the card. Revision 2.2 Chapter 1 - The permanent write-protect bit, once set or cleared....
Product Manual
Page 23
...Bus mode. Host and card drivers are operating in push-pull mode. Two ground lines. Table 3-3 MMC Bus... Signal Descriptions Name CMD DAT0-3 CLK VDD VSS [1:2] Description Command is a host to card signal. CLK operates in pushpull mode. Clock is a bi-directional signal. Power supply line for all cards. Revision 2.2 Chapter 3 - SD Card Interface Description SD Card Product Manual 3.2 SD Bus... Topology The SD Memory Card bus has six communication lines and ...pushpull mode. Figure 3-2 SD Card System Bus Topology HOST CLK Vdd Vss D0-3(A), CMD...
...Bus mode. Host and card drivers are operating in push-pull mode. Two ground lines. Table 3-3 MMC Bus... Signal Descriptions Name CMD DAT0-3 CLK VDD VSS [1:2] Description Command is a host to card signal. CLK operates in pushpull mode. Clock is a bi-directional signal. Power supply line for all cards. Revision 2.2 Chapter 3 - SD Card Interface Description SD Card Product Manual 3.2 SD Bus... Topology The SD Memory Card bus has six communication lines and ...pushpull mode. Figure 3-2 SD Card System Bus Topology HOST CLK Vdd Vss D0-3(A), CMD...
Product Manual
Page 24
... C1 C2 C3 1 2 3 4 5 6 7 8 9 SD Memory Card CLK 3.2.1 3.2.2 RDAT and RCMD are pull-up resistors protecting the CMD and DAT line against bus floating when no card is provided in the command packet. inserting or removing the SD Card to supply the card. SD Card Interface Description SD...Card will not damage the card. This also applies when the power is drawn through a data line to or from the bus without damage. © 2004 SanDisk Corporation 3-4 12/08/04 Power Protection Cards can detect any bit changes induced by removal/insertion should be sent concurrently to ...
... C1 C2 C3 1 2 3 4 5 6 7 8 9 SD Memory Card CLK 3.2.1 3.2.2 RDAT and RCMD are pull-up resistors protecting the CMD and DAT line against bus floating when no card is provided in the command packet. inserting or removing the SD Card to supply the card. SD Card Interface Description SD...Card will not damage the card. This also applies when the power is drawn through a data line to or from the bus without damage. © 2004 SanDisk Corporation 3-4 12/08/04 Power Protection Cards can detect any bit changes induced by removal/insertion should be sent concurrently to ...
Product Manual
Page 25
The CS signal must be sent during data read /write operations. Figure 3-4 SD Card Bus System Power Supply CS CS SPI Bus Master SPI Bus (CLK, DataIn, DataOut) SPI Card SPI Card © 2004 SanDisk Corporation 3-5 12/08/04 The SPI standard defines the physical link only and not the complete data ...the host can be continuously active for every command by the hardware CS signal. SD Card Interface Description SD Card Product Manual 3.3 SPI Bus Topology The SD Card SPI Interface is compatible with SPI hosts available on the market. Refer to any other SPI device, the SD ...
The CS signal must be sent during data read /write operations. Figure 3-4 SD Card Bus System Power Supply CS CS SPI Bus Master SPI Bus (CLK, DataIn, DataOut) SPI Card SPI Card © 2004 SanDisk Corporation 3-5 12/08/04 The SPI standard defines the physical link only and not the complete data ...the host can be continuously active for every command by the hardware CS signal. SD Card Interface Description SD Card Product Manual 3.3 SPI Bus Topology The SD Card SPI Interface is compatible with SPI hosts available on the market. Refer to any other SPI device, the SD ...
Product Manual
Page 26
... depend on its power-up of the SD Card bus is still working level Valid voltage range for commands CMD0, 15, 55, and ACMD41 Valid voltage range for all bus transactions until ACMD41 is transmitted. © 2004 SanDisk Corporation 3-6 12/08/04 SD Card Interface Description ...SD Card Product Manual 3.3.1 Power Protection Same as the maximum number of SD Card s, the bus length and the power supply unit, the ...
... depend on its power-up of the SD Card bus is still working level Valid voltage range for commands CMD0, 15, 55, and ACMD41 Valid voltage range for all bus transactions until ACMD41 is transmitted. © 2004 SanDisk Corporation 3-6 12/08/04 SD Card Interface Description ...SD Card Product Manual 3.3.1 Power Protection Same as the maximum number of SD Card s, the bus length and the power supply unit, the ...
Product Manual
Page 27
... (see Figure 3-8). Table 3-4 lists the power supply voltages. Requiring the sum of the clock line in Table 3-4 must not exceed 10 mA. © 2004 SanDisk Corporation 3-7 12/08/04 the additional 10 clocks (over the 64 clocks after what the card should be ready for up -time; The CS (chip...for up to 10 cards, and 40 pF for communication) is identical to 30 cards, the values in the SD Card bus is the sum of the bus-master capacitance (CHOST), the bus capacitance (CBUS) itself and the capacitance (CCARD) of logical '1's. CMD1 will be send separately to each card connected to ...
... (see Figure 3-8). Table 3-4 lists the power supply voltages. Requiring the sum of the clock line in Table 3-4 must not exceed 10 mA. © 2004 SanDisk Corporation 3-7 12/08/04 the additional 10 clocks (over the 64 clocks after what the card should be ready for up -time; The CS (chip...for up to 10 cards, and 40 pF for communication) is identical to 30 cards, the values in the SD Card bus is the sum of the bus-master capacitance (CHOST), the bus capacitance (CBUS) itself and the capacitance (CCARD) of logical '1's. CMD1 will be send separately to each card connected to ...
Product Manual
Page 28
signal line inductance Pull-up resistance Bus signal line capacitance Bus signal line capacitance Signal card capacitance Max. SD Card Interface Description SD Card Product Manual Table 3-5 Host and Bus Capacities8 Parameter Pull-up resistance inside card (pin 1) Symbol RCMD, RDAT CL CL CCARD --RDAT3 Min. 10 --------10 Max. 100 250 100 10 16 90 Unit Remark kΩ Prevents bus floating pF fPP < 5 MHz, 21 cards pF fPP < 20 MHz, 7 cards pF nH fPP Revision 2.2 Chapter 3 -
signal line inductance Pull-up resistance Bus signal line capacitance Bus signal line capacitance Signal card capacitance Max. SD Card Interface Description SD Card Product Manual Table 3-5 Host and Bus Capacities8 Parameter Pull-up resistance inside card (pin 1) Symbol RCMD, RDAT CL CL CCARD --RDAT3 Min. 10 --------10 Max. 100 250 100 10 16 90 Unit Remark kΩ Prevents bus floating pF fPP < 5 MHz, 21 cards pF fPP < 20 MHz, 7 cards pF nH fPP Revision 2.2 Chapter 3 -
Product Manual
Page 29
.... VIH and max. Outputs CMD, DAT - SD Card Interface Description SD Card Product Manual 3.4.6 Bus Timing (default) Default dataIn/dataOut timing is required. © 2004 SanDisk Corporation 3-9 12/08/04 tWH 50 --- referenced to CLK Input setup time Input hold time tISU... 5 --- all values referred to Clock Timing (default) Table 3-7 Bus Timing Parameter Values (default) Parameter Symbol Min Max Unit...
.... VIH and max. Outputs CMD, DAT - SD Card Interface Description SD Card Product Manual 3.4.6 Bus Timing (default) Default dataIn/dataOut timing is required. © 2004 SanDisk Corporation 3-9 12/08/04 tWH 50 --- referenced to CLK Input setup time Input hold time tISU... 5 --- all values referred to Clock Timing (default) Table 3-7 Bus Timing Parameter Values (default) Parameter Symbol Min Max Unit...
Product Manual
Page 30
.... VIL Output delay time during Data tOSU 0 14 Transfer mode Output delay time during Data tODLY --- 14 ns Transfer mode Remark © 2004 SanDisk Corporation 3-10 12/08/04 Clock Rise Time tTLH --- 3 Clock Fall Time tTHL --- 3 MHz ns ns ns ns Inputs CMD, DAT - ...CLK Output delay time during Identification mode tODLY 0 50 Unit Remark ns CL < 25 pF (1 card) ns CL < 25 pF (1 card) 3.4.7 Bus Timing (high-speed mode) High-speed mode dataIn/dataOut timing is illustrated in Table 3-8. Clock High Time tWH 7 --- Data Transfer Mode fPP Clock Low...
.... VIL Output delay time during Data tOSU 0 14 Transfer mode Output delay time during Data tODLY --- 14 ns Transfer mode Remark © 2004 SanDisk Corporation 3-10 12/08/04 Clock Rise Time tTLH --- 3 Clock Fall Time tTHL --- 3 MHz ns ns ns ns Inputs CMD, DAT - ...CLK Output delay time during Identification mode tODLY 0 50 Unit Remark ns CL < 25 pF (1 card) ns CL < 25 pF (1 card) 3.4.7 Bus Timing (high-speed mode) High-speed mode dataIn/dataOut timing is illustrated in Table 3-8. Clock High Time tWH 7 --- Data Transfer Mode fPP Clock Low...
Product Manual
Page 41
... interpreted as original) or permanent WP (unprotected) bits was made. Reserved for application-specific commands Reserved for manufacturer test mode © 2004 SanDisk Corporation 3-21 12/08/04 Revision 2.2 Chapter 3 - An erase sequence was C cleared before executing because an out of erase sequence command... RESET CURRENT_ S X STATE READY_FOR_ S X DATA Value 0 = no error 1 = error 0 = no error 1 = error Error in the response to buffer empty A signaling on the bus. Clear Cond. The state of the CSD does not match the card content.- C Can be overwritten-
... interpreted as original) or permanent WP (unprotected) bits was made. Reserved for application-specific commands Reserved for manufacturer test mode © 2004 SanDisk Corporation 3-21 12/08/04 Revision 2.2 Chapter 3 - An erase sequence was C cleared before executing because an out of erase sequence command... RESET CURRENT_ S X STATE READY_FOR_ S X DATA Value 0 = no error 1 = error 0 = no error 1 = error Error in the response to buffer empty A signaling on the bus. Clear Cond. The state of the CSD does not match the card content.- C Can be overwritten-
Product Manual
Page 42
...S R '00xxh'=SD In the future, the 8 LSBs will Physical Spec. S R 00=1 (default) Shows the currently defined data A 01=reserved bus width that do not comply with care).The the SD Memory Card as defined in of A mode operation (refer to the Host over the DAT...used for the addressed host-card communication after the card identification procedure. © 2004 SanDisk Corporation 3-22 12/08/04 Revision 2.2 Chapter 3 - The SD Status is sent to the host over the DAT bus if ACMD13 is transmitted to the SD 1=secured Security Specifications mode document). The 8...
...S R '00xxh'=SD In the future, the 8 LSBs will Physical Spec. S R 00=1 (default) Shows the currently defined data A 01=reserved bus width that do not comply with care).The the SD Memory Card as defined in of A mode operation (refer to the Host over the DAT...used for the addressed host-card communication after the card identification procedure. © 2004 SanDisk Corporation 3-22 12/08/04 Revision 2.2 Chapter 3 - The SD Status is sent to the host over the DAT bus if ACMD13 is transmitted to the SD 1=secured Security Specifications mode document). The 8...
Product Manual
Page 45
...Operation mode is transferred via the data lines. Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual 4 SD Card Protocol Description 4.1 SD Bus Protocol Communication over the SD bus is based on the CMD line. • Response-token that is sent from the SD ... the card supports this feature). © 2004 SanDisk Corporation 4-1 12/08/04 A command is transferred serially on command and data bit streams, which are initiated by a start bit and terminated, by a stop command follows on the SD bus is transferred serially on the CMD line. •...
...Operation mode is transferred via the data lines. Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual 4 SD Card Protocol Description 4.1 SD Bus Protocol Communication over the SD bus is based on the CMD line. • Response-token that is sent from the SD ... the card supports this feature). © 2004 SanDisk Corporation 4-1 12/08/04 A command is transferred serially on command and data bit streams, which are initiated by a start bit and terminated, by a stop command follows on the SD bus is transferred serially on the CMD line. •...
Product Manual
Page 47
... DAT0 0 4092 Block length Block length /4 CRC 1 "End" bit always 1 LSN 3 CRC 1 2 CRC 1 1 CRC 1 0 CRC 1 © 2004 SanDisk Corporation 4-3 12/08/04 When the wide-bus option is used, the data is 48 bits. The card sends the host the CRC status response and busy indication on their...'t care"). OCR Register (R3 response) or RCA (R6) protected by an end bit (1). Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual Each command token is a 16-bit CCITT polynomial. CRC bits protect each token to detect transmission errors; CRC bits are transmitted...
... DAT0 0 4092 Block length Block length /4 CRC 1 "End" bit always 1 LSN 3 CRC 1 2 CRC 1 1 CRC 1 0 CRC 1 © 2004 SanDisk Corporation 4-3 12/08/04 When the wide-bus option is used, the data is 48 bits. The card sends the host the CRC status response and busy indication on their...'t care"). OCR Register (R3 response) or RCA (R6) protected by an end bit (1). Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual Each command token is a 16-bit CCITT polynomial. CRC bits protect each token to detect transmission errors; CRC bits are transmitted...
Product Manual
Page 48
..., state transitions, error conditions, and timings are presented in the Card Identification Mode uses the CMD line only. © 2004 SanDisk Corporation 4-4 12/08/04 The host will enter data-transfer mode when their RCA is shown in Figure 4-7 for the Data Transfer... - Each state in Figure 4-8 for the Card Identification Mode and in the card state diagrams (Figure 4-7 and 4-8) is performed on the bus. Operation Modes Overview Inactive Card State Inactive Operation Mode Idle, Ready, Identification Card Identification Mode Standby, Transfer, Send data, Receive data, Programming...
..., state transitions, error conditions, and timings are presented in the Card Identification Mode uses the CMD line only. © 2004 SanDisk Corporation 4-4 12/08/04 The host will enter data-transfer mode when their RCA is shown in Figure 4-7 for the Data Transfer... - Each state in Figure 4-8 for the Card Identification Mode and in the card state diagrams (Figure 4-7 and 4-8) is performed on the bus. Operation Modes Overview Inactive Card State Inactive Operation Mode Idle, Ready, Identification Card Identification Mode Standby, Transfer, Send data, Receive data, Programming...
Product Manual
Page 49
... with the host. An SD Card that makes each SD Card move into an idle state regardless of the next command. SD Card Protocol Description SanDisk SD Card Product Manual Figure 4-7 SD Memory Card State Diagram-Card Identification Mode SPI Operation Mode CMD0 CS Asserted (0) Power On Idle State (idle) Card... CMD3 Card responds w/new RCA Data Transfer Mode Standby State (stby) CMD3 Card responds w/new RCA From all card CMD lines are expected to starting bus communication. © 2004 SanDisk Corporation 4-5 12/08/04
... with the host. An SD Card that makes each SD Card move into an idle state regardless of the next command. SD Card Protocol Description SanDisk SD Card Product Manual Figure 4-7 SD Memory Card State Diagram-Card Identification Mode SPI Operation Mode CMD0 CS Asserted (0) Power On Idle State (idle) Card... CMD3 Card responds w/new RCA Data Transfer Mode Standby State (stby) CMD3 Card responds w/new RCA From all card CMD lines are expected to starting bus communication. © 2004 SanDisk Corporation 4-5 12/08/04
Product Manual
Page 50
... when the host explicitly wants to deactivate a card-for CMD55 in the ACMD41 response to preceding commands APP_CMD-CMD55. © 2004 SanDisk Corporation 4-6 12/08/04 The host then issues the command, ALL_SEND_CID (CMD2), to provide card hosts with the identification clock rate...procedure (e.g., downloading the register information from memory field) and is invalid in Inactive State, a hard reset must discard themselves from further bus operations and go into inactive state. Incompatible cards are push-pull drivers. The RCA to publish a new relative card address (RCA),...
... when the host explicitly wants to deactivate a card-for CMD55 in the ACMD41 response to preceding commands APP_CMD-CMD55. © 2004 SanDisk Corporation 4-6 12/08/04 The host then issues the command, ALL_SEND_CID (CMD2), to provide card hosts with the identification clock rate...procedure (e.g., downloading the register information from memory field) and is invalid in Inactive State, a hard reset must discard themselves from further bus operations and go into inactive state. Incompatible cards are push-pull drivers. The RCA to publish a new relative card address (RCA),...