Question
STM32 ADC multiple channel use
Posted on August 27, 2014 at 18:41
To get data from multiple channels for any ADC, what function should i use?
For egIf 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?? #adc #stm32