Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 7 months ago.
STM32 nucleo using SCAN mode for ADC
Hi, I have been trying to use scan mode for the ADC to try to convert two channels as quickly as possible. I am able to set up ADC to DMA for a single channel. However when I increase the buffer size of the DMA to larger than 1, sporadically every 5-10 reading a completely wrong. It seems the two channels every once in a while get crossed and ch0 goes to ch1 and ch1 goes to ch0.
Probably my setup is not right. The question then is there an example somewhere for SCAN mode being using for the STM32 family? It is not in one of the standard library examples that I have. Specifically I am using the L152RE (only has one ADC block).
1 Answer
9 years, 3 months ago.
Hi Near,
could you share the example here too? I'm trying to use a similar approach on the SMT32 L053 board.
thanks Fabio
I found now an example in the STM32 F302R8 standard library. Relatively simple to extend the example to the L152RE. No need to answer question.
posted by Near Margalit 22 Jun 2014