SDI Technologies SDIO Card manual Iorwdirect Response R5, 1 CMD52 Response SD modes, Comcrcerror

Page 31

©Copyright 2000-2007 SD Card Association

SDIO Simplified Specification Version 2.00

5.2IO_RW_DIRECT Response (R5)

The SDIO card’s response to CMD52 shall be in one of two formats. If the communication between the card and host is in the 1-bit or 4-bit SD mode, the response shall be in a 48-bit response (R5) as described in 5.2.1. If the communication is using the SPI mode, the response shall be a 16-bit R5 response as described in 5.2.2.

5.2.1CMD52 Response (SD modes)

The SDIO card’s response to CMD52 in the SD mode is shown in Figure 5-2. If the operation was a read command, the data being read is returned as an 8-bit value. In addition, 15 bits of status information is returned. The format of the SD response is as follows:

S

D

Command

Stuff

Response Flags

 

Read or Write

CRC7

E

 

 

Index

 

Bit

 

Data

 

 

 

 

110100b

 

7--------------------------

0

 

 

 

1

1

6

16

8

 

8

7

1

Figure 5-2 R5 IO_RW_DIRECT Response (SD modes)

The IO_RW_DIRECT response (R5) contains the following fields:

S(tart bit):

Start bit. Always 0

 

 

 

D(irection):

Direction. 0 indicates transfer card to host (Response)

 

 

Command Index:

Identifies the “IO_RW_DIRECT” command with a value of 110100b

 

 

Stuff Bits

 

Not used, shall be set to 0

 

 

 

Response Flags

8 Bits of flag data indicating the status of the SDIO card. Table 5-1 shows the format

 

 

 

 

of these flag bits.

 

 

 

 

Read or Write Data:

For an I/O write (R/W=1) with the RAW Flag set (RAW=1) this field shall contain the

 

 

 

 

value read from the addressed register after the write of the data contained in the

 

 

 

 

command. Note that in this case, the read-back data may not be the same as the

 

 

 

 

data written to the register, depending on the design of the hardware. For an I/O

 

 

 

 

write with the RAW bit=0, the SDIO function shall not do a read after write operation,

 

 

 

 

and the data in this field shall be identical to the data byte in the write command. For

 

 

 

 

an I/O read (R/W=0), the actual value read from that I/O location is returned in this

 

 

 

 

field.

 

 

 

 

 

 

CRC7:

 

7 bits of CRC data

 

 

 

E(nd bit):

 

End bit, always 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bits

 

Identifier

 

Type

 

Value

Description

Clear

 

 

 

 

 

 

 

 

 

 

Condition

 

 

7

 

COM_CRC_ERROR

E R

 

’0’= no error

The CRC check of the previous

B

 

 

 

 

 

 

 

 

’1’= error

command failed.

 

 

 

6

 

ILLEGAL_COMMAND

E R

 

’0’= no error

Command not legal for the card

B

 

 

 

 

 

 

 

 

’1’= error

State.

 

 

22

Image 31
Contents SD Specifications Part E1 Sdio Simplified Specification Changes compared to previous issue Sdio Simplified Specification VersionDate Version Release of SD Simplified Specification Conventions Used in This Document Table of Contents SPI and SD 1-bit Mode Interrupts 16.2 Table of Tables Table of Figures Standard Sdio Functions Sdio FeaturesGeneral Description Primary Reference DocumentSdio Host Modes Sdio Signaling DefinitionSdio Card Types Sdio Card modesSignal connection to two 4-bit Sdio cards Signal PinsSdio Card Initialization ResetDifferences in I/O card Initialization Sdio Simplified Specification Version MEM=0 Card initialization flow in SD mode Sdio aware host Illegal Command F8=0 Card initialization flow in SPI mode Sdio aware host OCR bit Iosendopcond Command CMD5VDD Voltage Window Position OCR Values for CMD5Iosendopcond Response R4 Response R4 in SD modeRe-initialize both I/O and Memory Acceptable Commands after InitializationRecommendations for RCA after Reset Special Initialization considerations for Combo CardsRe-Initialization Flow for Memory controller Re-Initialization Flow for I/O ControllerEnabling CRC in SPI Combo Card Sdio Command List Differences with SD Memory SpecificationUnsupported SD Memory Commands Modified R6 Response Reset for SdioBus Width Card Detect Resistor States Card Detect ResistorTimings Combo Card 4-bit ControlRead Abort Data Transfer Block SizesData Transfer Abort Changes to SD Memory Fixed RegistersRCA Register OCR RegisterCID Register CSD RegisterClear Sdio Status Register StructureBit Identifier Type Value Description Iorwdirect Command CMD52 New I/O Read/Write Commands1 CMD52 Response SD modes ComcrcerrorIllegalcommand Iorwdirect Response R5TRN=Transfer DIS=DisabledIdentifier Type Value Description Clear Condition CMD=DAT lines freeCRC Iorwextended Command CMD53Iorw Extended command Op Code Definition OP code Command operation1 CMD53 Data Transfer Format Byte Count ValuesInterrupts Register Access TimeSdio Card Internal Operation OverviewSdio Fixed Internal Map Suspend/ResumeRead Wait CMD52 During Data TransferCard Common Control Registers Cccr Common I/O Area CIAIOE3 Card Common Control Registers CccrType CCCR/SDIOTo abort transfers to/from memory Scsi 4BLS Transaction of function 0 CIA Empc Cccr bit DefinitionsField Type Function Basic Registers FBRAddress Function Basic Information Registers FBRFBR bit and field definitions Sdio Simplified Specification Version Field TypeCard Information Structure CIS and reserved area of CIA Setting Block Size with CMD53Card Information Structure CIS Multiple Function Sdio CardsState Diagram for Bus State Machine Bus State DiagramEmbedded I/O Code Storage Area CSA CSA AccessCSA Data Format Interrupt Timing Sdio InterruptsInterrupt Clear Timing Terminated Data Transfer Interrupt CycleSdio Suspend/Resume Operation Sdio Read Wait Operation Master Power Control Power ControlPower Control Overview Power Control support for Sdio CardsReference Tuples by Master Power Control and Power Select Power Control Support for the Sdio HostPower Selection High-Power TuplesPower Control Operation Sdio High-Speed Mode High-Speed ModeSwitching Bus Speed Mode in a Combo Card Sdio Physical Properties Sdio PowerSdio Simplified Specification Version Inrush Current Limiting Byte Order Within Tuples CIS FormatsCIS Reference Document Basic Tuple Format and Tuple Chain StructureCode Name Description Tuple VersionSdio Card Metaformat Tuples Supported by Sdio CardsCistplfuncid Function Identification Tuple Cistplmanfid Manufacturer Identification String TupleSdio Specific Extensions Cistplmanfid Manufacturer Identification TupleTplfidfunction Tuple for Function 0 common Cistplfunce Function Extension TupleCistplfunce Tuple General Structure Cistplfunce Tuple for Function 0 commonTplfidfunction Tuple for Function Cistplfunce Tuple for FunctionByte Sdio Simplified Specification Version Bit Name Tplfidfunction Field Descriptions for Functions10 Tplfefunctioninfo Definition 11 Tplfecsaproperty Definition13 Cistplsdioext Tuple Reserved for Sdio Cards Cistplsdiostd Function is a Standard Sdio Function12 Cistplsdiostd Tuple Reserved for Sdio Cards Cistplsdioext Tuple Reserved for Sdio CardsTable A-14 SD Mode Command List SD and SPI Command ListNormative Sdmem Sdio Table A-15 SPI Mode Command ListNormative References Appendix BAbbreviations and Terms Appendix CLOW, High Informative