Changing pinouts for USB Audio?

New to XMOS and XCore? Get started here.
Post Reply
RobV
Junior Member
Posts: 6
Joined: Sun Mar 29, 2015 5:13 am

Changing pinouts for USB Audio?

Post by RobV »

Okay, I feel dumb asking this question, but how do you change the pinouts!?!

So for example, if I wanted to use a modified version of the multifunction audio code with a custom board and I needed to change the pinout for I2S_SCLK from X0D0 to X0D1, how would I do that?

Amongst all the provided code, I can't seem to fine where all the specific pinouts are actually defined...

Thanks,
Rob.


User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Post by Bianco »

Best bet is to check the XN file.
If that does not result in anything, trace the port variable and/or get a file searching tool and search for all references of I2S_CLK and XS1_PORT_1A. It needs to be defined somewhere :p
RobV
Junior Member
Posts: 6
Joined: Sun Mar 29, 2015 5:13 am

Post by RobV »

Okay,

I figured it out, if I open the hardware define file, in my case xk_usb_audio_u8_2.xn two small tabs appear in the lower left hand corner of the window the file is opened in. If I click on the source tab (design seems to be displayed by default) all the pin declarations are given and are available to modify.

The USB audio code sure is nice, but holy-moley! What a learning curve!

Thanks,
Rob.
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Did you see the USB Audio Design Guide? That should give you a good background
Post Reply