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.

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

RM0008<br />

Data path<br />

The data path subunit transfers data to <strong>and</strong> from cards. Figure 188 shows a block diagram<br />

of the data path.<br />

Figure 188. Data path<br />

Data path<br />

To control unit<br />

Status<br />

flag<br />

Control<br />

logic<br />

Data<br />

timer<br />

Data FIFO<br />

SDIO_Din[7:0]<br />

Transmit<br />

CRC<br />

SDIO_Dout[7:0]<br />

Receive<br />

Shift<br />

register<br />

ai14808<br />

The card databus width can be programmed using the clock control register. If the 4-bit wide<br />

bus mode is enabled, data is transferred at four bits per clock cycle over all four data signals<br />

(SDIO_D[3:0]). If the 8-bit wide bus mode is enabled, data is transferred at eight bits per<br />

clock cycle over all eight data signals (SDIO_D[7:0]). If the wide bus mode is not enabled,<br />

only one bit per clock cycle is transferred over SDIO_D0.<br />

Depending on the transfer direction (send or receive), the data path state machine (DPSM)<br />

moves to the Wait_S or Wait_R state when it is enabled:<br />

● Send: the DPSM moves to the Wait_S state. If there is data in the transmit FIFO, the<br />

DPSM moves to the Send state, <strong>and</strong> the data path subunit starts sending data to a<br />

card.<br />

● Receive: the DPSM moves to the Wait_R state <strong>and</strong> waits for a start bit. When it<br />

receives a start bit, the DPSM moves to the Receive state, <strong>and</strong> the data path subunit<br />

starts receiving data from a card.<br />

Data path state machine (DPSM)<br />

The DPSM operates at SDIO_CK frequency. Data on the card bus signals is synchronous to<br />

the rising edge of SDIO_CK. The DPSM has six states, as shown in Figure 189: Data path<br />

state machine (DPSM).<br />

466/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!