Help explain weird waveform by i2s DAC

Attachments

  • IMG_1877.jpeg
    IMG_1877.jpeg
    506.3 KB · Views: 37
  • IMG_1876.jpeg
    IMG_1876.jpeg
    427.2 KB · Views: 35
Hi, I'm working on a 2 in 6 out crossover for my audio system. I have a wondom apm2 with 4 dacs + 4 i2s out, so I had to add an external dac as well (https://www.audiophonics.fr/en/dac-and-interface-modules/dac-pcm5102mk-i2s-p-10551.html).

Tried setting up a 500hz test signal on all outputs in Sigma Studio and got this. dac{0,1,2,3} look like the purple while dig{0,1} look like the green.

Any clues why this is?
When using the Tone unit, you need to pay attention. It outputs directly at 0dBFs, which means that your output unit has reached full amplitude.

But your problem is probably caused by the inconsistent alignment of the audio format.
 
  • Like
Reactions: 1 user
I'd start by checking the I2S settings first. The DAC has a jumper that selects either I2S or Left Justified (LJ) mode. I attached a screenshot of the 1701's I2S settings. IIRC these are the defaults. The 1701's crystal on that board is 12.288 MHz. The 1701's internal clock is 4 times that or 49.152 MHz. So:

Frame Sync Type = LRCLK
Frame Sync Freq = internal clock / 1024 = 48 KHz
MSB Position = delay by 1 if DAC jumper is in I2S position, delay by 0 if DAC jumper is in LJ position
Word length = whatever you want
BCLK Frequency = internal clock / 16 = 3.072 MHz

Also remember the max 1701 DAC voltage is 0.5 V while the max PCM5102 DAC voltage is 2.0 V.

Hope this helps...

ADAU1701 I2S settings.jpg
 
  • Like
Reactions: 1 user
Looks like 'digital wrap-around' i.e. too much gain somewhere.
Thanks, this was it. Tried to play around with I2S settings but got an even more messed up waveform. Putting a -20dB volume control in Sigma Studio solved it.

A bit worried still that it's caused by improper settings like @abraxalito said and I now just put a band aid on top :). Works though.