29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

RM0008<br />

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

As SDIO_CK is stopped, any comm<strong>and</strong> can be issued to the card. During a read/wait<br />

interval, the SDIO can detect SDIO interrupts on SDIO_D1.<br />

20.6.3 SDIO suspend/resume operation<br />

While sending data to the card, the SDIO can suspend the write operation. the<br />

SDIO_CMD[11] bit is set <strong>and</strong> indicates to the CPSM that the current comm<strong>and</strong> is a suspend<br />

comm<strong>and</strong>. The CPSM analyzes the response <strong>and</strong> when the ACK is received from the card<br />

(suspend accepted), it acknowledges the DPSM that goes Idle after receiving the CRC<br />

token of the current block.<br />

The hardware does not save the number of the remaining block to be sent to complete the<br />

suspended operation (resume).<br />

The write operation can be suspended by software, just by disabling the DPSM<br />

(SDIO_DCTRL[0] =0) when the ACK of the suspend comm<strong>and</strong> is received from the card.<br />

The DPSM enters then the Idle state.<br />

To suspend a read: the DPSM waits in the Wait_r state as the function to be suspended<br />

sends a complete packet just before stopping the data transaction. The application<br />

continues reading RxFIFO until the FIF0 is empty, <strong>and</strong> the DPSM goes Idle automatically.<br />

20.6.4 SDIO interrupts<br />

SDIO interrupts are detected on the SDIO_D1 line once the SDIO_DCTRL[11] bit is set.<br />

20.7 CE-ATA specific operations<br />

The following features are CE-ATA specific operations:<br />

● sending the comm<strong>and</strong> completion signal disable to the CE-ATA device<br />

● receiving the comm<strong>and</strong> completion signal from the CE-ATA device<br />

● signaling the completion of the CE-ATA comm<strong>and</strong> to the CPU, using the status bit<br />

<strong>and</strong>/or interrupt.<br />

The SDIO supports these operations only for the CE-ATA CMD61 comm<strong>and</strong>, that is, if<br />

SDIO_CMD[14] is set.<br />

20.7.1 Comm<strong>and</strong> completion signal disable<br />

Comm<strong>and</strong> completion signal disable is sent 8 bit cycles after the reception of a short<br />

response if the ‘enable CMD completion’ bit, SDIO_CMD[12], is not set <strong>and</strong> the ‘not interrupt<br />

Enable’ bit, SDIO_CMD[13], is set.<br />

The CPSM enters the Pend state, loading the comm<strong>and</strong> shift register with the disable<br />

sequence “00001” <strong>and</strong>, the comm<strong>and</strong> counter with 43. Eight cycles after, a trigger moves<br />

the CPSM to the Send state. When the comm<strong>and</strong> counter reaches 48, the CPSM becomes<br />

Idle as no response is awaited.<br />

20.7.2 Comm<strong>and</strong> completion signal enable<br />

If the ‘enable CMD completion’ bit SDIO_CMD[12] is set <strong>and</strong> the ‘not interrupt Enable’ bit<br />

SDIO_CMD[13] is set, the CPSM waits for the comm<strong>and</strong> completion signal in the Waitcpl<br />

state.<br />

Doc ID 13902 Rev 9 495/995

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

Saved successfully!

Ooh no, something went wrong!