This repository contains examples of MCC-generated source code for Analog-to-Digital Converter (ADC) as described in the TB3209-Getting Started with Analog-to-Digital Converter (ADC) document from Microchip. The repository contains five MPLAB® X projects inside:
- ADC Event Triggered: This project has the purpose 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)
- 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 theprevious one completes (for more details, see ADC Free Running)
- 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)
- ADC Single Conversion: This example shoes how to use the ADC to make a single conversion (for more details, see ADC Single Conversion)
- ADC Window Comparator: This example uses the ADC in Window Comparator mode, the device can detect if the ADC result is below or above a specific threshold value (for more details, see ADC Window Comparator)
More details and code examples on the AVR128DA48 can be found at the following links:
- TB3209-Getting Started with Analog-to-Digital Converter (ADC)
- AVR128DA48 Product Page
- AVR128DA48 Code Examples on GitHub
- AVR128DA48 Project Examples in START
- MPLAB® X IDE 5.40 or newer (microchip.com/mplab/mplab-x-ide)
- MPLAB® XC8 2.30 or a newer compiler (microchip.com/mplab/compilers)
- MPLAB® Code Configurator (MCC) 4.0.1 or newer (microchip.com/mplab/mplab-code-configurator)
- MPLAB® Code Configurator (MCC) Device Libraries 8-bit AVR® MCUs 2.5.0 or newer (microchip.com/mplab/mplab-code-configurator)
- AVR-Dx 1.4.75 or newer Device Pack
- AVR128DA48 Curiosity Nano (DM164151)