volume controller

Technical discussions around xCORE processors (e.g. General Purpose (L/G), xCORE-USB, xCORE-Analog, xCORE-XA).
ast8346
Active Member
Posts: 39
Joined: Mon Jan 05, 2015 12:58 am

volume controller

Post by ast8346 »

Hi

I am currently researching into options to connect an analogue volume controller to one of the XMOS XU devices. The controller in mind is this one
http://www.njr.com/semicon/PDF/NJW1194_E.pdf

This device specifies 3-wire serial control (Data, Clock, Latch). I wonder if I could use any of existing libraries as a starting point for programming?

The idea is to have XU-series device to perform in a slave mode as a usb transciever, spdif controller and *ideally* to control volume controller as well.

Thanks


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

Post by infiniteimprobability »

That looks just like SPI mode 2 (CPOL:1 , CPHA 0), with 16b data..

lib_spi is a good starting point - Here's the app note

https://www.xmos.com/download/private/A ... rc1%29.pdf
You do not have the required permissions to view the files attached to this post.
ast8346
Active Member
Posts: 39
Joined: Mon Jan 05, 2015 12:58 am

Post by ast8346 »

Excellent. Thank you very much :)