| 数据搜索系统,热门电子元器件搜索 |
|
AN3117 数据表(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3117 数据表(HTML) 2 Page - STMicroelectronics |
|
2 / 28 page ![]() 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 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |