Download Print this page

ST STM32L4+ Series Reference Manual page 2004

Hide thumbs Also See for STM32L4+ Series:

Advertisement

Secure digital input/output MultiMediaCard interface (SDMMC)
1.
Before starting the data transfer, set DTMODE to "block data transfer ending with
STOP_TRANSMISSION command".
2.
Wait for all data to be sent by the DPSM and the CRC token to be received, (DATAEND
flag).
a)
3.
Send CMD12 by the CPSM.
a)
When reading data from the card the CMD12 End bit shall be sent earliest at the same time
as the card read data block last data bit. This requires the CMD12 sending to be tied to the
data block reception timing.The following stop Open-ended Multiple block read data block
procedure applies:
1.
Before starting the data transfer, set DTMODE to "block data transfer ending with
STOP_TRANSMISSION command".
2.
Wait for all data to be received by the DPSM (DATAEND flag).
a)
3.
Send CMD12 with CMDSTOP bit set by the CPSM.
a)
Note:
The SDMMC will not receive any more data from the card when DATACOUNT = 0, even
when the card continues sending data.
54.6.3
Sleep (CMD5)
The e•MMC card may be switched between a Sleep state and a Standby state by CMD5. In
the Sleep state the power consumption of the card is minimized and the Vcc power supply
may be switched off.
The CMD5 (SLEEP) is used to initiate the state transition from Standby state to Sleep state.
The card indicates Busy, pulling down SDMMC_D0, during the transition phase. The Sleep
state is reached when the card stops pulling down the SDMMC_DO line.
To set the card into Sleep state the following procedure applies:
1.
Enable interrupt on BUSYD0END.
2.
Send CMD5 (SLEEP).
3.
On BUSYD0END interrupt, card is in Sleep state
4.
Vcc power supply is allowed to be switched off
The CMD5 (AWAKE) is used to initiate the state transition from Sleep state to Standby state.
The card indicates Busy, pulling down SDMMC_D0, during the transition phase. The
Standby state is reached when the card stops pulling down the SDMMC_DO line.
To set the card into Sleep state the following procedure applies:
1.
Switch on Vcc power supply and wait unit minimum operating level is reached.
2.
Enable interrupt on BUSYD0END.
3.
Send CMD5 (AWAKE).
4.
On BUSYD0END interrupt card is in Standby state.
The Vcc power supply is allowed to be switched off only after the Sleep state has been
reached. The Vcc supply shall be reinstalled before CMD5 (AWAKE) is sent.
2004/2301
The DPSM will not send more data than indicated by DATALENGTH.
CMD12 will set the card to Idle mode.
The DPSM will not receive more data than indicated by DATALENGTH, even if the
card is sending more data.
CMD12 will stop the Card sending more data and set the card to Idle mode. Any
ongoing block transfer will be aborted by the Card.
RM0432 Rev 6
RM0432

Advertisement

loading
Need help?

Need help?

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