cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476 Changing VRef for ADC precision

Stm325
Associate III

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.

3 REPLIES 3
TDK
Guru

> 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

 

If you feel a post has answered your question, please click "Accept as Solution".
Stm325
Associate III

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

 

TDK
Guru

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

If you feel a post has answered your question, please click "Accept as Solution".