Skip to main content
parth kothiya
Associate III
April 2, 2019
Question

how to read multiple ADC channel using interrupt mode?

  • April 2, 2019
  • 2 replies
  • 643 views

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.

This topic has been closed for replies.

2 replies

S.Ma
Principal
April 2, 2019

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
Associate III
April 2, 2019

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.

parth kothiya
Associate III
April 2, 2019

stm32f103c8t6