How to use DMA config and dma enable option with STM32
How can I use DMA config and DMA enable option with STM32 . coude you Plsease any one share detail dcumentation and with multiple real example of implementation of DMA config and DMA enable option with STM32.
Answers
-
Hi Monzur,
Attached one STM32F334R8 DMA Interrupt example.
Like any other Interrupt service routine, You write your logic(read/write) inside a compound block and enable the the compound block with DMA channel interrupt. Memory access call back will be executed as soon as the interrupt triggers.
In the attached example.
- Initialize the ADC1 and enabled it
- Triggered the ADC using PWM1
- ADC result captured inside DMA Interrupt call back.
- Updated the monitor buffer with result.
I will share you more example with detailed step soon.
Regards
Sreejith
0