The content of this repository has been moved to https://github.com/microchip-pic-avr-examples/atmega4809-getting-started-with-ac-studio . Additionally, a repository containing MCC generated code examples for AVR128DA48 with the same functionality can be found at https://github.com/microchip-pic-avr-examples/avr128da48-getting-started-with-ac-mplab-mcc . This repository is obsolete and it will not be maintained.
This repository contains examples of bare metal source code for Analog Comparator (AC) as described in TB3211 document from Microchip. The repository contains an Atmel Studio Solution with multiple projects inside. Make sure you have the necessary tools:
- ATmega4809 device (recommended is evaluation board ATmega4809 X-plained PRO)
- Atmel Studio
- ATmega4809 Device Packs
The following examples are inside this repository:
- Level crossing detector
- Preventing false spike detection
- AnalogSignalPulse_DurationMeasurement