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.

RM0008<br />

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

Bit 2 DTMODE: Data transfer mode selection 1: Stream or SDIO multibyte data transfer.<br />

0: Block data transfer.<br />

1: Stream data transfer.<br />

Bit 1 DTDIR: Data transfer direction selection<br />

0: From controller to card.<br />

1: From card to controller.<br />

[0] DTEN: Data transfer enabled bit<br />

Data transfer starts if 1b is written to the DTEN bit. Depending on the direction bit, DTDIR,<br />

the DPSM moves to the Wait_S, Wait_R state or Readwait if RW Start is set immediately at<br />

the beginning of the transfer. It is not necessary to clear the enable bit after the end of a data<br />

transfer but the SDIO_DCTRL must be updated to enable a new data transfer<br />

Note:<br />

After a data write, data cannot be written to this register for seven HCLK clock periods.<br />

20.9.10 SDIO data counter register (SDIO_DCOUNT)<br />

Address offset: 0x30<br />

Reset value: 0x0000 0000<br />

The SDIO_DCOUNT register loads the value from the data length register (see<br />

SDIO_DLEN) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As<br />

data is transferred, the counter decrements the value until it reaches 0. The DPSM then<br />

moves to the Idle state <strong>and</strong> the data status end flag, DATAEND, 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 />

DATACOUNT<br />

Reserved<br />

r r r r r r r r r r r r r r r r r r r r r r r r r<br />

Bits 31:25 Reserved, always read as 0.<br />

Bits 24:0 DATACOUNT: Data count value<br />

When this bit is read, the number of remaining data bytes to be transferred is returned. Write<br />

has no effect.<br />

Note:<br />

This register should be read only when the data transfer is complete.<br />

Doc ID 13902 Rev 9 503/995

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

Saved successfully!

Ooh no, something went wrong!