We are using ADAU1452 evaluation board.
While testing with evaluation board the whole thing was fine. We got output as per our requirement. And then we made a customized board with similar schematics.
Tested with simple audio program (i.e Playing square signal at output side). the circuit is not working fine. What may be the problem. Kindly help us to resolve the problem. We are using AD1938 audio codec.
Please include your hardware schematics, your SigmaStudio schematics and PCB layout details. There can be many reasons why it is not working.
Are you able to readback levels from the DSP? Do the meters work?
Thanks for your reply. Kindly find the attachments of hardware and sigma-studio schematics
Let me make comments as I look at these pictures.
First, the codec. The ADC is differential. I would terminate the negative input with a cap to ground, 10uf is best but it could be smaller. It may not make too much of a difference but it may prevent issues in the future with RFI.
Your SigmaStudio schematic. Let me mention this just in case you missed it. Don't forget to actually turn on the oscillator. The checkbox is not checked in your screenshot so it will not be sending out anything.
It looks like your layout is only two layers. You may be able to get it to work with only two layers but the audio performance will suffer and you may get some clicks and pops from errors in the digital transmission.
It also looks like the decoupling on the power and ground pins are not done well. It is difficult to do with two layers. You might not have properly connected the PLL loop filter components on the codec and that can cause issues with it starting up. It is difficult for me to see for certain from the small screenshot.
So first, why don't we determine if the DSP is up and running.
Check that it has power. AVDD, DVDD, and IOVDD. Make sure they are clean and the correct voltage.
Check that the Master Clock signal is correct, I will assume 12.288MHZ and it looks good on a scope.
Next to follow your tests of just the output from the DSP.
Modify your SigmaStudio program to have a Readback and a DC cell so you can see if you are properly communicating with the DSP and it is loading the program. It should be setup like the picture below:
If you are reading a "1" then you are communicating.
You can also place a meter in your project and a volume control to see some signals and that it is alive.
Check the I2S signals coming from the DSP going over to the codec. The LRCLK and BCLK have to come from the DSP since the Codec is configured as a slave. See on a scope if you are getting data from the DSP.
Then check that it is actually getting to the correct codec pins.
Then check that the codec is getting master clock. Again, look at it on a scope.
Check that the ADC data is being transmitted. then see if it is getting to the DSP and that it is getting into the core.
So with all this it will give you an idea of the overall health of the system and hopefully you will find some anomaly that can be chased to find the source of the problem.
Oh,! One more small thing.
I would not recommend that you drive a diode directly from the DAC output. I would go through a transistor. I have done this before and was able to vary the brightness using the DAC. But it is too much current for the DAC to directly source or sink.
Thanks for your detailed reply.
I have another query, how to interface RGB led with adau1452 to know the battery status (i.e) Battery low, Battery charging, Battery charged. And i have inserted LED schematics.