cancel
Showing results for 
Search instead for 
Did you mean: 

how to read multiple ADC channel using interrupt mode?

parth kothiya
Senior

how to read multiple adc value using interrupt mode when call back function is called

HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) when conversion is complete.

for get adc value HAL_ADC_GetValue(&hadc) function is used.

3 REPLIES 3
S.Ma
Principal

Which STM32?

Injected channels have their individual data register, while normal channels don't.

Use DMA to dispatch multiple normal channels into a RAM table.

parth kothiya
Senior

stm32f103c8t6

stm32f103c8t6

3 channel ADC2 no DMA functionality

3 channel ADC1 with DMA

in singe channel interrupt mode works fine but multiple channel gives me random values (ADC2) as op.