Skip to main content
vitthal muddapur
Associate III
May 5, 2018
Question

ADC Vref?

  • May 5, 2018
  • 4 replies
  • 943 views
Posted on May 05, 2018 at 11:02

Hi,

I beginner in stm32 i am using stm32l071 adc channel 9 

what is vref ?

vref is Vdda 

i am connect vdda as 2.5v this is internally connected to vref yes or not?

can i enable vref by software(in code)?

Sampling time variation gets different adc values  

Thanks and Regards

Vitthal R

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    May 5, 2018
    Posted on May 05, 2018 at 16:21

    VREFINT is Channel 17 (ADC_IN17) and nominally 1.224V

    http://www.st.com/content/ccc/resource/technical/document/datasheet/b5/24/80/11/51/59/47/f7/DM00141136.pdf/files/DM00141136.pdf/jcr:content/translations/en.DM00141136.pdf

     

    Channel 9 looks to be PB1 ADC_IN9, and VREFOUT can be output there

    My understanding of the documentation is that you can route the VREFINT out of PB0 and/or PB1 so you can measure it with test equipment, and over voltage, temperature, etc.

    http://www.st.com/content/ccc/resource/technical/document/reference_manual/21/bd/0f/bd/1c/88/40/f0/DM00108282.pdf/files/DM00108282.pdf/jcr:content/translations/en.DM00108282.pdf

     
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    vitthal muddapur
    Associate III
    May 7, 2018
    Posted on May 07, 2018 at 14:20

    Hi,

    can use PB1 as Analog input?

    in analog input can i set pull-up or pull-down or no pull-up and pull-down 

    Tesla DeLorean
    Guru
    May 7, 2018
    Posted on May 07, 2018 at 14:43

    >>can use PB1 as Analog input?

    I think we established it was ADC_IN9 in the previous post.

    >>in analog input can i set pull-up or pull-down or no pull-up and pull-down 

    You'd really want to avoid having it pull up/down, wouldn't you?

    I'd set the PUPDR bits to 00

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..