---
title: Digital Sample ADC to DAC + Analog Frequency to DAC
description: "### Introduction The Propeller 2 Multicore Microcontroller is able to generate high-quality sound and video while simultaneously interfacing with human input devices and sensors, which makes it a very cost-effective, supply-chain-efficient replacement for multiple ICs used in existing products. This…"
url: "https://obex.parallax.com/docs/quick-bytes/propeller-2/digital-sample-adc-to-dac-analog-frequency-to-dac/"
updated: "2026-09-29"
category: Propeller 2
---

# Digital Sample ADC to DAC + Analog Frequency to DAC

### Introduction

The Propeller 2 Multicore Microcontroller is able to generate high-quality sound and video while simultaneously interfacing with human input devices and sensors, which makes it a very cost-effective, supply-chain-efficient replacement for multiple ICs used in existing products. This Quick Byte demonstrates the ADC to DAC and Analog to DAC capability of the Propeller 2 with the [P2 HD Audio Add-on Set](https://www.parallax.com/product/p2-hd-audio-add-on-set/) hardware. Source code files for both of these examples are available for download below. 

### Digital Sample ADC to DAC Example

The demo code uses both the ADC and DAC boards from the P2 HD Audio Set. Sound is sampled in at one of the ADC jack sockets, and replayed with optional delay effects at the DAC jack socket. This example shows how to configure the ADC board for a variety uses, and is setup by default to sample at 48kHz from the ADC line-in jack, add some delay, and then output with 31ohms drive strength (suitable for headphones) at the DAC output jack.

[Digital Sample ADC to DAC Quick Byte](https://www.youtube.com/embed/_qPpqEd8goA?feature=oembed)

### Analog Frequency to DAC Example

The example code shows the use of the DAC in a simple configuration, outputting sounds generated by the P2 as musical notes to play a popular tune! The intention of this demo was to show that the DAC could be used on its own to drive line-level or headphone devices directly from the Parallax P2 Microcontroller SmartPins. This type of use would be common in game consoles and many other interactive, industrial and educational applications.

[Analog Frequency to DAC Quick Byte](https://www.youtube.com/embed/vKjfcPc_U_E?feature=oembed)

##### Parts Used

- [P2 Edge Module](https://www.parallax.com/product/p2-edge-module/)
- [P2 Edge Mini Breakout Board](https://www.parallax.com/product/p2-edge-mini-breakout-board/)
- [P2 HD Audio Set](https://www.parallax.com/product/p2-hd-audio-add-on-set/)

##### Source Code

- [Digital Sample ADC to DAC Source Code](/qbi/downloads/64014_HDAudio_ADCtoDAC_Demo-Archive-Date-2023.01.16-Time-16.06.zip)
- [Analog Audio to DAC Source Code](/qbi/downloads/64014_HDAudio_AnalogDAC_Demo-Archive-Date-2022.10.19-Time-17.22.zip)

##### Programming Language

- [Spin 2](https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/)
- [PASM2](https://docs.google.com/spreadsheets/d/1_vJk-Ad569UMwgXTKTdfJkHYHpc1rZwxB-DcIiAZNdk/)

##### Tools and Operating System

- [Propeller Tool for Windows](https://www.parallax.com/package/propeller-tool-software-for-windows-spin-assembly-2/)
- [FlexProp for Windows, Mac and Linux](https://www.patreon.com/totalspectrum)

##### Additional Resources

##### Document Author

- Ken Gracey

##### Source Code Author

- Chip Gracey
- Michael Mulholland
