The boot ROM automatically calls the ADC_cal() routine to initialize the ADCREFSEL and ADCOFFTRIM registers with device specific calibration data. ADCREFSEL bit [13-0] is for gain error correction and ADCOFFTRIM is for offset correction.
My question is that the calibration data stored in boot ROM is for the internal reference?
If yes, should I reset both registers to zero when external reference is used?
From the datasheet, the overall gain error with external reference is +-30LSB, does it include external reference error and the other parts of ADC error ?