cancel
Showing results for 
Search instead for 
Did you mean: 

Read Analog Sensor Values STM32

LConc.1
Associate

Hello, i am making a project on a stm32 (STM32F767ZI) development board, and i need to read analog voltage from 9 sensors. I have been reading the datasheet to see if is there a ADC mode that can make the process faster and more optimized. The most basic way i can think is to read the 9 channels of the ADC via a timer_interrupt, but i doubt that this is the best way.

So my question is, anyone that tried something like this before can give me some insight, pls.

Or someone have any idea how should i approach the problem.

best regards

Luís Conceição

2 REPLIES 2
TDK
Guru

I would put all 9 channels into the ADC and convert them as a sequence using DMA. You can trigger the sequence conversion using a timer or via software depending on your needs.

If you feel a post has answered your question, please click "Accept as Solution".
LConc.1
Associate

Hello

I was thinking about that too, i am glad that you pointed it as well, that means that i am on the right track, probably :)

thank you for the reply