RM0432
moves to the Idle state and when there has been no error, and no transmit data transfer
hold, the data status end flag (DATAEND) is set.
31
30
29
28
Res.
Res.
Res.
Res.
15
14
13
12
r
r
r
Bits 31:25 Reserved, must be kept at reset value.
Bits 24:0 DATACOUNT[24:0]: Data count value
Note:
This register should be read only after the data transfer is complete, or hold. When reading
after an error event the read data count value may be different from the real number of data
bytes transfered.
54.9.11
SDMMC status register (SDMMC_STAR)
Address offset: 0x034
Reset value: 0x0000 0000
The SDMMC_STAR register is a read-only register. It contains two types of flag:
•
Static flags (bits [28, 21, 11:0]): these bits remain asserted until they are cleared by
writing to the SDMMC interrupt Clear register (see SDMMC_ICR)
•
Dynamic flags (bits [20:12]): these bits change state depending on the state of the
underlying logic (for example, FIFO full and empty flags are asserted and deasserted
as data while written to the FIFO)
31
30
29
28
IDMA
Res.
Res.
Res.
BTC
15
14
13
12
RX
TX
CPSM
DPSM
FIFO
FIFO
ACT
ACT
HF
HE
r
r
r
Bits 31:29 Reserved, must be kept at reset value.
Bit 28 IDMABTC: IDMA buffer transfer complete
Bit 27 IDMATE: IDMA transfer error
Bit 26 CKSTOP: SDMMC_CK stopped in Voltage switch procedure
Secure digital input/output MultiMediaCard interface (SDMMC)
27
26
25
Res.
Res.
Res.
11
10
9
r
r
r
r
When read, the number of remaining data bytes to be transferred is returned. Write has no
effect.
27
26
25
IDMA
CK
VSW
TE
STOP
END
r
r
r
r
11
10
9
DA
DBCK
DHOLD
BORT
END
r
r
r
r
The interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR.
The interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR.
The interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR.
24
23
22
r
r
r
8
7
6
DATACOUNT[15:0]
r
r
r
24
23
22
ACK
ACK
BUSY
TIME
SDIOIT
FAIL
D0END
OUT
r
r
r
8
7
6
DATA
CMD
CMDR
RX
END
SENT
END
OVERR
r
r
r
RM0432 Rev 6
21
20
19
18
DATACOUNT[24:16]
r
r
r
r
5
4
3
2
r
r
r
r
21
20
19
18
BUSY
RX
TX
D0
FIFOE
FIFOE
r
r
r
r
5
4
3
2
TX
D
C
UNDER
TIME
TIME
R
OUT
OUT
r
r
r
r
17
16
r
r
1
0
r
r
17
16
RX
TX
FIFOF
FIFOF
r
r
1
0
DCRC
CCRC
FAIL
FAIL
r
r
2027/2301
2041
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?