XU216-512-TQ128 without DAC's and ADC's problem

XCore Project reviews, ideas, videos and proposals.
mikandrzej
Junior Member
Posts: 7
Joined: Tue Jun 20, 2017 12:57 am

Re: XU216-512-TQ128 without DAC's and ADC's problem

Postby mikandrzej » Wed Aug 09, 2017 7:29 pm

Well, here are data from USB Analyser.

Code: Select all

0.000002416666667,I2S / PCM,Ch 2: 0x0599A500
0.000005250000000,I2S / PCM,Ch 1: 0xFA599900
0.000008083333333,I2S / PCM,Ch 2: 0xFA996600
0.000010916666667,I2S / PCM,Ch 1: 0x05599900
0.000013750000000,I2S / PCM,Ch 2: 0x05999600
0.000016583333333,I2S / PCM,Ch 1: 0xFA659600
0.000019416666667,I2S / PCM,Ch 2: 0xFA669600
0.000022250000000,I2S / PCM,Ch 1: 0x05665900
0.000025083333333,I2S / PCM,Ch 2: 0x0565A600
0.000027916666667,I2S / PCM,Ch 1: 0xFA666500
0.000030750000000,I2S / PCM,Ch 2: 0xFA5A5900
0.000033583333333,I2S / PCM,Ch 1: 0x0595A500
0.000036416666667,I2S / PCM,Ch 2: 0x05A59900
0.000039250000000,I2S / PCM,Ch 1: 0xFA969600
0.000042083333333,I2S / PCM,Ch 2: 0xFA969600
0.000044916666667,I2S / PCM,Ch 1: 0x05599500
0.000047750000000,I2S / PCM,Ch 2: 0x05699600
0.000050583333333,I2S / PCM,Ch 1: 0xFAA59900
0.000053416666667,I2S / PCM,Ch 2: 0xFA65E500
0.000056250000000,I2S / PCM,Ch 1: 0x05666500
0.000059083333333,I2S / PCM,Ch 2: 0x05A5A500
0.000061916666667,I2S / PCM,Ch 1: 0xFA965980
0.000064750000000,I2S / PCM,Ch 2: 0xFA999900
0.000067583333333,I2S / PCM,Ch 1: 0x059A5900
0.000070458333333,I2S / PCM,Ch 2: 0x05965A00
0.000073291666667,I2S / PCM,Ch 1: 0xFA659600
0.000076125000000,I2S / PCM,Ch 2: 0xFB976600
0.000078958333333,I2S / PCM,Ch 1: 0x05669600
0.000081791666667,I2S / PCM,Ch 2: 0x05665900
0.000084625000000,I2S / PCM,Ch 1: 0xFA599600
0.000087458333333,I2S / PCM,Ch 2: 0xFA669900
0.000090291666667,I2S / PCM,Ch 1: 0x05599A00
0.000093125000000,I2S / PCM,Ch 2: 0x05999600
0.000095958333333,I2S / PCM,Ch 1: 0xFA596600
0.000098791666667,I2S / PCM,Ch 2: 0xFA665900
0.000101625000000,I2S / PCM,Ch 1: 0x05599900
0.000104458333333,I2S / PCM,Ch 2: 0x0599A500
0.000107291666667,I2S / PCM,Ch 1: 0xFA666600
0.000110125000000,I2S / PCM,Ch 2: 0xFA999900
0.000112958333333,I2S / PCM,Ch 1: 0x05659600
0.000115791666667,I2S / PCM,Ch 2: 0x05665A00
0.000118625000000,I2S / PCM,Ch 1: 0xFA667600
0.000121458333333,I2S / PCM,Ch 2: 0xFA65A500
0.000124291666667,I2S / PCM,Ch 1: 0x05599900
0.000127125000000,I2S / PCM,Ch 2: 0x05A59600
0.000129958333333,I2S / PCM,Ch 1: 0xFA666600
0.000132791666667,I2S / PCM,Ch 2: 0xFA669600
0.000135625000000,I2S / PCM,Ch 1: 0x05665900
0.000138458333333,I2S / PCM,Ch 2: 0x05665900
0.000141291666667,I2S / PCM,Ch 1: 0xFA666600
0.000144125000000,I2S / PCM,Ch 2: 0xFAA59900
0.000146958333333,I2S / PCM,Ch 1: 0x05966500
0.000149791666667,I2S / PCM,Ch 2: 0x05666900
0.000152666666667,I2S / PCM,Ch 1: 0xFA999900
0.000155500000000,I2S / PCM,Ch 2: 0xFA666500
0.000158333333333,I2S / PCM,Ch 1: 0x05669900
0.000161166666667,I2S / PCM,Ch 2: 0x05996900
0.000164000000000,I2S / PCM,Ch 1: 0xFB65A500
0.000166833333333,I2S / PCM,Ch 2: 0xFA996600
0.000169666666667,I2S / PCM,Ch 1: 0x05A5A500
0.000172500000000,I2S / PCM,Ch 2: 0x07666500
0.000175333333333,I2S / PCM,Ch 1: 0xFA969600


after those frames, on the LRCK pin i have signal about 2,7MHz, and after about 400ms I have data on DATA pin (which is set to PORT_DSD_DAC0 mode).

Here You have capture file from Saleae logic analyser:
https://drive.google.com/file/d/0By-61E ... sp=sharing

If You want, then you can open it via Saleae Logic application (really tiny app without any ads).

I don't know what should I do now:)

Thanks for reply.

Regards:
Mikołaj
User avatar
infiniteimprobability
XCore Expert
Posts: 884
Joined: Thu May 27, 2010 10:08 am
Contact:

Postby infiniteimprobability » Thu Aug 10, 2017 5:49 pm

That doesn't look like DSD native data to me.

The bottom byte is zero and the top byte is the DSD marker for DoP:

Code: Select all

#define DSD_MARKER_1          0xFA
#define DSD_MARKER_2          0x05


anyhow, even in DoP mode an underflow in the device still should output DSD silence and not a zero.

I recommend putting prints in audio.xc to find out when the transition from/to DoP is happening. This feels like a host data issue to me (a single non DoP sample will cause a transition back to PCM mode)
mikandrzej
Junior Member
Posts: 7
Joined: Tue Jun 20, 2017 12:57 am

Postby mikandrzej » Thu Aug 10, 2017 6:44 pm

Well,


I found topic about problems with DSD in new "sw_usb_audio-[sw]_6.15.2rc1" firmware. When I download firmware "sw_usb_audio-[sw]_6.12.6" into my XMOS board, then DSD works perfectly.

I'm talking about this thread: viewtopic.php?f=37&t=5786&hilit=dsd

user AlexAdvice has the same problem like me ,but I don't know what changes I have to do in audio.xc (usb_audio_module).

Now DSD is working on old firmware, but I don't know if it is okay to work on older fw.

Regards



I think, that I does a mistake, because I should sample DATA on rising edge of BCLK istead of falling, so data were not correctly read.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 11 guests