Audio codec shield with Intel Edison

Re: Audio codec shield with Intel Edison

Postby youthreewire » Wed Aug 12, 2015 10:10 am

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.
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

Re: Audio codec shield with Intel Edison

Postby guest » Wed Aug 12, 2015 12:04 pm

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.
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm

Re: Audio codec shield with Intel Edison

Postby youthreewire » Wed Aug 12, 2015 8:08 pm

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.
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

Re: Audio codec shield with Intel Edison

Postby youthreewire » Wed Aug 12, 2015 8:13 pm

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.
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

Re: Audio codec shield with Intel Edison

Postby guest » Thu Aug 13, 2015 11:15 am

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).
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm

Re: Audio codec shield with Intel Edison

Postby guest » Wed Sep 02, 2015 12:33 pm

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.
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm

Re: Audio codec shield with Intel Edison

Postby youthreewire » Thu Sep 17, 2015 10:01 pm

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?
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

Re: Audio codec shield with Intel Edison

Postby youthreewire » Thu Sep 17, 2015 10:43 pm

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?
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

Re: Audio codec shield with Intel Edison

Postby youthreewire » Thu Sep 17, 2015 10:58 pm

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
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

Re: Audio codec shield with Intel Edison

Postby youthreewire » Fri Sep 18, 2015 2:32 am

In which forum should I post the questions on ALSA?
youthreewire
 
Posts: 117
Joined: Tue Jun 09, 2015 8:06 pm

PreviousNext

Return to Audio Codec Shield

Who is online

Users browsing this forum: Bing [Bot] and 1 guest


cron