Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

AN3117 Arkusz danych(PDF) 2 Page - STMicroelectronics

Numer części AN3117
Szczegółowy opis  This application note describes how to use the direct memory access
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3117 Arkusz danych(HTML) 2 Page - STMicroelectronics

  AN3117 Datasheet HTML 1Page - STMicroelectronics AN3117 Datasheet HTML 2Page - STMicroelectronics AN3117 Datasheet HTML 3Page - STMicroelectronics AN3117 Datasheet HTML 4Page - STMicroelectronics AN3117 Datasheet HTML 5Page - STMicroelectronics AN3117 Datasheet HTML 6Page - STMicroelectronics AN3117 Datasheet HTML 7Page - STMicroelectronics AN3117 Datasheet HTML 8Page - STMicroelectronics AN3117 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 2 / 28 page
background image
Contents
AN3117
2/28
Doc ID 16846 Rev 4
Contents
1
DMA controller description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1
DMA main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2
Peripherals supported by DMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2
Performance considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1
DMA latency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2
Data bus bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3
Programming the DMA using the standard peripheral library . . . . . . 12
3.1
Configuring the DMA peripheral to transfer data . . . . . . . . . . . . . . . . . . . 12
3.1.1
Configuring the DMA channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1.2
Selecting the channel request source . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1.3
Enabling the DMA transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.1.4
Configuring the arbitration delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2
Supervising the DMA transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.1
Method 1: Current data counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.2
Method 2: Flags/interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4
DMA programming examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1
Memory to peripheral transfer example: transferring
waveform data from Flash memory to DAC . . . . . . . . . . . . . . . . . . . . . . . 18
4.2
Peripheral to memory transfer example 1: transferring data
from the ADC to the RAM via multi channel acquisitions . . . . . . . . . . . . . 19
4.3
Peripheral to memory transfer example 2: transferring data
from the USART to the RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4
DMA transfer examples in low power mode . . . . . . . . . . . . . . . . . . . . . . . 21
4.4.1
DMA transfer example in Wait for event (WFE) mode . . . . . . . . . . . . . . 21
4.4.2
DMA transfer example in Wait for interrupt (WFI) mode . . . . . . . . . . . . 22
4.5
DMA transfer example with TIM1 in Burst mode . . . . . . . . . . . . . . . . . . . 22
4.6
DMA channel priority transfer example . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.6.1
Transfer example case 1: hardware priority configuration of DMA
channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.6.2
Transfer example case 2: software priority configuration 1 of the DMA
channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24



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


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
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