AnsweredAssumed Answered

How to read a single channel each time with ADC DMA

Question asked by jeremy_cis on Mar 8, 2016
Latest reply on Mar 10, 2016 by jeremy_cis
Hi, I need to read 3 ADC channels with DMA on STM32F042 device (CH0, CH1, CH2), but I want to read 500 samples of the CH0, then reconfigure the ADC to read 500 samples of CH1 and finally reconfigure to read CH2. I already know how to do this in sequence, that is, read CH0, CH1, CH2, then CH0, CH1, CH2 again until complete 500 samples as can seen here: https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fADC%20DMA%20HAL%20Libraries%20STM32F0&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=40

Unfortunately I also haven't more SRAM to create a 1500 positions buffer too. Can anyone help me?

Obs: I'm using STM32CubeMX v4.13.0 and Firmware Package for Family STM32F0 v1.5.0

Outcomes