Audio Examples with XA-SK-AUDIO-PLL slice

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Post Reply
wtj104
Junior Member
Posts: 4
Joined: Thu Aug 28, 2014 1:04 pm

Audio Examples with XA-SK-AUDIO-PLL slice

Post by wtj104 »

I'm trying to run the audio demo applications (app_slicekit_loudness for example) with an XA-SK-AUDIO-PLL 1v0 slice.

I tried redefining the ports in "app_global.h" to match the PCIE pinout shown on the schematics:

Code: Select all

#define PORT_I2S_DAC0    XS1_PORT_1O // was XS1_PORT_1D
#define PORT_I2S_DAC1    XS1_PORT_1H
#define PORT_I2S_ADC0    XS1_PORT_1J  // was XS1_PORT_1K
#define PORT_I2S_ADC1    XS1_PORT_1L
#define PORT_I2S_LRCLK   XS1_PORT_1I
#define PORT_I2S_BCLK    XS1_PORT_1K  // was XS1_PORT_1A
#define PORT_MCLK_IN     XS1_PORT_1E

#define PORT_GPIO        XS1_PORT_4E
#define PORT_I2C         XS1_PORT_8D   //was XS1_PORT_4F
and changed the bit mask in "xa_sk_audio_1v0.h" to put the CODEC_RST_N signal in the right place:

Code: Select all

#define P_GPIO_COD_RST_N     0x01
#define P_GPIO_MCLK_SEL      0x02
#define P_GPIO_SS_EN_CTRL    0x04
#define P_GPIO_LED           0x08
...but I don't get any results. Am I making mistake in my mapping, or are one of the other GPIO port mappings causing problems?


User avatar
Ross
XCore Expert
Posts: 966
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

My guess is you need to setup the PLL and output a reference clock to it since I do not expect that example uses the PLL slice.
Post Reply