Comments (9)
@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.
@SCWhite Thank you for your prompt reply. It will keep me engaged in this work :-)
from 16soundsusb.
@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.
@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.
@doumdi Thank you very much.
I'll test them immediately.
from 16soundsusb.
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.
@SCWhite, I have also added the diff file in the master branch for main.xc in the module_usb_audio.
from 16soundsusb.
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.
@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)
- Interfacing with Xilinx Boards HOT 1
- [SUGGESTION] Multichannel Audio DSP Field Mixer Recorder project collaboration HOT 2
- About uploading the firmware HOT 2
- 16SoundsUSB open source board debugging records and issues HOT 19
- Clarification on firmware patching/flashing HOT 3
- Error when uploading the firmware HOT 2
- Need to support 192kHz and 384kHz, how to modify HOT 1
- Can Android be used HOT 1
- Inquiry about compatibility of multiple microphone arrays HOT 2
- microphone RJ45 HOT 18
- firmware load problems
- Programmable only after desoldering resistor PLL R118
- Please tell us what you do with 16SoundsUSB HOT 6
- Is 4-wire RJ11 cable NOT supported by the 16SoundsUSB? HOT 3
- I can not compile HOT 5
- xrun: Cannot load image, XCore 0 is not enabled HOT 3
- Getting started - Interface configuration and flashing firmware HOT 3
- Supported Operating Systems HOT 4
- What is the adc pin output when no input channel is connected for both TDM/I2S? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 16soundsusb.