Skip to content

This repository contains 5 bare metal code examples that show how to use the ADC peripheral of the ATmega4809 device in different modes. It is a companion to the TB3209-Getting Started with Analog-to-Digital Converter (ADC).

License

Notifications You must be signed in to change notification settings

microchip-pic-avr-examples/atmega4809-getting-started-with-adc-studio

Repository files navigation

MCHP

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.

Related Documentation

More details and code examples on the ATMEGA4809 can be found at the following links:

Software Used

Hardware Used

About

This repository contains 5 bare metal code examples that show how to use the ADC peripheral of the ATmega4809 device in different modes. It is a companion to the TB3209-Getting Started with Analog-to-Digital Converter (ADC).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages