SDI Technologies SDIO Card manual Identifier Type Value Description Clear Condition, DIS=Disabled

Page 32

©Copyright 2000-2007 SD Card Association

SDIO Simplified Specification Version 2.00

Bits

Identifier

Type

Value

 

Description

Clear

 

 

 

 

 

 

Condition

5-4

IO_CURRENT_STATE

S

00=DIS

DIS=Disabled:

B

 

 

 

01=CMD

Initialize, Standby and Inactive

 

 

 

 

02=TRN

States (card not selected)

 

 

 

 

03=RFU

CMD=DAT lines free:

 

 

 

 

 

1.

Command waiting (No

 

 

 

 

 

 

transaction suspended)

 

 

 

 

 

2.

Command waiting (All

 

 

 

 

 

 

CMD53 transactions

 

 

 

 

 

 

suspended)

 

 

 

 

 

3. Executing CMD52 in CMD

 

 

 

 

 

 

State

 

 

 

 

 

TRN=Transfer:

 

 

 

 

 

Command executing with data

 

 

 

 

 

transfer using DAT[0] or DAT[3:0]

 

 

 

 

 

lines

 

3

ERROR

E R

’0’= no error

A general or an unknown error

C

 

 

E R X

’1’= error

occurred during the operation.

 

 

 

 

 

Type “E R” shall be used for

 

 

 

 

 

CMD52

 

 

 

 

 

Type “E R X” shall be used for

 

 

 

 

 

CMD53

 

2

RFU

--

Fixed at 0

Reserved for Future Use

C

1

FUNCTION_NUMBER

E R

’0’= no error

An invalid function number was

C

 

 

 

’1’= error

requested

 

0

OUT_OF_RANGE

E R

’0’= no error

The command’s argument was out

C

 

 

 

’1’= error

of the allowed range for this card.

 

Table 5-1 Flag data for IO_RW_DIRECT SD Response

5.2.2R5, IO_RW_DIRECT Response (SPI mode)

The SDIO card’s response to CMD52 in the SPI mode is shown in Figure 5-3. If the operation was a read command, the data being read is returned as an 8-bit value. In addition, 8 bits of status information is returned in a SPI R1 response byte as described in Fig 47 of the SD Physical Specification modified for I/O as shown in Figure 5-3.

0 0 0 R/W Data (8 Bits)

1 = in idle state RFU (always 0)

1 = illegal command

1 = COM CRC error

1 = Function number error RFU (always 0)

1 = parameter error Start Bit (always 0)

Figure 5-3 IO_RW_DIRECT Response in SPI Mode

Note the read/write (R/W) data is identical to the read/write data described for the SD R5 response (see 5.2.1). Parameter error status in SPI mode corresponds to OUT_OF_RANGE and ERROR in the SD mode response. In the case of CMD53, Data Error Token should also be used to indicate OUT_OF_RANGE and ERROR.

23

Image 32
Contents SD Specifications Part E1 Sdio Simplified Specification Date Version Sdio Simplified Specification VersionChanges compared to previous issue 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 Sdio Features General DescriptionPrimary Reference Document Standard Sdio FunctionsSdio Signaling Definition Sdio Card TypesSdio Card modes Sdio Host ModesSignal Pins Signal connection to two 4-bit Sdio cardsDifferences in I/O card Initialization ResetSdio 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 Iosendopcond Command CMD5 VDD Voltage Window PositionOCR Values for CMD5 OCR bitResponse R4 in SD mode Iosendopcond Response R4Acceptable Commands after Initialization Recommendations for RCA after ResetSpecial Initialization considerations for Combo Cards Re-initialize both I/O and MemoryRe-Initialization Flow for I/O Controller Re-Initialization Flow for Memory controllerEnabling CRC in SPI Combo Card Unsupported SD Memory Commands Differences with SD Memory SpecificationSdio Command List Bus Width Reset for SdioModified R6 Response Card Detect Resistor TimingsCombo Card 4-bit Control Card Detect Resistor StatesData Transfer Block Sizes Data Transfer AbortChanges to SD Memory Fixed Registers Read AbortOCR Register CID RegisterCSD Register RCA Register Bit Identifier Type Value Description Sdio Status Register Structure Clear New I/O Read/Write Commands Iorwdirect Command CMD52Comcrcerror IllegalcommandIorwdirect Response R5 1 CMD52 Response SD modesDIS=Disabled Identifier Type Value Description Clear ConditionCMD=DAT lines free TRN=TransferIorwextended Command CMD53 Iorw Extended command Op Code DefinitionOP code Command operation CRCByte Count Values 1 CMD53 Data Transfer FormatRegister Access Time Sdio Card Internal OperationOverview InterruptsSuspend/Resume Read WaitCMD52 During Data Transfer Sdio Fixed Internal MapCommon I/O Area CIA Card Common Control Registers CccrCard Common Control Registers Cccr TypeCCCR/SDIO IOE3To abort transfers to/from memory Scsi 4BLS Transaction of function 0 CIA Cccr bit Definitions EmpcFunction Basic Registers FBR AddressFunction Basic Information Registers FBR Field TypeSdio Simplified Specification Version Field Type FBR bit and field definitionsSetting Block Size with CMD53 Card Information Structure CISMultiple Function Sdio Cards Card Information Structure CIS and reserved area of CIABus State Diagram State Diagram for Bus State MachineCSA Data Format CSA AccessEmbedded I/O Code Storage Area CSA Sdio Interrupts Interrupt TimingTerminated Data Transfer Interrupt Cycle Interrupt Clear TimingSdio Suspend/Resume Operation Sdio Read Wait Operation Power Control Power Control OverviewPower Control support for Sdio Cards Master Power ControlPower Control Support for the Sdio Host Power SelectionHigh-Power Tuples Reference Tuples by Master Power Control and Power SelectPower Control Operation Switching Bus Speed Mode in a Combo Card High-Speed ModeSdio High-Speed Mode Sdio Power Sdio Physical PropertiesSdio Simplified Specification Version Inrush Current Limiting CIS Formats CIS Reference DocumentBasic Tuple Format and Tuple Chain Structure Byte Order Within TuplesTuple Version Sdio Card MetaformatTuples Supported by Sdio Cards Code Name DescriptionCistplmanfid Manufacturer Identification String Tuple Sdio Specific ExtensionsCistplmanfid Manufacturer Identification Tuple Cistplfuncid Function Identification TupleCistplfunce Function Extension Tuple Cistplfunce Tuple General StructureCistplfunce Tuple for Function 0 common Tplfidfunction Tuple for Function 0 commonByte Cistplfunce Tuple for FunctionTplfidfunction Tuple for Function Sdio Simplified Specification Version Tplfidfunction Field Descriptions for Functions 10 Tplfefunctioninfo Definition11 Tplfecsaproperty Definition Bit NameCistplsdiostd Function is a Standard Sdio Function 12 Cistplsdiostd Tuple Reserved for Sdio CardsCistplsdioext Tuple Reserved for Sdio Cards 13 Cistplsdioext Tuple Reserved for Sdio CardsNormative SD and SPI Command ListTable A-14 SD Mode Command List Table A-15 SPI Mode Command List Sdmem SdioAppendix B Normative ReferencesAppendix C Abbreviations and TermsLOW, High Informative