Microchip® Advanced Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Analog to Digital Converter (ADC)

See Quick start guide for XMEGA ADC.

This is a driver for the AVR XMEGA ADC. It provides functions for enabling, disabling and configuring the ADC modules and their individual channels.

The driver API is split in two parts:

Both APIs use structures that contain the configuration. These structures must be set up before the configuration is written to either an ADC module or one of their channels.

After the ADC has been configured it must be enabled before any conversions may be performed. To ensure accurate conversions, please wait for at least the specified start-up time between enabling the ADC module, and starting a conversion. For most XMEGA devices the start-up time is specified to be a maximum of 24 ADC clock cycles. Please verify the start-up time for the device in use.

Note
Not all of the documented functions are available on all devices. This is due to differences in the ADC feature set. Refer to the device manual and datasheet for details on which features are available for a specific device.
The functions for creating/changing configurations are not protected against interrupts. The functions that read from or write to the ADC's registers are protected unless otherwise noted.

Dependencies

This driver depends on the following modules:

Modules

 
 Quick Start Guide(s)
 In this section you can find a list of all Quick Start guides related to the Analog to Digital Converter (ADC).
 
 ADC module
 Management and configuration functions for the ADC module.
 
 ADC channel
 Management and configuration functions for the individual ADC channels.