Posted on May 06, 2015 at 19:17
Hi, I'm developing application on STM32F0 where I use two gas sensors (CO and CO2), so I need two channels on ADC. In my main.c I only call two functions and on beginig of each function I change channel like so:
...
Posted on May 07, 2015 at 12:06I don't think just ORing bits without clearing/masking others is going to work. You were absolutely right. I just added turning off the channel before switching:ADC1->CHSELR &= ~ADC_CHSELR_CHSEL1;ADC1->CHSELR |= ADC_CH...