Skip to main content
pt_it
Visitor II
February 22, 2018
Question

STM32L073RZ battery voltage measurement using VREFint

  • February 22, 2018
  • 2 replies
  • 1103 views
Posted on February 22, 2018 at 19:19

Hi, I am using STM32L073RZ and trying to use internal reference voltage to measure battery voltage(according to Datasheet page number 28). It says that VREFint can be used to monitor Vdd if external source is not connected. But the there is not much about how to implement this. Please provide some more information.0690X00000604MaQAI.jpg

#stm32l0 #adc
This topic has been closed for replies.

2 replies

Andrew Neil
Super User
February 22, 2018
Posted on February 22, 2018 at 19:50

You use Vdd as the ADC's reference, and measure Vref-int (on ADC_IN17).

This effectively gives you the difference between 

Vdd and Vref-int.

Because Vref-int is known, you can deduce Vdd ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
ab val
Associate III
February 23, 2018
Posted on February 23, 2018 at 08:30

Hi,

0690X00000609SVQAY.png