cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L152RE ADC

djtilava
Associate II
Posted on July 13, 2016 at 11:58

I am using NUCLEO-STM32L152RE with 3 input channel of ADC and i used ADC in Interrupt mode with interrupt is generated after one channel conversion complete. And then in callback function of conversion complete i read data register of ADC.Is there any way by which i can identified that which channel's data i am reding currently?

1 REPLY 1
Posted on July 13, 2016 at 13:36

That's not the STM32 model. For multiple channels you are expected to DMA into an array, where position infers channel. You then use the DMA TC interrupt instead of the ADC EOC one to know all the conversions are complete.

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