Datasheet

2011-2013 Microchip Technology Inc. DS39995D-page 221
PIC24FV32KA304 FAMILY
22.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.
Figure 22-4 and Figure 22-5 show the data output
formats that can be selected. Table 22-1 through
Table 22-4 show the numerical equivalents for the
various conversion result codes.
FIGURE 22-4: A/D OUTPUT DATA FORMATS (12-BIT)
TABLE 22-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 0000d11 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 0000
Signed Fractional (1.15) s0 d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00 000
VIN/VREF
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