09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Secure digital input/output interface (SDIO) <strong>RM0090</strong><br />

Figure 316. Command path state machine (CPSM)<br />

Pend<br />

Last Data<br />

CPSM Enabled and<br />

pending command<br />

Send<br />

CPSM<br />

disabled<br />

Enabled and<br />

command start<br />

On reset<br />

When the Wait state is entered, the command timer starts running. If the timeout is reached<br />

before the CPSM moves to the Receive state, the timeout flag is set and the Idle state is<br />

entered.<br />

Note: The command timeout has a fixed value of 64 SDIO_CK clock periods.<br />

If the interrupt bit is set in the command register, the timer is disabled and the CPSM waits<br />

for an interrupt request from one of the cards. If a pending bit is set in the command register,<br />

the CPSM enters the Pend state, and waits for a CmdPend signal from the data path<br />

subunit. When CmdPend is detected, the CPSM moves to the Send state. This enables the<br />

data counter to trigger the stop command transmission.<br />

Note: The CPSM remains in the Idle state for at least eight SDIO_CK periods to meet the N CC and<br />

N RC timing constraints. N CC is the minimum delay between two host commands, and N RC is<br />

the minimum delay between the host command and the card response.<br />

849/1416 Doc ID 018909 Rev 3<br />

Idle<br />

CPSM disabled or<br />

no response<br />

Wait for response<br />

CE-ATA Command<br />

Completion signal<br />

received or<br />

CPSM disabled or<br />

Command CRC failed<br />

CPSM Disabled or<br />

command timeout<br />

Wait<br />

Response Received in CE-ATA mode and<br />

no interrupt and wait for CE-ATA<br />

Command Completion signal disabled<br />

Response received or<br />

disabled or command<br />

CRC failed<br />

Wait_CPL<br />

Response<br />

started<br />

Response Received in CE-ATA<br />

mode and no interrupt and<br />

wait for CE-ATA Command<br />

Completion signal enabled<br />

Receive<br />

ai14806b

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!