Electronic Components Datasheet Search
  English  ▼

X  

AN3117 Datasheet(PDF) 23 Page - STMicroelectronics

Part # AN3117
Description  This application note describes how to use the direct memory access
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3117 Datasheet(HTML) 23 Page - STMicroelectronics

Back Button AN3117 Datasheet HTML 19Page - STMicroelectronics AN3117 Datasheet HTML 20Page - STMicroelectronics AN3117 Datasheet HTML 21Page - STMicroelectronics AN3117 Datasheet HTML 22Page - STMicroelectronics AN3117 Datasheet HTML 23Page - STMicroelectronics AN3117 Datasheet HTML 24Page - STMicroelectronics AN3117 Datasheet HTML 25Page - STMicroelectronics AN3117 Datasheet HTML 26Page - STMicroelectronics AN3117 Datasheet HTML 27Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 28 page
background image
AN3117
DMA programming examples
Doc ID 16846 Rev 4
23/28
4.6
DMA channel priority transfer example
In the example below, the priority of the DMA channels changes which has an impact on the
transfers. All transfers are 8 bits in size and have a length of 1.
The DMA channels are configured to perform the following transfers:
DMA channel 0: Transfer A: from RAM buffer 2 to TIM3 register
DMA channel 1: Transfer B: from RAM buffer 1 to TIM2 register
DMA channel 2: Transfer C: from TIM1 register to RAM buffer 1
DMA channel 3: Transfer D: from TIM4 register to RAM buffer 2
Before starting any transfer, the RAM buffers and timer registers are initialized as shown in
Table 9.
4.6.1
Transfer example case 1: hardware priority configuration of DMA
channels
In this example, the priority of the channels is maintained at its default configuration: the
hardware priority acts and the software priority stays the same for all channels.
Figure 8.
Example case 1: DMA channel data transfers as a function of time
Table 9.
RAM buffers and timer registers at t = t0
Time
RAM Buffer1
TIM1 ARRL
TIM2 ARRL
TIM3 ARRL
TIM4 ARR
RAM Buffer2
t0
0x00
0x11
0x22
0x33
0x44
0x55
Table 10.
Example case1:
priority configuration of the DMA channels
DMA channel
HW priority
SW priority
Channel 0
Very high
Low
Channel 1
High
Low
Channel 2
Medium
Low
Channel 3
Low
Low
time
t0
t1
t2
t3
t4
ai17423
Hardware priority
Channel 0
Channel 1
Channel 2
Channel 3
Transfer A
Transfer B
Transfer C
Transfer D



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


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