Introduction

Author: Victor Berzan, Microchip Technology Inc.

The Analog-to-Digital Converter (ADC) peripheral converts an analog voltage to a numerical value. This peripheral is included in many AVR® microcontrollers (MCUs). A 10-bit single-ended ADC peripheral is available on most of the tinyAVR® and megaAVR® MCUs.

This technical brief describes how the Analog-to-Digital Converter module works on megaAVR® 0-series microcontrollers. It covers the following use cases:
Note: The code examples were developed on ATmega4809 Xplained Pro (ATMEGA4809-XPRO).