GD32F10x User Manual
554
If the card cannot operate on the supplied voltage, it returns no response and stays in idle
state. It is mandatory to issue CMD8 prior to ACMD41 to initialize SDHC Card. Receipt of
CMD8 makes the cards realize that the host supports the Physical Layer Version 2.00 and
the card can enable new functions.
Card identification process
The card identification process differs in different cards. The card can be of the type MMC,
CE-ATA, SD, or SD I/O. All types of SD I/O cards are supported, that is, SDIO_IO_ONLY,
SDIO_MEM_ONLY, and SDIO COMBO cards. The identification process sequence includes
the following steps:
1. Check if the card is connected.
2. Identify the card type; SD, MMC(CE-ATA), or SD I/O.
– Send CMD5 first. If a response is received, then the card is SD I/O
– If not, send ACMD41; if a response is received, then the card is SD.
– Otherwise, the card is an MMC or CE-ATA.
3. Initialization the card according to the card type.
Use a clock source with a frequency = F
OD
(that is, 400 KHz) and use the following command
sequence:
– SD card - Send CMD0, ACMD41, CMD2, CMD3.
– SDHC card - send CMD0, CMD8, ACMD41, CMD2, CMD3.
– SD I/O - Send CMD52, CMD0, CMD5, if the card doesn’t have memory port, send CMD3;
otherwise send ACMD41, CMD11 (optional), CMD2, and CMD3.
– MMC/CE-ATA - Send CMD0, CMD1, CMD2, CMD3.
4. Identify the MMC/CE-ATA device.
– CPU should query the byte 504 (S_CMD_SET) of EXT_CSD register by sending CMD8. If
bit 4 is set to 1, then the device supports ATA mode.
– If ATA mode is supported, the CPU should select the ATA mode by setting the ATA bit (bit 4)
in the EXT_CSD register slice 191(CMD_SET) to activate the ATA command set. The CPU
selects the command set using the SWITCH (CMD6) command.
– In the presence of a CE-ATA device, the FAST_IO (CMD39) and
RW_MULTIPLE_REGISTER (CMD60) commands will succeed and the returned data will be
the CE-ATA reset signature.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...