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.

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

Data path<br />

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

of the data path.<br />

Figure 318. Data path<br />

To control unit<br />

Data FIFO<br />

Transmit<br />

Receive<br />

Data path<br />

Status<br />

flag<br />

Control<br />

logic<br />

Shift<br />

register<br />

Data<br />

timer<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, and the data path subunit starts sending data to a<br />

card.<br />

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

receives a start bit, the DPSM moves to the Receive state, and 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 319: Data path<br />

state machine (DPSM).<br />

CRC<br />

SDIO_Din[7:0]<br />

SDIO_Dout[7:0]<br />

Doc ID 018909 Rev 3 852/1416

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

Saved successfully!

Ooh no, something went wrong!