Result
The ADCn.RESL and ADCn.RESH register pair represent the 16-bit value, ADCn.RES. The low byte [7:0] (suffix L) is accessible at the original offset. The high byte [15:8] (suffix H) can be accessed at offset + 0x01.
If the analog input is higher than the reference level of the ADC, the 10-bit ADC result will be equal the maximum value of 0x3FF. Likewise, if the input is below 0V, the ADC result will be 0x000. As the ADC cannot produce a result above 0x3FF values, the accumulated value will never exceed 0xFFC0 even after the maximum allowed 64 accumulations.
Bit15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RES[15:8] | |||||||
AccessR | R | R | R | R | R | R | R |
Reset0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RES[7:0] | |||||||
AccessR | R | R | R | R | R | R | R |
Reset0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Result high byte
These bits constitute the MSB of ADCn.RES register, where the MSb is RES[15]. The ADC itself has 10-bit output, ADC[9:0], where the MSb is ADC[9]. The data format in ADC and Digital Accumulation is 1’s complement, where 0x0000 represents the zero and 0xFFFF represents the largest number (full scale).
Result low byte
These bits constitute the LSB of ADC/Accumulator Result, (ADCn.RES) register. The data format in ADC and Digital Accumulation is 1’s complement, where 0x0000 represents the zero and 0xFFFF represents the largest number (full scale).