Main Site Documentation

Play audio on FEZ Raptor, external 8-BIT DAC with SPI


#1

I have a short buffer/wave file in memory and need to play this some how. Anyone care to give helpful hints on how to do it?

I have an 8-bit DAC with an SPI interface on my desk (and an OP-AMP chip) that could produce the audio, if I could get the audio stream out on the analog side…

DAC
http://ww1.microchip.com/downloads/en/DeviceDoc/22248a.pdf


#2

Take a look at the developer guide for the AMP-M35 module. https://www.ghielectronics.com/docs/186/amp-m35-module

This might also help - https://www.ghielectronics.com/community/codeshare/entry/511


#3

@ Mike - thanks, but the Raptor does not have an O socket (audio out) - required by the Amp module. Also, the gode sample needs a pointer to an audio output pin…


#4

G400 has no Analog Out capability, so you’re right that the only approach is to get the external DAC working.

Step 1 would be getting the DAC working. Since it’s SPI should be a snack, right?
Step 2 is use the AOUT routines that are used in the samples/drivers that Mike points to but instead of setting the voltage on the AOUT pin on the mainboard, they have to set the voltage on the AOUT on the DAC via SPI.


#5

@ Brett - interesting approach… have to look into that. Thanks ;D