I am trying to write to an AD5175(link to datasheet Below) and am not entirely sure I understand how. First I need to write to the Write Protection Bit with Command 7 to bit C1. Can someone explain what that means exactly? If I’m not mistaken, C1 is the bit address, but how do I specify the command 7? What would C1 be when I go to use the Wire.write Command and how do I translate that in the future?
Below is what I found from another post on this device, however this did not seem to work properly, or maybe Im just writing the value wrong.
Wire.begin(); Wire.beginTransmission(47); Wire.write((1) | 0x01); // Disable write protect on RDAC Wire.write(0xC2); // Wire.endTransmission();
Is this how you would write the Value(also Stolen From other Post)?
Wire.beginTransmission(47); Wire.write((Value / 256) | 0x04); Wire.write(Value % 256); Wire.endTransmission();