2023-08-17 11:46 PM
I am trying to read ADC from two channels without using DMA. For that I use this code:
Solved! Go to Solution.
2023-08-18 6:17 AM
> sConfig.Rank = ADC_REGULAR_RANK_2;
If you're only converting a single channel, this should be ADC_REGULAR_RANK_1.
> sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5
Consider increasing this. Also, you should initialize it in your ADC_Select_CH2 function, otherwise it will have an undefined value.
2023-08-18 6:17 AM
> sConfig.Rank = ADC_REGULAR_RANK_2;
If you're only converting a single channel, this should be ADC_REGULAR_RANK_1.
> sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5
Consider increasing this. Also, you should initialize it in your ADC_Select_CH2 function, otherwise it will have an undefined value.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.