Other Parts Discussed in Thread: BQ25703, , EV2400
I am experiencing issues trying to set parameters on the BQ25703 when trying to write the data directly to the registers over I2C.
The issue I am having is that I cannot get it to retain the data I send, for example I send/read back the following (MSB followed by LSB, although I am sending the LSB first as according to the datasheet):
ChargerOption0:
Send: 00000010 00001000 Read back: 00000001 00001000
ChargerOption1:
Send: 10000010 00010001 Read back: 00110001 00010000
ChargerOption2:
Send: 00000010 00110101 Read back: 00110011 00110101
ChargerOption3:
Send: 00000001 00000000 Read back: 00110000 00000000
The same happens with all the other registers when I try to read the data back from them.
The code I am using to send looks as follows (this is for ChargeOption2):
