GD32F10x User Manual
575
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.
19.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]
r
Bits
Fields
Descriptions
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...