Other Parts Discussed in Thread: BQ25792, TIDA-050047
I am using Arduino to read address 0x09 (DATA1)
Without performing any writes, first 4 bytes are reading back as [64, 0 , 0, 0]. Should this not be all zeros?
The first byte returned is always 64. Even after i write [107, 28, 1] I am still reading back [64, 28, 1, 0].
Please help. My code definitely talks to the IC and writes at least the 2nd/3rd bytes. My code definitely reads register 0x09 but why is the first byte always 64?
I am using ardunio uno, the following code:
Wire.beginTransmission(0x21); //start the communication with IC
Wire.write(0x09);
Wire.endTransmission(true);
//request 4 bytes from device
Wire.requestFrom(0x21, 4);
if (Wire.available()) {
for(int i=0; i<4; i++) {
dataArrayRead[i] = Wire.read();
Serial.print("4CC: ");
Serial.print(dataArrayRead[i]);
Serial.println();
}
}