I am trying to interface with ad5301 via i2c. I understand that the ID is 0xC since the chip is 6 pin
configuration (6-Lead SOT 23). It seems that I can write to the dac via the I2c driver but the reads are not
showing the value I wrote:
value written value read
I understand that the write is: x x PD1 PD0 D7 D6 D5 D4 D3 D2 D1 D0 x x x x
and read is: D7 D6 D5 D4 D3 D2 D1 D0
I also understand the i2c protocol with start cond, followed by address byte, followed by ack,
followed by R/W bit followed by the data, etc.
I was wondering if there is a c code that does this? Or a psuedo code?
Since the DAC does not have a register to read or write to, is there a special way to communicate with the DAc via the i2c?
Is there something that needs to be done to the DAC?