GD32F20x User Manual
622
0b00/0b10. There are short response which have 48 bits or long response which have 136
bits. The response stores in SDIO_RESP0 - SDIO_RESP3 registers. The command unit also
generates the command status flags defined in SDIO_STAT register.
Command state machine
CS_Idle
After reset, ready to send command.
1.CSM enabled and WAITDEND enabled
→
CS_Pend
2.CSM enabled and WAITDEND disabled
→
CS_Send
3.CSM disabled
→
CS_Idle
Note:
The state machine remains in the Idle state for at least eight SDIO_CLK periods to meet
the N
CC
and N
RC
timing constraints. N
CC
is the minimum delay between two host commands, and
N
RC
is the minimum delay between the host command and the response.
CS_Pend
Waits for the end of data transfer.
1.The data transfer complete
→
CS_Send
2.CSM disabled
→
CS_Idle
CS_Send
Sending the command.
1.The command transmitted has response
→
CS_Wait
2.The command transmitted doesn’t have response
→
CS_Idle
3.CSM disabled
→
CS_Idle
CS_Wait
Wait for the start bit of the response.
1.Receive the response(detected the start bit)
→
CS_Receive
2.Timeout is reached without receiving the response
→
CS_Idle
3.CSM disabled
→
CS_Idle
Note:
The command timeout has a fixed value of 64 SDIO_CLK clock periods.
CS_Receive
Receive the response and check the CRC.
1.Response Received in CE-ATA mode and interrupt
disabled and wait for CE-ATA Command Completion
signal enabled
→
CS_Waitcompl
2.Response Received in CE-ATA mode and interrupt
disabled and wait for CE-ATA Command Completion
signal disabled
→
CS_Pend
3.CSM disabled
→
CS_Idle
4.Response received
→
CS_Idle
5.Command CRC failed
→
CS_Idle
CS_Waitcompl
Wait for the Command Completion signal.
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...