Introduction
Authors: Amund Aune, Egil Rotevatn, and Rupali Honrao, Microchip Technology Inc. |
This technical brief explains how to use the Series mode with the 12-bit Analog-to-Digital Converter (ADC) featured in the tinyAVR® 2 family.
The code examples below are given using the Series mode:
- Interrupt using Window Comparator
- Event-triggered series conversion
- ADC oversampling to increase resolution
- Series Accumulation with Scaling to increase ADC resolution
In Series mode, one conversion is performed per ADC trigger and a selectable number of samples are automatically accumulated into a single ADC result. A maximum of 1024 samples can be accumulated.
The ADC operation modes can be split into three groups:
- Single mode – Single conversion per trigger, with 8- or 12-bit conversion output
- Series Accumulation mode – One conversion per trigger, with accumulation of n samples
- Burst Accumulation mode – A burst with n samples accumulated as fast as possible after a single trigger
Refer to Section Relevant Documents for details on the other ADC modes.