Skip to main content
_andreas
Senior
September 22, 2022
Solved

What is the Voffset of the DAC1 on the STM32U5xx?

The datasheet is a bit confusing. In my setup, the DAC1 saturates below 15mV. In addition, I'm not sure whether the ADC1 measures correctly below that voltage.

This topic has been closed for replies.
_andreas
_andreasBest answer
Senior
September 22, 2022

Looks like the DAC is part of the issue. Place is not quite the same, though.

9 replies

ST Employee
September 22, 2022

Hello @Andreas Köpke​ ,

Thank you for sharing your request :) .

On STM32U5 devices there is supposed to be no Voffest on the ADC1.

As indicated in the datasheet section 5.3.18 "14-bit analog-to-digital converter (ADC1) characteristics" if your VREF- is connected to VSSA and to the ground, the conversion voltage range for ADC1 is VSSA (0V) ≤ VAIN ≤ VREF+

0693W00000SvyL5QAJ.png 

Please find in attached the datasheet.

Best Regards,

A.MVE

_andreas
_andreasAuthor
Senior
September 22, 2022

Below 15mV it's not linear anymore. That's what I get from my measurements. My setup is:

  1. Generate a sine wave using DAC1 on PA4 from 0 to full scalb24_0k3_sinc4dec6g_9_16b_full(in my case 1.5V after modifying the B-U585I-IOT02A)
  2. Sample it back on ADC1
  3. Filter it
  4. Plot the result

0693W00000SvyRcQAJ.pngAs you can see, it is not a perfect sine wave, it has an "indentation" when the input signal is close to 0V. In contrast, if I limit it to 15mV, I get

0693W00000SvySQQAZ.pnga nice sine curve.

ST Employee
September 22, 2022

Thank you for your response.

Can you try to observe directly the DAC1 output with an oscilloscope ?

If the issue is coming from the DAC1 you will be able to observe the same behavior.

Best Regards.

A.MVE

_andreas
_andreasAuthor
Senior
September 22, 2022

0693W00000SvynYQAR.png

_andreas
_andreasAuthor
Senior
September 22, 2022

deleted, the MDF does not work correctly in that setup

waclawek.jan
Super User
September 22, 2022

In the gory details, you've forgotten to mention whether you use the DAC buffer or not. That buffer is known not to go rail-to-rail in the STM32.

0693W00000SvzgxQAB.png 

JW

PS. Please don't edit your initial post except typos, or do it in conspicuous way, so that rest of the thread won't go out of context.

_andreas
_andreasAuthor
Senior
September 22, 2022

I use the buffer, looks like the 0.2V is a rather conservative estimate.

_andreas
_andreasAuthor
Senior
September 22, 2022

In my setup, it DAC1 on PA4 does reach rail. Difference from 1.5 is < 5mV. Only the lowest 10 values or so are saturated.