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

20.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, <strong>and</strong> 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:<br />

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

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

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

DATALENGTH<br />

Reserved<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, always read as 0.<br />

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

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

Note:<br />

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 <strong>and</strong> the<br />

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

Doc ID 13902 Rev 9 501/995

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

Saved successfully!

Ooh no, something went wrong!