2025-09-15 2:38 AM
Hi,
When I clear the EXTSEL bits in the ADC1 CFGR1 register, my resolution bits also get cleared ?. My ADC randomly changes resolution. Below is screenshots of the code.
Why does this happen ?, I can disable the ADC to write the RES bits to what they were. Don't really want to do that unless I have to.
Solved! Go to Solution.
2025-09-15 6:23 AM - edited 2025-09-15 6:41 AM
Hello @danielbathtub ;
When you writing any bits in the ADC_CFGR1 register of STM32G0x while the ADC is enabled (ADEN bit set), the RES[1:0] (resolution) bits are reset. This behavior is documented in STM32G0 errata sheets like as in STM32G050 errata sheet.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-09-15 6:23 AM - edited 2025-09-15 6:41 AM
Hello @danielbathtub ;
When you writing any bits in the ADC_CFGR1 register of STM32G0x while the ADC is enabled (ADEN bit set), the RES[1:0] (resolution) bits are reset. This behavior is documented in STM32G0 errata sheets like as in STM32G050 errata sheet.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-09-15 6:26 AM