SDI Technologies SDIO Card manual Bus State Diagram, State Diagram for Bus State Machine

Page 47

©Copyright 2000-2007 SD Card Association

SDIO Simplified Specification Version 2.00

6.14Bus State Diagram

Figure 6-2 shows the Bus State Diagram for an SDIO card. It shows the bus states and their relations to SDIO commands and Suspend/Resume.

Commands

accepted in “STB”

CMD3, CMD7,

CMD15

 

 

 

 

 

 

 

 

Commands

 

 

 

 

 

 

 

 

 

 

 

 

 

 

accepted in “INI”

 

 

 

 

 

 

 

 

 

 

 

Initialization

 

CMD5, CMD3

 

 

 

 

 

 

Power On

 

 

 

 

CMD15

 

 

 

 

 

 

 

 

 

State

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMD3

CMD52 Reset

 

 

CMD52 Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Commands

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

accepted in “TRN”

 

 

 

 

 

 

 

 

 

Transfer

 

CMD52

 

Standby

 

 

 

CMD53 (to valid

State

 

 

 

State

CMD7 with

function)

(Dat Bus Active)

 

 

 

 

 

 

Function

BS=1

 

 

 

 

 

 

incorrect RCA

Resume

 

 

 

 

 

 

 

 

CMD7 with

 

 

 

 

 

Execution complete

 

 

 

 

 

 

 

 

 

Function Suspend

 

 

 

correct RCA

 

 

Command

 

 

 

 

 

CMD52 Abort

 

 

 

 

 

 

 

 

State

 

 

 

 

 

 

 

 

 

 

 

 

(Dat Bus Free)

CMD15 or OCR

 

Inactive

 

 

 

 

 

BS=0

 

 

 

 

 

 

mismatch

 

 

State

 

 

 

 

 

 

 

 

 

 

Commands

 

 

 

 

 

 

 

 

 

CMD7 with correct

 

 

 

 

 

 

 

accepted in “CMD”

 

 

 

 

 

 

 

 

 

 

RCA

 

 

 

 

 

 

 

CMD7, CMD52,

 

 

CMD53 to invalid function can be:

 

 

CMD53 to invalid

 

CMD53, CMD15

 

 

 

 

function

y I/O Disable or I/O Not Ready (IORDY=0)

 

 

 

 

 

 

 

y I/O Function number error in response y I/O Function already Suspended

Figure 6-2 State Diagram for Bus State Machine

38

Image 47
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 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 PinsDifferences 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 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 Unsupported SD Memory Commands Differences with SD Memory SpecificationSdio Command List Bus Width Reset for SdioModified R6 Response 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 RegisterBit Identifier Type Value Description Sdio Status Register StructureClear 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 Definitions Field Type Function Basic Registers FBR Address 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 Data Format CSA AccessEmbedded I/O Code Storage Area CSA 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 Switching Bus Speed Mode in a Combo Card High-Speed ModeSdio High-Speed Mode 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 commonByte Cistplfunce Tuple for FunctionTplfidfunction Tuple for Function 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 CardsNormative SD and SPI Command ListTable A-14 SD Mode Command List Sdmem Sdio Table A-15 SPI Mode Command ListNormative References Appendix BAbbreviations and Terms Appendix CLOW, High Informative