SW configuration of I2C interface on XMOS chip in MFA kit

If you have a simple question and just want an answer.
amninder
Member++
Posts: 30
Joined: Mon Dec 15, 2014 9:03 pm

SW configuration of I2C interface on XMOS chip in MFA kit

Post by amninder »

I am using the Multi Function Audio(MFA) kit for evaluation related to USB audio project I am working on.

I am looking for a way to configure (read/write) I2C interface on XMOS device from my PC. Is there a SW document that explains how to access and control the interfaces (esp I2C) on the XMOS device used in MFA kit. Do I need to have the USB 2.0 drivers from Thysecon to do it?

User avatar
infiniteimprobability
Verified
XCore Legend
Posts: 1164
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

The system already does something like this. For example, when setting sample rate (or stream format - PCM vs DSD) the firmware reconfigures the DAC over I2C. The sample or stream format command is sent via the driver over USB EP0. So - an action on the host causes an I2C transaction on the device. Take a look at audiohw.xc in the ref design which calls the I2C functions.

 
You don’t specify what type of commands you wish to send, or how they are initaited, which will in turn define USB class you wish to use to bridge between the host and device. That will in turn define the device side of things. There are loads of generic USB to “x” app notes (HID, Serial, USBTMC, CDC..)which may be useful. Many of these are "driverless" which means that the driver is included in a typical host OS.
Engineer at XMOS