поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4031 датащи(PDF) 33 Page - STMicroelectronics

номер детали AN4031
подробное описание детали  Using the STM32F2 and STM32F4 DMA controller
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4031 датащи(HTML) 33 Page - STMicroelectronics

Back Button 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 AN4031 Datasheet HTML 34Page - STMicroelectronics AN4031 Datasheet HTML 35Page - STMicroelectronics AN4031 Datasheet HTML 36Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 33 / 36 page
background image
DocID022648 Rev 1
33/36
AN4031
Tips and warnings while programming the DMA controller
35
6.
Twice-mapped DMA requests
When the user configures two (or more) DMA streams to serve the same peripheral request,
software should ensure that the current DMA stream is completely disabled (by polling the
EN bit in the DMA_SxCR register) before enabling a new DMA stream.
7.
Best DMA throughput configuration
When using STM32F4xx with reduced AHB frequency while DMA is servicing a high-speed
peripheral, it is recommended to put the stack and heap in the CCM (which can be
addressed directly by the CPU through D-bus) instead of putting them on the SRAM, which
would create an additional concurrency between CPU and DMA accessing the SRAM
memory.
8.
DMA transfer suspension
At any time, a DMA transfer can be suspended to be restarted later on or to be definitively
disabled before the end of the DMA transfer.
There are two cases:
•
The stream disables the transfer with no later-on restart from the point where it was
stopped: there is no particular action to do, except to clear the EN bit in the DMA_SxCR
register to disable the stream and to wait until the EN bit is reset. As a consequence:
–
The DMA_SxNDTR register contains the number of remaining data items at the
moment when the stream was stopped so that the software can determine how
many data items have been transferred before the stream was interrupted.
•
The stream suspends the transfer in order to resume it later by re-enabling the stream:
to restart from the point where the transfer was stopped, the software has to read the
DMA_SxNDTR register after disabling the stream (EN bit at “0”) to know the number of
data items already collected. Then:
–
The peripheral and/or memory addresses have to be updated in order to adjust
the address pointers.
–
The SxNDTR register has to be updated with the remaining number of data items
to be transferred (the value read when the stream was disabled).
–
The stream may then be re-enabled to restart the transfer from the point where it
was stopped.
Note:
In both cases, a Transfer Complete Interrupt Flag (TCIF in DMA_LISR or DMA_HISR) is set
to indicate the end of transfer due to the stream interruption.



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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