Specifications

© 2006 Microchip Technology Inc. DS70183A-page 16-51
Section 16. Analog-to-Digital Converter (ADC)
A
D
C
16
Table 16-8: Numerical Equivalents of Various Result Codes (10-bit Mode)
Table 16-9: Numerical Equivalents of Various Result Codes (12-bit Mode)
VIN/VREF
10-bit
Output Code
16-bit Integer Format
16-bit Signed
Integer Format
16-bit Fractional Format
16-bit Signed
Fractional Format
1023/1024
11 1111
1111
0000 0011 1111
1111
= 1023
0000 0001 1111
1111
= 511
1111 1111 1100
0000
= 0.999
0111 1111 1100
0000
= 0.499
1022/1024
11 1111
1110
0000 0011 1111
1110
= 1022
0000 0001 1111
1110
= 5 10
1111 1111 1000
0000
= 0.998
0111 1111 1000
0000
= 0.498
• • •
513/1024
10 0000
0001
0000 0010 0000
0001
= 513
0000 0000 0000
0001
= 1
1000 0000 0100
0000
= 0.501
0 000 0000 0100
0000
= 0.001
512/1024
10 0000
0000
0000 0010 0000
0000
= 512
0000 0000 0000
0000
= 0
1000 0000 0000
0000
= 0.500
0000 0000 0000
0000
= 0.000
511/1024
01 1111
1111
0000 0001 1111
1111
= 511
1111 1111 1111
1111
= -1
0111 1111 1100
0000
= .499
1111 1111 1100
0000
= -0.001
• • •
1/1024
00 0000
0001
0000 0000 0000
0001
= 1
1111 1110 0000
0001
= -511
0000 0000 0100
0000
= 0.001
1000 0000 0100
0000
= -0.499
0/1024
00 0000
0000
0000 0000 0000
0000
= 0
1111 1110 0000
0000
= -512
0000 0000 0000
0000
= 0.000
1000 0000 0000
0000
= -0.500
VIN/VREF
12-bit
Output Code
16-bit Unsigned
Integer Format
16-bit Signed
Integer Format
16-bit Unsigned
Fractional Format
16-bit Signed
Fractional Format
4095/4096
1111 1111
1111
0000 1111 1111
1111
= 4095
0000 0111 1111
1111
= 2047
1111 1111 1111
0000
= 0.9998
0111 1111 1111
0000
= 0.9995
4094/4096
1111 1111
1110
0000 1111 1111
1110
= 4094
0000 0111 1111
1110
= 2046
1111 1111 1110
0000
= 0.9995
0111 1111 1110
0000
= 0.9990
• • •
2049/4096
1000 0000
0001
0000 1000 0000
0001
= 2049
0000 0000 0000
0001
= 1
1000 0000 0001
0000
= 0.5002
0000 0000 0001
0000
= 0.0005
2048/4096
1000 0000
0000
0000 1000 0000
0000
= 2048
0000 0000 0000
0000
= 0
1000 0000 0000
0000
= 0.500
0000 0000 0000
0000
= 0.000
2047/4096
0111 1111
1111
0000 0111 1111
1111
= 2047
1111 1111 1111
1111
= -1
0111 1111 1111
0000
= 0.4998
1111 1111 1111
0000
= -0.0005
• • •
1/4096
0000 0000
0001
0000 0000 0000
0001
= 1
1111 1000 0000
0001
= -2047
0000 0000 0001
0000
= 0.0002
1000 0000 0001
0000
= -0.9995
0/4096
0000 0000
0000
0000 0000 0000
0000
= 0
1111 1000 0000
0000
= -2048
0000 0000 0000
0000
= 0.000
1000 0000 0000
0000
= -1.000