29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

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

Figure 186. Comm<strong>and</strong> path state machine (CPSM)<br />

On reset<br />

CE-ATA Comm<strong>and</strong><br />

Completion signal<br />

received or<br />

CPSM disabled or<br />

Comm<strong>and</strong> CRC failed<br />

Wait_CPL<br />

CPSM Enabled <strong>and</strong><br />

pending comm<strong>and</strong><br />

CPSM<br />

disabled<br />

Idle<br />

Response received or<br />

disabled or comm<strong>and</strong><br />

CRC failed<br />

Response Received in CE-ATA<br />

mode <strong>and</strong> no interrupt <strong>and</strong><br />

wait for CE-ATA Comm<strong>and</strong><br />

Completion signal enabled<br />

Pend<br />

Last Data<br />

Enabled <strong>and</strong><br />

comm<strong>and</strong> start<br />

CPSM disabled or<br />

no response<br />

CPSM Disabled or<br />

comm<strong>and</strong> timeout<br />

Receive<br />

Send<br />

Response<br />

started<br />

Wait for response<br />

Wait<br />

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

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

Comm<strong>and</strong> Completion signal disabled<br />

ai14806b<br />

Note:<br />

Note:<br />

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

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

entered.<br />

The comm<strong>and</strong> timeout has a fixed value of 64 SDIO_CK clock periods.<br />

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

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

the CPSM enters the Pend state, <strong>and</strong> 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 comm<strong>and</strong> transmission.<br />

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

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

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

Doc ID 13902 Rev 9 463/995

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

Saved successfully!

Ooh no, something went wrong!