XS1-L1 USB Audio

New to XMOS and XCore? Get started here.
anitha
New User
Posts: 3
Joined: Tue Jun 26, 2012 5:41 am

XS1-L1 USB Audio

Post by anitha »

Hi

I am using Xs1-L1 Usb Audio Kit. Trying to do audio loopback using I2S and I2C. The code exits whenever trying to readback the value from the address as shown below:

REGWR_CODEC(0x04, 0b00001001);
assert(REGRD_CODEC(0x04) == 0b00001001);

Can i get any working audio loopback example on Xs1-L1 using I2S&I2C.

Regards
Anitha
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

I'm confused, do you mean this board? http://www.xmos.com/products/development-kits/usbaudio2

The CODEC is used in "stand alone" mode, and do not use any I2C, only I2S.
anitha
New User
Posts: 3
Joined: Tue Jun 26, 2012 5:41 am

Post by anitha »

Thanks for the quick response.

Yes i am using the same Hardware Xs1-L1 Usb Audio 2.0 (Usb Audio 2.0 software reference design is working fine on this).
Is it possible to do a standalone audio loop back testing using I2S with Analog Stereo Jack In & Out, without using USB.

I am able to do small programs like leds on/off, push buttons. I have tried the sc_i2s from github, but this code is for L2 sytem.
Can i get any working examples for XS1-L1 Usb Audio 2.0 system.

Regards
Anitha
anitha
New User
Posts: 3
Joined: Tue Jun 26, 2012 5:41 am

Post by anitha »

I got to work I2S audio loopback code on Xs1-L1 Usb Audio 2.0 Hardware. But audio is coming with noise added. Even nothing is played on the PC i hear noise continuously. What is the reason for this behavior?

Thanks