Skip to main content
djtilava
Associate II
July 13, 2016
Question

STM32L152RE ADC

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?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    July 13, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..