- It is currently Fri Aug 19, 2022 12:09 am • All times are UTC - 8 hours [ DST ]
[SOLVED]Audio codec shield with Arduino Due
Re: Audio codec shield with Arduino Due
That piece of code just counts the ISR serviced. I removed it in my latest fix. But as you said a delay in the ISR should not effect the frequency at which ISR appears.It is strange.
- youthreewire
- Posts: 117
- Joined: Tue Jun 09, 2015 8:06 pm
Re: Audio codec shield with Arduino Due
I remember you telling me that the codec in your shield is working in DSP mode B. How do I set it to I2S mode ?
- youthreewire
- Posts: 117
- Joined: Tue Jun 09, 2015 8:06 pm
Re: Audio codec shield with Arduino Due
- Attachments
-
- connctions.jpg (63.45 KiB) Viewed 13180 times
- youthreewire
- Posts: 117
- Joined: Tue Jun 09, 2015 8:06 pm
Re: Audio codec shield with Arduino Due
on the codecshield, there is only 1 BCK and 1 LRCK, but the DUE has 2 of each. how are you connecting these up? also, be sure to setup the DUE as I2S master. then take a look at the signals on the scope to see if they look right (match the format shown in the datasheet).
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
Re: Audio codec shield with Arduino Due
Back to the old code(not using the Hi-Fi ibrary) ,I am attaching the scope plots. The yellow one is the SS (slave select) pin wave and the green one is the SPI clock.Their units are also different.One is in micro seconds where as the other is in nano seconds.I dont know if the graphs are right and mean what you mentioned that the SS pin cycle needs to match with the first clock cycle of the SPI.
zoomed in
zoomed out.
The SS pin high (yellow) appears to come before the SPI transfers(green) but I do not know what the alignment should look like
- IMG_20150731_121925.jpg (200.75 KiB) Viewed 13172 times
zoomed in
- IMG_20150731_121942.jpg (180.91 KiB) Viewed 13172 times
zoomed out.
- IMG_20150731_123200.jpg (193.95 KiB) Viewed 13172 times
The SS pin high (yellow) appears to come before the SPI transfers(green) but I do not know what the alignment should look like
- youthreewire
- Posts: 117
- Joined: Tue Jun 09, 2015 8:06 pm
Re: Audio codec shield with Arduino Due
Should it look like this?I dont know what correspond to what? Is the LRC the SS pin wave? And BCLK the SPI Clock?
- clock wm8732 DSP mode B.jpg (40.25 KiB) Viewed 13170 times
- youthreewire
- Posts: 117
- Joined: Tue Jun 09, 2015 8:06 pm
Who is online
Users browsing this forum: No registered users and 1 guest