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 />

28.9.7 SDIO data timer register (SDIO_DTIMER)<br />

Address offset: 0x24<br />

Reset value: 0x0000 0000<br />

The SDIO_DTIMER register contains the data timeout period, in card bus clock periods.<br />

A counter loads the value from the SDIO_DTIMER register, and starts decrementing when<br />

the data path state machine (DPSM) enters the Wait_R or Busy state. If the timer reaches 0<br />

while the DPSM is in either of these states, the timeout status flag is set.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

DATATIME<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 31:0 DATATIME: Data timeout period<br />

Data timeout period expressed in card bus clock periods.<br />

Note: A data transfer must be written to the data timer register and the data length register before<br />

being written to the data control register.<br />

28.9.8 SDIO data length register (SDIO_DLEN)<br />

Address offset: 0x28<br />

Reset value: 0x0000 0000<br />

The SDIO_DLEN register contains the number of data bytes to be transferred. The value is<br />

loaded into the data counter when data transfer starts.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

DATALENGTH<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 31:25 Reserved, must be kept at reset value<br />

Bits 24:0 DATALENGTH: Data length value<br />

Number of data bytes to be transferred.<br />

Note: For a block data transfer, the value in the data length register must be a multiple of the block<br />

size (see SDIO_DCTRL). A data transfer must be written to the data timer register and the<br />

data length register before being written to the data control register.<br />

For an SDIO multibyte transfer the value in the data length register must be between 1 and<br />

512.<br />

Doc ID 018909 Rev 3 888/1416

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

Saved successfully!

Ooh no, something went wrong!