I am trying to use the I2C to communicate with the LTC2631 chip.
After trying many different things I simplified my code to the following:
#include <Wire.h>
void setup() {
Serial.begin (9600);
while (!Serial)
{
}
Wire.begin();
Serial.println("begin");
Wire.beginTransmission (0x73); // global address for the chip. found on the data sheet. also tried x67 (backwards x73)
Serial.println("trans");
Wire.write(100);
Serial.println("write");
Wire.endTransmission ();
Serial.println("end");
} // end of setup
void loop() {}
The output to this code is:
begin
trans
write
my theory for the reason it is not working is because i am not sending the write bits in the right order. from the data sheet page 23 it shows the proper transmission required to communicate with the chip and I am not sure how to send the "S bit" at the beginning, the "W bit" found after the slave address or the content of the input words. I am not entirely sure what to send/receive to make it work.
the data sheet of the chip can be found here: Mixed-signal and digital signal processing ICs | Analog Devices
any help would be appreciated.
Thanks in advance.