Microchip Technology Microstick for the 5V PIC24F K-series DM240013-2 DM240013-2 Data Sheet

Product codes
DM240013-2
Page of 338
 2013 Microchip Technology Inc.
 
DS30003030B-page 225
PIC24FV16KM204 FAMILY
19.4
Buffer Data Formats
The A/D conversions are fully differential 12-bit values
when MODE12 = 1 (AD1CON1<10>) and 10-bit values
when MODE12 = 0. When absolute fractional or abso-
lute integer formats are used, the results are 12 or
10 bits wide, respectively. When signed decimal format-
ting is used, the conversion also includes a Sign bit,
making 12-bit conversions 13 bits wide and 10-bit
conversions 11 bits wide. The signed decimal format
yields 12-bit and 10-bit values, respectively. The Sign bit
(bit 12 or bit 10) is sign-extended to fill the buffer. The
FORM<1:0> bits (AD1CON1<9:8>) select the format.
 and 
 show the data output
formats that can be selected. 
 through
 show the numerical equivalents for the
various conversion result codes.
FIGURE 19-4:
A/D OUTPUT DATA FORMATS (12-BIT)
TABLE 19-1:
NUMERICAL EQUIVALENTS OF VARIOUS RESULT CODES: 
12-BIT INTEGER FORMATS
RAM Contents:
d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
Read to Bus:
Integer
0
0
0
0
d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
Signed Integer
s0
s0
s0
s0 d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
Fractional (1.15)
d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
0
0
0
0
Signed Fractional (1.15)
s0 d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
0
0
0
V
IN
/V
REF
12-Bit Differential
Output Code
(13-bit result)
16-Bit Integer Format/
Equivalent Decimal Value
16-Bit Signed Integer Format/
Equivalent Decimal Value
+4095/4096
0 1111 1111 1111
0000 1111 1111 1111
+4095
0000 1111 1111 1111
+4095
+4094/4096
0 1111 1111 1110
0000 1111 1111 1110
+4094
0000 1111 1111 1110
+4094

+1/4096
0 1000 0000 0001
0000 0000 0000 0001
+1
0000 0000 0000 0001
+1
0/4096
0 0000 0000 0000
0000 0000 0000 0000
0
0000 0000 0000 0000
0
-1/4096
1 0111 1111 1111
0000 0000 0000 0000
0
1111 1111 1111 1111
-1

-4095/4096
1 0000 0000 0001
0000 0000 0000 0000
0
1111 0000 0000 0001
-4095
-4096/4096
1 0000 0000 0000
0000 0000 0000 0000
0
1111 0000 0000 0000
-4096