R01UH0823EJ0100 Rev.1.00
Page 1422 of 1823
Jul 31, 2019
RX23W Group
40. SD Host Interface (SDHIa)
lists examples of SDCMD register settings.
Table 40.3
Examples of SDCMD Register Settings
Type
Command
Symbol
SDCMD Register Setting
Remarks
CMD
CMD0
0000 0000h
CMD2
0000 0002h
CMD3
0000 0003h
CMD4
0000 0004h
CMD5
0000 0705h or 0000 0005h
CMD6
0000 1C06h or 0000 0006h
CMD7
0000 0007h
When the card is deselected, the SD card does not return a response, so the
SDSTS2.RSPTO flag becomes 1.
CMD8
0000 0408h or 0000 0008h
CMD9
0000 0009h
CMD10
0000 000Ah
CMD11
0000 040Bh or 0000 000Bh
CMD12
0000 000Ch
CMD13
0000 000Dh
CMD15
0000 000Fh
CMD16
0000 0010h
CMD17
0000 0011h
CMD18
0000 0012h
CMD20
0000 0514h or 0000 0014h
CMD24
0000 0018h
CMD25
0000 0019h
CMD27
0000 001Bh
CMD28
0000 001Ch
CMD29
0000 001Dh
CMD30
0000 001Eh
CMD32
0000 0020h
CMD33
0000 0021h
CMD38
0000 0026h
CMD42
0000 002Ah
CMD52
0000 0434h or 0000 0034h
CMD53
0000 1C35h
Single block read
0000 0C35h
Single block write
0000 7C35h
Multi-block read
0000 6C35h
Multi-block write
0000 0035h
The setting to the left can be used regardless of the transfer being single block
or multi-block. However, the MSB in the SDARG register (RW flag) must be set
to 0 when reading and 1 when writing.
CMD55
0000 0037h
CMD56
0000 0038h
ACMD
ACMD6
0000 0046h
ACMD13 0000 004Dh
ACMD22 0000 0056h
ACMD23 0000 0057h
ACMD41 0000 0069h
ACMD42 0000 006Ah
ACMD51 0000 0073h