English
Language : 

PIC18LF2X_13 Datasheet, PDF (300/560 Pages) Microchip Technology – PIC18(L)F2X/45K50 USB Flash MCU Product Brief
PIC18(L)F2X/4XK22
17.1.7 RESULT FORMATTING
The 10-bit A/D conversion result can be supplied in two
formats, left justified or right justified. The ADFM bit of
the ADCON2 register controls the output format.
Figure 17-2 shows the two output formats.
FIGURE 17-2:
10-BIT A/D CONVERSION RESULT FORMAT
ADRESH
(ADFM = 0) MSB
bit 7
bit 0
10-bit A/D Result
(ADFM = 1)
bit 7
MSB
bit 0
Unimplemented: Read as ‘0’
ADRESL
LSB
bit 7
bit 0
Unimplemented: Read as ‘0’
LSB
bit 7
bit 0
10-bit A/D Result
DS41412F-page 300
 2010-2012 Microchip Technology Inc.