EasyManuals Logo

ST STM32F446 Series User Manual

ST STM32F446 Series
1328 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #985 background imageLoading...
Page #985 background image
RM0390 Rev 4 985/1328
RM0390 Secure digital input/output interface (SDIO)
1031
Figure 383. Data path state machine (DPSM)
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, 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:
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
CRC code, the DPSM moves to the Wait_R state. If not, the CRC fail status flag is
set and the DPSM moves to the Idle state.
In stream mode, the DPSM receives data while the data counter is not zero. When
the counter is zero, the remaining data in the shift register is written to the data
FIFO, and the DPSM moves to the Wait_R state.
If a FIFO overrun error occurs, the DPSM sets the FIFO error flag and moves to the
Idle state:
Wait_S: the DPSM moves to the Idle state if the data counter is zero. If not, it waits until
the data FIFO empty flag is deasserted, and moves to the Send state.
)DLE
"USY
3END
7AIT?2
2ECEIVE
%NDOFPACKET
$ISABLEDOR#2#FAIL
ORTIMEOUT
.OTBUSY
$ISABLEDOR
ENDOFDATA
$ATAREADY
%NDOFPACKETOR
ENDOFDATAOR
&)&/OVERRUN
%NABLEANDNOTSEND
$ISABLEDOR
2X&)&/EMPTYORTIMEOUTOR
STARTBITERROR
$ISABLEDOR&)&/UNDERRUNOR
ENDOFDATAOR#2#FAIL
AIB
7AIT?3
3TARTBIT
/NRESET
$ISABLEDOR#2#FAIL
%NABLEANDSEND
$03-DISABLED
2EAD7AIT
$03-ENABLEDAND
2EAD7AIT3TARTED
AND3$)/MODEENABLED
2EAD7AIT3TOP
$ATARECEIVEDAND
2EAD7AIT3TARTEDAND
3$)/MODEENABLED

Table of Contents

Other manuals for ST STM32F446 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F446 Series Specifications

General IconGeneral
BrandST
ModelSTM32F446 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals