![ARTERY AT32F435 Series Скачать руководство пользователя страница 569](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592569.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 569
Rev 2.03
25.4.3 SDIO argument register (SDIO_ARG)
The SDIO_ARG register contains 32-bit command argument, which is sent to a card as part 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 command contains an argument, it must be
loaded into this register before writing a command to the
command register.
25.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 index is sent to a card as part of a
command.
Note:
1.This register cannot be written within seven 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
can vary according to the type of response. The software will distinguish the type of
response according to the command sent.