Hi, Satskyi,
First of all, the ADC_OFFSTn register for each channel is NOT designed for calibration, it is designed for zero-crossing feature. As you know that the ADC can only sample positive analog signal in single-ended mode, in other bwords, it can only sample from GND to Vrefh(3.3V) voltage. For example, you sample a sinusoidal signal which range from GND to 3.3V and you want to implement the zero-crossing feature(at the 1.67V voltage, zero-crossing happens), in the case, you can set the
ADC_OFFSTn register as 0x4000, in the case,this is the list of analog voltage to ADC sample:
analog voltage ADC_RSLTn with ADC_OFFSTn register as 0x400
GND 0xC000
1.67V, 0x00,
3.3V 0x4000
In this way, we can implement the zero-crossing feature or subtract a DC value.
Regarding the calibration, i do not think the ADC converters can implement hardware calibration. But you can implement software calibration, you can sample the known analog voltage at two pointsand get the gain/offset.
Hope it can help you
BR
xiangjun Rong