![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 446](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630446.webp)
www.geehy.com Page 445
Always receive the most significant bit of card state first, and the lowest bit of
SDIO_RES3 register is always 0.
SDIO data timer register (SDIO_DATATIME)
Offset address: 0x24
Reset value: 0x0000 0000
Field
Name
R/W
Description
31:0
DATATIME
R/W
Data Timeout Period
Record the data timeout period in card bus clock cycle.
Note: Before writing the data control register for data transmission, first write the data timer register and
data length register.
SDIO data length register (SDIO_DATALEN)
Offset address: 0x28
Reset value: 0x0000 0000
Field
Name
R/W
Description
24:0
DATALEN
R/W
Data Length
Byte length of data to be transmitted.
31:25
Reserved
Note: For block data transfer, the value in SDIO_DATALEN must be a multiple of the data block length.
Before writing SDIO_DCTRL for data transmission, first write SDIO_DATATIME and SDIO_DATALEN.
SDIO data control register (SDIO_DCTRL)
Offset address: 0x2C
Reset value: 0x0000 0000
SDIO_DCTRL register control data channel state channel (DPSM).
Field
Name
R/W
Description
0
DTEN
R/W
Data Transfer Enabled
0: Disable
1: Enable
1
DTDRCFG
R/W
Data Transfer Direction Configuration
0: From controller to card
1: From card to controller
2
DTSEL
R/W
Data Transfer Mode Select
0: Block data transfer
1: Stream data transfer
3
DMAEN
R/W
DMA Enable
0: Disable
1: Enable
7:4
DBSIZE
R/W
Data Block Size
Define the data bock length:
0000: Block length=20=1 byte
0001: Block length=21=2 bytes
0010: Block length=22=4 bytes
0011: Block length=23=8 bytes