Page 2 of 5

Re: Audio codec shield with Intel Edison

PostPosted: Wed Aug 12, 2015 10:10 am
by youthreewire
I generated 8khz,4khz and 2 khz waves on a pin and gave it as interrupt to another pin and the ISR is able to work at these frequencies. So what shall I do now and how important is the 11mhz signal from the CLKOUT pin of the codec. How do I sync my 8khz wave with the 11mhz signal. Should I use additional hardware like counters or some other ICs etc. Please guide me on this. The good news is that the ISR can work at 8khz.

Re: Audio codec shield with Intel Edison

PostPosted: Wed Aug 12, 2015 12:04 pm
by guest
an external counter would be the easiest thing. if the edison can accept 3.3V logic signals in, then something like a 74HC4040 would be fine.

Re: Audio codec shield with Intel Edison

PostPosted: Wed Aug 12, 2015 8:08 pm
by youthreewire
But even if we are able to catch the interrupt at 8khz or 4khz or 2Khz we will have to synch it with the SPI clock. The high level SPI.Transfer function in the edison is inducing delay. We will be needing access to the bare metal code of the edison to sync the SPI transfers.I have asked for the bare metal code in the edison forum but I do not know if they will provide me.

Re: Audio codec shield with Intel Edison

PostPosted: Wed Aug 12, 2015 8:13 pm
by youthreewire
I have never used a counter earlier. So how does this work?Instead can we use the arduino as the counter IC? Edison arduino board can accept 3.3V and even 5v. I think it should be possible as the ISR already does that.

Re: Audio codec shield with Intel Edison

PostPosted: Thu Aug 13, 2015 11:15 am
by guest
sure, you can use the arduino as a counter, just take the old SS signal out and send it to the interrupt on the edison. the delay probably wont be a problem, as long as its a consistent delay (the exact same amount every time).

Re: Audio codec shield with Intel Edison

PostPosted: Wed Sep 02, 2015 12:33 pm
by guest
somone else has been working on this as well, and have the DAC functioning:
http://www.malinov.com/Home/sergey-s-bl ... odecshield

im skeptical that it is a robust solution, as it operates the codec in slave mode, but does not supply a clock. but it is working.

Re: Audio codec shield with Intel Edison

PostPosted: Thu Sep 17, 2015 10:01 pm
by youthreewire
But how will get access to lin,rin and lout and rout. I tested the codec configuration with I2C by just using BYPASS.My code works but I have not been able to get the I2S/SPI working (there is too much clock cycle delay). So now if I follow sergey's setup how will I get access to lin,rin and lout,rout?

Re: Audio codec shield with Intel Edison

PostPosted: Thu Sep 17, 2015 10:43 pm
by youthreewire
I think I will have to look into alsa programming. So do you know about a sample code to capture and playback like one of your arduino examples with the shield?

Re: Audio codec shield with Intel Edison

PostPosted: Thu Sep 17, 2015 10:58 pm
by youthreewire
I came across this loopback program but it does not say anything about lout,lin and rout,rin.
https://github.com/zonque/simple-alsa-l ... ter/loop.c

Re: Audio codec shield with Intel Edison

PostPosted: Fri Sep 18, 2015 2:32 am
by youthreewire
In which forum should I post the questions on ALSA?