Time Misalignment

If you have a simple question and just want an answer.
Guest

Time Misalignment

Post by Guest »

Hello, 

I´m working with the XCORE-200 Audio. At time I´m using the Gigabit Ethernet I2S AVB endpoint example. My problem is, that the samples of an I2S channelpair are not in time alignment.

When I measure the audio stream with xScope in the "Audio Buffer Manager", it seems that everything is ok. No misalignment and CH1 is in buffer[0] and CH2 is in Buffer[1]. But when I look at the I2S data lines, it seems that first the right channels is transmitted and then the left. Some bug in the I2S driver?

I have attached an oszi picture, where I transmit an 10kHz sinewafe on audio CH1 - 4. The oszi channels are descripted on the picture below.

Thanks,
Sebastian
You do not have the required permissions to view the files attached to this post.
srinie
XCore Addict
Posts: 158
Joined: Thu Mar 20, 2014 8:04 am

Post by srinie »

Hi,

I ve not yet looked into the exact portion of the code, but my guess is that channel to buffer allocations are fixed, and it reflects well in the xscope.

May be, mapping to I2S data lines are based on the i2s configuration; can you double check this?

Regards,

srinie