
GD32F403xx User Manual
554
0101: block size = 2
5
= 32 bytes
0110: block size = 2
6
= 64 bytes
0111: block size = 2
7
= 128 bytes
1000: block size = 2
8
= 256 bytes
1001: block size = 2
9
= 512 bytes
1010: block size = 2
10
= 1024 bytes
1011: block size = 2
11
= 2048 bytes
1100: block size = 2
12
= 4096 bytes
1101: block size = 2
13
= 8192 bytes
1110: block size = 2
14
= 16384 bytes
1111: reserved
3
DMAEN
DMA enable bit
0: DMA is disabled.
1: DMA is enabled.
2
TRANSMOD
Data transfer mode
0: Block transfer
1: Stream transfer or SDIO multibyte transfer
1
DATADIR
Data transfer direction
0: Write data to card.
1: Read data from card.
0
DATAEN
Data transfer enable bit
Write 1 to this bit to start data transfer regardless this bit is 0 or 1. The DSM
moves to Readwait state if RWEN is set or to the WaitS, WaitR state depend on
DATADIR bit. Start a new data transfer, it not need to clear this bit to 0.
Note:
Between Two write accesses to this register, it needs at least 3 SDIOCLK + 2 pclk2 which used
to sync the registers to SDIOCLK clock domain.
20.8.10.
Data counter register (SDIO_DATACNT)
Address offset: 0x30
Reset value: 0x0000 0000
This register is read only. When the DSM from Idle to WaitR or WaitS, it loads value from data
length register (SDIO_DATALEN). It decrements with the data transferred, when it reaches 0,
the flag DTEND is set.
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
DATACNT[24:16]
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DATACNT[15:0]
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...