HI,
I have a question regarding PCM5122 and its configuration settings; I would like to configure this DAC via I2C, and I'd like to program the MCU to configure it and stream data to it via I2S, in C.
Apparently, I am unable to figure out exactly how to do this. This page/register index mechanic has totally confused me and I am not managing to find my way around the datasheet at all.
One of the things I can't seem to understand is what exactly are the registers' addresses I need, and, after that, in which order should I send the configuration data.
If you could explain to me how to determine the addresses of the registers I require, i.e. what should I send via I2C:
i) right after sending the chip address
(in my case, 0b1001100[R/W], since my ADDR1 and ADDR2 pins are connected to the ground), and
ii) just before sending the configuration data,
that would be really great.
Even better, if you could share some code snippet in C, containing basic configuration for the chip via I2C, along with brief explanations of what configuration parameters are used, that would be super great.
Thanks in advance!
Regards,
Marko