30.3.2.5 ADC Conversion Result
After the conversion is complete (RESRDY is set), the conversion result RES is available in the ADC Result Register (ADC.RES). The result for a 10-bit conversion is given as:
where VIN is the voltage on the selected input pin and VREF the selected voltage reference (see description for REFSEL in ADC.CTRLC and ADC.MUXPOS).