Getting Started with Analog-to-Digital Converter (ADC) - Examples for the ATmega4809 Microcontroller with Microchip Studio
This repository contains examples of bare-metal source code for Analog-to-Digital Converter (ADC) as described in TB3209-Getting Started with Analog-to-Digital Converter (ADC). The repository contains a Microchip Studio Solution with multiple projects inside:
- ADC Event Triggered: The purpose of this project is to provide an example on how to configure the ADC to trigger a conversion on a specific event. For more details, see ADC Event Triggered project.
- ADC Free Running: This example uses ADC in Free-Running mode. When configuring the ADC in Free-Running mode, the next conversion starts immediately after the previous one completes. For more details, see ADC Free Running project.
- ADC Sample Accumulator: This example uses the ADC in Sample Accumulator mode. In Sample Accumulator mode the ADC can add up to 64 samples in an accumulator register. For more details, see ADC Sample Accumulator project.
- ADC Single Conversion: The simplest mode of using the ADC is to make a single conversion. For more details, see ADC Single Conversion project.
- ADC Window Comparator: This example uses the ADC in Window Comparator mode. In this mode, the device can detect if the ADC result is below or above a specific threshold value. For more details, see ADC Window Comparator project.
More details and code examples on the ATMEGA4809 can be found at the following links:
- TB3209-Getting Started with Analog-to-Digital Converter (ADC)
- ATMEGA4809 Product Page
- ATMEGA4809 Code Examples on GitHub
- ATMEGA4809 Project Examples in START
- Microchip Studio 7.0.2594 or newer (https://www.microchip.com/mplab/microchip-studio)
- ATmega_DFP 2.1.506 or newer Device Pack
- ATMEGA4809 Xplained Pro (ATMEGA4809-XPRO)