Help with controling a PCM1792

Status
Not open for further replies.
Ok I make some headway but still having issues but hopefully somebody can help me out.

I got everything hooked up and was doing a serial.print to display the ack and I tried reading the register and some times it would be the right data along with the ACKs being 0's.

But some times I get errors. I have crystal from the DSP in the CDP going to the clk on the new DAC and im using an arduino to communicate to the DAC. I think my issue from here is syncing the arduino to the DAC and clk of the DSP.

Any ideas on what to do?
 
In general

1- You set certain pins to enable s/w mode in the DAC.

2- Then after connecting the Arduino I2C to the DAC's I2C pins (making sure either that your DAC is 5V tolerant or by using a level shifting to convert 5V to 3.3V), You can start writing values to the registers of the DAC.

3- After power up, wait a little bit in the Arduino before starting writing values into the registers.

4- Try writing only to the registers you need to configure. At power-up, registers reset to some default value and if you don't need to change those values, don't write to them. Some registers are write only, some read only.

arduino.cc has a lot of examples on how to use the libraries.



BTW, I've never done any kind of programming of this sort, so I started from scratch, If you read my blog starting from the oldest post, it should give you some idea as to where I found relevant information to learn how to program the Arduino.

Hope this helps.
 
Last edited:
Status
Not open for further replies.