Other Parts Discussed in Thread: BQ25619
Tool/software:
I hope this isn't too dumb a question but:
I am trying to access a BQ27545 chip (embedded in a LiPo Battery Pack) using I2C interface but I don't quite understand the command format. It says in the Data Sheet (page 26) "The bq27545-G1 uses a series of 2-byte standard commands to enable system reading and writing of battery information" and then goes on to list 2 command codes for each specified command (e.g. Voltage() 0x08/0x09).
How exactly do I issue these two command bytes ? The information for I2C command sequences in section 8.5.1.2 only shows one CMD[7:0] word so:
1) Do I issue two complete command transactions ("START/ADDR/CMD/DATA/DATA/STOP") for 0x08 then 0x09
or
2) The two CMD bytes are somehow combined into one transaction that isn't shown in the Data Sheet (or I've missed it)
I have tried with the Control() command, I used 0x00, followed by two bytes of data 0x00 0x01 for DEVICE TYPE. This seems to work (all I2C bytes were correctly ACK'ed) but the 2 bytes of data I read after the command (from address 0x00) were 0x05 and 0x42 and not 0x05 0x45 as specified in the data sheet.
Can anyone please advise me where I am going wrong, I would be most grateful as I am quite a tight timescale for this project.
Regards
PhilipJ