AnsweredAssumed Answered

STM32 ADC multiple channel use

Question asked by puri.salil on Aug 27, 2014
Latest reply on Sep 11, 2014 by puri.salil
To get data from multiple channels for any ADC, what function should i use?
For eg
If i configure my ADC with the following : 
ADC_RegularChannelConfig(ADC1,ADC_Channel_0, 1,ADC_SampleTime_1Cycles5);
ADC_RegularChannelConfig(ADC1,ADC_Channel_1, 1,ADC_SampleTime_1Cycles5);
(configuring channel 0 and 1 for ADC1)

If I use : Analog_value1=ADC_GetConversionValue(ADC1);

it will return value of ADc converted from the latest channel (channel1).
How do i retrieve value of ADC1 channel 0 without having to reconfigure my ADC??

Outcomes