GD32F10x User Manual
565
released (BS=0). At this time, a read to function 2 is started. Once that single block read is
completed, the resume is issued to function, causing the data transfer to resume (DF=1).
Figure 19-14. Function2 read cycle inserted during function1 multiple read cycle
CMD
DAT
Read n blocks
CMD(1)
RES
P(1)
CMD52(RAW)
BR=1,BS=1
CMD52(R)
BS=0
Read 1 block
CMD(2)
RES
P(1)
CMD52(RAW)
FS=1,DF=1
Data
Fn1
Data
Fn2
Data
Fn1
Suspend to
function1 is not
accepted
Check status,
bus suspended
Read n blocks to
function 1
Read 1 blocks to
function 2
Resume to
function 1
When the host sends data to the card, the host can suspend the write operation. The
SDIO_CMDCTL[11] bit is set and indicates to the CSM that the current command is a suspend
command. The CSM analyzes the response and when the response is received from the card
(suspend accepted), it acknowledges the DSM that goes Idle after receiving the CRC token
of the current block.
To suspend a read
operation, the DSM waits in the WaitR state, when the function to be
suspended sends a complete packet just before stopping the data transaction. The
application should continue reading receive FIFO until the FIFO is empty, and the DSM goes
Idle state automatically.
Interrupts
In order to allow the SD I/O card to interrupt the host, an interrupt function is added to a pin
on the SD interface. Pin number 8, which is used as SDIO_DAT[1] when operating in the 4-
bit SD mode, is used to signal the card’s interrupt to the host. The use of interrupt is optional
for each card or function within a card. The SD I/O interrupt is “level sensitive”, that is, the
interrupt line shall be held active (low) until it is either recognized and acted upon by the host
or de-asserted due to the end of the
Interrupt Period. Once the host has serviced the interrupt,
it is cleared via function unique I/O operation.
When setting the SDIO_DATACTL[11] bit SD I/O interrupts can detect on the SDIO_DAT[1]
line.
Figure 19-15. Read Interrupt cycle timing
shows the timing of the interrupt period for single
data transaction read cycles.
Figure 19-15. Read Interrupt cycle timing
SDIO_CLK
DAT0
Command read data
2 CLK
CMD
DAT1
DAT1(mode)
S
E
Response
S
E
Command read data
S
E
Data
S
E
Data
S
E
interrupt
data
data
Figure 19-16. Write interrupt cycle timing
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...