How do I configure +Vref for STM32WL boards?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-18 1:53 AM
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.
- Labels:
-
ADC
-
STM32WL series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-18 2:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-18 2:53 AM
Thank You J. I shall refer to the chapter 16.9 as You suggested.
