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
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 DMA 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?