GD32W51x User Manual
813
24:0
DATALEN[24:0]
Data transfer length
This register defined the number of bytes to be transferred. When the data transfer
starts, the data counter loads this register and starts decrement.
Note:
If block data transfer selected, the content of this register must be a multiple of the block size (refer
to SDIO_DA TACTL). The data timer register and the data length register must be updated before being
w ritten to the data control register w hen need a data transfer.
23.8.9.
Data control register (SDIO_DATACTL)
Address offset: 0x2C
Reset value: 0x0000 0000
This register controls the DSM.
This register has to be accessed by word(32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
IOEN
RWTYPE RWSTOP RWEN
BLKSZ[3:0]
DMAEN
TRANSM
OD
DATADIR DATAEN
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:12
Reserved
Must be kept at reset value.
11
IOEN
SD I/O specific function enable(SD I/O only)
0: Not SD I/O specific function
1: SD I/O specific function
10
RWTYPE
Read w ait type(SD I/O only)
0: Read Wait control using SDIO_D[2]
1: Read Wait control by stopping SDIO_CK
9
RWSTOP
Read w ait stop(SD I/O only)
0: No effect
1: Stop the read w ait process if RWEN bit is set
8
RWEN
Read w ait mode enabled(SD I/O only)
0: Read w ait mode is disabled
1: Read w ait mode is enabled
7:4
BLKSZ[3:0]
Data block size
These bits defined the block size w hen data transfer is block transfer.
0000: block size = 2
0
= 1 byte
0001: block size = 2
1
= 2 bytes
0010: block size = 2
2
= 4 bytes