Porting app_usb_aud_xk_216_mc to xCore-200 explorer. Which USB pins?

Discussions about USB Audio on XMOS devices
syl
New User
Posts: 2
Joined: Thu Jun 01, 2023 8:55 pm

Porting app_usb_aud_xk_216_mc to xCore-200 explorer. Which USB pins?

Post by syl »

Hello,

I have cloned the repository at app_usb_aud_xk_216_mc and copied the template *.xn file from the xCore-200 explorer board
to define my own pins for the peripherals.

Unfortunately, the xCore-200 explorer PDF won't tell me which pins I need to define in the *.xn file for USB communication.
The port names in question are:
<Port Location="XS1_PORT_1H" Name="PORT_USB_TX_READYIN"/>
<Port Location="XS1_PORT_1J" Name="PORT_USB_CLK"/>
<Port Location="XS1_PORT_1K" Name="PORT_USB_TX_READYOUT"/>
<Port Location="XS1_PORT_1I" Name="PORT_USB_RX_READY"/>
<Port Location="XS1_PORT_1E" Name="PORT_USB_FLAG0"/>
<Port Location="XS1_PORT_1F" Name="PORT_USB_FLAG1"/>
<Port Location="XS1_PORT_1G" Name="PORT_USB_FLAG2"/>
<Port Location="XS1_PORT_8A" Name="PORT_USB_TXD"/>
<Port Location="XS1_PORT_8B" Name="PORT_USB_RXD"/>

Any help greatly appreciated!


syl
New User
Posts: 2
Joined: Thu Jun 01, 2023 8:55 pm

Post by syl »

I figured out I just had to change the Makefile and the Pin Map was fine.

Now the question is if I can add crystal oscillators on an external PCB for 44.1/48kHz clocks, or can the XMOS generate these clocks?
User avatar
Ross
XCore Expert
Posts: 966
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Only xcore.ai (XS3 based) devices can generate those clocks since it has an additional PLL. xcore-200 (XS2 based) devices cannot generate those clocks internally.