Circuit setup exactly as in CN0349.
I can read and write i2c just fine with the AD5934. However, I can only write once to the ADG715. Subsequent writes to the ADG715 do not change the switch settings or the feedback data from the AD715 (another way of saying this is that subsequent reads from the AD715 are always equal to the first value I sent).
I have tried writing and reading only to the ADG715, before doing anything with the AD5934. In doing so, this is what I tried:
I tried setting the switch to 0x12 then to 0x81. The second write failed to send an acknowledge..
I tried setting the switch to 0x12, reading it back which returned a value of 0x12, then setting 0x81, and then reading back the value. The second read still read 0x12. At least it did not have a problem with the second write!
I tried setting the switch to 0x12, reading it back which returned a value of 0x12, then setting 0x00, and then reading back the value, the second read still read 0x12.
So, what could be going wrong here? Is there some sequence that needs to be followed after initially setting the switch?
typo where I wrote that the "second read still read 0x00" should read "second read still read 0x12"
[edited by: PEMFC at 9:23 PM (GMT -5) on 29 Jan 2021]