Card Functional Description; Card Identification Mode; Card Reset; Operating Voltage Range Validation - 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)
c)
d)
e)
f)
5.
Send CMD24 (WRITE_BLOCK) as follows:
a)
b)
c)
d)
e)
6.
Check that no channels are still enabled by polling the DMA Enabled Channel Status
register.
26.4

Card functional description

26.4.1

Card identification mode

While in card identification mode the host resets all cards, validates the operation voltage
range, identifies cards and sets a relative card address (RCA) for each card on the bus. All
data communications in the card identification mode use the command line (CMD) only.
26.4.2

Card reset

The GO_IDLE_STATE command (CMD0) is the software reset command and it puts the
MultiMediaCard and SD memory in the Idle state. The IO_RW_DIRECT command (CMD52)
resets the SD I/O card. After power-up or CMD0, all cards output bus drivers are in the high-
impedance state and the cards are initialized with a default relative card address
(RCA=0x0001) and with a default driver stage register setting (lowest speed, highest driving
current capability).
26.4.3

Operating voltage range validation

All cards can communicate with the SDIO card host using any operating voltage within the
specification range. The supported minimum and maximum V
operation conditions register (OCR) on the card.
750/1381
DMA2_Stream6 Channel4 destination address register with the SDIO_FIFO
register address.
Program DMA2_Stream3 or DMA2_Stream6 Channel4 control register (memory
increment, not peripheral increment, peripheral and source width is word size).
Program DMA2_Stream3 or DMA2_Stream6 Channel4 to select the peripheral as
flow controller (set PFCTRL bit in DMA_S3CR or DMA_S6CR configuration
register).
Configure the incremental burst transfer to 4 beats (at least from peripheral side)
in DMA2_Stream3 or DMA2_Stream6 Channel4.
Enable DMA2_Stream3 or DMA2_Stream6 Channel4
Program the SDIO data length register (SDIO data timer register should be
already programmed before the card identification process).
Program the SDIO argument register with the address location of the card where
data is to be transferred.
Program the SDIO command register: CmdIndex with 24 (WRITE_BLOCK);
WaitResp with '1' (SDIO card host waits for a response); CPSMEN with '1' (SDIO
card host enabled to send a command). Other fields are at their reset value.
Wait for SDIO_STA[6] = CMDREND interrupt, then program the SDIO data control
register: DTEN with '1' (SDIO card host enabled to send data); DTDIR with '0'
(from controller to card); DTMODE with '0' (block data transfer); DMAEN with '1'
(DMA enabled); DBLOCKSIZE with 0x9 (512 bytes). Other fields are don't care.
Wait for SDIO_STA[10] = DBCKEND.
RM0033 Rev 9
values are defined in the
DD
RM0033

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

Subscribe to Our Youtube Channel

Table of Contents