SDI Technologies SDIO Card manual Transaction of function 0 CIA

Page 42

©Copyright 2000-2007 SD Card Association

SDIO Simplified Specification Version 2.00

Field

Type

 

 

Description

FSx

R/W

Select Function bits 3:0 These four bits are used to select a function number (0-7) or

 

 

the memory of a combo card (8) for Suspend/Resume. There are 2 means to write

 

 

the value of FSx. First, an I/O writes to the register in the CCCR and second, a new

 

 

I/O command causes the FSx to be set to the function number in that command. The

 

 

value of FSx shall remain until overwritten. If a function or memory is currently

 

 

suspended, the writing of it’s number to FSx shall re-start (resume) the data transfer

 

 

operation When reading FSx, the value returned shall be the number of the currently

 

 

addressed function. Note that when reading FSx, if the Bus Status is 0 (BS=0), the

 

 

FSx value is undefined. The FSx bits are coded as follows:

 

 

 

FSx

Current Transaction

 

 

 

 

0000

Transaction of function 0 (CIA)

 

 

0001-0111

Transaction to functions 1-7

 

 

1000

Transaction of memory in combo card

 

 

1001-1111

Not defined, reserved for future use

 

 

If SBS=0 these bits shall be R/O.

DF

R/O

Resume Data Flag: A data transaction is resumed by writing its number to FSx. Once

 

 

the transaction is resumed, the DF indicates if more data will be transferred. If DF is

 

 

cleared to 0, then no additional data will be transferred after the function or memory is

 

 

resumed. If DF is set to 1, then there is more data to transfer that will begin after the

 

 

function or memory in resumed. The DF flag can be used to control the interrupt cycle

 

 

in 4-bit mode. If DF=1, there is more data to transfer after restoring the function. In

 

 

this case, the interrupt cycle should be disabled. If DF=0, the function or memory was

 

 

suspended at end of data transfer (during busy). In this case, no data transfer shall

 

 

begin after resume so the host can detect a start interrupt cycle after restore. When

 

 

resuming, if the suspended function cannot continue data transfer the card shall

 

 

return DF=0 to abort the transfer.

EXx

R/O

Execution Flag bits 7:0 These bits are used by the host to determine the current

 

 

execution status of all functions (1-7) and memory (0). The bit is set to 1 for each

 

 

function or memory that is currently executing a command. The EXx bits tell the host

 

 

that a function or memory is currently executing a command so no additional

 

 

command should be issued to that function/memory. These bits are only defined if

 

 

SBS=1. This bit is set if the function is active (either currently executing or

 

 

suspended). If SBS=0 these bits shall be read as zero.

RFx

R/O

Ready Flag bits 7:0 These bits tell the host the read or write busy status for functions

 

 

(1-7) and memory (0). If a function or memory is executing a write transaction, an RFx

 

 

bit cleared to 0 indicates the function/memory is busy and not ready to accept more

 

 

data. If the RFx bit is set to 1, then the function/memory can accept write data. If a

 

 

function/memory is executing a read command, if the RFx bit is cleared to 0, it

 

 

indicates that read data is NOT available. If the bit is set to 1, it indicates that read

 

 

data is ready to be transferred. These bits are only defined if SBS=1. Setting a bit to 1

 

 

indicates the function is ready to accept the resume command. There are two

 

 

conditions where the function will set the bit to 1. One is when the function (executing

 

 

or suspended) is ready to continue data transfer. The other is when the suspended

 

 

function cannot continue data transfer. If SBS=0 these bits shall be read as zero.

FN0 Block

R/W

This 16-bit register sets the block size for I/O block operations for Function 0 only. If

Size

 

this card does not support I/O block operations (SMB=0), then this register becomes

 

 

read-only and shall always read 0x0000. The maximum block size is 2048 (0x0800)

 

 

and the minimum is 1. At power-up or reset, this register shall be initially loaded with a

 

 

value of 0x0000. The host is responsible for setting the appropriate value for the

 

 

block size supported by function 0. This pointer is stored in little-endian format (LSB

 

 

first).

 

 

33

Image 42
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 Primary Reference Document Sdio FeaturesGeneral Description Standard Sdio FunctionsSdio Card modes Sdio Signaling DefinitionSdio Card Types Sdio Host ModesSignal Pins Signal connection to two 4-bit Sdio cardsReset 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 Values for CMD5 Iosendopcond Command CMD5VDD Voltage Window Position OCR bitResponse R4 in SD mode Iosendopcond Response R4Special Initialization considerations for Combo Cards Acceptable Commands after InitializationRecommendations for RCA after Reset Re-initialize both I/O and MemoryRe-Initialization Flow for I/O Controller Re-Initialization Flow for Memory controllerEnabling CRC in SPI Combo Card Differences with SD Memory Specification Sdio Command ListUnsupported SD Memory Commands Reset for Sdio Modified R6 ResponseBus Width Combo Card 4-bit Control Card Detect ResistorTimings Card Detect Resistor StatesChanges to SD Memory Fixed Registers Data Transfer Block SizesData Transfer Abort Read AbortCSD Register OCR RegisterCID Register RCA RegisterSdio Status Register Structure ClearBit Identifier Type Value Description New I/O Read/Write Commands Iorwdirect Command CMD52Iorwdirect Response R5 ComcrcerrorIllegalcommand 1 CMD52 Response SD modesCMD=DAT lines free DIS=DisabledIdentifier Type Value Description Clear Condition TRN=TransferOP code Command operation Iorwextended Command CMD53Iorw Extended command Op Code Definition CRCByte Count Values 1 CMD53 Data Transfer FormatOverview Register Access TimeSdio Card Internal Operation InterruptsCMD52 During Data Transfer Suspend/ResumeRead Wait Sdio Fixed Internal MapCommon I/O Area CIA Card Common Control Registers CccrCCCR/SDIO Card Common Control Registers CccrType IOE3To abort transfers to/from memory Scsi 4BLS Transaction of function 0 CIA Cccr bit Definitions EmpcFunction Basic Information Registers FBR Function Basic Registers FBRAddress Field TypeSdio Simplified Specification Version Field Type FBR bit and field definitionsMultiple Function Sdio Cards Setting Block Size with CMD53Card Information Structure CIS Card Information Structure CIS and reserved area of CIABus State Diagram State Diagram for Bus State MachineCSA Access Embedded I/O Code Storage Area CSACSA Data Format Sdio Interrupts Interrupt TimingTerminated Data Transfer Interrupt Cycle Interrupt Clear TimingSdio Suspend/Resume Operation Sdio Read Wait Operation Power Control support for Sdio Cards Power ControlPower Control Overview Master Power ControlHigh-Power Tuples Power Control Support for the Sdio HostPower Selection Reference Tuples by Master Power Control and Power SelectPower Control Operation High-Speed Mode Sdio High-Speed ModeSwitching Bus Speed Mode in a Combo Card Sdio Power Sdio Physical PropertiesSdio Simplified Specification Version Inrush Current Limiting Basic Tuple Format and Tuple Chain Structure CIS FormatsCIS Reference Document Byte Order Within TuplesTuples Supported by Sdio Cards Tuple VersionSdio Card Metaformat Code Name DescriptionCistplmanfid Manufacturer Identification Tuple Cistplmanfid Manufacturer Identification String TupleSdio Specific Extensions Cistplfuncid Function Identification TupleCistplfunce Tuple for Function 0 common Cistplfunce Function Extension TupleCistplfunce Tuple General Structure Tplfidfunction Tuple for Function 0 commonCistplfunce Tuple for Function Tplfidfunction Tuple for FunctionByte Sdio Simplified Specification Version 11 Tplfecsaproperty Definition Tplfidfunction Field Descriptions for Functions10 Tplfefunctioninfo Definition Bit NameCistplsdioext Tuple Reserved for Sdio Cards Cistplsdiostd Function is a Standard Sdio Function12 Cistplsdiostd Tuple Reserved for Sdio Cards 13 Cistplsdioext Tuple Reserved for Sdio CardsSD and SPI Command List Table A-14 SD Mode Command ListNormative Table A-15 SPI Mode Command List Sdmem SdioAppendix B Normative ReferencesAppendix C Abbreviations and TermsLOW, High Informative