ATP Electronics, Inc.
6.1 SD BUS Protocol .............................................................................................................................. 37
6.2 Command ....................................................................................................................................... 41
6.2.1 Command Types and Format ...................................................................................................... 41
6.2.2 Command Classes ....................................................................................................................... 41
6.2.3 Detailed Command Description................................................................................................... 44
6.3 Card State Transition Table ............................................................................................................. 52
6.4 Responses ....................................................................................................................................... 54
6.4.1 R1 (Normal Response Command) ................................................................................................ 54
6.4.2 R1b ............................................................................................................................................. 54
6.4.3 R2 (CID, CSD register) .................................................................................................................. 54
6.4.4 R3 (OCR Register) ........................................................................................................................ 55
6.4.5 R6 (Published RCA response)....................................................................................................... 55
6.4.6 R7 (Card interface condition) ...................................................................................................... 55
SD Card Status................................................................................................................................. 57
6.5 57
6.5.1 Card Status ................................................................................................................................. 57
6.5.2 SD Status .................................................................................................................................... 61
6.6 Card Identification Mode and Data Transfer Mode .......................................................................... 65
6.6.1 Card Identification Mode ............................................................................................................ 66
6.6.2 Card Initialization and Identification Process ............................................................................... 68
6.6.3 Initialization Command (ACMD41) .............................................................................................. 70
6.6.4 Bus Signal Voltage Switch Sequence ............................................................................................ 71
6.6.5 Timing to Switch Signal Voltage................................................................................................... 72
6.6.6 Timing of Voltage Switch Error Detection .................................................................................... 74
6.6.7 Voltage Switch Command ........................................................................................................... 74
6.6.8 Tuning Command ........................................................................................................................ 75
6.6.9 Data Transfer Mode .................................................................................................................... 76
6.7 Write Protect Management ............................................................................................................ 78
6.7.1 Mechanical Write Protect Switch ................................................................................................ 78
6.7.2 Card's Internal Write Protection (Optional) ................................................................................. 78
6.7.3 Card Lock/Unlock Operation ....................................................................................................... 78
6.8 Error Handling ................................................................................................................................. 82
6.8.1 Error Correction Code (ECC) ........................................................................................................ 82
6.8.2 Cyclic Redundancy Check (CRC) ................................................................................................... 82
6.8.3 CRC and Illegal Command ........................................................................................................... 83
6.8.4 Read, Write and Erase Time-out .................................................................................................. 83
7.0 SPI Mode ................................................................................................................................ 85
7.1 Introduction .................................................................................................................................... 85
7.2 SPI BUS Topology ............................................................................................................................ 85
7.3 SPI Bus Protocol .............................................................................................................................. 86
7.3.1 Mode Selection and Initialization ................................................................................................ 87
7.3.2 Bus Transfer Protection............................................................................................................... 89
7.3.3 Data Read ................................................................................................................................... 89
7.3.4 Data Write .................................................................................................................................. 90
7.3.5 Erase & Write Protect Management............................................................................................ 92
7.3.6 Read CID/CSD Registers .............................................................................................................. 92
7.3.7 Reset Sequence .......................................................................................................................... 92