0
\$\begingroup\$

I want to use the full output resolution of DACs (12bit) in the range of 0-1 Volt (and not in the range 0-3.3 Volt). I see there is a pin VDD in this board (STM32F429ZI), please help me to understand how use it or other pins (what is the correct connection to be used) to correctly set the desired maximum voltage of DAC. In addition, if I change the reference voltage for DAC, do ADCs consequently use this voltage or can I set different reference voltage for them?

enter image description here

asked Mar 9, 2019 at 16:18
\$\endgroup\$
2
  • \$\begingroup\$ Unless the data sheet specifically says you can change the DAC output voltage you will likely need a voltage divider, perhaps also with an op-amp as a buffer depending on what you are doing. \$\endgroup\$ Commented Mar 9, 2019 at 16:24
  • \$\begingroup\$ st.com/resource/en/reference_manual/dm00031020.pdf \$\endgroup\$ Commented Mar 9, 2019 at 16:24

1 Answer 1

0
\$\begingroup\$

In the datasheet page 434 it describes how you can set a reference voltage from 1.8V but not less. If you want the DAC to have full resolution between 0-1V that's just not possible. However you would get pretty acurate readings anyway.

datasheet table

If you want to change the resolution with a new reference voltage you use a voltage divider to set the voltage (1.8V-3.3V). If you set it to say 1.8V then a reading of 1.8V in 12 bit resolution reads 4095.

Voltage divider

Since this is the lowest you can go a reading of 1V with this resolution would give you the digital number 2275 giving you a resolution of 0-2275. Alternately you could amplify the signal you are measuring to 1.8-3.3V.

StainlessSteelRat
8,5372 gold badges20 silver badges35 bronze badges
answered Mar 9, 2019 at 16:36
\$\endgroup\$
3
  • 1
    \$\begingroup\$ No, you can't use a step up "regulator" on an analog signal - the whole purpose of a "regulator" is to be non-linear and deliver the same output regardless of input (within range). The part to use is an amplifier with linear behavior, one of the more common forms being an op-amp in a circuit where gain is controlled by negative feedback. \$\endgroup\$ Commented Mar 9, 2019 at 17:29
  • \$\begingroup\$ Therefore, considering the attached figure of microcontroller header 32x2, I can build the voltage divider starting from 5V pin and two resitors, and connect VDD pin to Vref (1.8 Volt). Is it correct? But does this connection influence only ADC channels or also DAC channels of microcontroller? In addition can I connect the board to pc-usb to download the code, with the connection realized above, or I have to disconnect it before connect USB? \$\endgroup\$ Commented Mar 24, 2019 at 14:21
  • \$\begingroup\$ @MicheleM. Yes you can connect the 1.8V or any other voltage to the Vref with a voltage divider. In the datasheet it says that the DAC and also the ADC uses the Vref+ so yes it affects them both. The voltage divider - to Vref does not affect your USB and vise versa. You can download the code and leave the connection as is. \$\endgroup\$ Commented Mar 25, 2019 at 10:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.