2024-11-25 09:04 AM
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.
2024-11-25 09:29 AM - edited 2024-11-25 02:26 PM
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,
2024-11-25 09:44 AM
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?
2024-11-26 12:43 AM
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.
2024-11-26 01:26 AM
Thank you, I will try