GD32W51x User Manual
807
23.8.
SDIO registers
SDIO secure access base address: 0x5001 2C00
SDIO non-secure access base address: 0x4001 2C00
23.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 pow er control bits.
These bits control the SDIO state, card input or output.
00: SDIO pow er 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 Pow er on
Note:
Betw een Tw o w rite accesses to this register, it needs at least 3 SDIOCLK + 2 pclk2 w hich used
to sync the registers to SDIOCL K clock domain.
23.8.2.
Clock control register (SDIO_CLKCTL)
Address offset: 0x04
Reset value: 0x0000 0000
This register controls the output clock SDIO_CK.
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]