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

X  

AN4031 датащи(PDF) 32 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) 32 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
 32 / 36 page
background image
Tips and warnings while programming the DMA controller
AN4031
32/36
DocID022648 Rev 1
4
Tips and warnings while programming the DMA
controller
1.
Software sequence to disable DMA
To switch off a peripheral connected to a DMA stream request, it is mandatory to:
switch off the DMA stream to which the peripheral is connected,
wait until the EN bit in DMA_SxCR register is reset (“0”).
Only then can the peripheral be safely disabled.
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 disable.
2.
DMA flag management before enabling a new transfer
Before enabling a new transfer, the user must ensure that the Transfer Complete Interrupt
Flag (TCIF) in DMA_LISR or DMA_HISR is cleared.
As a general recommendation, it is advised to clear all flags in the DMA_LIFCR and
DMA_HIFCR registers before starting a new transfer.
3.
Software sequence to enable DMA
The following software sequence applies when enabling DMA:
Configure the suitable DMA stream.
Enable the DMA stream used (set the EN bit in the DMA_SxCR register).
Enable the peripheral used.
Note:
If the user enables the used peripheral before the corresponding DMA stream, a “FEIF”
(FIFO Error Interrupt Flag) may be set due to the fact the DMA is not ready to provide the
first required data to the peripheral (in case of memory-to-peripheral transfer).
4.
Memory-to-memory transfer while NDTR=0
When configuring a DMA stream to perform a memory-to-memory transfer in normal mode,
once NDTR reaches 0, the Transfer Complete is set. At that time, if the user sets the enable
bit (EN bit in DMA_SxCR) of this stream, the memory-to-memory transfer is automatically
re-triggered again with the last NDTR value.
5.
DMA peripheral burst with PINC/MINC=0
DMA Burst feature with peripheral address increment (PINC) or memory address increment
(MINC) disable allows to address internal or external (FSMC) peripherals supporting Burst
(embedding FIFOs). This mode ensures that this DMA stream cannot be interrupted by
other DMA streams during its transactions.



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