cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h503 how read multi channel value in interrupt mode

Giomer59
Associate II

Hello evryone:

at the first it is may firt project with STM32, and don't have any experince with this MCU.

I have a problem, when I read (with HAL_ADC_GetValue(&hadc1)) the multi channel ADC value in interrupt mode the value is always the same. I have tryed all type setup in STM32CUBE IDE, but the result is always same.

There evryone to help me?

Tanks and sorry for my poor english.

4 REPLIES 4
gbm
Lead III

1. Use DMA for multiple channels - classic STM32 technique.

2. It's generally not a good idea to use ADC interrupts.

3. To handle multiple channels without DMA you may use AUTDLY setting in ADC config register,

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

I would like to use DMA memory, but the setup in GPDM1 or 2 is not very easy for me (much easier with STM32F302). I would like to have an example of how to do it. Also, the suggestion to use AUTDLY is unfamiliar to me. Could you point me to where I can find something that might help me?

You can check this thread: Solved: ADC multichannel using Interrupt - STMicroelectronics Community 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you, I will try