SDI Technologies SDIO Card manual To abort transfers to/from memory

Page 39

©Copyright 2000-2007 SD Card Association

SDIO Simplified Specification Version 2.00

Field

Type

 

 

Description

SDx

R/O

 

SD Format Version number. These 4 bits contain the version of the SD Physical

 

 

 

Specification that this card supports. The codes for the SD Physical Specification are

 

 

 

as follows:

 

 

 

 

 

Value

SD Physical Specification

 

 

 

 

0x00

SD Physical Specification Version 1.01 (March 2000)

 

 

 

0x01

SD Physical Specification Version 1.10 (October 2004)

 

 

 

0x02

SD Physical Specification Version 2.00 (May 2006)

 

 

 

0x03-0x0F

Reserved for Future Use

IOEx

R/W

Enable Function - If this bit is reset to 0, the function is disabled. If this bit is set to 1,

 

 

 

the function is enabled to start its initialization. The completion of initialization is

 

 

 

indicated in IORx. On power up or after a reset, the card shall reset this bit to 0. The

 

 

 

host can also use IOEx as a per function reset for error recovery. The host sequence

 

 

 

for a per function reset is to reset IOEx to 0, wait until IORx becomes 0 and then set

 

 

 

IOEx to 1 again. If the error is not recovered by this sequence, SDIO reset should be

 

 

 

used noting that the operation of all functions will be aborted. See section 11 for

 

 

 

relation to Master Power Control and Power Select.

IORx

R/O

I/O Function Ready- If this bit is reset to 0, the function is not ready to operate. This

 

 

 

may be caused by the function being disabled or not ready due to internal causes

 

 

 

such as a built-in self-test in progress. If this bit is set to 1, the function is ready to

 

 

 

operate. The functions shall set this bit to 1 within the timeout value defined in the

 

 

 

TPLFE_ENABLE_TIMEOUT_VAL tuple. On power up or after a reset, this bit shall

 

 

 

be set to 0. For any function that is not implemented on an SDIO card, this bit shall

 

 

 

always be 0.

 

 

IENx

R/W

Interrupt Enable for function x. If this bit is cleared to 0, any interrupt from this function

 

 

 

shall not be sent to the host. If this bit is set to 1, then this function’s interrupt shall be

 

 

 

sent to the host if the master Interrupt Enable (bit 0) is also set to 1.

IENM

R/W

Interrupt Enable Master. If this bit is cleared to 0, no interrupts from this card shall be

 

 

 

sent to the host. If this bit is set to 1, then any function’s interrupt shall be sent to the

 

 

 

host.

 

 

INTx

R/O

 

Interrupt Pending for function x. If this bit is cleared to 0, this indicates that no

 

 

 

interrupts are pending from this function. If this bit is set to 1, then this function has

 

 

 

interrupt pending. Note that if the IENx or IENM bits are not set, the host cannot

 

 

 

receive this pending interrupt.

ASx

W/O

 

Abort Select In order to abort an I/O read or write and free the SD bus, the function

 

 

 

that is currently transferring data must be addressed. These 3 bits define which

 

 

 

function’s transfer to stop. For example, the abort the transfer to function number 3,

 

 

 

the value of 0x03 would be written to these bits using CMD52 only. If the abort is

 

 

 

addressed to a suspended function, it does not affect current data transaction. Note

 

 

 

that this is an abort, not a reset. The addressed function shall return to the CMD state

 

 

 

and data transfer pending to that function shall be halted. This abort procedure does

 

 

 

not work for SPI write operations. To abort an SPI write data transfer use the

 

 

 

STOP_TRAN token as defined in section 7.3.3 of the SD Physical Specification. This

 

 

 

form of abort applies only to the functions of an SDIO card. For the memory of a

 

 

 

combo card, the abort methods defined in the SD Physical Specification shall be used

 

 

 

to abort transfers to/from memory

RES

W/O

I/O CARD RESET: Setting the RES to 1 shall cause all I/O functions in an SDIO or

 

 

 

Combo card to perform a soft reset. Setting the RES to 1 does not affect the current

 

 

 

card protocol selection(SD vs. SPI mode) and CD Disable. Setting of the RES bit

 

 

 

shall only be performed using CMD52. When RES=1, the values of AS2-0 are

 

 

 

don’t-cares. The RES bit is auto cleared, so there is no need to rewrite a value of 0.

 

 

 

This bit is write-only, any read returns an undetermined value. Memory in a combo

 

 

 

card is not affected.

30

Image 39
Contents SD Specifications Part E1 Sdio Simplified Specification Sdio Simplified Specification Version Changes compared to previous issueDate 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 PinsReset Sdio Card InitializationDifferences 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 Differences with SD Memory Specification Sdio Command ListUnsupported SD Memory Commands Reset for Sdio Modified R6 ResponseBus 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 RegisterSdio Status Register Structure ClearBit 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 DiagramCSA Access Embedded I/O Code Storage Area CSACSA 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 High-Speed Mode Sdio 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 commonCistplfunce Tuple for Function Tplfidfunction 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 CardsSD and SPI Command List Table A-14 SD Mode Command ListNormative Sdmem Sdio Table A-15 SPI Mode Command ListNormative References Appendix BAbbreviations and Terms Appendix CLOW, High Informative