Skip to main content
Namita
Associate III
May 24, 2022
Question

I configured the following settings to generate vref 2.5V for ADC on stm32l496zg nucleo board . but i check voltage pin on Vref+ it is 3.3v only.Kindly Reply.

  • May 24, 2022
  • 5 replies
  • 1307 views

HAL_SYSCFG_EnableVREFBUF();

 HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE);

 HAL_SYSCFG_VREFBUF_VoltageScalingConfig( SYSCFG_VREFBUF_VOLTAGE_SCALE1);

This topic has been closed for replies.

5 replies

Peter BENSCH
ST Technical Moderator
May 24, 2022

Well, on the NUCLEO-L496ZG, VREF+ is connected to VDDA (=VDD) using a solder bridge SB149.

It should be usable if you remove SB149.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Namita
NamitaAuthor
Associate III
May 30, 2022

Can I use VBat pin for both RTC backup and ADC input??

Peter BENSCH
ST Technical Moderator
May 30, 2022

On the NUCLEO boards, it is possible to connect VBAT to a battery and thus buffer the battery backup domain, but a solder bridge must usually be opened for this.

If this solder bridge is closed, battery buffering is not possible in any meaningful way and VBAT is connected directly to VDD or VDDA so that RTC, backup registers etc. function as long as VDD is present.

In no case is VDDA and thus VREF supplied by VBAT.

Details on the battery backup domain can be found in the reference manual RM0351.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.