2014-08-27 09:41 AM
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 #stm322014-08-27 10:10 AM
What STM32, they make like literally dozens of them?
The index needs to increment between channels, everything is not ONE. The ADC would need to be in scan mode, and you'd need to use DMA to read multiple channels.2014-09-11 10:13 AM
Hello Clive
I am using STM32F103RE with the 64 pin package.I have to design a device around it that requires 6 ADC conversions to be done almost simultaneously.I know this chip has 3 ADC's that can be used but i was wondering if i can use multiple channels for ADC's to get 6 values quickly.Let me know what is the best way.RegardsSalil