Skip to main content
YBell.1
Associate
May 27, 2021
Question

HOW TO SET UP 9 ADC DIFFERENT CHANNELS USING POLLFORCONVERSION OR DMA?

  • May 27, 2021
  • 2 replies
  • 1110 views

Am using an Stm32f103c8 microcontroller, initially i configured 1 single ADC pin and measured temperature from the thermistor using (PollForConversion) which worked perfectly. Then I configured 5 ADC Pins to measure the temperature again and Current from 4 lithium Battery cells using (PollForConversion) but this time it doesn't work my intention is to Configure 9 ADC pins to measure single temperature, 4 channels to measure Current, and 4 channels to measure Voltage. Please someone should help me out, to get know how to use ADC Multi channels either using PollForconversion or DMA (But I don't to knew how to set up 9 ADC channels using DMA) the attached is the code that I used for 5 ADC channels using Pollforconversion but it doesn't work for me and I didn't know where was the problem. Please Help me out, thanks in advance.

This topic has been closed for replies.

2 replies

ST Technical Moderator
June 3, 2021

Hello @YBell.1​ ,

Have a look at this example, it may help you on your project.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Tesla DeLorean
Guru
June 3, 2021

Use DMA

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..