Microchip® Advanced Software Framework

Quick Start Guide for the ABDAC driver

This is the quick start guide for the group_sam_drivers_abdac, with step-by-step instructions on how to configure and use the driver for a specific use case.The code examples can be copied into e.g the main application loop or any other function that will need to control the ABDAC module.

Use cases

ABDAC basic usage

This use case will demonstrate how to initialize the ABDAC module to output audio data.

Setup steps

Prerequisites

This module requires the following service

abdac_basic_setup_code

Add this to the main loop or a setup function:

abdac_basic_setup_workflow

  1. Initialize the ABDAC module
  2. Enable the ABDAC mode
    • Note
      The syste clock may changed after setting the ABDAC module.

Usage steps

abdac_basic_usage_code

We can set the volume by

Or we can mute the volume by

We can output the data without PDC by

And we can set the interrupt by