Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4031 Datasheet(PDF) 29 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) 29 Page - STMicroelectronics

Back Button 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 AN4031 Datasheet HTML 32Page - STMicroelectronics AN4031 Datasheet HTML 33Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 29 / 36 page
background image
DocID022648 Rev 1
29/36
AN4031
How to predict DMA latencies
35
3.2
Examples
3.2.1
ADC-to-SRAM DMA transfer
This example is applicable to products STM32F2xx, STM32F405, STM32F407,
STM32F415, STM32F417, STM32F42x and STM32F43x.
The ADC is configured in continuous triple Interleaved mode. In this mode, it converts
continuously one analog input channel at the maximum ADC speed (36 MHz). The ADC
prescaler is set to 2, the sampling time is set to 1.5 cycles, and the delay between two
consecutive ADC samples of the Interleaved mode is set to 5 cycles.
The DMA2 stream0 transfers the ADC converted value to an SRAM buffer. DMA2 access to
ADC is done through direct path; however, DMA access to SRAM is done through the bus
matrix.
In this example, the total DMA latency from the ADC DMA trigger (ADC EOC) to write the ADC value
on SRAM is equal to 9 AHB cycles for AHB/APB prescaler equals 1 and 11 AHB cycles for AHB/APB
prescaler equals 2.
Note:
When using FIFO, the DMA memory port access is launched when reaching the FIFO level
configured by the user.
Table 9. DMA peripheral (ADC) port transfer latency
AHB/APB2 frequency
FAHB = 72 MHz/
FAPB2 = 72 MHz
AHB/APB ratio = 1
FAHB = 144 MHz/
FAPB2 = 72 MHz
AHB/APB ratio = 2
Transfer time
tPA: DMA peripheral port arbitration
1 AHB cycle
1 AHB cycle
tPAC: peripheral address computation
1 AHB cycle
1 AHB cycle
tBMA: bus matrix arbitration
N/A(1)
1. DMA2 accesses ADC through direct path: no bus matrix arbitration.
N/A(1)
tEDT: effective data transfer
2 AHB cycles
4 AHB cycles
tBS: bus synchronization
1 AHB cycle
1 AHB cycle
TSP: total DMA transfer time for peripheral port
5 AHB cycles
7 AHB cycles
Table 10. DMA memory (SRAM) port transfer latency
CPU/APB2 frequency
FAHB = 72MHz/
FAPB2=72MHz
AHB/APB ratio = 1
FAHB = 144MHz/
FAPB2=72MHz
AHB/APB ratio = 2
Transfer time
tMA: DMA memory port arbitration
1 AHB cycle
1 AHB cycle
tMAC: memory address computation
1 AHB cycle
1 AHB cycle
tBMA: bus matrix arbitration
1 AHB cycle(1)
1. In case of DMA multiple access to SRAM, the bus matrix arbitration is equal to 0 cycle if no other master
accessed to the SRAM in-between.
1 AHB cycle(1)
tSRAM: SRAM write access
1 AHB cycle
1 AHB cycle
TSM: total DMA transfer time for memory port
4 AHB cycles
4 AHB cycles



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