Figure 6-7. ADC0.RES - Read the Result
Bit
15
14
13
12
11
10
9
8
Access
R
R
R
R
R
R
R
R
Reset
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
Access
R
R
R
R
R
R
R
R
Reset
0
0
0
0
0
0
0
0
Bits 15:8 – RES[15:8]
Result High Byte
This bit field constitutes the high byte of the ADCn.RES register, where the MSb is RES[15].
Bits 7:0 – RES[7:0]
Result Low Byte
This bit field constitutes the low byte of the ADCn.RES register.
RES[15:8]
RES[7:0]
/*Read the RES register and shift the result 4 bits to compensate for the 16 oversamples*/
uint16_t result = (ADC0.RES>>4);
TB3287
Measuring VDDIO2
©
2020 Microchip Technology Inc.
Technical Brief
DS90003287A-page 14