I2S codec... - diyAudio
Go Back   Home > Forums > Source & Line > Digital Line Level

Digital Line Level DACs, Digital Crossovers, Equalizers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 21st July 2010, 12:10 PM   #1
diyAudio Member
 
wildswan's Avatar
 
Join Date: May 2006
Question I2S codec...

Hi!
I'm trying to use I2S to interface an ARM micro to a PCM3060 codec using I2S. I'm just feeding it a ramp function using my code.

The trouble is that nothing comes out of the codec!

I don't have a logic analyser, so the best I can do is measure the clocks using my analog scope. There seems to be data on the SD line.

I'm using 2 x 16bit channels at 44100 with the MCU as master.

Here are my measured clocks:

MCK: 11.63 MHz
CK: 2.86 MHz (BCK)
WS: 45.45 kHz

So CK/WS = 62.9 and MCK/WS = 255.9

Do these clocks seem ok enough for the format? I'm trying to figure out if my codec's broken. It'll take me a few days to get my hands on a new one...I'd like to make sure it's not just me being dumb first!

Last edited by wildswan; 21st July 2010 at 12:15 PM. Reason: Mistakes!!!
  Reply With Quote
Old 21st July 2010, 12:49 PM   #2
sjalloq is offline sjalloq  United Kingdom
diyAudio Member
 
Join Date: Feb 2006
Location: Cambridge
Send a message via MSN to sjalloq
That looks like it has been set up for 32-bit data.

2x32x44100 = 2.8224 MHz

Perhaps your BCK divider is wrong and needs to be x2.
  Reply With Quote
Old 21st July 2010, 01:36 PM   #3
diyAudio Member
 
wildswan's Avatar
 
Join Date: May 2006
Hi sjalloq, indeed it was! Thanks for that. I fixed that value, so now the clocks are running at:

MCK: 11.63 MHz
CK: 1.46 MHz (BCK)
WS: 45.45 kHz

Still nothing from the codec. Just noticed offset of 1v on the + output and 1.5v on the - output.

I think it might be time to swap the codec after all....
  Reply With Quote
Old 23rd July 2010, 04:47 PM   #4
diyAudio Member
 
wildswan's Avatar
 
Join Date: May 2006
Ok I just swapped the codec, to no avail :-( Still nothing out.
  Reply With Quote
Old 30th July 2010, 03:07 PM   #5
diyAudio Member
 
wildswan's Avatar
 
Join Date: May 2006
Doh! Fixed the problem. Set the codec to hardware control to eliminate config options, then discovered i was sending 16 bit frames.

Set up microcontroller to send 24 bits in 32 bit frames and all is working! Thanks sjalloq
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I2S from Juli@ PCI sound card wackyterbacky Digital Line Level 27 13th September 2010 05:28 PM
mod sound card for grab I2S signal nicoch58 Digital Source 0 11th April 2007 02:54 PM
USB audio codec with SPDIF or I2S out bocka Digital Source 9 15th June 2005 08:31 AM
What CODEC would you choose? bimbla Digital Source 2 28th March 2005 06:39 PM


New To Site? Need Help?

All times are GMT. The time now is 09:58 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2