Figure 39. Fifo Structure - STMicroelectronics STM32F405 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0090
10.3.12
FIFO
FIFO structure
The FIFO is used to temporarily store data coming from the source before transmitting them
to the destination.
Each stream has an independent 4-word FIFO and the threshold level is software-
configurable between 1/4, 1/2, 3/4 or full.
To enable the use of the FIFO threshold level, the direct mode must be disabled by setting
the DMDIS bit in the DMA_SxFCR register.
The structure of the FIFO differs depending on the source and destination data widths, and
is described in
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
FIFO threshold and burst configuration
Caution is required when choosing the FIFO threshold (bits FTH[1:0] of the DMA_SxFCR
register) and the size of the memory burst (MBURST[1:0] of the DMA_SxCR register): The
content pointed by the FIFO threshold must exactly match to an integer number of memory
burst transfers. If this is not in the case, a FIFO error (flag FEIFx of the DMA_HISR or
DMA_LISR register) will be generated when the stream is enabled, then the stream will be
automatically disabled. The allowed and forbidden configurations are described in the
Figure 39: FIFO
structure.

Figure 39. FIFO structure

byte lane 3
Source: byte
byte lane 2
byte lane 1
byte lane 0
byte lane 3
Source: byte
byte lane 2
byte lane 1
byte lane 0
byte lane 3
Source: half-word
byte lane 2
H7 H6 H5 H4 H3 H2 H1 H0
byte lane 1
byte lane 0
byte lane 3
Source: half-word
byte lane 2
H7 H6 H5 H4 H3 H2 H1 H0
byte lane 1
byte lane 0
DocID018909 Rev 11
4 words
Empty
1/4
1/2
B15
B 11
B7
B14
B10
B6
B13
B9
B5
B12
B8
B4
W3
W2
W1
4 words
Empty
1/4
1/2
B15
B 11
B7
B14
B10
B6
H7
H5
H3
B13
B9
B5
B12
B8
B4
H6
H4
H2
4 words
Empty
1/4
1/2
H7
H5
H3
H6
H4
H2
W3
W2
W1
4-words
Empty
1/4
1/2
3/4
B15
B 11
B7
B14
B10
B6
H7
H5
H3
B13
B9
B5
B12
B8
B4
H6
H4
H2
DMA controller (DMA)
3/4
Full
B3
Destination: word
B2
W3, W2, W1, W0
B1
B0
W0
3/4
Full
B3
Destination: half-word
B2
H1
H7, H6, H5, H4, H3, H2, H1, H0
B1
B0
H0
3/4
Full
Destination: word
H1
W3, W2, W1, W0
H0
W0
Full
B3
Destination: byte
B2
H1
B15 B14 B13 B12 B11 B10 B9 B8
B1
B7 B6 B5 B4 B3 B2 B1 B0
B0
H0
ai15951
319/1731
340

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF