Skip to main content
Graduate II
March 19, 2025
Question

STM32L476 Changing VRef for ADC precision

  • March 19, 2025
  • 2 replies
  • 605 views

Hi I want to sample low voltage signals with STM32L476 so I figured it would be a good option to reduce reference voltage and I found this part in the MCU datasheet: 

Stm325_0-1742410285083.png

Now I am using ADC in dual mode and sampling 8 bit so it is not too precise for low voltages.

In ADC1 settings, there is a checkbox:

Stm325_1-1742410285211.png

 

Is it enough to set it to shift Vref from 3.3 to 2.048 or how should I set my reference voltage to 2.048?

Also If I decide to use an external Vref can I just connect lets say 1V to Vref+ for MCU to change Vref for ADC to 1V from 3.3V.

    This topic has been closed for replies.

    2 replies

    Super User
    March 19, 2025

    > Is it enough to set it to shift Vref from 3.3 to 2.048 or how should I set my reference voltage to 2.048?

    VREFBUF is enabled in the SYS tab. VREFINT is and ADC channel and is not relevant here.

    TDK_0-1742411923210.png

     

    > Also If I decide to use an external Vref can I just connect lets say 1V to Vref+ for MCU to change Vref for ADC to 1V from 3.3V.

    No, there are limits on VREF+, see datasheet.

    TDK_1-1742411988138.png

     

    Stm325Author
    Graduate II
    March 19, 2025

    Thank you for the quick reply. I checked the system thinking it might be under there but I cannot see VREF Buffer option. 

    Stm325_0-1742412900911.png

     

    Super User
    March 19, 2025

    Include your full chip part number and your IOC file if you can.

    Super User
    March 20, 2025

    If the VDDA pin is tied to the VREF+ pin as it is on the nucleo board, the VREFBUF is unable to be used.