2016-07-13 02:58 AM
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?
2016-07-13 04:36 AM
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.