Hello,
I am trying to read chem id, voltages, current, from bq40z50 using smbus, i tried to communicate it with i2c module i am able to get acknowledgement from the device, but reading same data D000 when i want to read data from 0006(chem id), 0007,0005 location....
I want you to tell me the correct algorithm to read/ write data from register..
I am reading this way
first:0x16(device address)
wait for ACK
0x44
Wait for ACK
second:0x06(command word LSB)
wait for ACK
third:0x00(command word MSB)
wait for ACK
fourth:0x17(for READ)
wait for ACK
Send :0x44
Wait for ack
fifth:read the data 1byte
give ACK
READ second byte
give ACK
READ third byte
no ACK
give STOP condition.
am i correct?