A000047 Arduino, A000047 Datasheet - Page 288

MCU, MPU & DSP Development Tools Mega2560

A000047

Manufacturer Part Number
A000047
Description
MCU, MPU & DSP Development Tools Mega2560
Manufacturer
Arduino
Series
-r
Type
MCUr
Datasheets

Specifications of A000047

Processor To Be Evaluated
ATmega2560
Interface Type
USB, I2C, SPI
Dimensions
4 in x 2.1 in
Operating Supply Voltage
5 V
Contents
Board
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
ATmega2560
25.7
2549M–AVR–09/10
ADC Conversion Result
After the conversion is complete (ADIF is high), the conversion result can be found in the ADC
Result Registers (ADCL, ADCH).
For single ended conversion, the result is
where V
Table 25-3 on page 289
0x3FF represents the selected reference voltage minus one LSB.
If differential channels are used, the result is
where V
and V
0x200 (-512d) through 0x1FF (+511d). Note that if the user wants to perform a quick polarity
check of the result, it is sufficient to read the MSB of the result (ADC9 in ADCH). If the bit is one,
the result is negative, and if this bit is zero, the result is positive.
ing of the differential input range.
Table 25-2 on page 289
(ADCn - ADCm) is selected with a gain of GAIN and a reference voltage of V
Figure 25-15. Differential Measurement Range
REF
IN
POS
the selected voltage reference. The result is presented in two’s complement form, from
is the voltage on the selected input pin and V
is the voltage on the positive input pin, V
- V
REF
and
shows the resulting output codes if the differential input channel pair
Table 25-4 on page
ATmega640/1280/1281/2560/2561
ADC
Output Code
0x3FF
ADC
0x1FF
0x000
0x200
=
(
---------------------------------------------------- -
0
=
V
POS
V
--------------------------
IN
V
REF
V
V
1024
290). 0x000 represents analog ground, and
REF
NEG
NEG
REF
) 512
the voltage on the negative input pin,
the selected voltage reference (see
Figure 25-15
V
REF
Differential Input
Voltage (Volts)
REF
shows the decod-
.
288

Related parts for A000047