Skip to main content
Visitor II
May 18, 2021
Question

question about the ADC operation.

  • May 18, 2021
  • 0 replies
  • 514 views

1. How can I selectively read only one channel when using multiple ADC channels in each of the ADC interrupt mode and ADC DMA mode?

(If you use HAL_ADC_Start_DMA(&hadc1, ADCvalue, 2), you can read each channel from ADCvalue[0] and ADCvalue[1]. I want to use a function or know other methods, not how to check with the corresponding array like this)

2. HAL_ADC_Start_DMA is being used in DMA One Shot mode. When HAL_ADC_Start_DMA is executed, it jumps to HAL_ADC_ConvCpltCallback, the ADC interrupt service routine. At this time, I am curious about the current status of ADC (READY? EOC? BUSY?). I am curious to check the ADC Status at this time and do other work based on the ADC Status in HAL_ADC_ConvCpltCallback.

    This topic has been closed for replies.