Skip to main content
MSpir.2
Associate II
March 7, 2022
Question

STM32G431KB: I need for my project an analog value between 0 and 5V. It seems like the MAX DAC Value is only 3.3V. Is it possible to change the range of the DAC somewhere in STM32CubeIDE or do I need to do it external?

  • March 7, 2022
  • 2 replies
  • 1335 views

..

This topic has been closed for replies.

2 replies

Peter BENSCH
Technical Moderator
March 7, 2022

Welcome, @MSpir.2​, to the community!

For this application, there are amplifier circuits that turn a smaller voltage into a larger one. In your case, you would have to use a non-inverting amplifier with a gain factor of 5V/VDD (if VDD=3.3, then =5/3.3), which can be realised quite easily with a low-voltage opamp with RRIO pins (rail-to-rail input and output).

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.
Peter BENSCH
Technical Moderator
March 15, 2022

Do you need additional hints?

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.