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.
