chipKIT® Development Platform

Inspired by Arduino™

multichannel audio DAC's

Created Sat, 14 Feb 2015 17:50:10 +0000 by madias


Sat, 14 Feb 2015 17:50:10 +0000

Hello, I got I2s/left/right justified DAC's successfully working on my PIC32MX250F128B (I have several types at home, but prefer the cheap PT8211S, uses BCK,WS,Din, I only need 16 bits). I need at minimum 4 different audio outputs, so one possibility is, to use both SPI ports, doing the same stuff twice. But I believe, there must be a more elegant way to do it? (Ok, there are multi output DAC's, but all of them have big drawbacks, mostly too expensive or have even multiple Data-In pins, so it does not matter whether I use two of 2-channel DAC's or one chip (f.e.: pcm1680 ) facts: each channel should play some short wavetables (about 256-1024 steps/16Bit depth), so no strict synchronization is needed.

Thanks & greets Matthias

Jacob Christ

Mon, 16 Feb 2015 17:21:08 +0000

I have never played with I2S but have always wanted to try. Did you document what you did any where?



Tue, 17 Feb 2015 11:49:40 +0000

I didn't document everything, but I commented my sketches. Good starting point are: my and majenkos code at and the microchip SPI documentation

and for sure the datasheet of your DAC :)

If you are searching for working DAC's, I've successfully used this ones: PT8211-s (16-bit) (not I2s, but left justified, just a little modification in the code) and CS4334 (24-bit)