I've been trying to get my DUE to control an AD5669R DAC through the I2C bus. I use pin 20 and 21 (SDA and SCL) and connected it directly to the SCL and SDA pins in my AD5669R board. Nothing happened, so I tried to look at the output through an oscilloscope to see what was being sent. It seems that I see some output, but it makes no sense as to the data that I send. The clock rate seems okay, but the amount of data is not right. IE. I send 3 bytes of data, but only see 8 clock cycles.
For now, I've been just testing with a simple code (as shown below) and I really have no clue what is wrong.
Wire.begin(); Serial.begin(9600); byte address = 0x54; byte command = 0x3F; byte data1 = 0x4E; byte data2 = 0x20; Wire.beginTransmission(address); Wire.write(command); Wire.write(data1); Wire.write(data2); Wire.endTransmission();
Thanks for any help.