GD32F403xx User Manual
547
20.8.
SDIO registers
SDIO base address: 0x4001 8000
20.8.1.
Power control register (SDIO_PWRCTL)
Address offset: 0x00
Reset value: 0x0000 0000
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
PWRCTL[1:0]
rw
Bits
Fields
Descriptions
31:2
Reserved
Must be kept at reset value
1:0
PWRCTL[1:0]
SDIO power control bits.
These bits control the SDIO state, card input or output.
00: SDIO power off: SDIO cmd/data state machine reset to IDLE, clock to card
stopped, no cmd/data output to card
01: Reserved
10: Reserved
11: SDIO Power on
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.2.
Clock control register (SDIO_CLKCTL)
Address offset: 0x04
Reset value: 0x0000 0000
This register controls the output clock SDIO_CLK.
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
DIV[8]
Reserved
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
HWCLKE
N
CLKEDG
E
BUSMODE[1:0]
CLKBYP
CLKPWR
SAV
CLKEN
DIV[7:0]
rw
rw
rw
rw
rw
rw
rw