Skip to main content
jugal
Associate II
October 18, 2021
Question

Voltage reference buffer output does not match expected value?

  • October 18, 2021
  • 1 reply
  • 1509 views

Device: STM32G061 (custom board), system running at 8mhz.

I set the vrefbuf mode to Internal voltage reference mode in cubemx. According Scale 0 the expected output on Vref pin should be 2.048V but the value i measured was always 0.2-0.3V greater than expected. It is not constant, the value changes slightly after every power cycle. I see similar results for Scale 1 as well.

I have tried setting up the Vrefbuf through direct register access but without any luck.

VREFBUF->CSR |= VREFBUF_CSR_ENVR; //internal voltage reference mode
VREFBUF->CSR &= ~VREFBUF_CSR_HIZ; //Vref pin connected to vrefbuf output
while (!(VREFBUF->CSR & VREFBUF_CSR_VRR)) //wait for vref buf output to reach requested level

This topic has been closed for replies.

1 reply

TDK
Super User
October 18, 2021

How are VREF+ and VDDA connected in your hardware?

"If you feel a post has answered your question, please click ""Accept as Solution""."
jugal
jugalAuthor
Associate II
October 18, 2021

VDDA and VREF+ are not connected to each other on my board.

TDK
Super User
October 18, 2021
Sure, but what are they connected to? A schematic would be the most informative.
"If you feel a post has answered your question, please click ""Accept as Solution""."