Introduction

The Microchip AVR® XMEGA® ADC module is a high-performance Analog-to-Digital converter capable of conversion rates up to 2 Million Samples Per Second (MSPS) with a resolution of 12 bits. A wide range of multiplexer (MUX) settings, integrated gain stage, and four virtual input channels make this a flexible module suitable for a wide range of applications, such as data acquisition, embedded control, and general signal processing. This application note describes the basic functionality of the XMEGA ADC with code examples to get up and running quickly. The example code is available through Atmel | START. Example applications are XMEGA ADC Polled and XMEGA ADC Interrupt . The application covers single-ended conversion of ADC using different channels in polled mode and using interrupt using device XMEGA128A1U. Advanced usage, such as Direct Memory Access (DMA) and the XMEGA Event System, is outside the scope of this application note. Refer to the device data sheets and other relevant application notes such as "AVR1304: Using the XMEGA DMA Controller" and "AVR1001: Getting Started With the XMEGA Event System".

Figure . ADC Overview