This repository contains examples of MCC-generated source code for Digital-to-Analog Converter (DAC) as described in the TB3210-Getting Started with Digital-to-Analog Converter (DAC) document from Microchip. The repository contains three MPLAB® X projects inside:
- Generating Constant Analog Signal: This use case shows how to use the DAC to generate a constant analog signal on an output pin (for more details, see Generating Constant Analog Signal)
- Generating Sine Wave Signal: This use case shows how to use the DAC to generate a sine wave signal (for more details, see Generating Sine Wave Signal)
- Reading DAC Internally with ADC: This use case shows how to use the DAC to generate an output voltage internally (no pin involved). The ADC will read the value. The DAC voltage output will increment by one step every iteration (for more details, see Reading DAC Internally with ADC)
More details and code examples on the AVR128DA48 can be found at the following links:
- TB3210-Getting Started with Digital-to-Analog Converter (DAC)
- 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.7.0 or newer (microchip.com/mplab/mplab-code-configurator)
- AVR-Dx 1.6.88 or newer Device Pack
- AVR128DA48 Curiosity Nano (DM164151)