
AT32F413
Series Reference Manual
2022.06.27
Page 356
Rev 2.00
CLKCTRL register does not control the SDIO_CK.
23.4.3 SDIO argument register (SDIO_ARG)
The SDIO_ARG register contains 32-bit command argument, which is sent to a card as pat of a
command.
Bit
Register
Reset value
Type
Description
Bit 31: 0
ARGU
0x0000 0000 rw
Command argument
Command argument is sent to a card as part of a
command. If a ommand contains an argument, it must be
loaded into this register before writing a command to the
command register.
23.4.4 SDIO command register (SDIO_CMD)
The SDIO_CMD register contains the command index and command type bits. The command index is
sent to a card as part of a command. The command type bits control the command channel state
machine (CCSM).
Bit
Register
Reset value
Type
Description
Bit 31: 12 Reserved
0x00000
resd
Kept at its default value.
Bit 11
IOSUSP
0x0
rw
SD I/O suspend command
This bit is set or cleared by software. If this bit is set, the
command to be sent is a suspend command (used for
SDIO only).
0: SD I/O suspend command disabled
1: SD I/O suspend command enabled
Bit 10
CCSMEN
0x0
rw
Command channel state machine (CCSM) enable bit
This bit is set or cleared by software.
0: Command channel state machine disabled
1: Command channel state machine enabled
Bit 9
PNDWT
0x0
rw
CCSM Waits for ends of data transfer (CmdPend internal
signal)
This bit is set or cleared by software. If this bit is set, the
CCSM waits for the end of data transfer before it starts
sending a command.
0: Disabled
1: Enabled
Bit 8
INTWT
0x0
rw
CCSM waits for interrupt request
This bit is set or cleared by software. If this bit is set, thE
CCSM disables command timeout and waits for an
interrupt request.
0: Disabled
1: Enabled
Bit 7: 6
RSPWT
0x0
rw
Wait for response bits
This bit is set or cleared by software. This bit indicates
whether the CCSM is to wait for a response, and if yes, it
will indicates the response type.
00: No response
01: Short response
10: No response
11: Long response
Bit 5: 0
CMDIDX
0x00
rw
Command index
The command indes is sent to a card as part of a
command.
Note:
1.This register cannot be written withing sevel HCLK clock periods after data is written.
2.MultiMedia card can sent two types of responses: 48-bit short response or 136-bit short
response. The SD card and SD I/O card can send only short responses, and the argument