cancel
Showing results for 
Search instead for 
Did you mean: 

Peripheral base address for ADC with DMA

kyaw
Associate II
Posted on December 14, 2015 at 04:10

Hi. I'm fairly new to the concepts of DMA and I'm trying to implement DMA for my ADC on STM32F4 Discovery kit. Currently, I'm using ADC1, channel 4 which is the pin PA4 on the discovery. I'd like to know which peripheral base address I have to use for my DMA_InitStructure. Where can I find information on the address if I were to use other pins (ADC channels)??

Thank you for your time. 

#dma-stm32f4discovery #adc
2 REPLIES 2
Posted on December 14, 2015 at 06:01

They all use the same address, the channel EOC generate a singular DMA read of &ADC1->DR, as the ADC scans through the channel list you've given it.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AvaTar
Lead
Posted on December 14, 2015 at 09:29

>Where can I find information on the address if I were to use other pins (ADC channels)??

 

Generally, in the reference manual, at the end of the respective peripheral section.

For the F4x7, as example, in document RM0090 in section 13.13.18, ''ADC register map''. These tables will give you offsets, relative to the base addresses of the peripheral, as given in section ''memory map'' (sect. 2.3 in above mentioned document).