Giter Site home page Giter Site logo

About using 16SoundsUSB about 16soundsusb HOT 9 CLOSED

introlab avatar introlab commented on June 26, 2024
About using 16SoundsUSB

from 16soundsusb.

Comments (9)

doumdi avatar doumdi commented on June 26, 2024 1

@SCWhite. No, those changes should not be done in audiohw.xc and were done to test clock signals. I suggest you add information to a new markup file (ASSEMBLY_NOTES.md?) and make a pull request. What is happening with the LEDs exactly?

from 16soundsusb.

jiangjiang4563 avatar jiangjiang4563 commented on June 26, 2024 1

@SCWhite Thank you for your prompt reply. It will keep me engaged in this work :-)

from 16soundsusb.

doumdi avatar doumdi commented on June 26, 2024

@SCWhite Try to upload and run the firmware from XTimeComposer using the XTAG adapter and verify if you get error messages when USB starts to connect.

from 16soundsusb.

doumdi avatar doumdi commented on June 26, 2024

@SCWhite, The first thing I would verify using a scope is the I2C communication to CS2100-CP-CZZ (Clock generator), CS4384 (DAC), CS5367 (ADC x2). Check for NACKs, transmission errors, etc. Make sure the two CS5367s are on different I2C addresses (PIN 37, 38). The firmware will fail (assert) if I2C communication does not work and restart. The codecs are configured after USB is initialized by Linux usb_audio driver and sets the sampling rate. So you need to plug USB to the computer for testing.

from 16soundsusb.

SCWhite avatar SCWhite commented on June 26, 2024

@doumdi Thank you very much.
I'll test them immediately.

from 16soundsusb.

SCWhite avatar SCWhite commented on June 26, 2024

OK, I got it working on my device. It can be recognized as a usb device.
Thanks for pointing out to check I2C, you are the best.
(but the led is still strange though)

Another question, is this change from issue #13 necessary for the project ?
file: "audiohw.xc"

from @blursj
1.
void AudioHwInit(chanend ?c_codec)
{
#if !(defined(SPDIF_RX) || defined(ADAT_RX)) && defined(USE_FRACTIONAL_N)
/* Output a fixed sync clock to the pll /
// configure_clock_rate(clk_pll_sync,100,100/(PLL_SYNC_FREQ/1000000));
configure_clock_rate(clk_pll_sync, 100, 100);//100000000/PLL_SYNC_FREQ);
configure_port_clock_output(p_pll_clk, clk_pll_sync);
start_clock(clk_pll_sync);
#endif
2.
#if !(defined(SPDIF_RX) || defined(ADAT_RX))
/
Choose a frequency the xcore can easily generate internally */
//#define PLL_SYNC_FREQ 1000000
#define PLL_SYNC_FREQ 94000//1000000 //94000 for no driver,86000 no use
#else
#define PLL_SYNC_FREQ 300
#endif

if so, I can sum up and whrite a few procedure/instruction for using this project.

Thanks again

from 16soundsusb.

doumdi avatar doumdi commented on June 26, 2024

@SCWhite, I have also added the diff file in the master branch for main.xc in the module_usb_audio.

from 16soundsusb.

jiangjiang4563 avatar jiangjiang4563 commented on June 26, 2024

hi, sir, did you get it to work properly and do you know if a computer supports two such devices at the same time

from 16soundsusb.

SCWhite avatar SCWhite commented on June 26, 2024

@jiangjiang4563 Yes, I can confirm this project works properly (even magnificently)
and a normal computer (in my case linux and windows) are able to support more than one device at the same time.

from 16soundsusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.