Introduction
Authors: Rupali Honrao, Amund Aune, and Egil Rotevatn, Microchip Technology Inc. |
This technical brief explains how to use the Single mode with the 12-bit Analog-to-Digital Converter (ADC) featured in the tinyAVR® 2 family.
The code examples below are given using the Single mode:
- Interrupt using Window Comparator
- Event-triggered conversion
- Measuring VDD
- Measuring Internal Temperature sensor
In Single mode, when the ADC conversion is triggered, the ADC result is available for a single sample. In this mode, ADC resolution can be selected to be 8-bit or 12-bit.
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.