Page 1 of 1

Where can I see the internal reference buffer settings for STM32 in micropython?

Posted: Wed Feb 13, 2019 8:06 am
by ndarkness
Hello

I am working with micropython for a STM32L4 mcu.

I would like to ensure that my adc is using the external voltage reference that I am imposing to. Thus, I want to check whether or not the internal reference buffer is disabled in micropython for this mcu.

How and where can I check this?

Thanks in advance

Re: Where can I see the internal reference buffer settings for STM32 in micropython?

Posted: Thu Feb 14, 2019 12:08 pm
by marfis
you can always check the HW registers... e.g. stm.mem32[stm.VREFBUF]

assigning 5 for example activates the 2.5v reference