English
Language : 

PIC24FV16KM204 Datasheet, PDF (225/336 Pages) Microchip Technology – General Purpose, 16-Bit Flash Microcontroller with XLP Technology Data Sheet
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.
Figure 19-4 and Figure 19-5 show the data output for-
mats that can be selected. Table 19-1 through
Table 19-4 show the numerical equivalents for the
various conversion result codes.
FIGURE 19-4:
A/D OUTPUT DATA FORMATS (12-BIT)
RAM Contents:
Read to Bus:
Integer
d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
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
TABLE 19-1: NUMERICAL EQUIVALENTS OF VARIOUS RESULT CODES:
12-BIT INTEGER FORMATS
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
+4094/4096 0 1111 1111 1110
+1/4096
0/4096
-1/4096
0 1000 0000 0001
0 0000 0000 0000
1 0111 1111 1111
-4095/4096 1 0000 0000 0001
-4096/4096 1 0000 0000 0000
0000 1111 1111 1111
0000 1111 1111 1110

0000 0000 0000 0001
0000 0000 0000 0000
0000 0000 0000 0000

0000 0000 0000 0000
0000 0000 0000 0000
+4095
+4094
+1
0
0
0
0
0000 1111 1111 1111
0000 1111 1111 1110
0000 0000 0000 0001
0000 0000 0000 0000
1111 1111 1111 1111
1111 0000 0000 0001
1111 0000 0000 0000
+4095
+4094
+1
0
-1
-4095
-4096
 2013 Microchip Technology Inc.
Advance Information
DS33030A-page 225