Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4031 Datasheet(PDF) 27 Page - STMicroelectronics

Part # AN4031
Description  Using the STM32F2 and STM32F4 DMA controller
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4031 Datasheet(HTML) 27 Page - STMicroelectronics

Back Button AN4031 Datasheet HTML 23Page - STMicroelectronics AN4031 Datasheet HTML 24Page - STMicroelectronics AN4031 Datasheet HTML 25Page - STMicroelectronics AN4031 Datasheet HTML 26Page - STMicroelectronics AN4031 Datasheet HTML 27Page - STMicroelectronics AN4031 Datasheet HTML 28Page - STMicroelectronics AN4031 Datasheet HTML 29Page - STMicroelectronics AN4031 Datasheet HTML 30Page - STMicroelectronics AN4031 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 36 page
background image
DocID022648 Rev 1
27/36
AN4031
How to predict DMA latencies
35
3
How to predict DMA latencies
When designing a firmware application based on a microcontroller, the user must ensure
that no underrun/overrun can occur, and that’s why knowing the exact DMA latency for each
transfer is mandatory to check if the internal system can sustain the total data bandwidth
required for the application.
3.1
DMA transfer time
3.1.1
Default DMA transfer timing
As described in Section 2.2.2, to perform a DMA transfer from peripheral to memory, two
bus accesses are required:
•
One access over peripheral port triggered by peripheral request, which needs:
–
DMA peripheral port request arbitration
–
Peripheral address computation
–
Reading data from the peripheral to DMA FIFO (DMA source)
•
One access over memory port which can be triggered by the FIFO threshold (when
FIFO mode is used) or immediately after peripheral read (when Direct mode is used),
which needs:
–
DMA memory port request arbitration
–
Memory address computation
–
Writing loaded data in SRAM (DMA destination)
When transferring data from memory to peripheral, two accesses are also required as
described in Section 2.2.2:
•
First access: DMA anticipates peripheral access and reads data from memory and
stores it in FIFO to ensure an immediate data transfer as soon as DMA peripheral
request is triggered. This operation needs:
–
DMA memory port request arbitration
–
Memory address computation
–
Reading data from memory to DMA FIFO (DMA source)
•
Second access: when peripheral request is triggered, a transfer is generated on DMA
peripheral port. This operation needs:
–
DMA peripheral port request arbitration
–
Peripheral address computation
–
Writing loaded data at peripheral address (DMA destination)
As a general rule, the total transfer time by DMA stream TS is equal to:
TS = TSP (peripheral access/transfer time) + TSM (memory access/transfer time)
With:
TSP is the total timing for DMA peripheral port access and transfer which is equal to:
TSP = tPA+ tPAC + tBMA + tEDT + tBS



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com