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

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

Posted: Mon Oct 07, 2019 1:12 pm
by ndarkness
HI,

Could you let me know what is exaclty stm in your code?

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

Posted: Mon Oct 07, 2019 11:01 pm
by jimmo

Code: Select all

import stm
It's a module that gets auto-generated by the build system to include a constant for all the register names for your build target.