Skip to main content
YO.1
Associate II
January 18, 2023
Question

How do I configure +Vref for STM32WL boards?

  • January 18, 2023
  • 2 replies
  • 1026 views

Hi team,

I am using LoRa-E5 dev board that uses STM32WLE5JC MCU.

I have been trying to implement ADC peripheral.

How do I configure the +Vref of the ADC? Is there any configuration parameter or API?

Thanks.

This topic has been closed for replies.

2 replies

Bubbles
ST Employee
January 18, 2023

Hi @YO.1​,

I'm sorry but from the seeed studio documentation I'm unable to determine what's the VREF+ pin connected to on their board. Try asking them directly.

Alternatively you can use the method described in the RM chapter 16.9 to calculate the VREF+ using VREFint.

Most likely the board simply connects vref+, VDDA and VDD to the same power source. If it's a battery, it's actually not completely bad idea. You just have to use VREFint to see how much the battery level dropped before using it for actual ADC measurements.

BR,

J

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.
YO.1
YO.1Author
Associate II
January 18, 2023

Thank You J. I shall refer to the chapter 16.9 as You suggested.