The i2s_adc_dac example just mirrors the left and right channels into the built in DAC1/DAC2. But I want to get a 1khz tone from DAC1 and 1khz tone with 180 degree phase shift from DAC2.
How do I i2s_write to left/right channels separately?
How do I write to I2S/DAC in stereo?
Re: How do I write to I2S/DAC in stereo?
Bump.
This seems applicable for many different projects, no one has tried to use I2S DAC1/DAC2 independently?
This seems applicable for many different projects, no one has tried to use I2S DAC1/DAC2 independently?
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: How do I write to I2S/DAC in stereo?
If I recall correctly, the signal needs to be 32-bit interleaved. In other words, you take the 8-bit DAC values, multiply them by 256, then concatenate the resulting two 16-bit values to get a 32-bit value. You then feed those 32-bit values to the I2S driver.
Re: How do I write to I2S/DAC in stereo?
Hi. did you succede with stereo dac?
Who is online
Users browsing this forum: akolodner25, Google [Bot] and 117 guests