Plays USB Audio packets through external DAC (Cirrus Logic CS4344). Simple demo code, don't expect a sophisticated I2S library. HW setup: mbed DIP 5 (I2STX_SDA) -> DAC SDIN (Serial Audio Data Input) mbed DIP 6 (I2STX_WS) -> DAC LRCK (Left Right Clock) mbed DIP 7 (I2STX_CLK) -> DAC SCLK (External Serial Clock Input) mbed DIP 30 (I2SRX_CLK) -> DAC MCLK (Master Clock) also needed an extra USB connector wired to mbed. Does not work with built-in USB. Code needs a bit of clean up.
Diff: I2S.h
- Revision:
- 0:bf9e7b99dda5
diff -r 000000000000 -r bf9e7b99dda5 I2S.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/I2S.h Mon Apr 16 08:28:42 2012 +0000 @@ -0,0 +1,10 @@ +#ifndef I2S_H +#define I2S_H + +#include "mbed.h" + +void setup(Serial *out); +void play(int16_t *buf,int16_t length); + + +#endif \ No newline at end of file