2022-09-22 12:38 AM
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.
Solved! Go to Solution.
2022-09-22 02:31 AM
Looks like the DAC is part of the issue. Place is not quite the same, though.
2022-09-22 01:13 AM
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+
Please find in attached the datasheet.
Best Regards,
A.MVE
2022-09-22 01:30 AM
Below 15mV it's not linear anymore. That's what I get from my measurements. My setup is:
As 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
a nice sine curve.
2022-09-22 01:53 AM
deleted, the MDF does not work correctly in that setup
2022-09-22 02:14 AM
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
2022-09-22 02:29 AM
2022-09-22 02:31 AM
Looks like the DAC is part of the issue. Place is not quite the same, though.
2022-09-22 05:08 AM
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.
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.
2022-09-22 05:10 AM
I use the buffer, looks like the 0.2V is a rather conservative estimate.
2022-09-22 08:47 AM
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.