I wanna use sc589 and AD1939 hardware platform.
And I try to use AD1939 hardware initation. So I just change some code to inite sport standlone.
But it's can't work.
If i output 3khz sine wave by I2S to 4 dac, the sound work fine.
Something would be wrong, but I just can't find the problem. please give me some tip.
We need a lot more information to be able to help you. What mode of operation are you trying to change to and at what sampling rate? So it works for I2S at what sampling rate?
What commands are you sending to the CODEC to set it up?
So when you make the change, what is that change?
I'm sure the other thing is be ok. just want to init sport 4a for rx and 4b to tx, those code are my sport initation code.
And AD1939 use 48k samplerate and I2S mode hardware standalone initation mode, just use default register setting.
Acorrding VDSP Project, The SPPORT CTL REG use DATA LEN 32, but from CCES demo project is setting DATA LEN 24 .
I am not the support specialist for the SC589. I was hoping someone else would chime in. I support the AD1939. You are correct to use it in standalone mode you do not and cannot change any of the settings. It will be expecting I2S at 48kHz.
Your question about the data length. I am not certain if this sets the number of bits in each channel. Then the 32 would make sense. For I2S you must have 32 bits per channel even though it is most likely only 24 bits of data. My suggestion is to pull out a scope and look at the data. Does the data look like I2S data and clocks? Have a look at this post I wrote a while back on how to look at I2S using an oscilloscope. https://ez.analog.com/thread/87319
This will tell you if you have the correct settings.