ADC data management - good news and bad news (STM32U5xx CubeMX bug?)
According RM0456, section 33.4.27 Data management, p. 1287
"The offset can be used to convert unsigned data to signed data (for example, in 14-bit mode, the offset value is equal to 0x2000). The offset correction is also supported in oversampling mode. For the oversampling mode, offset is subtracted before OVSS right shift applied."
This is the good news. The bad news is that CubeMX believes that the opposite is true.
But then on page 1304 in section 33.4.31 Oversampler I found this statement:
"Offset correction is not supported in oversampling mode."
Could anyone explain? I am confused.
My tests show that offset and oversampling can be used simultaneously, but it is quite possible that after several hours of working with this technology I start seeing things.



