cancel
Showing results for 
Search instead for 
Did you mean: 

How does stm32H723 ADC ISR know which channel ?

Niramas
Associate III

I am just getting started with the stm32h723 ADC.    If I create a regular sequence group of several input channels, how does my ISR know which channel was sampled last (which channel's data is in the DR)?  I don't see this in the registers.

Thanks,

Mark 

3 REPLIES 3

Typically you'd DMA a group of channels into an array, and then get an interrupt for some multiple of them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

So I have to go down another rabbit hole to get my ADC data?   Is there a code example for the ADC-DMA transfer?

Imen.D
ST Employee

Hello @Niramas ,

You can use the "ADC DMA Transfer" example runs on STM32H743xx devices:

STM32CubeH7/Projects/NUCLEO-H743ZI/Examples/ADC/ADC_DMA_Transfer at master · STMicroelectronics/STM32CubeH7 · GitHub

This example can be easily tailored to any other supported device and development board.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen