Associate
October 26, 2022
Question
How do you change an ADC channel at the low level
- October 26, 2022
- 3 replies
- 2743 views
Hello,
I am working with the low level drivers and trying to configure an ADC to read 2 channels via the Cube IDE. I am triggering the read of the ADC via a 1 ms internal timer interrupt. Note I am trying to do this read via polling and not via interrupt of DMA.
I have had a thorough look through the low level driver/stm32L5xx_ll_adc.h and I can't find anything that suggests how you actually select the external channel into the ADC.
I have attached a picture of the ADC configuration in the CUBE IDE and a picture of the external channel input into the ADC as per the STML552XX reference manual. Note, I am using an STM32L562VET6Q.
Any help would be greatly appreciated.
Kind regards,
Sam