Figure 296. Data Path State Machine (Dpsm) - ST STM32F207 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F207 Series:
Table of Contents

Advertisement

Secure digital input/output interface (SDIO)
Disabled or FIFO underrun or
end of data or CRC fail
Busy
End of packet
Send
Idle: the data path is inactive, and the SDIO_D[7:0] outputs are in Hi-Z. When the data
control register is written and the enable bit is set, the DPSM loads the data counter
with a new value and, depending on the data direction bit, moves to either the Wait_S
or the Wait_R state.
Wait_R: if the data counter equals zero, the DPSM moves to the Idle state when the
receive FIFO is empty. If the data counter is not zero, the DPSM waits for a start bit on
SDIO_D. The DPSM moves to the Receive state if it receives a start bit before a
timeout, and loads the data block counter. If it reaches a timeout before it detects a
start bit, or a start bit error occurs, it moves to the Idle state and sets the timeout status
flag.
Receive: serial data received from a card is packed in bytes and written to the data
FIFO. Depending on the transfer mode bit in the data control register, the data transfer
mode can be either block or stream:
746/1381

Figure 296. Data path state machine (DPSM)

Idle
Disabled or CRC fail
or timeout
Disabled or
end of data
Not busy
Enable and send
Wait_S
Data ready
In block mode, when the data block counter reaches zero, the DPSM waits until it
receives the CRC code. If the received code matches the internally generated
On reset
DPSM disabled
DPSM enabled and
Read Wait Started
and SD I/O mode enabled
Enable and not send
Disabled or
Rx FIFO empty or timeout or
start bit error
Disabled or CRC fail
RM0033 Rev 9
Read Wait
ReadWait Stop
Data received and
Wait_R
Read Wait Started and
SD I/O mode enabled
End of packet or
end of data or
FIFO overrun
Start bit
Receive
RM0033
ai14809b

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F207 Series and is the answer not in the manual?

Questions and answers

Table of Contents