Analog Input Voltage

The Analog Input Voltage (AIN) is the voltage to be measured and converted into a digital value. The input voltage should always be less than VREF to avoid saturation of the ADC. The input voltage range is also called as conversion range.

ADC modules can be classified based on the number of Analog Inputs used as follows:
  1. Single-ended Input
  2. Differential Input
In single-ended input(1), the ADC sampling and conversion is performed only on one analog input signal. The basic block diagram of a single-ended input is as shown below.
Figure 1. Single-ended Input

In differential input, the difference in voltage of two analog inputs is applied to the ADC module. This can be done either directly or after performing some amplification using suitable gain stages. Differential conversions are usually operated in signed mode, where the MSB of the output code acts as the sign bit. When using differential mode, offset error can be measured easily by setting up the positive and negative input on the same pin and the offset can be measured directly as the ADC does not require the Ground (GND) level as a reference.

For example, when two Analog Inputs are provided, AIN1 = 1.5V & AIN2 = 0.5V, the digital value of differential output (AIN1 - AIN2 = 1V) is expected.
Figure 2. Differential Input

Most ADCs can operate only using a positive input voltage. The ADCs whose AIN falls in the positive range (0 < AIN < VREF) are called as Unipolar ADC. ADCs capable of accepting both positive and negative input voltages are called as Bipolar ADC(1). For example, in a Unipolar ADC, if the VREF = 2V, then 0 < AIN < 2V should always be maintained to get expected output.

Note:
  1. Refer the respective device datasheet to know the input type, polarity, and input range supported by the device.
  2. For details about Signed / Unsigned conversion modes of Atmel® AVR® XMEGA® devices, refer to the AVR1300: Using the Atmel AVR XMEGA ADC.