Using Audio slicekit with triangle port Topic is solved

If you have a simple question and just want an answer.
kecericksen
Junior Member
Posts: 5
Joined: Tue Nov 18, 2014 6:36 pm

Using Audio slicekit with triangle port

Post by kecericksen »

Hey,

 

I've been looking at the examples for the audio slicekit( BiQuad Filter, Loudness, short-delay etc) and I've got them to run just fine.  These are configured to run with the audio slice on the circle slot. I tried to do a little bit of experimenting to get the slicekit working on the triangle slot, to no avail.  

 

The ports are defined as follows. I find it a bit strange because it doesn't match up with the documentation on the website at all.

#define PORT_I2S_DAC0 XS1_PORT_1D

#define PORT_I2S_DAC1   XS1_PORT_1H
#define PORT_I2S_ADC0   XS1_PORT_1K
#define PORT_I2S_ADC1 XS1_PORT_1L
#define PORT_I2S_LRCLK XS1_PORT_1I
#define PORT_I2S_BCLK XS1_PORT_1A
#define PORT_MCLK_IN XS1_PORT_1E
 
#define PORT_GPIO XS1_PORT_4E
#define PORT_I2C XS1_PORT_4F
 
Function

TRIANGLE

CIRCLE

PIN

Description

BCLK

1A

1A

B2

I2S Bit Clock

DAC_DATA0

1D

1D

B4

I2S DAC DATA Channel 0

MCLK

1E

1E

A3

I2S Master Clock

LRCLK

1H

1H

A4

I2S LR Clock

SPDIF_OUT

1K

1K

B10

SPDIF transmit

UART_RX

1I

1I

B15

I2S ADC DATA Channel 0

I2C_SCL

1L

1L

A15

I2S ADC DATA Channel 1

MIDI_IN

1J

1J

A8

From MIDI Connector

MCLK_FSEL

4E1

4E1

B7

MCLK Function Select

CODEC_RST_N

4E2

4E2

A6

Codec Reset

LED

4E3

4E3

A7

User LED output

SCL

4F0

4F0

B9

I2C clock for codec configuration

SDA

4F1

4F1

B11

I2C data for codec configuration

DAC_DATA1

8D0

1M

B12

I2S DAC DATA Channel 1

PLL_SYNC

1P

1P

B18

PLL

MIDI OIUT

8D7

NC

A13

To MIDI connector

 
I'm assuming that the code is the correct information, as it works perfectly fine in the circle slot.  I suppose the main question that this has been leading up to is: What do I need to do to get the program working on the triangle slot? From what I understand, the only change would be changing 
 
on stdcore[AUDIO_IO_TILE]: audio_io( c_aud_dsp ); // Audio I/O coar
 
to where AUDIO_IO_TILE is 0 instead of 1. But it doesn't seem to work at all. 
 
Could anybody shed some light on this for me?
 
Thanks.
View Solution
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Add module_slicekit_support to the makefile and build the code and run it.

 

Added in the Q&A section for the benefit of others.

Forum: http://www.xcore.com/forum/viewtopic.php?f=8&t=3095